/* ============================================================
   Corte Garantido â Design System Premium
   Dark theme com acento dourado
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ââ TOKENS DE DESIGN ââ */
:root {
  /* Cores base */
  --bg-primary:    #f8f9fa;
  --bg-surface:    #ffffff;
  --bg-elevated:   #ffffff;
  --bg-glass:      rgba(255,255,255,0.7);
  --bg-glass-hover:rgba(255,255,255,0.9);

  /* Acento dourado */
  --accent:        #c9a96e;
  --accent-light:  #e2c48e;
  --accent-dark:   #9e7a45;
  --accent-glow:   rgba(201,169,110,0.18);
  --accent-border: rgba(201,169,110,0.35);

  /* Texto */
  --text-primary:   #1f2937;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;

  /* Status */
  --success:     #16a34a;
  --success-bg:  rgba(22,163,74,0.1);
  --success-bdr: rgba(22,163,74,0.25);
  --danger:      #dc2626;
  --danger-bg:   rgba(220,38,38,0.1);
  --danger-bdr:  rgba(220,38,38,0.25);
  --warning:     #d97706;
  --warning-bg:  rgba(217,119,6,0.1);
  --info:        #2563eb;
  --info-bg:     rgba(37,99,235,0.1);

  /* Bordas */
  --border:       #e5e7eb;
  --border-light: #f3f4f6;

  /* Tipografia */
  --font-brand: 'Outfit', sans-serif;
  --font-body:  'Inter', sans-serif;

  /* EspaÃ§amento (mÃºltiplos de 8) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* Sombras */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.08);
  --shadow-gold: 0 0 32px rgba(201,169,110,0.15);
  --shadow-in:   inset 0 1px 0 rgba(0,0,0,0.02);

  /* TransiÃ§Ãµes */
  --t-fast:   150ms cubic-bezier(.4,0,.2,1);
  --t-normal: 300ms cubic-bezier(.4,0,.2,1);
  --t-slow:   500ms cubic-bezier(.4,0,.2,1);
  --t-spring: 400ms cubic-bezier(.34,1.56,.64,1);
  --t-slide:  350ms cubic-bezier(.32,.72,0,1);

  /* Layout */
  --nav-h:       72px;
  --topbar-h:    60px;
  --max-w:       480px;
  --safe-bot:    env(safe-area-inset-bottom, 16px);
}

/* ââ RESET BASE ââ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}
img,svg,video { display: block; max-width: 100%; }
button,input,select,textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }

/* ââ SCROLLBAR ââ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

/* ââ LAYOUT DO APP ââ */
#app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-primary);
  box-shadow: 0 0 120px rgba(0,0,0,0.1);
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ââ TOP BAR ââ */
.top-bar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.top-bar__brand {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ââ CONTEÃDO DE ABAS ââ */
.tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + var(--safe-bot) + 8px);
  position: relative;
}

.tab-panel {
  display: none;
  min-height: 100%;
  animation: fadeInUp var(--t-normal) forwards;
}
.tab-panel.active { display: block; }
.tab-panel.active.flex-panel { display: flex; flex-direction: column; }

/* ââ BOTTOM NAVIGATION ââ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: rgba(255,255,255,0.92);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: var(--sp-2);
  padding-bottom: var(--safe-bot);
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Show bottom-nav over barber profile modal */
body:has(#barberProfileModal:not(.hidden)) .bottom-nav {
  z-index: 1150;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.nav-btn:active { transform: scale(0.88); }
.nav-btn.active { color: var(--accent); }
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 var(--r-full) var(--r-full);
}
.nav-btn__icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-btn__badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  border: 2px solid var(--bg-surface);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: badgePulse 1.8s infinite;
}
.nav-btn__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ââ ICON BUTTON ââ */
.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  position: relative;
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-glass); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn.danger { color: var(--danger); }

/* ââ CARDS ââ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-in);
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-fast);
}
.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(0,0,0,0.06);
}
.card--gold { border-color: var(--accent-border); }
.card--interactive { cursor: pointer; }
.card--interactive:active { transform: scale(0.98); border-color: var(--accent-border); }
.card--interactive:hover { border-color: var(--accent-border); box-shadow: var(--shadow-gold); }

/* ââ BOTÃES ââ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .015em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-normal), filter var(--t-fast);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.95) !important; }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(201,169,110,0.28);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 6px 28px rgba(201,169,110,0.4); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--secondary:hover { border-color: var(--accent-border); color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--text-primary); }

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-bdr);
}
.btn--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-bdr);
}
.btn--full { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: .8rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }

/* ââ INPUTS ââ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(201,169,110,0.03);
}
.input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}
.input--with-icon { padding-left: 44px; }

.input-wrapper { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}
.input-error {
  font-size: .78rem;
  color: var(--danger);
  margin-top: 2px;
}

/* ââ SELECT ââ */
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select.input option { background: var(--bg-elevated); }

