/* =====================================================================
   Rota Reservada — Sistema visual (HEX_TERMINAL Tecnologia)
   Paleta oficial (SKILL §14.2): azul petróleo, azul suave, rosa queimado,
   champagne, off-white, grafite azulado.
   ===================================================================== */
/* ---------- Paleta oficial (tema escuro) ---------- */
:root {
  color-scheme: dark;
  /* Fundos */
  --bg-base: #0B0B0F;
  --bg-surface: #15121A;
  --bg-elevated: #1F1A26;
  --bg-accent: #2A0A1F;
  --border: #3A2F3F;

  /* Textos */
  --text-title: #F7F1E8;
  --text-gold: #D4AF37;
  --text-body: #D9D1C7;
  --text-muted: #9A90A0;
  --text-disabled: #5E566A;
  --link: #FF4DA6;

  /* Ações */
  --primary: #C8102E;
  --primary-hover: #E01B3C;
  --primary-active: #A00D25;
  --accent: #E6007E;
  --gold-gradient: linear-gradient(135deg, #D4AF37, #F5E6A8, #B8860B);

  /* Estados */
  --success: #2ECC8F;  --success-bg: #0F2A21;
  --warning: #F5A524;  --warning-bg: #2D2108;
  --error: #FF4D5E;    --error-bg: #2E0F14;
  --info: #4DA8FF;     --info-bg: #0E2238;

  /* Apelidos semânticos usados pelos componentes e views */
  --petroleo: var(--primary);
  --petroleo-900: var(--text-title);
  --petroleo-700: var(--primary-hover);
  --azul-suave: var(--text-gold);
  --azul-suave-100: var(--bg-elevated);
  --rosa: var(--accent);
  --rosa-100: var(--bg-accent);
  --rosa-700: var(--link);
  --champagne: var(--text-gold);
  --champagne-100: rgba(212, 175, 55, .10);
  --offwhite: var(--bg-base);
  --grafite: var(--text-body);
  --grafite-2: var(--text-muted);
  --branco: var(--bg-surface);
  --cinza: var(--border);
  --cinza-2: #221C28;

  --ok: var(--success);  --ok-bg: var(--success-bg);
  --warn: var(--warning); --warn-bg: var(--warning-bg);
  --err: var(--error);   --err-bg: var(--error-bg);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 28px 56px -24px rgba(0, 0, 0, .85);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sidebar: 264px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
::selection { background: rgba(230, 0, 126, .35); color: var(--text-title); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--grafite); background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #FF7ABD; }
:focus-visible { outline: 3px solid rgba(212, 175, 55, .7); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-title); margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.05rem); letter-spacing: -.022em; }
h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--grafite-2); }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 28px; height: 28px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; letter-spacing: .02em; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-surface); color: var(--text-body); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 14px; overflow-y: auto;
  background-image:
    radial-gradient(120% 60% at 0% 100%, rgba(200, 16, 46, .16), transparent 60%),
    radial-gradient(90% 40% at 100% 0%, rgba(212, 175, 55, .08), transparent 60%);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: var(--text-title); text-decoration: none; }
.brand:hover { color: var(--text-title); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(212, 175, 55, .35), 0 8px 20px -10px rgba(110, 16, 35, .9);
}
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-title); }
.brand-sym { width: 40px; height: 40px; flex: none; }
.brand-name .vip { font-style: italic; color: #D23A55; padding-right: .06em; }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-gold); font-family: var(--font); }
.nav-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-disabled); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--text-body); text-decoration: none; font-weight: 500; font-size: .93rem; position: relative;
  transition: background .18s var(--ease), color .18s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text-title); }
.nav a.is-active { background: linear-gradient(90deg, rgba(200, 16, 46, .22), rgba(200, 16, 46, .04)); color: var(--text-title); }
.nav a.is-active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); box-shadow: 0 0 12px rgba(200, 16, 46, .8); }
.nav .count { margin-left: auto; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--border); font-size: .72rem; color: var(--text-muted); }
.sidebar-foot strong { color: var(--text-gold); font-weight: 700; letter-spacing: .04em; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 16px clamp(16px, 3vw, 36px);
  background: rgba(11, 11, 15, .82); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--cinza);
}
.topbar .crumb { font-size: .8rem; color: var(--grafite-2); }
.topbar .spacer { flex: 1; }
.icon-btn.menu-btn { display: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; position: relative;
  border: 1px solid var(--cinza); background: var(--bg-surface); color: var(--text-body); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--text-gold); color: var(--text-title); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-surface); box-shadow: 0 0 8px var(--accent); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 99px; background: var(--branco); border: 1px solid var(--cinza); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--champagne-100); color: var(--text-gold); border: 1px solid rgba(212, 175, 55, .5); }
.user-chip .who { line-height: 1.15; padding-right: 6px; }
.user-chip .who b { display: block; font-size: .85rem; color: var(--petroleo-900); }
.user-chip .who span { font-size: .72rem; color: var(--grafite-2); }
.content { padding: clamp(18px, 3vw, 36px); max-width: 1320px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 0; color: var(--grafite-2); }
.eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-gold); font-weight: 700; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--champagne); }

