/* ============================================================
   MUZZY BARBEARIA — Design System Premium
   Preto · Dourado · Branco · Glassmorphism
   Desenvolvido por Dexon Dev — https://dexondev.com
   ============================================================ */

:root {
  --gold: #D4AF37;
  --gold-light: #F0D97B;
  --gold-dark: #A8862A;
  --bg: #0B0B0D;
  --bg-2: #131318;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #17171d;
  --border: rgba(255, 255, 255, 0.09);
  --text: #F5F2EA;
  --text-muted: #9A968C;
  --success: #34c26b;
  --danger: #e5484d;
  --warning: #f0a832;
  --info: #4f9cf9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* Light mode */
body.theme-light {
  --bg: #F7F5F0;
  --bg-2: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #FFFFFF;
  --border: rgba(20, 20, 25, 0.1);
  --text: #171510;
  --text-muted: #6d6a61;
  --shadow: 0 10px 36px rgba(30, 25, 10, 0.12);
  --shadow-sm: 0 4px 14px rgba(30, 25, 10, 0.08);
}
@media (prefers-color-scheme: light) {
  body.theme-auto:not(.dark-forced) {
    --bg: #F7F5F0; --bg-2: #FFFFFF;
    --surface: rgba(255, 255, 255, 0.75); --surface-solid: #FFFFFF;
    --border: rgba(20, 20, 25, 0.1);
    --text: #171510; --text-muted: #6d6a61;
    --shadow: 0 10px 36px rgba(30, 25, 10, 0.12);
    --shadow-sm: 0 4px 14px rgba(30, 25, 10, 0.08);
  }
}
body.dark-forced {
  --bg: #0B0B0D !important; --bg-2: #131318 !important;
  --surface: rgba(255,255,255,0.04) !important; --surface-solid: #17171d !important;
  --border: rgba(255,255,255,0.09) !important;
  --text: #F5F2EA !important; --text-muted: #9A968C !important;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Garante que o atributo [hidden] SEMPRE esconda o elemento, mesmo quando a
   classe define display:flex/grid (corrige popup PWA, badge de notificações,
   campos condicionais de promoção etc.). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(212, 175, 55, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
img, video { max-width: 100%; }
.muted { color: var(--text-muted); }
.gold { color: var(--gold); }
.success { color: var(--success); }
.danger { color: var(--danger); }
.center { text-align: center; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0 8px; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 24px; }
.cat-title { margin: 32px 0 16px; color: var(--gold); font-size: 20px; }

/* ---------- GLASS ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14.5px var(--font-body); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1.2), box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #17130a; box-shadow: 0 6px 22px rgba(212, 175, 55, 0.32);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.42); color: #17130a; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(212, 175, 55, .12); }
.btn-danger { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .4); color: var(--danger); }
.btn-danger:hover { background: rgba(229, 72, 77, .22); }
.btn-link { background: none; color: var(--text-muted); font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.btn-icon:hover { border-color: var(--gold); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--font-display); color: var(--text); }
.brand-mark { font-size: 24px; filter: drop-shadow(0 0 10px rgba(212,175,55,.6)); }
.brand-logo { height: 38px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 14.5px; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.nav-burger { display: none; }

@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; padding: 18px 24px; gap: 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; animation: slideDown .25s ease; }
  .nav-burger { display: inline-flex; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 90px 0 60px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .22; mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-inner { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px;
  background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .35); color: var(--gold);
}
.hero-title { font-size: clamp(38px, 6.5vw, 64px); margin: 18px 0 14px; font-weight: 800; }
.hero-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; color: var(--gold); font-family: var(--font-display); }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

.anim-up { animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) both; }
.anim-up:nth-child(2) { animation-delay: .08s; }
.anim-up:nth-child(3) { animation-delay: .16s; }
.anim-up:nth-child(4) { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- GRID / CARDS ---------- */
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.hover-lift { transition: transform .25s, box-shadow .25s, border-color .25s; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, .4); }

.service-card h3 { margin: 8px 0 4px; font-size: 17px; }
.service-icon { font-size: 26px; }
.service-img { border-radius: var(--radius-sm); height: 140px; width: 100%; object-fit: cover; }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.price { font: 700 18px var(--font-display); }
.service-head { display: flex; justify-content: space-between; align-items: center; }

.barber-card { text-align: center; position: relative; }
.barber-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.15);
}
.barber-photo.sm { width: 76px; height: 76px; }
.avatar-initials {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #17130a; font: 700 26px var(--font-display);
  display: flex; align-items: center; justify-content: center;
}
.fav-btn {
  position: absolute; top: 14px; right: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px;
  cursor: pointer; font-size: 16px; transition: transform .2s;
}
.fav-btn:hover { transform: scale(1.15); }