/* ââ TOGGLE (role selector) ââ */
.toggle-group {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 3px;
}
.toggle-btn {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}
.toggle-btn.active {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ââ MODAIS ââ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn var(--t-fast) forwards;
}
.modal-overlay.hidden { display: none; }
.modal-overlay.closing { animation: fadeOut var(--t-normal) forwards; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  width: 100%;
  max-width: var(--max-w);
  max-height: 92dvh;
  overflow-y: auto;
  animation: slideUp var(--t-slide) forwards;
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.modal.closing { animation: slideDown var(--t-slide) forwards; }

.modal__drag {
  width: 40px; height: 4px;
  background: var(--border-light);
  border-radius: var(--r-full);
  margin: 14px auto 0;
  cursor: grab;
}

.modal__header {
  padding: var(--sp-5) var(--sp-6) var(--sp-3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.modal__title {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.modal__subtitle {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}
.modal__body { padding: 0 var(--sp-6) var(--sp-6); }
.modal__footer {
  padding: 0 var(--sp-6) calc(var(--sp-6) + var(--safe-bot));
  display: flex;
  gap: var(--sp-3);
}

/* ââ PILLS / BADGES ââ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.pill--gold   { background: rgba(201,169,110,.12); color: var(--accent); border: 1px solid var(--accent-border); }
.pill--green  { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-bdr); }
.pill--red    { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-bdr); }
.pill--muted  { background: rgba(255,255,255,.04); color: var(--text-muted); border: 1px solid var(--border); }
.pill--blue   { background: var(--info-bg); color: var(--info); }

/* ââ SLOT PILLS (horÃ¡rios) ââ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-4);
}
@media (max-width: 360px) {
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

.slot-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: var(--r-md);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  user-select: none;
}
.slot-pill.free {
  border-color: var(--success-bdr);
  background: var(--success-bg);
  color: var(--success);
}
.slot-pill.free:active { transform: scale(0.93); }
.slot-pill.free:hover { box-shadow: 0 0 16px rgba(63,207,113,.2); filter: brightness(1.1); }
.slot-pill.busy {
  opacity: .25;
  cursor: not-allowed;
  pointer-events: none;
}
.slot-pill.selected {
  background: var(--accent);
  border-color: transparent;
  color: #0a0a0a;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ââ AVATAR ââ */
.avatar {
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar--32 { width: 32px; height: 32px; }
.avatar--40 { width: 40px; height: 40px; }
.avatar--48 { width: 48px; height: 48px; }
.avatar--64 { width: 64px; height: 64px; }
.avatar--96 { width: 96px; height: 96px; }
.avatar--120{ width:120px; height:120px; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .02em;
}
.avatar-placeholder--32  { font-size: .7rem; }
.avatar-placeholder--40  { font-size: .8rem; }
.avatar-placeholder--48  { font-size: .9rem; }
.avatar-placeholder--64  { font-size: 1.1rem; }
.avatar-placeholder--96  { font-size: 1.5rem; }
.avatar-placeholder--120 { font-size: 1.8rem; }

/* ââ DIVISOR ââ */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: .8rem;
}
.divider::before,.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ââ TOAST NOTIFICATIONS ââ */
.toast-container {
  position: fixed;
  top: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: calc(100% - 32px);
  max-width: calc(var(--max-w) - 32px);
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: var(--shadow-md);
  animation: toastEnter var(--t-slide) forwards;
  pointer-events: all;
}
.toast--success { border-left: 3px solid var(--success); }
.toast--error   { border-left: 3px solid var(--danger); }
.toast--info    { border-left: 3px solid var(--accent); }
.toast--warning { border-left: 3px solid var(--warning); }
.toast__text { font-size: .875rem; font-weight: 500; flex: 1; line-height: 1.4; }
.toast.exit { animation: slideUp var(--t-normal) reverse forwards; }

/* ââ LOADING / SKELETON ââ */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.08);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
.spinner--gold { color: var(--accent); }
.spinner--dark { color: #0a0a0a; border-color: rgba(0,0,0,0.15); border-top-color: #0a0a0a; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(0,0,0,0.04) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: var(--r-sm);
}

/* ââ SEÃÃES ââ */
.section-header {
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.section-sub {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ââ EMPTY STATE ââ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  gap: var(--sp-4);
  min-height: 300px;
}
.empty-state__icon {
  width: 72px; height: 72px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.8rem;
}
.empty-state__title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
}
.empty-state__text {
  font-size: .875rem;
  color: var(--text-secondary);
  max-width: 260px;
  line-height: 1.6;
}

/* ââ BRAND / LOGO ââ */
.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-dark);
}

/* ââ AUTH PAGES ââ */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.auth-orb--tl {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,169,110,0.07), transparent 70%);
  top: -140px; right: -120px;
}
.auth-orb--bl {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,169,110,0.05), transparent 70%);
  bottom: -100px; left: -80px;
}
.auth-brand-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.auth-brand-icon {
  width: 50px; height: 50px;
  background: rgba(201,169,110,.1);
  border: 1px solid var(--accent-border);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg), var(--shadow-in);
  position: relative;
  z-index: 1;
}
.auth-card__title {
  font-family: var(--font-brand);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}