/* ---------- Cards & grid ---------- */
.card { background: var(--branco); border: 1px solid var(--cinza); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 220px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card.flat { box-shadow: none; }
.card.tint { background: var(--azul-suave-100); border-color: transparent; box-shadow: none; }
.card.blush { background: var(--rosa-100); border-color: transparent; box-shadow: none; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.kpi { position: relative; overflow: hidden; }
.kpi .label { font-size: .8rem; color: var(--grafite-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--text-title); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: .78rem; color: var(--grafite-2); }
.kpi .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-elevated); color: var(--text-body); border: 1px solid var(--border); }
.kpi.accent .ico { background: var(--bg-accent); color: var(--link); border-color: rgba(230, 0, 126, .3); }
.kpi.gold .ico { background: var(--champagne-100); color: var(--text-gold); border-color: rgba(212, 175, 55, .35); }
.kpi::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .07), transparent 70%); z-index: 0; }
.kpi > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer; text-decoration: none; transition: transform .12s var(--ease), background .18s, box-shadow .18s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(200, 16, 46, .9); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-title); border-color: var(--border); }
.btn-secondary:hover { background: #2A2332; color: var(--text-title); border-color: rgba(212, 175, 55, .45); }
.btn-ghost { background: transparent; color: var(--text-body); border-color: var(--cinza); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-gold); color: var(--text-title); }
.btn-rose { background: var(--accent); color: #fff; }
.btn-rose:hover { background: #FF1A93; color: #fff; }
.btn-gold { background: var(--gold-gradient); color: #1A1206; }
.btn-gold:hover { filter: brightness(1.08); color: #1A1206; }
.btn-danger { background: var(--err-bg); color: var(--err); border-color: rgba(255, 77, 94, .35); }
.btn-danger:hover { background: #3D1219; color: #FF7381; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .82rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; }

/* ---------- Badges (sempre texto + ícone) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge .ic-sm { width: 14px; height: 14px; }
.b-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(46, 204, 143, .25); }
.b-warning { background: var(--warn-bg); color: var(--warn); border-color: rgba(245, 165, 36, .25); }
.b-danger { background: var(--err-bg); color: var(--err); border-color: rgba(255, 77, 94, .25); }
.b-info { background: var(--info-bg); color: var(--info); border-color: rgba(77, 168, 255, .25); }
.b-primary { background: rgba(200, 16, 46, .18); color: #FF6B80; border-color: rgba(200, 16, 46, .4); }
.b-muted { background: var(--cinza-2); color: var(--grafite-2); border-color: var(--cinza); }
.b-rose { background: var(--bg-accent); color: var(--link); border-color: rgba(230, 0, 126, .3); }
.b-gold { background: var(--champagne-100); color: var(--text-gold); border-color: rgba(212, 175, 55, .35); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--offwhite); border: 1px solid var(--cinza); font-size: .8rem; font-weight: 600; color: var(--grafite); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 14px; font-size: .9rem; border: 1px solid transparent; }
.alert .ic { margin-top: 1px; }
.alert-success { background: var(--ok-bg); color: var(--success); border-color: rgba(46, 204, 143, .3); }
.alert-danger { background: var(--err-bg); color: #FF8A96; border-color: rgba(255, 77, 94, .35); }
.alert-warning { background: var(--warn-bg); color: var(--warning); border-color: rgba(245, 165, 36, .3); }
.alert-info { background: var(--info-bg); color: #8CC6FF; border-color: rgba(77, 168, 255, .3); }
.flash-stack { position: fixed; right: 18px; top: 82px; z-index: 60; width: min(420px, calc(100vw - 36px)); }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: slidein .35s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 700; font-size: .82rem; color: var(--petroleo-900); margin-bottom: 6px; }
.field .hint { font-size: .76rem; color: var(--grafite-2); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-base);
  font: inherit; color: var(--grafite); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--text-gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
.input::placeholder { color: var(--text-disabled); }
.input[readonly] { background: var(--cinza-2); }
.has-error .input { border-color: var(--error); }
.field-error { color: var(--err); font-size: .78rem; font-weight: 600; margin-top: 5px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex: none; }
.weekday-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday-pick label { margin: 0; }
.weekday-pick input { position: absolute; opacity: 0; }
.weekday-pick span { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--cinza); background: var(--bg-base); color: var(--text-body); font-weight: 700; font-size: .82rem; cursor: pointer; }
.weekday-pick input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.weekday-pick input:focus-visible + span { outline: 3px solid rgba(212, 175, 55, .7); }
.section-title { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grafite-2); font-weight: 700; margin: 20px 0 12px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--cinza); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grafite-2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--cinza); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--cinza-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { min-height: 40px; width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cinza); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--grafite-2); font-weight: 700; font-size: .88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a.is-active { color: var(--text-title); border-color: var(--primary); }
.tabs .count { background: var(--bg-accent); color: var(--link); padding: 0 7px; border-radius: 99px; font-size: .72rem; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--grafite-2); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--champagne-100); color: var(--text-gold); border: 1px solid rgba(212, 175, 55, .25); }
.empty h3 { color: var(--petroleo-900); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cinza-2); }
.list li:last-child { border-bottom: 0; }
.date-pill { width: 52px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--bg-accent); color: var(--text-title); border: 1px solid rgba(230, 0, 126, .25); line-height: 1.1; }
.date-pill b { display: block; font-size: 1.15rem; }
.date-pill span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--grafite-2); font-weight: 600; }
.dl dd { margin: 0; color: var(--grafite); font-weight: 600; }

/* ---------- Service cards ---------- */
.svc-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.svc-card .cover { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-accent)); display: grid; place-items: center; color: var(--text-gold); overflow: hidden; }
.svc-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text-gold); }
.price small { font-size: .78rem; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 8px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
.gallery.single { grid-template-columns: 1fr; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--cinza); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs form { position: absolute; top: 6px; right: 6px; }

/* ---------- Slot picker ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.date-strip button {
  flex: none; scroll-snap-align: start; width: 66px; padding: 10px 0; border-radius: 13px; border: 1px solid var(--cinza);
  background: var(--bg-base); cursor: pointer; font: inherit; color: var(--grafite); line-height: 1.15;
}
.date-strip button b { display: block; font-size: 1.2rem; color: var(--petroleo-900); }
.date-strip button span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.date-strip button em { display: block; font-style: normal; font-size: .66rem; color: var(--ok); font-weight: 700; margin-top: 3px; }
.date-strip button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(200, 16, 46, .9); }
.date-strip button.is-active b, .date-strip button.is-active em { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots label { margin: 0; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: grid; place-items: center; height: 44px; border-radius: 11px; border: 1px solid var(--cinza); background: var(--bg-base); color: var(--text-body); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: all .15s; }
.slots span:hover { border-color: var(--text-gold); }
.slots input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(230, 0, 126, .9); }
.slots input:focus-visible + span { outline: 3px solid rgba(212, 175, 55, .7); }
.summary-box { border-radius: var(--radius); background: var(--bg-base); border: 1px dashed rgba(212, 175, 55, .45); padding: 14px 16px; }
.summary-box .line { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
.summary-box .line.total { border-top: 1px solid var(--cinza); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--petroleo-900); }

/* ---------- Map ---------- */
.map-layout { display: grid; grid-template-columns: 380px 1fr; gap: 0; height: calc(100vh - 73px); margin: calc(-1 * clamp(18px, 3vw, 36px)); }
.map-panel { background: var(--offwhite); border-right: 1px solid var(--cinza); overflow-y: auto; padding: 20px; }
.map-panel .svc { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--cinza); margin-bottom: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-decoration: none; color: inherit; }
.map-panel .svc:hover, .map-panel .svc.is-focus { border-color: rgba(212, 175, 55, .55); box-shadow: var(--shadow); }
.map-panel .svc .thumb { width: 84px; height: 84px; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-accent)); display: grid; place-items: center; color: var(--text-gold); }
.map-panel .svc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-panel .svc h3 { font-size: .95rem; margin: 0 0 2px; }
.map-panel .svc .area { font-size: .76rem; color: var(--grafite-2); display: flex; align-items: center; gap: 4px; }
.mini-dates { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.mini-dates span { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--bg-accent); color: var(--link); }
#map { width: 100%; height: 100%; background: #101014; }
.map-note { position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); bottom: 18px; background: rgba(21, 18, 26, .92); color: var(--text-body); border: 1px solid var(--cinza); border-radius: 99px; padding: 8px 16px; font-size: .8rem; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); white-space: nowrap; }
.map-wrap { position: relative; }
.area-marker { background: none; border: 0; }
.area-marker .pin { width: 46px; height: 46px; border-radius: 50%; background: rgba(230, 0, 126, .22); border: 2px solid var(--accent); box-shadow: 0 0 18px rgba(230, 0, 126, .55); display: grid; place-items: center; }
.area-marker .pin b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 800; font-family: var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-elevated) !important; color: var(--text-body) !important; border: 1px solid var(--border); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; font-family: var(--font) !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.leaflet-bar a { background: var(--bg-elevated) !important; color: var(--text-body) !important; border-color: var(--border) !important; }
.leaflet-control-attribution { background: rgba(11, 11, 15, .75) !important; color: var(--text-muted) !important; }
.leaflet-control-attribution a { color: var(--text-muted) !important; }
.leaflet-popup-content { margin: 14px 16px !important; }
.pop h4 { margin: 0 0 4px; font-size: .95rem; color: var(--petroleo-900); }
.pop p { margin: 0 0 8px; font-size: .8rem; color: var(--grafite-2); }
.pop a.btn { color: #fff; }
.pick-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--cinza); overflow: hidden; }