/* ---------- GALERIA ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid.gallery-lg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .gallery-grid, .gallery-grid.gallery-lg { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img, .gallery-grid video { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.gallery-item figcaption { font-size: 13px; color: var(--text-muted); padding: 6px 2px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hover-zoom { overflow: hidden; border-radius: var(--radius-sm); }
.hover-zoom img { transition: transform .4s; }
.hover-zoom:hover img { transform: scale(1.06); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.banner-strip { display: flex; gap: 12px; overflow-x: auto; }
.banner-item img { height: 160px; border-radius: var(--radius-sm); }

/* ---------- AVALIAÇÕES ---------- */
.stars { color: var(--gold); letter-spacing: 2px; }
.review-card p { margin: 10px 0; }
.review-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-reply {
  margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, .07); border-radius: 0 10px 10px 0; font-size: 14px;
}
.review-photo { height: 90px; border-radius: 10px; }
.star-picker { display: flex; gap: 6px; font-size: 30px; margin-bottom: 12px; }
.star-picker button { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 30px; transition: transform .15s; }
.star-picker button:hover { transform: scale(1.2); }

/* ---------- FORMULÁRIOS ---------- */
.form label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea, .filters input, .filters select,
.input-group input, .modal input, .modal select, .modal textarea,
.hours-table input, td select {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: 400 14.5px var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus, .input-group input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}
.hours-table input { width: auto; margin: 0; padding: 7px 9px; }
td select { width: auto; margin: 0; padding: 6px 8px; font-size: 13px; }
.form .check, .check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form .check input, .check input { width: auto; margin: 0; }
.input-group { display: flex; gap: 8px; }
.input-group input { margin-top: 0; }
.form-inline { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.form-inline label { font-size: 13.5px; }
.form-inline input, .form-inline select { margin-top: 4px; width: auto; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { display: none; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); transition: .25s; cursor: pointer;
}
.switch span::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted); top: 3px; left: 4px; transition: .25s;
}
.switch input:checked + span { background: rgba(212, 175, 55, .25); border-color: var(--gold); }
.switch input:checked + span::before { transform: translateX(19px); background: var(--gold); }

/* ---------- BADGES / FLASH / TOAST ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-success { background: rgba(52, 194, 107, .14); color: var(--success); }
.badge-warning { background: rgba(240, 168, 50, .14); color: var(--warning); }
.badge-danger { background: rgba(229, 72, 77, .14); color: var(--danger); }
.badge-info { background: rgba(79, 156, 249, .14); color: var(--info); }
.badge-muted { background: var(--surface); color: var(--text-muted); }

.flash {
  max-width: 1180px; margin: 14px auto 0; padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 14.5px; animation: fadeUp .4s ease;
}
.flash-success { background: rgba(52, 194, 107, .12); border: 1px solid rgba(52, 194, 107, .35); color: var(--success); }
.flash-error { background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .35); color: var(--danger); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert-warning { background: rgba(240, 168, 50, .12); border: 1px solid rgba(240, 168, 50, .4); color: var(--warning); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--surface-solid); border: 1px solid var(--gold); color: var(--text);
  padding: 13px 26px; border-radius: 999px; box-shadow: var(--shadow); z-index: 200;
  animation: fadeUp .3s ease; font-size: 14.5px;
}

/* ---------- TABELAS ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.summary-table { width: 100%; font-size: 14.5px; }
.summary-table td { padding: 9px 4px; border-bottom: 1px dashed var(--border); }
.summary-table td:last-child { text-align: right; }
.total-row td { border-bottom: none; font-size: 17px; padding-top: 14px; }

/* ---------- FOOTER ---------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--border); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-social a { color: var(--text-muted); }
.footer-links a:hover, .footer-social a:hover { color: var(--gold); }
.footer-credit {
  text-align: center; padding: 18px; font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer-credit a { color: var(--gold); font-weight: 600; }

/* ---------- AUTH ---------- */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { justify-content: center; font-size: 22px; }
.auth-card { border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); animation: fadeUp .5s ease; }
.auth-card h2 { margin-bottom: 4px; }
.auth-card .muted { margin-bottom: 20px; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 14px; text-align: center; }