.auth-card__sub {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}
.auth-footer {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ââ LANDING PAGE ââ */
.landing { overflow-x: hidden; }
.landing-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-5) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero__orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,169,110,0.1), transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
.landing-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .03em;
  margin-bottom: var(--sp-6);
  animation: fadeInUp var(--t-slow) .1s both;
}
.landing-hero__title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: var(--sp-5);
  animation: fadeInUp var(--t-slow) .2s both;
}
.landing-hero__title .highlight {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  animation: fadeInUp var(--t-slow) .3s both;
}
.landing-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  max-width: 320px;
  animation: fadeInUp var(--t-slow) .4s both;
}

.features-section {
  padding: var(--sp-10) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}
.feature-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,169,110,.15), rgba(201,169,110,.05));
  border: 1px solid var(--accent-border);
  margin-bottom: var(--sp-4);
  font-size: 1.5rem;
}
.feature-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.feature-text {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: rgba(9,9,9,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ââ PERFIL DO USUÃRIO (aba Minha Conta) ââ */
.profile-header {
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
  background: linear-gradient(180deg, rgba(201,169,110,0.06), transparent);
  border-bottom: 1px solid var(--border);
}
.profile-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
}
.profile-email { font-size: .85rem; color: var(--text-secondary); }
.profile-list {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.profile-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.profile-item:hover { border-color: var(--border-light); }
.profile-item__icon {
  width: 38px; height: 38px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.profile-item__label { font-size: .75rem; color: var(--text-muted); margin-bottom: 2px; }
.profile-item__value { font-size: .9rem; font-weight: 500; }
.profile-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  border: 2px solid var(--bg-surface);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ââ UTILITÃRIOS ââ */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--text-secondary); }
.text-gold { color: var(--accent); }
.font-brand { font-family: var(--font-brand); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.rounded-full { border-radius: var(--r-full); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.p-4 { padding: var(--sp-4); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.line-height-lg { line-height: 1.7; }

/* ââ KEYFRAMES ââ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}
@keyframes toastEnter {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(15deg); }
  30% { transform: rotate(-15deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(5deg); }
  85% { transform: rotate(-5deg); }
}
.bell-shake {
  display: inline-block;
  animation: bellShake 0.6s ease;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes goldPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,169,110,.35); }
  70% { box-shadow: 0 0 0 10px rgba(201,169,110,0); }
}

/* ââ REVEAL ON SCROLL ââ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ââ SWITCH TOGGLE ââ */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-strong, #e2e8f0);
  transition: .2s ease;
  border-radius: 24px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.switch input:checked + .switch-slider {
  background-color: var(--accent);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* ââ SUGGESTIONS LIST ââ */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}
.suggestions-item {
  padding: 10px 14px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background var(--t-fast);
  text-align: left;
}
.suggestions-item:hover {
  background: var(--accent-glow);
  color: var(--accent-dark);
}

/* ââ TAG BUTTONS ââ */
.tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tag-btn:hover {
  background: var(--bg-glass);
  border-color: var(--border-dark);
}
.tag-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}

/* -- EXPLORE GRID E CATEGORY CARDS -- */
.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.category-card {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-surface);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.category-card__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.category-card__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}
.category-card__title {
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
/* Lista de Barbeiros no modal */
.barber-explore-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.barber-explore-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.barber-explore-header img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-surface);
}
.barber-explore-info {
    flex: 1;
}
.barber-explore-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.barber-explore-gallery::-webkit-scrollbar {
    display: none;
}
.barber-explore-gallery img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ââ BARBER PROFILE TABS (CLIENT PANEL) ââ */
.bp-profile-tabs {
  display: flex !important;
  border-top: 1px solid var(--border-light) !important;
  background: var(--bg-surface) !important;
  width: 100% !important;
  position: relative !important;
}

.bp-profile-tab {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 14px 0 !important;
  position: relative !important;
  cursor: pointer !important;
  color: var(--text-muted) !important;
  transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Glow/Circle behind icon on hover */
.bp-profile-tab::before {
  content: '' !important;
  position: absolute !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(201, 169, 110, 0) !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
  transform: scale(0.9) !important;
  z-index: 0 !important;
}

.bp-profile-tab:hover::before {
  background: rgba(201, 169, 110, 0.08) !important;
  transform: scale(1) !important;
}

/* Active underline expanding from center */
.bp-profile-tab::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: var(--accent) !important;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 2 !important;
}

.bp-profile-tab.active::after {
  width: 50% !important;
  left: 25% !important;
}

.bp-profile-tab.active {
  color: var(--accent) !important;
}

.bp-profile-tab svg {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  stroke-width: 1.75 !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease !important;
}

.bp-profile-tab:hover svg {
  transform: translateY(-2px) scale(1.08) !important;
  color: var(--accent) !important;
}

.bp-profile-tab.active svg {
  transform: scale(1.05) !important;
}

/* ââ MODAL LATERAL (SOCIAL NETWORK TRANSITION) ââ */
.modal.modal-lateral {
  animation: slideLeftEnter var(--t-slide) forwards;
}
.modal.modal-lateral.closing {
  animation: slideLeftExit var(--t-slide) forwards;
}

@keyframes slideLeftEnter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideLeftExit {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

/* ââ GPS spin animation ââ */
@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-anim {
  animation: spin360 0.8s linear infinite;
}

/* ââ Explore chips scrollbar hide ââ */
#categoryChips::-webkit-scrollbar { display: none; }

/* ââ Grade de Categorias de Pesquisa (Instagram-style) ââ */
.explore-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 0 24px;
}

.explore-category-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.explore-category-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.explore-category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Micro-interaÃ§Ãµes premium */
.explore-category-card:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .explore-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent) !important;
    background-color: var(--bg-elevated);
    box-shadow: 0 8px 16px rgba(201, 169, 110, 0.12) !important;
  }
  
  .explore-category-card:hover .explore-category-icon {
    transform: scale(1.1);
    background-color: rgba(201, 169, 110, 0.14);
  }
}