/* ---------- Checkout & QR ---------- */
.pix-box { text-align: center; }
.pix-qr { width: 240px; height: 240px; margin: 8px auto 16px; padding: 12px; border-radius: 18px; background: #FFFFFF; border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 1px rgba(212, 175, 55, .55), var(--shadow); }
.pix-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, monospace; font-size: .78rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--link); }
.steps { display: flex; gap: 8px; counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--grafite-2); }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cinza-2); font-size: .75rem; }
.steps li.done::before { background: var(--ok-bg); color: var(--ok); content: '✓'; }
.steps li.now { color: var(--text-title); }
.steps li.now::before { background: var(--primary); color: #fff; }
.steps li + li::after { display: none; }
.ticket { position: relative; border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--cinza); box-shadow: var(--shadow-lg); overflow: hidden; }
.ticket-head { background: var(--bg-accent); color: var(--text-title); padding: 18px 20px; background-image: radial-gradient(80% 120% at 100% 0%, rgba(230, 0, 126, .35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(200, 16, 46, .3), transparent 60%); border-bottom: 1px solid rgba(212, 175, 55, .25); }
.ticket-head h2 { color: var(--text-title); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.ticket-head .code { font-family: ui-monospace, monospace; letter-spacing: .2em; color: var(--text-gold); font-size: .85rem; }
.ticket-cut { height: 22px; position: relative; background: radial-gradient(circle at 0 50%, var(--offwhite) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--offwhite) 11px, transparent 12px); }
.ticket-cut::after { content: ''; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--cinza); }
.ticket-body { padding: 4px 20px 20px; text-align: center; }
.ticket-qr { width: 220px; margin: 0 auto; padding: 10px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(212, 175, 55, .55); }
.ticket-qr.used { opacity: .25; filter: grayscale(1); }
.protected { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: repeating-linear-gradient(-45deg, rgba(212, 175, 55, .07), rgba(212, 175, 55, .07) 10px, rgba(212, 175, 55, .02) 10px, rgba(212, 175, 55, .02) 20px); border: 1px solid rgba(212, 175, 55, .35); }
.protected .ic-lg { color: var(--text-gold); }
.protected b { color: var(--text-title); }
.addr-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; }
.addr-label.atendimento { background: var(--info-bg); color: var(--info); }
.addr-label.residencial { background: var(--bg-accent); color: var(--link); }