/* ---------- PAINEL (sidebar) ---------- */
.panel-body { min-height: 100vh; }
.panel-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 258px; flex-shrink: 0; padding: 22px 16px; display: flex; flex-direction: column;
  gap: 18px; border-right: 1px solid var(--border); position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
.sidebar-brand { font-size: 16px; }
.sidebar-user { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); }
.sidebar-user strong { display: block; font-size: 14px; }
.sidebar-user small { font-size: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 84px; height: 84px; font-size: 28px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border-radius: 11px; color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all .18s;
}
.sidebar-nav a:hover { background: var(--surface); color: var(--text); }
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, .18), transparent);
  color: var(--gold); border-left: 3px solid var(--gold);
}
.nav-icon { width: 20px; text-align: center; }
.nav-logout { color: var(--danger) !important; margin-top: 8px; }
.sidebar-credit { font-size: 11.5px; color: var(--text-muted); text-align: center; }

.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.panel-page-title { font-size: 19px; flex: 1; }
.topbar-actions { display: flex; gap: 10px; position: relative; }
.panel-content { padding: 24px; flex: 1; }
.panel-topbar .btn-icon:first-child { display: none; }

@media (max-width: 920px) {
  .sidebar {
    position: fixed; left: -280px; z-index: 90; transition: left .28s cubic-bezier(.2,.7,.3,1);
    background: var(--bg-2);
  }
  .sidebar.open { left: 0; box-shadow: var(--shadow); }
  .panel-topbar .btn-icon:first-child { display: inline-flex; }
}