/* ââ Leaflet Map Modal & Previews ââ */
.map-close-btn {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 16px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s;
}
.map-close-btn:active {
  transform: scale(0.95);
  background: rgba(10, 10, 10, 0.85);
}

.map-preview-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.94, 0.6, 1);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.map-preview-panel.active {
  transform: translateY(0);
}

.map-preview-card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  pointer-events: auto;
}

/* Customize Leaflet elements to match dark/gold theme */
.leaflet-container {
  font-family: inherit !important;
}
.leaflet-bar {
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
.leaflet-bar a {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-light) !important;
}
.leaflet-bar a:hover {
  background-color: var(--bg-elevated) !important;
  color: var(--accent) !important;
}
/* Leaflet Marker Styling */
.barber-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.barber-pin-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.barber-pin-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.barber-map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--accent);
}
.leaflet-marker-icon:hover .barber-pin-inner {
  transform: scale(1.15);
}

/* ââ HIGHLIGHTS (INSTAGRAM STYLE) ââ */
#bpHighlights::-webkit-scrollbar {
  display: none;
}

#adminHighlightsList::-webkit-scrollbar {
  display: none;
}

.admin-highlight-item .icon-btn {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .admin-highlight-item .icon-btn {
    opacity: 0;
  }
  .admin-highlight-item:hover .icon-btn {
    opacity: 1;
  }
}

/* Modal highlights checklist layout style */
#hl_galleryGrid label {
  position: relative;
  transition: transform 0.2s ease;
}

#hl_galleryGrid label:active {
  transform: scale(0.95);
}

#hl_galleryGrid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  border: 2px solid white;
  border-radius: 4px;
}

/* ââ CLIENT HIGHLIGHT CIRCLES ââ */
.bp-highlight-circle {
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bp-highlight-circle:active {
  transform: scale(0.9);
}

.bp-highlight-circle-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 2px;
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bp-highlight-circle-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bp-highlight-circle-title {
  font-size: 0.72rem;
  color: var(--text-primary);
  margin-top: 4px;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

@media (hover: hover) {
  .bp-highlight-circle:hover {
    transform: translateY(-2px);
  }
  .bp-highlight-circle:hover .bp-highlight-circle-inner {
    border-color: #fff;
    box-shadow: 0 6px 14px rgba(201, 169, 110, 0.25);
  }
}

/* ââ PLAYER DE STORIES (DESTAQUES) ââ */
#clientHighlightLightbox {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.story-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  transform: scale(1);
  opacity: 1;
}

.story-img.animating {
  transform: scale(0.96);
  opacity: 0;
}

/* Chevron desktop navigation arrows */
.story-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
  .story-nav-arrow {
    display: flex;
  }
}

.story-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

.story-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.story-nav-arrow--left {
  left: 24px;
}

.story-nav-arrow--right {
  right: 24px;
}

/* ââ PORTFOLIO POST LIGHTBOX (GALERIA) ââ */
#clientGalleryLightbox, #clientProductLightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  padding: 16px;
}