/* ---------- Scanner ---------- */
.scanner { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--border); aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid var(--text-gold); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55); }
.scanner .idle { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); text-align: center; padding: 20px; }
.result-card { border-radius: 16px; padding: 18px; border: 1px solid; }
.result-card.ok { background: var(--ok-bg); border-color: rgba(46, 204, 143, .4); }
.result-card.ok h2 { color: var(--success); }
.result-card.bad { background: var(--err-bg); border-color: rgba(255, 77, 94, .4); }
.result-card.bad h2 { color: var(--error); }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--cinza); border-radius: var(--radius); overflow: hidden; background: var(--bg-surface); }
.cal .dow { padding: 10px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--text-gold); background: var(--bg-elevated); border-bottom: 1px solid var(--cinza); }
.cal .day { min-height: 112px; padding: 8px; border-right: 1px solid var(--cinza-2); border-bottom: 1px solid var(--cinza-2); font-size: .78rem; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day .n { font-weight: 800; color: var(--petroleo-900); font-size: .85rem; }
.cal .day.out { background: rgba(0, 0, 0, .25); color: var(--text-disabled); }
.cal .day.out .n { color: var(--text-disabled); }
.cal .day.today .n { background: var(--primary); color: #fff; border-radius: 99px; padding: 1px 8px; }
.cal .day.blocked { background: repeating-linear-gradient(-45deg, var(--bg-surface), var(--bg-surface) 8px, var(--cinza-2) 8px, var(--cinza-2) 16px); }
.cal .ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.cal .ev.confirmed { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.cal .ev.awaiting_payment { background: var(--warn-bg); color: var(--warn); border-color: var(--warning); }
.cal .ev.validated, .cal .ev.completed { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.cal .ev.no_show, .cal .ev.refund_requested, .cal .ev.refunded { background: var(--cinza-2); color: var(--grafite-2); border-color: var(--text-disabled); }

/* ---------- Setup checklist ---------- */
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.setup a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--cinza); text-decoration: none; color: var(--grafite); font-weight: 600; font-size: .85rem; }
.setup a:hover { border-color: rgba(212, 175, 55, .5); color: var(--text-title); }
.setup a .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cinza-2); color: var(--grafite-2); flex: none; }
.setup a.done .st { background: var(--ok-bg); color: var(--ok); }
.setup a.done { opacity: .75; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-visual {
  position: relative; overflow: hidden; color: var(--text-title); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-accent);
  background-image:
    radial-gradient(70% 55% at 85% 10%, rgba(230, 0, 126, .38), transparent 60%),
    radial-gradient(60% 50% at 10% 95%, rgba(200, 16, 46, .45), transparent 60%),
    radial-gradient(40% 30% at 60% 60%, rgba(212, 175, 55, .14), transparent 70%);
  border-right: 1px solid rgba(212, 175, 55, .2);
}
.auth-visual .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: .5; }
.auth-visual h2 { font-family: var(--font-display); font-weight: 700; color: var(--text-title); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; max-width: 14ch; letter-spacing: -.03em; }
.auth-visual h2 em { font-style: normal; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-visual p { max-width: 40ch; color: var(--text-body); }
.auth-visual .feat { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; position: relative; z-index: 1; }
.auth-visual .feat span { display: inline-flex; gap: 8px; align-items: center; }
.auth-form { display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { margin-bottom: 4px; }
.auth-foot { margin-top: 26px; font-size: .74rem; color: var(--grafite-2); text-align: center; }
.auth-foot strong { color: var(--text-gold); letter-spacing: .04em; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 320px 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 80; width: 286px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 70; }
  .icon-btn.menu-btn { display: inline-grid; }
  .user-chip .who { display: none; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 260px; }
  .auth-visual .feat { display: none; }
  .map-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46vh auto; height: auto; }
  .map-layout .map-wrap { order: -1; height: 46vh; }
  .map-panel { border-right: 0; }
  .c-8, .c-6, .c-4, .c-3 { grid-column: span 12; }
  .c-2 { grid-column: span 6; }
  .cal .day { min-height: 74px; padding: 4px; }
  .cal .ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .gallery { aspect-ratio: 4 / 3; }
  .table-mobile thead { display: none; }
  .table-mobile tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--cinza); }
  .table-mobile td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  .table-mobile td::before { content: attr(data-label); font-weight: 700; color: var(--grafite-2); font-size: .78rem; }
  .table-mobile .num { text-align: right; }
  .flash-stack { top: 72px; right: 12px; }
}
@media (max-width: 520px) {
  .g-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi .value { font-size: 1.35rem; }
  .card { padding: 16px; }
  .setup { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .map-layout { margin: -16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .sidebar, .topbar, .no-print, .flash-stack { display: none !important; }
  .shell { display: block; }
  body { background: #fff; color: #111; }
  h1, h2, h3, .price, .kpi .value { color: #111 !important; }
  .card { box-shadow: none; }
}

/* =====================================================================
   Anúncios (v11): galeria com vídeo, valores por duração, itens, avaliações
   ===================================================================== */
.stars { display: inline-flex; gap: 1px; line-height: 1; vertical-align: -1px; }
.star { font-style: normal; font-size: 1em; color: var(--text-disabled); }
.star.on { color: var(--text-gold); }
.star.half { background: linear-gradient(90deg, var(--text-gold) 50%, var(--text-disabled) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-muted); }
.rating-line b { color: var(--text-title); }
.verified { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 99px; font-size: .74rem; font-weight: 800; color: var(--info); background: var(--info-bg); border: 1px solid rgba(77, 168, 255, .3); white-space: nowrap; }
.verified .ic-sm { width: 14px; height: 14px; }

/* Anúncio: cabeçalho + galeria */
.ad-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ad-head h1 { margin: 2px 0 6px; }
.ad-meta { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--text-muted); }
.ad-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-disabled); }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 10; border: 1px solid var(--border); }
.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.stage .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(11, 11, 15, .65); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; backdrop-filter: blur(6px); }
.stage .nav-btn:hover { background: var(--primary); }
.stage .prev { left: 12px; } .stage .next { right: 12px; }
.stage .counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(11, 11, 15, .7); color: #fff; font-size: .76rem; font-weight: 700; }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb-row button { position: relative; flex: none; width: 92px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-elevated); }
.thumb-row button img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row button.is-active { border-color: var(--accent); }
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: rgba(0, 0, 0, .35); }
.play-badge span { width: 30px; height: 30px; border-radius: 50%; background: rgba(200, 16, 46, .9); display: grid; place-items: center; font-size: .8rem; padding-left: 2px; }
.dur-badge { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .66rem; font-weight: 700; }