.notif-bell { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff;
  font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.notif-panel {
  position: fixed; top: 66px; right: 18px; width: 340px; max-height: 420px; overflow-y: auto;
  border-radius: var(--radius); padding: 12px; z-index: 100; box-shadow: var(--shadow);
}
.notif-panel .notif-item { padding: 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.notif-item.unread { border-left: 3px solid var(--gold); }

/* ---------- STAT CARDS ---------- */
.stat-cards .stat-card {
  display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(212, 175, 55, .14), transparent 70%);
}
.stat-icon { font-size: 22px; }
.stat-card strong { font: 700 22px var(--font-display); }
.stat-card span:last-child { font-size: 12.5px; color: var(--text-muted); }

/* ---------- LISTAS ---------- */
.cards-list { display: flex; flex-direction: column; gap: 12px; }
.list-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; }
.list-main { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.page-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- BOOKING ---------- */
.booking-steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.booking-steps .step {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  transition: all .25s;
}
.booking-steps .step.active { background: rgba(212, 175, 55, .15); border-color: var(--gold); color: var(--gold); }
.booking-step { animation: fadeUp .35s ease; }
.step-nav { display: flex; gap: 12px; margin-top: 22px; justify-content: flex-end; }

.select-card { cursor: pointer; text-align: center; position: relative; display: block; }
.select-card input { position: absolute; opacity: 0; }
.select-card:has(input:checked) {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25);
  background: rgba(212, 175, 55, .06);
}
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.slot-btn {
  padding: 10px 4px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer;
  transition: all .18s; font-size: 14px;
}
.slot-btn:hover { border-color: var(--gold); }
.slot-btn.selected { background: var(--gold); color: #17130a; border-color: var(--gold); }

/* ---------- CHECKOUT / PIX ---------- */
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.pix-qr { width: 240px; height: 240px; border-radius: var(--radius-sm); background: #fff; padding: 10px; margin: 14px auto; }
.pix-status { margin-top: 12px; font-weight: 600; }
.pix-status.paid { color: var(--success); }
.wallet-check { margin-top: 14px; padding: 12px; border-radius: var(--radius-sm); background: rgba(212, 175, 55, .08); }
.receipt-card { max-width: 560px; margin: 0 auto; }
.receipt-check { font-size: 52px; }

/* ---------- FIDELIDADE ---------- */
.tier-track { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.tier-node { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .45; font-size: 13px; }
.tier-node.reached { opacity: 1; }
.tier-dot { width: 22px; height: 22px; border-radius: 50%; }
.tier-bronze, .tier-dot.tier-bronze { color: #cd7f32; background: radial-gradient(circle at 30% 30%, #e8a86b, #8d5524); }
.tier-prata, .tier-dot.tier-prata { color: #bfc5cd; background: radial-gradient(circle at 30% 30%, #e9edf2, #8f979f); }
.tier-ouro, .tier-dot.tier-ouro { color: var(--gold); background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-dark)); }
.tier-diamante, .tier-dot.tier-diamante { color: #7fd4f2; background: radial-gradient(circle at 30% 30%, #c8f0ff, #3aa5cc); }
span.tier-bronze, span.tier-prata, span.tier-ouro, span.tier-diamante,
strong.tier-bronze, strong.tier-prata, strong.tier-ouro, strong.tier-diamante { background: none; }
.ranking-list { list-style: none; counter-reset: rank; }
.ranking-list li {
  display: flex; justify-content: space-between; padding: 9px 12px;
  border-bottom: 1px solid var(--border); counter-increment: rank;
}
.ranking-list li::before { content: counter(rank) 'º '; color: var(--gold); font-weight: 700; margin-right: 10px; }
.ranking-list li.me { background: rgba(212, 175, 55, .1); border-radius: 8px; }
.referral-code {
  font: 800 30px var(--font-display); letter-spacing: 6px; color: var(--gold);
  padding: 14px; margin: 12px 0;
}

/* ---------- MODAIS ---------- */
.modal {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  max-width: 480px; width: calc(100vw - 40px); color: var(--text);
  background: var(--bg-2);
}
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.modal h3 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ---------- PWA POPUP ---------- */
.pwa-popup {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end;
  justify-content: center; padding: 20px; background: rgba(0, 0, 0, .5);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.pwa-card {
  border-radius: 24px; padding: 30px; max-width: 400px; text-align: center;
  box-shadow: var(--shadow); animation: popUp .45s cubic-bezier(.2,.9,.3,1.2);
  background: var(--bg-2);
}
@keyframes popUp { from { transform: translateY(60px); opacity: 0; } }
.pwa-icon { font-size: 44px; }
.pwa-card h3 { margin: 10px 0 6px; }
.pwa-card p { color: var(--text-muted); font-size: 14.5px; }
.pwa-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }

/* ---------- MISC ---------- */
.profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.messages-list { max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message-item { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; }
.message-item.sent { border-left: 3px solid var(--gold); }
.map-card { padding: 8px; min-height: 320px; }
.cta-card { padding: 46px 26px; }
.cta-card .hours-note { margin-top: 14px; }

/* Cabeçalho de seção com ação à direita */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.section-title.center { text-align: center; }

/* Faixa "Por que a MUZZY" */
.features-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(212, 175, 55, .4); transform: translateY(-3px); }
.feature-ic { font-size: 24px; }
.feature strong { display: block; font-size: 14.5px; }
.feature small { color: var(--text-muted); font-size: 12.5px; }
@media (max-width: 900px) { .features-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features-strip { grid-template-columns: 1fr; } }

/* Como funciona */
.step-card { text-align: center; position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #17130a; font: 800 20px var(--font-display);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}
.steps { margin-top: 26px; }

/* Instagram */
.ig-head { align-items: flex-end; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-item { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-sm); display: block; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ig-item:hover img { transform: scale(1.08); }
.ig-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: rgba(11, 11, 13, .35); opacity: 0; transition: opacity .25s;
}
.ig-item:hover .ig-overlay { opacity: 1; }
.ig-embed { display: flex; justify-content: center; overflow: hidden; }
.ig-embed iframe, .ig-embed blockquote { max-width: 100% !important; }
.ig-empty { padding: 30px; }
.next-appointment { border-color: rgba(212, 175, 55, .4); }
.filters { align-items: flex-end; }
.svc-custom { margin-top: 10px; }
.intro-card { border-left: 3px solid var(--gold); }
.intro-card h3 { margin-bottom: 6px; }
.svc-item { transition: border-color .2s, box-shadow .2s; }
.svc-item.is-active { border-color: rgba(212, 175, 55, .45); box-shadow: 0 0 0 1px rgba(212,175,55,.2); }
.svc-badge { display: inline-block; margin-top: 4px; }
.svc-default { font-size: 13px; margin: 8px 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.service-head > div { display: flex; flex-direction: column; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, .3); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* Links do menu que só aparecem no mobile (dentro do dropdown) */
.nav-mobile-only { display: none; }

/* ============================================================
   RESPONSIVIDADE MOBILE — ajustes finos para celular/tablet
   ============================================================ */

/* Tablet e abaixo */
@media (max-width: 820px) {
  .desktop-only { display: none !important; }
  .nav-mobile-only { display: flex !important; align-items: center; gap: 8px; }
  .main-nav.open .nav-mobile-only {
    padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--border);
    color: var(--gold);
  }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
}

/* Celular */
@media (max-width: 600px) {
  .container { padding: 0 15px; }
  .section { padding: 34px 0 6px; }
  .section-title { font-size: 22px; margin-bottom: 16px; }

  /* Impede zoom automático do iOS ao focar campos (fonte >= 16px) */
  .form input, .form select, .form textarea,
  .filters input, .filters select, .input-group input,
  .modal input, .modal select, .modal textarea,
  input[type="date"], input[type="time"], select, textarea {
    font-size: 16px;
  }

  /* Header compacto */
  .site-header { position: sticky; }
  .header-inner { height: 60px; }
  .brand { font-size: 15.5px; gap: 8px; }
  .brand-logo { height: 30px; }
  .brand-mark { font-size: 20px; }
  .header-actions .btn { padding: 9px 15px; font-size: 13.5px; }
  .btn-icon { width: 38px; height: 38px; }
  .main-nav { top: 60px; }

  /* Hero */
  .hero { padding: 54px 0 40px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-stats { gap: 22px; margin-top: 30px; }
  .hero-stats strong { font-size: 19px; }

  /* Cards e grids mais respiráveis */
  .card { padding: 18px; border-radius: 15px; }
  .grid { gap: 14px; }
  .stat-card strong { font-size: 20px; }

  /* Botões de ação em listas: ocupam a linha toda para bom toque */
  .btn { min-height: 42px; }
  .list-card { padding: 14px; }
  .list-side { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .page-actions .btn, .page-actions form { width: 100%; }
  .page-actions .input-group { max-width: 100% !important; }

  /* Passos do agendamento */
  .booking-steps { gap: 6px; }
  .booking-steps .step { padding: 6px 11px; font-size: 12px; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

  /* Filtros e formulários inline empilham */
  .form-inline { flex-direction: column; align-items: stretch; }
  .form-inline label, .form-inline .btn, .filters .btn { width: 100%; }
  .form-inline input, .form-inline select { width: 100%; }

  /* Tabelas: rolagem horizontal suave com toque */
  .table-wrap { -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 9px 8px; white-space: nowrap; }

  /* Painel */
  .panel-content { padding: 16px; }
  .panel-topbar { padding: 12px 16px; }
  .panel-page-title { font-size: 16px; }
  .sidebar { width: 82vw; max-width: 300px; }
  .notif-panel { width: calc(100vw - 24px); right: 12px; }
  .footer-credit { padding: 16px; }

  /* Checkout / PIX */
  .pix-qr { width: 200px; height: 200px; }
  .receipt-card { padding: 20px; }

  /* Fidelidade */
  .referral-code { font-size: 24px; letter-spacing: 4px; }
  .tier-track { gap: 4px; }
  .tier-node { font-size: 11.5px; }

  /* Galeria */
  .gallery-grid img, .gallery-grid video { height: 150px; }

  /* Popup PWA ocupa melhor a tela */
  .pwa-popup { padding: 12px; align-items: flex-end; }
  .pwa-card { padding: 24px 20px; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; }

  /* Modais como folha inferior */
  .modal { width: calc(100vw - 24px); max-height: 88vh; overflow-y: auto; }
}

/* Telas muito pequenas (≤380px) */
@media (max-width: 380px) {
  .header-actions .btn-ghost { display: none; }
  .hero-title { font-size: 29px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .brand span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Telas grandes: aproveita o espaço */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}