/* Lightbox Container Card */
.gallery-lightbox-container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 1;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#clientGalleryLightbox.active .gallery-lightbox-container, #clientProductLightbox.active .gallery-lightbox-container {
  animation: lightboxAppear 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxAppear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Lightbox Header */
.gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.gallery-lightbox-barber {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-lightbox-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  background: #fff;
}

.gallery-lightbox-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: #f0f0f0;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.gallery-lightbox-barber-info {
  display: flex;
  flex-direction: column;
}

.gallery-lightbox-barber-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.gallery-lightbox-barber-subtitle {
  font-size: 0.72rem;
  color: #666;
}

.gallery-lightbox-close {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-lightbox-close svg {
  stroke: #111;
}

.gallery-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.gallery-lightbox-close:active {
  transform: scale(0.95);
}

/* Lightbox Content Body */
.gallery-lightbox-body {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
}

.gallery-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  transform: scale(1);
  opacity: 1;
}

.gallery-lightbox-img.loading {
  transform: scale(0.97);
  opacity: 0;
}

/* Navigation Buttons */
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.gallery-lightbox-nav svg {
  stroke: #111;
}

@media (hover: hover) {
  .gallery-lightbox-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
  }
}

.gallery-lightbox-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery-lightbox-nav--prev {
  left: 14px;
}

.gallery-lightbox-nav--next {
  right: 14px;
}

/* Lightbox Footer Info */
.gallery-lightbox-footer {
  width: 100%;
  background: #ffffff;
  padding: 16px 20px;
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gallery-info-clean {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.gallery-info-caption {
  font-size: 0.94rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.gallery-info-subcaption {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  font-weight: 500;
}

.gallery-info-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #888;
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ââ PERFIL DO BARBEIRO: REDESENHO DE SUB-ABAS E FORMULÃRIOS ââ */
.profile-sub-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 15;
  scrollbar-width: none;
}
.profile-sub-tabs::-webkit-scrollbar {
  display: none;
}
.sub-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
}
.sub-tab-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-block;
}
.sub-tab-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-dark);
  background: var(--bg-surface);
}
.sub-tab-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.15);
}

.sub-panel {
  display: none;
  animation: fadeInUp var(--t-normal) forwards;
}
.sub-panel.active {
  display: block;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.settings-card__title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-row, .product-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-primary);
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  margin-bottom: 10px;
}
.service-row:focus-within, .product-row:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 8px var(--accent-glow);
}

.product-image-upload {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--accent-border);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-upload:hover {
  border-color: var(--accent);
}
.product-image-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.profile-banner {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  height: 90px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  border-bottom: none;
}
.profile-header-card {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin: 16px;
  overflow: hidden;
}
.profile-avatar-container {
  position: relative;
  margin-top: -48px;
  margin-left: 20px;
  display: inline-block;
}
.profile-details {
  padding: 16px 20px 20px 20px;
}

/* ==========================================
   CÃMERA EM TELA CHEIA (PAINEL DO BARBEIRO)
   ========================================== */
.camera-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: #0d0d0d !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.camera-overlay.hidden {
  display: none !important;
}

/* VÃ­deo cobrindo a tela inteira */
.camera-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
}

/* Camada com linhas de grade (estilo cÃ¢mera profissional) */
.camera-grid {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(3, 1fr) !important;
}