/* Abas do anúncio */
.ad-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 22px 0 16px; overflow-x: auto; position: sticky; top: 73px; background: var(--bg-base); z-index: 5; }
.ad-tabs a { padding: 12px 14px; text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ad-tabs a:hover { color: var(--text-title); }
.ad-tabs a.is-active { color: var(--text-title); border-color: var(--primary); }
.ad-section { scroll-margin-top: 140px; margin-bottom: 18px; }

/* Tabela de valores por duração */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.price-table td { padding: 12px 14px; background: var(--bg-base); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-table td:first-child { border-left: 1px solid var(--border); border-radius: 12px 0 0 12px; font-weight: 800; color: var(--text-title); }
.price-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 12px 12px 0; text-align: right; }
.price-table .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--text-gold); }
.price-table small { color: var(--text-muted); }

/* Seletor de duração (reserva) */
.opt-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.opt-pick label { margin: 0; }
.opt-pick input { position: absolute; opacity: 0; }
.opt-pick span { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-base); cursor: pointer; transition: all .15s; }
.opt-pick span b { display: block; color: var(--text-title); font-size: .95rem; }
.opt-pick span em { font-style: normal; color: var(--text-gold); font-weight: 800; font-size: .9rem; }
.opt-pick input:checked + span { border-color: var(--primary); background: rgba(200, 16, 46, .14); box-shadow: 0 0 0 1px var(--primary) inset; }
.opt-pick input:focus-visible + span { outline: 3px solid rgba(212, 175, 55, .7); }

/* Itens do serviço */
.feat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 22px; }
.feat-groups h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-gold); margin: 0 0 8px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feat-list li { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.feat-list li .ic-sm { color: var(--success); }
.feat-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chips span { padding: 4px 11px; border-radius: 99px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; }

/* Avaliações */
.rating-summary { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin-bottom: 10px; }
.rating-big { text-align: center; }
.rating-big b { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--text-title); line-height: 1; }
.rating-big .stars { font-size: 1.15rem; margin: 6px 0 2px; }
.bars { display: grid; gap: 6px; }
.bars div { display: grid; grid-template-columns: 34px 1fr 34px; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-muted); }
.bars i { display: block; height: 7px; border-radius: 9px; background: var(--bg-elevated); overflow: hidden; }
.bars i s { display: block; height: 100%; background: var(--gold-gradient); text-decoration: none; }
.review { padding: 14px 0; border-bottom: 1px solid var(--cinza-2); }
.review:last-child { border-bottom: 0; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.review p { margin: 8px 0 0; }
.review .reply { margin: 10px 0 0 16px; padding: 10px 12px; border-left: 2px solid var(--primary); background: var(--bg-base); border-radius: 0 10px 10px 0; font-size: .88rem; }
.review .reply b { color: var(--text-title); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--text-disabled); cursor: pointer; margin: 0; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--text-gold); }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 2px solid rgba(212, 175, 55, .7); border-radius: 4px; }