/* Linhas verticais */
.camera-grid-line-v1 {
  grid-column: 2;
  border-left: 1px dashed rgba(255, 255, 255, 0.15) !important;
  border-right: 1px dashed rgba(255, 255, 255, 0.15) !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* Linha horizontal */
.camera-grid-line-h1 {
  grid-row: 2;
  border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important;
  width: 100% !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 33.33% !important;
  bottom: 33.33% !important;
  left: 0 !important;
}

/* Controles superiores */
.camera-controls-top {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 24px 20px !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 3 !important;
}

.camera-title {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
  font-family: 'Inter', sans-serif !important;
}

/* Controles inferiores da cÃ¢mera */
.camera-controls-bottom {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 24px 16px 40px !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 3 !important;
}

/* BotÃ£o de capturar */
.camera-capture-btn {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 5px solid rgba(255, 255, 255, 0.3) !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.camera-capture-btn:hover {
  transform: scale(1.05) !important;
  border-color: var(--accent) !important;
}

.camera-capture-btn:active {
  transform: scale(0.9) !important;
  background: #e0e0e0 !important;
}

.camera-capture-btn-inner {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  transition: background 0.2s !important;
}

.camera-capture-btn:active .camera-capture-btn-inner {
  background: var(--accent) !important;
}

/* BotÃ£o de fechar */
.camera-close-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.camera-close-btn:hover {
  background: rgba(220, 53, 69, 0.8) !important;
  border-color: rgba(220, 53, 69, 0.2) !important;
  transform: rotate(90deg) !important;
}

/* Efeito de flash da cÃ¢mera */
.camera-flash-active {
  animation: cameraFlash 0.35s ease-out forwards;
}

@keyframes cameraFlash {
  0% {
    background: #ffffff;
    opacity: 1;
  }
  100% {
    background: transparent;
    opacity: 0;
  }
}


/* ==============================================================
   PAINEL DO BARBEIRO â LAYOUT DESKTOP (â¥ 768px)
   Sacada: bottom-nav vira sidebar vertical fixada Ã  esquerda.
   Como o bottom-nav estÃ¡ dentro do .app-shell, usa-se
   position:fixed + margin-left para criar o layout de 2 colunas.
   Nada do mobile Ã© tocado â tudo dentro do @media.
   ============================================================== */

@media (min-width: 768px) {

  /* ââ VariÃ¡veis sobrescritas para desktop ââ */
  :root {
    --sidebar-w: 240px;
    --topbar-h:  64px;
    --nav-h:     0px;
  }

  /* ââ #app: ocupa toda a tela ââ */
  #app {
    max-width: 100%;
    box-shadow: none;
    background: var(--bg-primary);
  }

  /* ââ app-shell: cede espaÃ§o Ã  esquerda para a sidebar fixa ââ */
  .app-shell {
    margin-left: var(--sidebar-w);
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ââ SIDEBAR VERTICAL (bottom-nav reestruturado) ââ */
  .bottom-nav {
    /* remove posicionamento do bottom/mobile */
    bottom: auto;
    left: 0;
    top: 0;
    right: auto;
    transform: none;

    /* posiciona fixo Ã  esquerda, altura 100% */
    position: fixed;
    width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    height: 100dvh;

    /* layout vertical */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;

    /* estilo premium */
    background: var(--bg-surface);
    border-top: none;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 32px rgba(0,0,0,0.04);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    scrollbar-width: none;
  }
  .bottom-nav::-webkit-scrollbar { display: none; }

  /* Logo / Identidade no topo da sidebar */
  .bottom-nav::before {
    content: 'Corte Garantido';
    display: block;
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-dark);
    letter-spacing: -.02em;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
  }

  /* EspaÃ§ador no fim da sidebar para respiraÃ§Ã£o */
  .bottom-nav::after {
    content: '';
    display: block;
    height: 24px;
    flex-shrink: 0;
  }

  /* ââ Itens de nav na sidebar ââ */
  .nav-btn {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 0;
    width: 100%;
    border-left: 3px solid transparent;
    border-top: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--t-fast);
    position: relative;
    text-align: left;
  }

  .nav-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-left-color: var(--border);
  }

  .nav-btn.active {
    color: var(--accent-dark);
    background: var(--accent-glow);
    border-left-color: var(--accent);
  }

  /* remove o indicador de topo do mobile */
  .nav-btn.active::before {
    display: none;
  }

  .nav-btn:active {
    transform: none;
  }

  .nav-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-btn__label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    display: block;
    white-space: nowrap;
  }

  /* badge no Ã­cone */
  .nav-btn__badge {
    position: absolute;
    top: 10px;
    left: 31px;
  }

  /* ââ TOP BAR desktop ââ */
  .top-bar {
    height: var(--topbar-h);
    border-bottom: 1px solid var(--border-light);
    padding: 0 28px;
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
  }

  /* ââ TAB CONTENT desktop: sem padding do bottom-nav ââ */
  .tab-content {
    padding-bottom: 32px;
  }

  /* ââ Section header com mais respiro lateral ââ */
  .section-header {
    padding: 24px 28px 16px;
  }

  /* Padding lateral interno das listas */
  #todayBookingsList,
  #clientsList {
    padding-left: 28px;
    padding-right: 28px;
  }

  /* ââ MODAIS: centralizados (nÃ£o ancorados ao bottom) ââ */
  .modal-overlay {
    align-items: center;
    padding: 24px;
    /* A overlay comeÃ§a depois da sidebar */
    left: var(--sidebar-w);
  }

  .modal {
    border-radius: var(--r-2xl);
    max-height: 88dvh;
    width: 100%;
    max-width: 520px;
    animation: desktopModalIn var(--t-normal) forwards;
  }

  /* Remove a alÃ§a de arraste */
  .modal__drag {
    display: none;
  }

  @keyframes desktopModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }

  /* ââ Bottom-sheets: no desktop viram modais normais ââ */
  .modal-overlay[style*="align-items:flex-end"],
  .modal-overlay[style*="align-items: flex-end"] {
    align-items: center;
    padding: 24px;
  }

  /* ââ CÃ¢mera: ocupa Ã¡rea de conteÃºdo (sem cobrir sidebar) ââ */
  .camera-overlay {
    left: var(--sidebar-w) !important;
    width: calc(100vw - var(--sidebar-w)) !important;
  }

  /* ââ Toasts: centralizados no painel de conteÃºdo ââ */
  .toast-container {
    left: calc(var(--sidebar-w) + 50%);
    transform: translateX(-50%);
    max-width: 480px;
  }

  /* ââ Reels: mais colunas no desktop ââ */
  #adminReelsList {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ââ Telas ainda maiores: mais respiro ââ */