/* Cards (mapa / listas) */
.svc-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; }
.svc-badges span { padding: 2px 8px; border-radius: 99px; background: rgba(11, 11, 15, .75); color: #fff; font-size: .68rem; font-weight: 800; display: inline-flex; gap: 4px; align-items: center; }
.map-panel .svc .thumb { position: relative; }
.map-panel .svc .rating-line { font-size: .76rem; margin-top: 2px; }

/* Mídia no formulário do prestador */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); background: var(--bg-base); }
.media-grid figure.cover { border-color: var(--text-gold); box-shadow: 0 0 0 1px var(--text-gold); }
.media-grid img { width: 100%; height: 100%; object-fit: cover; }
.media-grid .tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; }
.media-grid .cover-tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gold-gradient); color: #1A1206; font-size: .66rem; font-weight: 800; }
.opt-rows { display: grid; gap: 8px; }
.opt-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr 40px; gap: 8px; align-items: end; }
.opt-row .field { margin: 0; }
.opt-head { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr 40px; gap: 8px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
@media (max-width: 860px) {
  .rating-summary { grid-template-columns: 1fr; }
  .opt-head { display: none; }
  .opt-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
  .opt-row > :last-child { grid-column: span 2; }
  .ad-tabs { top: 70px; }
}
.media-grid .tools .btn { min-height: 30px; padding: 0 9px; font-size: .74rem; }

/* itens de grade podem encolher abaixo do conteúdo (evita estouro lateral no celular) */
.grid > * { min-width: 0; }
.review .who { flex-wrap: wrap; row-gap: 6px; }
.price-table .amount { white-space: nowrap; }
@media (max-width: 560px) {
  .price-table tr { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-base); margin-bottom: 8px; }
  .price-table td { border: 0 !important; border-radius: 0 !important; background: none; padding: 10px 12px; }
  .price-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .price-table td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .ad-meta .dot { display: none; }
}

/* ---------- Login: cenas noturnas vetoriais (alternância automática) ---------- */
.auth-visual { background: #05050A; background-image: none; isolation: isolate; }
.auth-visual .waves { display: none; }
.scenes { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.scenes::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 10, .5) 0%, rgba(5, 5, 10, .05) 20%, rgba(5, 5, 10, 0) 45%, rgba(5, 5, 10, .55) 68%, rgba(5, 5, 10, .94) 100%); }
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; animation: sceneFade 36s infinite; animation-delay: calc(var(--i) * 6s); }
.scene img { width: 100%; height: 100%; object-fit: cover; animation: sceneZoom 36s infinite linear; animation-delay: calc(var(--i) * 6s); }
.scene figcaption { text-shadow: 0 1px 8px rgba(0,0,0,.8); position: absolute; right: clamp(20px, 4vw, 48px); top: clamp(24px, 4vw, 52px); z-index: 2; text-align: right; line-height: 1.2; }
.scene figcaption b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--text-title); letter-spacing: -.01em; }
.scene figcaption span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-gold); }
@keyframes sceneFade { 0% { opacity: 0; } 3% { opacity: 1; } 16.6% { opacity: 1; } 19.6% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sceneZoom { 0% { transform: scale(1.02); } 20% { transform: scale(1.09); } 100% { transform: scale(1.09); } }
.auth-copy { position: relative; z-index: 2; }
.auth-copy h2 { margin-bottom: 10px; }
.auth-copy .feat { margin-top: 18px; }
.scene-dots { display: flex; gap: 6px; margin-top: 22px; }
.scene-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(247, 241, 232, .22); overflow: hidden; position: relative; }
.scene-dots i::after { content: ''; position: absolute; inset: 0; background: var(--text-gold); transform: scaleX(0); transform-origin: left; animation: dotFill 36s infinite linear; animation-delay: calc(var(--i) * 6s); }
@keyframes dotFill { 0% { transform: scaleX(0); opacity: 1; } 16.6% { transform: scaleX(1); opacity: 1; } 16.7% { opacity: 0; } 100% { opacity: 0; } }
.auth-visual { justify-content: space-between; }
@media (max-width: 860px) {
  .auth-visual { min-height: 340px; }
  .auth-copy p, .scene-dots { display: none; }
  .scene figcaption { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene img, .scene-dots i::after { animation: none !important; }
  .scene:first-child { opacity: 1; }
}

/* ---------- Mapa: OpenStreetMap escurecido (usado quando não há chave CARTO) ---------- */
.leaflet-tile-pane .tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.55); }
.map-preview { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

/* ---------- Mapa: áreas por status (verde = horários, azul = sua reserva, vermelho = lotado) ---------- */
.map-legend { position: absolute; right: 12px; top: 12px; z-index: 500; display: flex; gap: 12px; flex-wrap: wrap;
  background: rgba(21, 18, 26, .92); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: .78rem; color: var(--text-body); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-available { background: rgba(46, 204, 143, .35); border: 2px solid #2ECC8F; }
.lg-reserved { background: rgba(77, 168, 255, .35); border: 2px solid #4DA8FF; }
.lg-full { background: rgba(255, 77, 94, .35); border: 2px solid #FF4D5E; }
.st:is(.st-available, .st-reserved, .st-full) { display: inline-block; white-space: nowrap; font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; margin-right: 4px; vertical-align: 1px; }
.st-available { color: #2ECC8F; background: var(--success-bg); }
.st-reserved { color: #4DA8FF; background: var(--info-bg); }
.st-full { color: #FF4D5E; background: var(--error-bg); }
.leaflet-tooltip.area-tip { background: var(--bg-elevated); color: var(--text-title); border: 1px solid var(--border); box-shadow: none; }
.leaflet-tooltip.area-tip::before { border-top-color: var(--border); }
path.leaflet-interactive:focus { outline: none; }
@media (max-width: 860px) {
  .map-legend { left: 56px; right: 8px; top: 8px; justify-content: center; gap: 8px; font-size: .72rem; }
  .map-wrap .map-note { white-space: normal; text-align: left; left: 8px; right: 8px; transform: none; font-size: .72rem; border-radius: 12px; bottom: 26px; padding: 6px 12px; }
}

/* ---------- Tutorial do administrador ---------- */
.tut { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.tut-toc { position: sticky; top: 90px; padding: 18px; }
.tut-toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .86rem; }
.tut-toc a { color: var(--text-body); text-decoration: none; }
.tut-toc a:hover { color: var(--link); }
.tut-body { display: grid; gap: 18px; min-width: 0; }
.tut > *, .tut-body > .card { min-width: 0; }
.tut-body > .card { margin: 0; scroll-margin-top: 90px; }
.tut-body h2 { margin-bottom: 10px; }
.tut-body h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--text-title); }
.tut-body p { line-height: 1.65; }
.tut-body code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .82em; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.tut-progress { height: 6px; border-radius: 99px; background: var(--bg-elevated); overflow: hidden; margin: 4px 0 14px; }
.tut-progress span { display: block; height: 100%; background: var(--gold-gradient); }
.tut-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tut-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.tut-checks li small { display: block; color: var(--text-muted); font-size: .78rem; margin-top: 2px; }
.tut-checks li.ok { border-color: rgba(46, 204, 143, .35); }
.tut-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.tut-checks li.ok .tut-dot { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.tut-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.tut-roles > div { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.tut-roles p { font-size: .85rem; margin: 6px 0 0; color: var(--text-muted); line-height: 1.5; }
.tut-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-accent); color: var(--link); margin-bottom: 8px; }
.tut-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; }
.tut-flow span { padding: 4px 10px; border-radius: 99px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-title); }
.tut-flow i { color: var(--text-gold); font-style: normal; }
.tut-steps { counter-reset: t; list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.tut-steps > li { counter-increment: t; position: relative; padding-left: 38px; line-height: 1.6; }
.tut-steps > li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; }
.tut-list { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.6; }
.tut-tip { position: relative; padding: 10px 14px 10px 38px; border-radius: 10px; background: var(--bg-elevated); border-left: 3px solid var(--text-gold); font-size: .86rem; margin-top: 12px; overflow-wrap: anywhere; }
.tut-tip > .ic-sm:first-child { position: absolute; left: 13px; top: 13px; color: var(--text-gold); }
.tut-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tut-timeline > div { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); position: relative; }
.tut-timeline > div:nth-child(2) { border-color: rgba(212, 175, 55, .5); }
.tut-timeline p { font-size: .85rem; margin: 6px 0 0; color: var(--text-muted); line-height: 1.5; }
.tut-cmds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.tut-cmds > div { min-width: 0; }
.tut-cmds pre { margin: 6px 0 4px; padding: 10px 12px; border-radius: 10px; background: #08080B; border: 1px solid var(--border); overflow-x: auto; }
.tut-cmds pre code { background: none; border: 0; padding: 0; word-break: normal; white-space: pre; color: #E8DCC8; }
.tut-cmds small { color: var(--text-muted); font-size: .78rem; }
.tut-faq { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: var(--bg-surface); }
.tut-faq summary { cursor: pointer; font-weight: 600; color: var(--text-title); }
.tut-faq p { margin: 10px 0 0; font-size: .9rem; }
@media (max-width: 1100px) { .tut { grid-template-columns: minmax(0, 1fr); } .tut-toc { position: static; } .tut-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tut-roles, .tut-timeline, .tut-cmds { grid-template-columns: minmax(0, 1fr); } .tut-toc ol { grid-template-columns: minmax(0, 1fr); } .tut-checks li { grid-template-columns: 26px minmax(0, 1fr); } .tut-checks li .btn { grid-column: 2; justify-self: start; } }

/* ---------- Proteção contra captura (dissuasão + rastreio) ---------- */
.guard-wm { position: fixed; inset: 0; z-index: 9000; pointer-events: none; background-repeat: repeat; background-size: 420px 220px; }
body.guarded { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.guarded input, body.guarded textarea, body.guarded select, body.guarded [contenteditable="true"], body.guarded .allow-copy { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.guarded img, body.guarded video { -webkit-user-drag: none; }
/* QR Code de atendimento acima da marca d'água, para a leitura não falhar */
body.guarded .qr-box, body.guarded .ticket-qr, body.guarded .pix-qr { position: relative; z-index: 9001; }
.guard-veil { position: fixed; inset: 0; z-index: 9500; display: none; place-items: center; background: #0B0B0F; text-align: center; padding: 24px; }
.guard-veil div { display: grid; gap: 8px; max-width: 360px; }
.guard-veil b { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-title); }
.guard-veil span { color: var(--text-muted); font-size: .9rem; }
html.guard-covered .guard-veil { display: grid; }
html.guard-blur body.guarded .shell { filter: blur(18px) saturate(.6); transition: filter .05s; }
html.guard-blur body.guarded .guard-wm { z-index: 9600; }
@media print {
  body.guarded * { display: none !important; }
  body.guarded::after { content: 'Impressão desativada: conteúdo protegido.'; display: block !important; padding: 40px; font: 16px/1.5 Arial, sans-serif; color: #000; }
}

/* ---------- Mapa: filtros, planos, disponível agora ---------- */
.filters { margin: 4px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); }
.filters > summary { cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-title); list-style: none; }
.filters > summary::-webkit-details-marker { display: none; }
.fcount[hidden] { display: none; }
.fcount { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }
.filters-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frow .field { margin: 0; }
.fchips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fchips legend { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; padding: 0; text-transform: uppercase; letter-spacing: .08em; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); font-size: .8rem; color: var(--text-body); background: var(--bg-base); }
.chip input:checked + span { border-color: var(--primary); background: var(--bg-accent); color: var(--text-title); }
.chip input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.fsub > summary { cursor: pointer; font-size: .82rem; color: var(--link); margin-bottom: 8px; }
.svc-tags, .pop-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 4px; }
.pbadge { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.pb-premium { background: var(--gold-gradient); color: #2A1A04; }
.pb-destaque { background: var(--bg-accent); color: var(--link); border: 1px solid rgba(255, 77, 166, .4); }
.nowbadge { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--success); background: var(--success-bg); padding: 2px 8px; border-radius: 99px; }
.nowbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: nowPulse 1.6s infinite; }
.vbadge { font-size: .66rem; color: var(--info); background: var(--info-bg); padding: 2px 8px; border-radius: 99px; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 143, .7); } 70% { box-shadow: 0 0 0 7px rgba(46, 204, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 143, 0); } }
.svc.svc-premium { border-color: rgba(212, 175, 55, .55); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .25); }
.svc.svc-destaque { border-color: rgba(255, 77, 166, .35); }
path.area-live { animation: areaPulse 1.8s ease-in-out infinite; }
@keyframes areaPulse { 0%, 100% { stroke-width: 2; stroke-opacity: .9; } 50% { stroke-width: 7; stroke-opacity: .45; } }
.lg-now { background: rgba(46, 204, 143, .2); border: 2px solid #2ECC8F; animation: nowPulse 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { path.area-live, .nowbadge i, .lg-now { animation: none; } }

.vis-opts { display: grid; gap: 8px; }
.vis-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--bg-surface); }
.vis-opt:has(input:checked) { border-color: var(--primary); background: var(--bg-accent); }
.vis-opt input { margin-top: 4px; accent-color: var(--primary); }
.vis-opt small { display: block; color: var(--text-muted); font-size: .8rem; }