@media (min-width: 1200px) {
  :root {
    --sidebar-w: 260px;
  }

  .tab-content {
    max-width: 900px;
  }
}




/* ==============================================================
   VIEW DO CLIENTE  LAYOUT DESKTOP (>=768px)
   Mesma sacada do admin: bottom-nav vira sidebar vertical.
   Diferencial: aba de feed tem layout de 2 colunas em telas largas.
   ============================================================== */

@media (min-width: 768px) {

  /* Aplica apenas quando a view do cliente esta ativa */
  body:has(#tab-barbers) #app {
    max-width: 100%;
    box-shadow: none;
  }

  body:has(#tab-barbers) .app-shell {
    margin-left: var(--sidebar-w);
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* ---- SIDEBAR VERTICAL (cliente) ---- */
  body:has(#tab-barbers) .bottom-nav {
    bottom: auto;
    left: 0;
    top: 0;
    right: auto;
    transform: none;
    position: fixed;
    width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--bg-surface);
    border-top: none;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 32px rgba(0,0,0,0.04);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    scrollbar-width: none;
  }

  body:has(#tab-barbers) .bottom-nav::before {
    content: 'Corte Garantido';
    display: block;
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-dark);
    letter-spacing: -.02em;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
  }

  body:has(#tab-barbers) .bottom-nav::after {
    content: '';
    display: block;
    height: 24px;
    flex-shrink: 0;
  }

  body:has(#tab-barbers) .nav-btn {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 0;
    width: 100%;
    border-left: 3px solid transparent;
    border-top: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--t-fast);
    position: relative;
    text-align: left;
  }

  body:has(#tab-barbers) .nav-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-left-color: var(--border);
  }

  body:has(#tab-barbers) .nav-btn.active {
    color: var(--accent-dark);
    background: var(--accent-glow);
    border-left-color: var(--accent);
  }

  body:has(#tab-barbers) .nav-btn.active::before { display: none; }
  body:has(#tab-barbers) .nav-btn:active { transform: none; }

  body:has(#tab-barbers) .nav-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body:has(#tab-barbers) .nav-btn__label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    display: block;
    white-space: nowrap;
  }

  body:has(#tab-barbers) .nav-btn__badge {
    position: absolute;
    top: 10px;
    left: 31px;
  }

  /* ---- TAB CONTENT sem padding de bottom-nav ---- */
  body:has(#tab-barbers) .tab-content {
    padding-bottom: 0;
  }

  /* ---- ABA FEED: posts centralizados ---- */
  body:has(#tab-barbers) #tab-barbers.active {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body:has(#tab-barbers) #mainFeedScroll {
    flex: 1;
    overflow-y: auto;
  }

  body:has(#tab-barbers) #feedList {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 40px;
  }

  /* ---- ABA PESQUISAR ---- */
  body:has(#tab-barbers) #tab-explore.active {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body:has(#tab-barbers) #exploreResults {
    padding: 16px 28px 40px;
  }

  /* ---- ABA SALVOS ---- */
  body:has(#tab-barbers) #tab-saved.active {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body:has(#tab-barbers) #savedContainer {
    padding-bottom: 40px;
  }

  /* ---- ABA HISTORICO ---- */
  body:has(#tab-barbers) #historyContainer {
    padding: 0 28px 40px;
  }

  /* ---- ABA PERFIL centralizada ---- */
  body:has(#tab-barbers) #tab-profile.active {
    max-width: 700px;
    margin: 0 auto;
  }

  /* ---- MODAIS: centralizados, deslocados da sidebar ---- */
  body:has(#tab-barbers) .modal-overlay {
    align-items: center;
    padding: 24px;
    left: var(--sidebar-w);
  }

  body:has(#tab-barbers) .modal {
    border-radius: var(--r-2xl);
    max-height: 88dvh;
    width: 100%;
    max-width: 520px;
    animation: clientModalIn var(--t-normal) forwards;
  }

  body:has(#tab-barbers) .modal__drag { display: none; }

  /* Bottom-sheets -> modais centralizados */
  body:has(#tab-barbers) .modal-overlay[style*= align-items:flex-end],
  body:has(#tab-barbers) .modal-overlay[style*=align-items: flex-end] {
    align-items: center;
    padding: 24px;
  }

  /* ---- Toasts alinhados ao painel de conteudo ---- */
  body:has(#tab-barbers) .toast-container {
    left: calc(var(--sidebar-w) + 50%);
    transform: translateX(-50%);
    max-width: 480px;
  }
}

/* ---- Feed em 2 colunas em telas largas (tipo Instagram web) ---- */
@media (min-width: 1100px) {
  body:has(#tab-barbers) #mainFeedScroll {
    display: grid;
    grid-template-columns: 1fr 300px;
    height: calc(100dvh - 60px);
    overflow: hidden;
    align-items: start;
  }

  /* Posts: coluna esquerda com scroll proprio */
  body:has(#tab-barbers) #feedList {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    margin: 0;
    height: 100%;
    overflow-y: auto;
    padding: 8px 0 40px;
  }

  body:has(#tab-barbers) #feedList > * {
    margin-left: 16px;
    margin-right: 16px;
  }

  /* Stories: coluna direita estilo sidebar de stories */
  body:has(#tab-barbers) .stories-wrapper {
    grid-column: 2;
    grid-row: 1;
    border-bottom: none;
    border-left: 1px solid var(--border-light);
    padding: 20px 16px 20px;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-surface);
    scrollbar-width: none;
  }
  body:has(#tab-barbers) .stories-wrapper::-webkit-scrollbar { display: none; }

  /* Titulo da secao de stories */
  body:has(#tab-barbers) .stories-wrapper::before {
    content: 'Destaques';
    display: block;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
  }

  /* Stories em lista vertical */
  body:has(#tab-barbers) #storiesList {
    flex-direction: column;
    overflow-x: hidden;
    padding-right: 0;
    gap: 12px;
  }

  /* Cada item de story: linha horizontal */
  body:has(#tab-barbers) #storiesList > div {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: unset !important;
    justify-content: flex-start !important;
  }

  /* Avatar menor no modo lista */
  body:has(#tab-barbers) #storiesList img,
  body:has(#tab-barbers) #storiesList .avatar {
    width: 46px !important;
    height: 46px !important;
  }

  /* Label do story ao lado */
  body:has(#tab-barbers) #storiesList span,
  body:has(#tab-barbers) #storiesList p {
    font-size: 0.82rem;
    text-align: left !important;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@keyframes clientModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Reel file drop area hover */
.file-drop-area:hover { border-color: var(--accent) !important; background: var(--bg-primary) !important; }



/* ============================================================
   DESKTOP UI FIXES (CORTE GARANTIDO)
   ============================================================ */
@media (min-width: 768px) {
  /* Ocultar titulo redundante no topo do feed já que a sidebar tem a logo */
  body:has(#tab-barbers) .feed-header h2 {
    display: none;
  }
  
  /* Centralizar as abas "Seguindo / Para Você" no topo */
  body:has(#tab-barbers) .feed-header {
    justify-content: center !important;
    position: relative;
    background: rgba(248, 249, 250, 0.85) !important;
    backdrop-filter: blur(12px);
  }
  
  /* O botão do mapa fica solto à direita */
  body:has(#tab-barbers) .feed-header .icon-btn {
    position: absolute;
    right: 16px;
  }

  /* Melhorar a aparencia da sidebar */
  body:has(#tab-barbers) .bottom-nav {
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
  }
  body:has(#tab-barbers) .bottom-nav::before {
    font-size: 1.4rem;
    padding: 32px 24px 24px;
    letter-spacing: -0.04em;
    color: var(--accent);
  }
  body:has(#tab-barbers) .nav-btn {
    border-radius: var(--r-md);
    margin: 4px 16px;
    width: calc(100% - 32px);
    border: none;
  }
  body:has(#tab-barbers) .nav-btn.active {
    background: var(--bg-primary);
    box-shadow: inset 0 0 0 1px var(--border);
    color: var(--accent-dark);
  }
  body:has(#tab-barbers) .nav-btn:hover {
    background: var(--bg-primary);
  }
}

@media (min-width: 1100px) {
  /* Evitar que os cards do feed fiquem gigantes */
  body:has(#tab-barbers) #feedList .card {
    max-width: 470px;
    margin: 0 auto 24px auto !important;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
  }
  
  /* Ajustar o grid de stories para parecer um painel lateral limpo */
  body:has(#tab-barbers) .stories-wrapper {
    background: transparent !important;
    border-left: none !important;
    padding-left: 0 !important;
  }
  body:has(#tab-barbers) #storiesList > div {
    background: var(--bg-surface);
    padding: 10px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-light);
    transition: transform var(--t-fast);
    cursor: pointer;
  }
  body:has(#tab-barbers) #storiesList > div:hover {
    transform: translateX(4px);
    border-color: var(--accent-border);
  }
}


@media (min-width: 1100px) {
  /* Sobrescreve o estilo inline do nome do story (Destaques) */
  body:has(#tab-barbers.active) #storiesList > div > div:last-child {
    max-width: 180px !important;
    text-align: left !important;
    font-size: 0.85rem !important;
  }
}