.vis-opts { display: grid; gap: 8px; }
.vis-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--bg-surface); }
.vis-opt:has(input:checked) { border-color: var(--primary); background: var(--bg-accent); }
.vis-opt input { margin-top: 4px; accent-color: var(--primary); }
.vis-opt small { display: block; color: var(--text-muted); font-size: .8rem; }
.dispute { margin-top: 8px; }
.dispute > summary { cursor: pointer; font-size: .82rem; color: var(--text-muted); }
.dispute > summary:hover { color: var(--link); }
.dispute form { margin-top: 10px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }

/* ---------- Planos ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.plan-card form, .plan-card > .btn { margin-top: auto; }
.plan-head { display: grid; gap: 8px; }
.plan-head h3 { margin: 0; }
.plan-price { font-family: var(--font-display); font-size: 1.7rem; color: var(--text-title); }
.plan-price small { font-size: .8rem; color: var(--text-muted); font-family: var(--font); }
.plan-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .88rem; }
.plan-premium { border-color: rgba(212, 175, 55, .55); box-shadow: 0 0 0 1px rgba(212, 175, 55, .2), 0 18px 40px -24px rgba(212, 175, 55, .45); }
.plan-destaque { border-color: rgba(255, 77, 166, .35); }
.plan-current { margin-bottom: 18px; border-color: rgba(46, 204, 143, .4); }
.plan-head .pbadge { justify-self: start; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Disponível agora (painel do prestador) ---------- */
.live-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 18px; }
.live-info { display: flex; gap: 12px; align-items: center; flex: 1 1 280px; min-width: 0; }
.live-info small { display: block; color: var(--text-muted); font-size: .82rem; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text-disabled); flex: none; }
.live-card.on { border-color: rgba(46, 204, 143, .45); }
.live-card.on .live-dot { background: var(--success); animation: nowPulse 1.6s infinite; }
.live-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.live-plan { font-size: .82rem; }
.safety-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; }
.safety-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.safety-actions .report { flex: 1 1 100%; }
.safety-actions .report > summary { list-style: none; display: inline-flex; }
.safety-actions .report > summary::-webkit-details-marker { display: none; }
.safety-actions .report[open] form { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.ad-meta .pbadge, .ad-meta .nowbadge { align-self: center; }
.verif-img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--border); }
.report-urgent { border-color: rgba(255, 77, 94, .55); box-shadow: inset 3px 0 0 var(--error); }
.report-actions { display: grid; gap: 10px; margin-top: 12px; }
.evidence { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-title); font-size: .72rem; display: inline-grid; place-items: center; }
.nav-count.urgent { background: var(--error); border-color: var(--error); color: #fff; }
