/* GeoBarber — Barber Shop Management System
   Folha única, sem build. Compatível com CSP sem 'unsafe-inline' (nenhum estilo inline nas views).
   Direção: preto e grafite, dourado escovado discreto (como a logo), faixas do barber pole
   reservadas a elementos do pole. Títulos em Montserrat (ecoa o logotipo), texto em Source Sans 3. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3-italic.woff") format("woff"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --gb-black: #000000;
  --gb-ink: #0d0d0e;
  --gb-graphite: #141416;
  --gb-surface: #1b1b1e;
  --gb-surface-2: #232327;
  --gb-surface-3: #2c2c31;
  --gb-border: #303036;
  --gb-border-strong: #45454c;
  --gb-gray: #a3a3ab;
  --gb-gray-2: #74747c;
  --gb-white: #f5f5f2;
  --gb-gold: #c2a267;
  --gb-gold-2: #a6894f;
  --gb-gold-3: #e0c690;
  --gb-gold-soft: rgba(194, 162, 103, 0.13);
  --gb-danger: #e5484d;
  --gb-danger-soft: rgba(229, 72, 77, 0.13);
  --gb-success: #3dbb7b;
  --gb-success-soft: rgba(61, 187, 123, 0.13);
  --gb-warning: #e2a336;
  --gb-warning-soft: rgba(226, 163, 54, 0.13);
  --gb-info: #7c9be0;
  --gb-info-soft: rgba(124, 155, 224, 0.14);
  --gb-pole-red: #c8202f;
  --gb-pole-blue: #1e3a70;
  --gb-radius: 10px;
  --gb-radius-sm: 7px;
  --gb-radius-lg: 16px;
  --gb-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --gb-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gb-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gb-sidebar: 248px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gb-graphite);
  color: var(--gb-white);
  font-family: var(--gb-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "lnum" 1;
}

img, svg { max-width: 100%; }
a { color: var(--gb-gold); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--gb-display); line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--gb-border); margin: 20px 0; }
code, .gb-mono { font-family: var(--gb-mono); font-size: .88em; }
ul, ol { padding-left: 1.2rem; }
:focus-visible { outline: 2px solid var(--gb-gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gb-gold); color: #16120a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gb-skip { position: absolute; left: 12px; top: -48px; background: var(--gb-gold); color: #16120a; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.gb-skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ================================================================ Login (auth) */

.gb-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
  background: radial-gradient(800px 460px at 50% -8%, rgba(194, 162, 103, 0.07), transparent 70%), var(--gb-graphite);
}
.gb-auth__logo {
  width: min(240px, 66vw);
  height: auto;
  margin-bottom: 20px;
  animation: gb-float 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
  user-select: none;
}
@keyframes gb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.gb-auth__footer { margin-top: 22px; color: var(--gb-gray-2); font-size: .82rem; text-align: center; }

.gb-card {
  width: 100%;
  background: var(--gb-surface);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-lg);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.gb-card--compact { max-width: 380px; }
.gb-card--medium { max-width: 580px; }
.gb-card__title { font-size: 1.2rem; margin-bottom: 4px; }
.gb-card__subtitle { color: var(--gb-gray); font-size: .95rem; margin-bottom: 20px; }

/* ===================================================================== Forms */

.gb-field { margin-bottom: 16px; min-width: 0; }
.gb-label { display: block; margin-bottom: 6px; color: var(--gb-gray); font-size: .9rem; font-weight: 600; }
.gb-label small { font-weight: 400; color: var(--gb-gray-2); }
.gb-input, .gb-select, .gb-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--gb-ink);
  color: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: var(--gb-radius-sm);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.gb-textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.gb-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gb-gray) 50%), linear-gradient(135deg, var(--gb-gray) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.gb-input[type="file"] { padding: 9px 12px; }
.gb-input[type="color"] { padding: 4px; width: 64px; }
.gb-input::placeholder, .gb-textarea::placeholder { color: var(--gb-gray-2); }
.gb-input:focus, .gb-select:focus, .gb-textarea:focus { outline: none; border-color: var(--gb-gold); box-shadow: 0 0 0 3px var(--gb-gold-soft); }
.gb-input[aria-invalid="true"], .gb-select[aria-invalid="true"], .gb-textarea[aria-invalid="true"] { border-color: var(--gb-danger); }
.gb-input--code { font-family: var(--gb-mono); font-size: 1.35rem; letter-spacing: .4em; text-align: center; }
.gb-input--sm { min-height: 36px; font-size: .92rem; }
.gb-password { position: relative; }
.gb-password .gb-input { padding-right: 82px; }
.gb-password__toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); height: 32px; padding: 0 10px; background: transparent; color: var(--gb-gray); border: 0; border-radius: 6px; font: inherit; font-size: .85rem; cursor: pointer; }
.gb-password__toggle:hover { color: var(--gb-white); background: var(--gb-surface-2); }
.gb-error { margin-top: 6px; color: #ff8f93; font-size: .86rem; }
.gb-hint { margin-top: 6px; color: var(--gb-gray-2); font-size: .85rem; }
.gb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gb-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gb-check { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--gb-gray); font-size: .93rem; cursor: pointer; line-height: 1.4; }
.gb-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gb-gold); flex: none; }
.gb-checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gb-grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gb-grid-2 { grid-template-columns: 2fr 1fr; } }
.gb-form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gb-form-grid .gb-span-all { grid-column: 1 / -1; }
.gb-form-narrow { max-width: 520px; }
fieldset { border: 1px solid var(--gb-border); border-radius: var(--gb-radius-sm); padding: 16px 16px 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0 6px; color: var(--gb-gray); font-size: .9rem; font-weight: 600; }
.gb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.gb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =================================================================== Buttons */

.gb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--gb-radius-sm);
  font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.gb-btn:hover { text-decoration: none; }
.gb-btn--block { width: 100%; }
.gb-btn--primary { background: var(--gb-gold); color: #17130b; }
.gb-btn--primary:hover { background: var(--gb-gold-3); }
.gb-btn--ghost { background: transparent; color: var(--gb-white); border-color: var(--gb-border-strong); }
.gb-btn--ghost:hover { border-color: var(--gb-gray); }
.gb-btn--danger { background: transparent; color: #ff8f93; border-color: rgba(229, 72, 77, .45); }
.gb-btn--danger:hover { background: var(--gb-danger-soft); }
.gb-btn--quiet { background: var(--gb-surface-2); color: var(--gb-white); }
.gb-btn--quiet:hover { background: var(--gb-surface-3); }
.gb-btn--small { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.gb-btn[disabled], .gb-btn.is-loading { opacity: .65; cursor: progress; }
.gb-btn[disabled] { cursor: not-allowed; }
.gb-spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gb-spin .7s linear infinite; }
.gb-btn.is-loading .gb-spinner { display: inline-block; }
@keyframes gb-spin { to { transform: rotate(360deg); } }
.gb-link-btn { background: none; border: 0; padding: 0; color: var(--gb-gold); font: inherit; cursor: pointer; }
.gb-link-btn:hover { text-decoration: underline; }
.gb-link-btn--danger { color: #ff8f93; }
form.gb-inline-form { display: inline; }

/* ==================================================================== Alerts */

.gb-alert { padding: 11px 14px; border-radius: var(--gb-radius-sm); border: 1px solid; margin-bottom: 16px; font-size: .95rem; }
.gb-alert > :last-child { margin-bottom: 0; }
.gb-alert--error { color: #ffc0c2; background: var(--gb-danger-soft); border-color: rgba(229, 72, 77, .35); }
.gb-alert--success { color: #b4f0cf; background: var(--gb-success-soft); border-color: rgba(61, 187, 123, .35); }
.gb-alert--warning { color: #f7d9a1; background: var(--gb-warning-soft); border-color: rgba(226, 163, 54, .35); }
.gb-alert--info { color: var(--gb-white); background: var(--gb-gold-soft); border-color: rgba(194, 162, 103, .35); }

/* ======================================================================= MFA */

.gb-qr { display: flex; justify-content: center; padding: 14px; background: #fff; border-radius: var(--gb-radius-sm); width: 228px; margin: 0 auto 14px; }
.gb-qr img { display: block; width: 200px; height: 200px; }
.gb-secret { display: block; padding: 10px; text-align: center; background: var(--gb-ink); border: 1px dashed var(--gb-border-strong); border-radius: var(--gb-radius-sm); font-family: var(--gb-mono); letter-spacing: .08em; word-break: break-all; margin-bottom: 16px; }
.gb-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; margin: 0 0 12px; list-style: none; background: var(--gb-ink); border: 1px solid var(--gb-border); border-radius: var(--gb-radius-sm); font-family: var(--gb-mono); text-align: center; }
.gb-details summary { cursor: pointer; color: var(--gb-gray); font-size: .92rem; margin: 4px 0 12px; }

/* ================================================================ Instalador */

.gb-install { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px; }
.gb-install__logo { width: 170px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); }
.gb-steps { display: flex; gap: 6px; padding: 0; margin: 0 0 18px; list-style: none; width: 100%; max-width: 580px; }
.gb-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--gb-border); }
.gb-steps li.is-done { background: var(--gb-gold-2); }
.gb-steps li.is-current { background: var(--gb-gold); }
.gb-step-label { color: var(--gb-gray); font-size: .88rem; margin-bottom: 4px; }
.gb-req { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 16px; }
.gb-req caption { text-align: left; color: var(--gb-gray); font-weight: 600; padding: 10px 0 6px; }
.gb-req td { padding: 7px 4px; border-bottom: 1px solid var(--gb-border); vertical-align: top; }
.gb-req td:last-child { color: var(--gb-gray); text-align: right; }
.gb-status { display: inline-block; min-width: 22px; font-weight: 700; }
.gb-status--ok { color: var(--gb-success); }
.gb-status--fail { color: var(--gb-danger); }
.gb-status--warn { color: var(--gb-warning); }
.gb-pre { padding: 12px; background: var(--gb-ink); border: 1px solid var(--gb-border); border-radius: var(--gb-radius-sm); font-family: var(--gb-mono); font-size: .84rem; white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; max-height: 420px; overflow: auto; }

/* ======================================================= Barber pole (marca) */

.gb-pole-stripe {
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--gb-pole-red) 0 10px, #fff 10px 20px, var(--gb-pole-blue) 20px 30px, #fff 30px 40px);
  opacity: .9;
}
/* Pole decorativo animado da página pública (desativável pela barbearia). */
.gb-pole {
  width: 22px; height: 96px; flex: none;
  border-radius: 11px;
  border: 3px solid var(--gb-gold-2);
  background: repeating-linear-gradient(-35deg, var(--gb-pole-red) 0 8px, #fff 8px 16px, var(--gb-pole-blue) 16px 24px, #fff 24px 32px);
  background-size: 100% 64px;
  animation: gb-pole 2.4s linear infinite;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .45);
}
@keyframes gb-pole { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* ===================================================== Shell (admin e painel) */

.gb-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .gb-shell { grid-template-columns: var(--gb-sidebar) 1fr; } }

.gb-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: min(86vw, var(--gb-sidebar));
  background: var(--gb-ink);
  border-right: 1px solid var(--gb-border);
  display: flex; flex-direction: column;
  transform: translateX(-102%);
  transition: transform .2s ease;
  overflow-y: auto;
}
.gb-sidebar.is-open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
@media (min-width: 1000px) { .gb-sidebar { position: sticky; top: 0; height: 100vh; transform: none; width: var(--gb-sidebar); } .gb-sidebar.is-open { box-shadow: none; } }

.gb-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; color: var(--gb-white); }
.gb-sidebar__brand:hover { text-decoration: none; }
.gb-sidebar__brand img { width: 36px; height: 36px; }
.gb-sidebar__brand strong { display: block; font-family: var(--gb-display); font-size: 1rem; }
.gb-sidebar__brand small { display: block; color: var(--gb-gray-2); font-size: .8rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-nav { padding: 6px 10px 18px; flex: 1; }
.gb-nav__group { margin: 14px 8px 4px; color: var(--gb-gray-2); font-size: .8rem; font-weight: 600; }
.gb-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--gb-gray); font-size: .95rem; }
.gb-nav a:hover { background: var(--gb-surface); color: var(--gb-white); text-decoration: none; }
.gb-nav a[aria-current="page"] { background: var(--gb-surface-2); color: var(--gb-white); box-shadow: inset 3px 0 0 var(--gb-gold); }
.gb-nav .gb-nav__count { margin-left: auto; background: var(--gb-gold-soft); color: var(--gb-gold-3); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.gb-sidebar__foot { padding: 12px 16px 18px; border-top: 1px solid var(--gb-border); font-size: .88rem; color: var(--gb-gray); }
.gb-sidebar__foot form { margin-top: 8px; }

.gb-content { min-width: 0; display: flex; flex-direction: column; }
.gb-appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(13, 13, 14, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gb-border); }
.gb-appbar__title { font-family: var(--gb-display); font-weight: 650; font-size: .98rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gb-border); background: transparent; color: var(--gb-white); cursor: pointer; }
.gb-menu-btn span, .gb-menu-btn span::before, .gb-menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.gb-menu-btn span::before { position: absolute; top: -6px; }
.gb-menu-btn span::after { position: absolute; top: 6px; }
@media (min-width: 1000px) { .gb-menu-btn { display: none; } }

.gb-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 16px 56px; }
.gb-main--wide { max-width: 1440px; }
.gb-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gb-page-head h1 { margin: 0; }
.gb-page-head p { margin: 4px 0 0; color: var(--gb-gray); }
.gb-back { display: inline-block; font-size: .9rem; margin-bottom: 8px; color: var(--gb-gray); }

/* Topbar simples (área "Minha conta" fora de uma barbearia). */
.gb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--gb-ink); border-bottom: 1px solid var(--gb-border); flex-wrap: wrap; }
.gb-topbar__brand { display: flex; align-items: center; gap: 10px; color: var(--gb-white); font-weight: 650; font-family: var(--gb-display); }
.gb-topbar__brand:hover { text-decoration: none; }
.gb-topbar__brand img { width: 32px; height: 32px; }
.gb-topbar__brand small { display: block; color: var(--gb-gray-2); font-family: var(--gb-font); font-weight: 500; font-size: .78rem; }
.gb-topbar nav { display: flex; align-items: center; gap: 14px; font-size: .95rem; flex-wrap: wrap; }
.gb-topbar nav a { color: var(--gb-gray); }
.gb-topbar nav a:hover, .gb-topbar nav a[aria-current="page"] { color: var(--gb-white); text-decoration: none; }

/* ============================================================ Blocos de conteúdo */

.gb-section { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-radius); padding: 20px; margin-bottom: 16px; min-width: 0; }
.gb-section > :last-child { margin-bottom: 0; }
.gb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gb-section__head h2 { margin: 0; }
.gb-section--flush { padding: 0; overflow: hidden; }
.gb-cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gb-cols { grid-template-columns: 1fr 1fr; } .gb-cols--main { grid-template-columns: 2fr 1fr; } .gb-cols--3 { grid-template-columns: repeat(3, 1fr); } }

.gb-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.gb-stat { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-radius); padding: 15px 16px; min-width: 0; }
.gb-stat__label { color: var(--gb-gray); font-size: .88rem; }
.gb-stat__value { font-family: var(--gb-display); font-size: 1.45rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gb-stat__meta { color: var(--gb-gray-2); font-size: .85rem; margin-top: 2px; }
.gb-stat--alert { border-color: rgba(229, 72, 77, .5); }
.gb-stat--good .gb-stat__value { color: var(--gb-success); }
.gb-stat--bad .gb-stat__value { color: #ff8f93; }

.gb-badge, .gb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; line-height: 1.6; background: var(--gb-surface-3); color: var(--gb-gray); }
.gb-badge--ok { color: var(--gb-success); background: var(--gb-success-soft); }
.gb-badge--fail { color: #ff8f93; background: var(--gb-danger-soft); }
.gb-badge--warn { color: var(--gb-warning); background: var(--gb-warning-soft); }
.gb-badge--gold { color: var(--gb-gold-3); background: var(--gb-gold-soft); }
.gb-badge--info { color: var(--gb-info); background: var(--gb-info-soft); }
/* Status de agendamento */
.gb-chip--pending { color: var(--gb-warning); background: var(--gb-warning-soft); }
.gb-chip--confirmed { color: var(--gb-gold-3); background: var(--gb-gold-soft); }
.gb-chip--in_service { color: var(--gb-info); background: var(--gb-info-soft); }
.gb-chip--completed { color: var(--gb-success); background: var(--gb-success-soft); }
.gb-chip--cancelled { color: var(--gb-gray-2); background: var(--gb-surface-3); text-decoration: line-through; }
.gb-chip--no_show { color: #ff8f93; background: var(--gb-danger-soft); }

.gb-dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; font-size: .96rem; }
.gb-dl dt { color: var(--gb-gray); }
.gb-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .gb-dl { grid-template-columns: 1fr; gap: 2px; } .gb-dl dd { margin-bottom: 8px; } }

.gb-empty { text-align: center; padding: 30px 16px; color: var(--gb-gray); }
.gb-empty strong { display: block; color: var(--gb-white); font-family: var(--gb-display); margin-bottom: 4px; }

/* ===================================================================== Tabelas */

.gb-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gb-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.gb-table th { text-align: left; color: var(--gb-gray); font-weight: 600; font-size: .86rem; padding: 10px 12px; border-bottom: 1px solid var(--gb-border); white-space: nowrap; background: var(--gb-surface); }
.gb-table td { padding: 10px 12px; border-bottom: 1px solid var(--gb-border); vertical-align: middle; }
.gb-table tr:last-child td { border-bottom: 0; }
.gb-table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.gb-table .gb-num, .gb-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-table .gb-actions-cell { text-align: right; white-space: nowrap; }
.gb-table tfoot td { font-weight: 700; border-top: 1px solid var(--gb-border-strong); }
.gb-muted-row td { color: var(--gb-gray-2); }

.gb-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.gb-filters .gb-field { margin-bottom: 0; }

.gb-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 16px 0 0; padding: 0; list-style: none; }
.gb-pagination a, .gb-pagination span { display: inline-flex; min-width: 36px; height: 36px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--gb-border); border-radius: 7px; color: var(--gb-gray); font-size: .92rem; }
.gb-pagination a:hover { border-color: var(--gb-gray); color: var(--gb-white); text-decoration: none; }
.gb-pagination [aria-current="page"] { background: var(--gb-gold); border-color: var(--gb-gold); color: #17130b; font-weight: 700; }

.gb-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--gb-border); margin-bottom: 16px; }
.gb-tabs a { padding: 9px 14px; color: var(--gb-gray); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.gb-tabs a:hover { color: var(--gb-white); text-decoration: none; }
.gb-tabs a[aria-current="page"] { color: var(--gb-white); border-bottom-color: var(--gb-gold); }

.gb-segmented { display: inline-flex; border: 1px solid var(--gb-border); border-radius: 8px; overflow: hidden; }
.gb-segmented a { padding: 7px 13px; color: var(--gb-gray); font-size: .92rem; }
.gb-segmented a + a { border-left: 1px solid var(--gb-border); }
.gb-segmented a:hover { color: var(--gb-white); text-decoration: none; background: var(--gb-surface); }
.gb-segmented a[aria-current="page"] { background: var(--gb-surface-3); color: var(--gb-white); }

/* Barras horizontais (relatórios) — larguras por classe, sem estilo inline. */
.gb-bars { display: grid; gap: 9px; }
.gb-bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.gb-bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-bar { height: 10px; background: var(--gb-surface-3); border-radius: 5px; overflow: hidden; }
.gb-bar > i { display: block; height: 100%; background: var(--gb-gold); border-radius: 5px; width: 0; }
.w-0{width:0%!important}.w-5{width:5%!important}.w-10{width:10%!important}.w-15{width:15%!important}.w-20{width:20%!important}.w-25{width:25%!important}.w-30{width:30%!important}.w-35{width:35%!important}.w-40{width:40%!important}.w-45{width:45%!important}.w-50{width:50%!important}.w-55{width:55%!important}.w-60{width:60%!important}.w-65{width:65%!important}.w-70{width:70%!important}.w-75{width:75%!important}.w-80{width:80%!important}.w-85{width:85%!important}.w-90{width:90%!important}.w-95{width:95%!important}.w-100{width:100%!important}

/* ===================================================================== Agenda */

.gb-agenda-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gb-agenda-toolbar .gb-inline { gap: 8px; }
.gb-agenda-date { font-family: var(--gb-display); font-weight: 650; font-size: 1.05rem; }

.gb-day { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gb-day__col { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-radius); min-width: 0; }
.gb-day__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--gb-border); }
.gb-day__head strong { font-family: var(--gb-display); }
.gb-day__head small { color: var(--gb-gray-2); }
.gb-day__list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.gb-appt { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px; border-radius: 8px; background: var(--gb-surface-2); border-left: 3px solid var(--gb-gold-2); color: var(--gb-white); }
.gb-appt:hover { text-decoration: none; background: var(--gb-surface-3); }
.gb-appt__time { font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--gb-display); font-size: .95rem; }
.gb-appt__time small { display: block; font-weight: 500; color: var(--gb-gray-2); font-family: var(--gb-font); }
.gb-appt__who { min-width: 0; }
.gb-appt__who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-appt__who span:not(.gb-chip) { color: var(--gb-gray); font-size: .88rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-appt--pending { border-left-color: var(--gb-warning); }
.gb-appt--in_service { border-left-color: var(--gb-info); }
.gb-appt--completed { border-left-color: var(--gb-success); opacity: .85; }
.gb-appt--cancelled, .gb-appt--no_show { border-left-color: var(--gb-gray-2); opacity: .55; }
.gb-appt--block { border-left-color: var(--gb-gray-2); background: repeating-linear-gradient(-45deg, var(--gb-surface-2) 0 8px, var(--gb-surface) 8px 16px); }
/* Marcador "agora": a faixa do barber pole indica a hora atual na agenda do dia. */
.gb-now { display: flex; align-items: center; gap: 8px; color: var(--gb-gray); font-size: .82rem; padding: 2px 4px; }
.gb-now::before { content: ""; flex: 1; height: 3px; border-radius: 2px; background: repeating-linear-gradient(-45deg, var(--gb-pole-red) 0 6px, #fff 6px 12px, var(--gb-pole-blue) 12px 18px, #fff 18px 24px); }

.gb-week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 6px; min-width: 860px; }
.gb-week__day { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-radius); min-height: 160px; }
.gb-week__day.is-today { border-color: var(--gb-gold-2); }
.gb-week__head { padding: 8px 10px; border-bottom: 1px solid var(--gb-border); font-weight: 650; font-size: .92rem; display: flex; justify-content: space-between; }
.gb-week__head a { color: var(--gb-white); }
.gb-week__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 5px; }
.gb-week__list .gb-appt { grid-template-columns: 1fr; gap: 2px; padding: 7px 8px; font-size: .88rem; }

.gb-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gb-month__wd { color: var(--gb-gray-2); font-size: .82rem; text-align: center; padding-bottom: 2px; }
.gb-month__cell { min-height: 84px; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: 8px; padding: 6px 8px; color: var(--gb-white); display: flex; flex-direction: column; gap: 4px; }
.gb-month__cell:hover { text-decoration: none; border-color: var(--gb-gray-2); }
.gb-month__cell.is-out { opacity: .35; }
.gb-month__cell.is-today { border-color: var(--gb-gold); }
.gb-month__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.gb-month__count { margin-top: auto; font-size: .82rem; color: var(--gb-gold-3); }
@media (max-width: 640px) { .gb-month { gap: 3px; } .gb-month__cell { min-height: 56px; padding: 4px; } .gb-month__count { font-size: .72rem; } }

.gb-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gb-border); }
.gb-timeline li { position: relative; padding: 0 0 14px 16px; font-size: .93rem; }
.gb-timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gb-gold-2); }
.gb-timeline small { color: var(--gb-gray-2); display: block; }

/* ================================================================ Horários (grade) */

.gb-schedule-row { display: grid; grid-template-columns: 110px repeat(4, minmax(90px, 1fr)); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gb-border); }
.gb-schedule-row:last-child { border-bottom: 0; }
.gb-schedule-row .gb-input { min-height: 38px; }
@media (max-width: 640px) { .gb-schedule-row { grid-template-columns: 1fr 1fr; } .gb-schedule-row > :first-child { grid-column: 1 / -1; } }

/* ======================================================= Site comercial */

.gb-site { background: var(--gb-black); }
.gb-site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gb-site-header__inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.gb-site-brand { display: flex; align-items: center; gap: 10px; color: var(--gb-white); font-family: var(--gb-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.gb-site-brand:hover { text-decoration: none; }
.gb-site-brand img { width: 38px; height: 38px; }
.gb-site-brand b { color: var(--gb-gold); font-weight: 800; }
.gb-site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gb-site-nav a:not(.gb-btn) { color: var(--gb-gray); padding: 8px 10px; border-radius: 6px; font-size: .96rem; }
.gb-site-nav a:not(.gb-btn):hover { color: var(--gb-white); text-decoration: none; }
.gb-site-nav .gb-btn { margin-left: 6px; }
.gb-site-menu { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .gb-site-menu { display: inline-flex; }
  .gb-site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--gb-black); border-bottom: 1px solid var(--gb-border); }
  .gb-site-nav.is-open { display: flex; }
  .gb-site-nav .gb-btn { margin: 8px 0 0; }
}

.gb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.gb-band { padding: 72px 0; }
.gb-band--alt { background: var(--gb-graphite); border-top: 1px solid var(--gb-border); border-bottom: 1px solid var(--gb-border); }
.gb-band h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; max-width: 22ch; }
.gb-lede { color: var(--gb-gray); font-size: 1.12rem; max-width: 60ch; }

.gb-hero { padding: 56px 0 72px; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .gb-hero { grid-template-columns: 1.08fr 0.92fr; padding: 80px 0 96px; } }
.gb-hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 15ch; margin-bottom: 18px; }
.gb-hero p { color: var(--gb-gray); font-size: 1.15rem; max-width: 52ch; margin-bottom: 26px; }
.gb-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.gb-hero__note { margin-top: 14px; color: var(--gb-gray-2); font-size: .92rem; }

/* Cartão de produto no hero: a agenda do dia, com o pole marcando "agora". */
.gb-preview { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: 18px; padding: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); }
.gb-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 12px; }
.gb-preview__bar strong { font-family: var(--gb-display); }
.gb-preview__bar small { color: var(--gb-gray-2); }
.gb-preview .gb-day__list { padding: 0; }
.gb-preview__caption { margin: 12px 4px 2px; font-size: .84rem; color: var(--gb-gray-2); }

.gb-features { display: grid; gap: 26px 32px; grid-template-columns: 1fr; margin-top: 34px; }
@media (min-width: 720px) { .gb-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .gb-features { grid-template-columns: repeat(3, 1fr); } }
.gb-feature { padding-top: 16px; border-top: 1px solid var(--gb-border-strong); }
.gb-feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.gb-feature p { color: var(--gb-gray); margin: 0; }

.gb-steps-list { counter-reset: gbstep; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .gb-steps-list { grid-template-columns: repeat(4, 1fr); } }
.gb-steps-list li { counter-increment: gbstep; position: relative; padding: 52px 0 0; }
.gb-steps-list li::before { content: counter(gbstep); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gb-gold); color: var(--gb-gold-3); display: flex; align-items: center; justify-content: center; font-family: var(--gb-display); font-weight: 800; }
.gb-steps-list h3 { margin-bottom: 4px; }
.gb-steps-list p { color: var(--gb-gray); margin: 0; }

.gb-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 32px; align-items: stretch; }
.gb-plan { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-radius-lg); padding: 24px; display: flex; flex-direction: column; }
.gb-plan--highlight { border-color: var(--gb-gold-2); box-shadow: 0 0 0 1px var(--gb-gold-2) inset; }
.gb-plan__name { font-family: var(--gb-display); font-weight: 700; font-size: 1.12rem; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gb-plan__price { margin: 14px 0 4px; font-family: var(--gb-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gb-plan__price small { font-size: .95rem; font-weight: 500; color: var(--gb-gray); letter-spacing: 0; }
.gb-plan__desc { color: var(--gb-gray); }
.gb-plan ul { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 8px; flex: 1; }
.gb-plan li { padding-left: 24px; position: relative; }
.gb-plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--gb-gold); border-bottom: 2px solid var(--gb-gold); transform: rotate(-45deg); }

.gb-faq { max-width: 820px; margin-top: 26px; }
.gb-faq details { border-bottom: 1px solid var(--gb-border); }
.gb-faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-family: var(--gb-display); font-weight: 650; list-style: none; position: relative; }
.gb-faq summary::-webkit-details-marker { display: none; }
.gb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--gb-gold); font-weight: 400; }
.gb-faq details[open] summary::after { content: "−"; }
.gb-faq details p { color: var(--gb-gray); margin: 0 0 18px; max-width: 70ch; }

.gb-prose { max-width: 74ch; }
.gb-prose h2 { margin-top: 28px; }
.gb-prose p, .gb-prose li { color: #d6d6d2; }
.gb-page { padding: 48px 0 72px; }
.gb-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }

.gb-site-footer { border-top: 1px solid var(--gb-border); padding: 36px 0 44px; color: var(--gb-gray); font-size: .94rem; }
.gb-site-footer__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gb-site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.gb-site-footer h3 { color: var(--gb-white); font-size: .96rem; }
.gb-site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.gb-site-footer a { color: var(--gb-gray); }
.gb-site-footer a:hover { color: var(--gb-white); }
.gb-site-footer__legal { margin-top: 26px; color: var(--gb-gray-2); font-size: .86rem; }

/* ===================================================== Página pública da barbearia */

.gb-pub { background: var(--gb-black); min-height: 100vh; }
.gb-pub-cover { height: clamp(150px, 30vw, 300px); background: linear-gradient(180deg, #1b1b1e, #0d0d0e); overflow: hidden; }
.gb-pub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-pub-head { max-width: 980px; margin: -52px auto 0; padding: 0 16px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; position: relative; }
.gb-pub-avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--gb-black); background: var(--gb-surface-2); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--gb-display); font-size: 2.2rem; font-weight: 800; color: var(--gb-gold); }
.gb-pub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gb-pub-title { flex: 1; min-width: 220px; padding-bottom: 6px; }
.gb-pub-title h1 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.gb-pub-title p { color: var(--gb-gray); margin: 4px 0 0; }
.gb-pub-main { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .gb-pub-main { grid-template-columns: 1.6fr 1fr; } }
.gb-pub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px auto 0; max-width: 980px; padding: 0 16px; align-items: center; }
.gb-service { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gb-border); }
.gb-service:last-child { border-bottom: 0; }
.gb-service strong { display: block; }
.gb-service small { color: var(--gb-gray); }
.gb-service__price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.gb-service__price small { display: block; font-weight: 400; }
.gb-hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.gb-hours td { padding: 5px 0; border-bottom: 1px solid var(--gb-border); }
.gb-hours td:last-child { text-align: right; color: var(--gb-gray); }
.gb-hours tr.is-today td { color: var(--gb-white); font-weight: 650; }
.gb-pros { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.gb-pro { text-align: center; }
.gb-pro__photo { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; background: var(--gb-surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--gb-display); font-weight: 800; color: var(--gb-gold); font-size: 1.3rem; }
.gb-pro__photo img { width: 100%; height: 100%; object-fit: cover; }

.gb-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gb-gallery a, .gb-gallery figure { display: block; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--gb-surface-2); }
.gb-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-media-card { background: var(--gb-surface-2); border: 1px solid var(--gb-border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.gb-media-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gb-media-card__body { padding: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: .85rem; }
.gb-media-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gb-media-current { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gb-media-current img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gb-border); }
.gb-media-current img.is-wide { width: 220px; height: 80px; }

/* Recorte de imagem */
.gb-crop { position: relative; width: 100%; max-width: 520px; margin: 0 auto 12px; background: #000; border-radius: 8px; overflow: hidden; touch-action: none; user-select: none; }
.gb-crop img { display: block; width: 100%; height: auto; pointer-events: none; }
.gb-crop__box { position: absolute; border: 2px solid var(--gb-gold); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .58); cursor: move; }
.gb-crop__handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; background: var(--gb-gold); border-radius: 50%; cursor: nwse-resize; }

/* Mapa */
.gb-map { width: 100%; height: 320px; border-radius: 10px; border: 1px solid var(--gb-border); background: var(--gb-surface-2); overflow: hidden; }
.gb-map--small { height: 230px; }
.leaflet-container { font-family: var(--gb-font); background: #1b1b1e; }

/* ======================================================= Agendamento (wizard) */

.gb-booking { max-width: 760px; margin: 0 auto; padding: 18px 16px 64px; }
.gb-booking__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gb-booking__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.gb-booking__steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.gb-booking__steps li { flex: 1; font-size: .82rem; color: var(--gb-gray-2); border-top: 3px solid var(--gb-border); padding-top: 6px; }
.gb-booking__steps li.is-current { color: var(--gb-white); border-top-color: var(--gb-gold); }
.gb-booking__steps li.is-done { color: var(--gb-gray); border-top-color: var(--gb-gold-2); }
@media (max-width: 520px) { .gb-booking__steps li span { display: none; } }
.gb-options { display: grid; gap: 8px; }
.gb-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--gb-border); border-radius: 10px; background: var(--gb-surface); cursor: pointer; }
.gb-option:hover { border-color: var(--gb-border-strong); }
.gb-option input { accent-color: var(--gb-gold); width: 18px; height: 18px; flex: none; }
.gb-option:has(input:checked) { border-color: var(--gb-gold); background: var(--gb-gold-soft); }
.gb-option__body { flex: 1; min-width: 0; }
.gb-option__body strong { display: block; }
.gb-option__body small { color: var(--gb-gray); }
.gb-option__side { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gb-option__side small { display: block; color: var(--gb-gray); }
.gb-dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.gb-date { flex: none; width: 62px; padding: 8px 0; text-align: center; border: 1px solid var(--gb-border); border-radius: 10px; background: var(--gb-surface); color: var(--gb-white); cursor: pointer; scroll-snap-align: start; font: inherit; }
.gb-date small { display: block; color: var(--gb-gray); font-size: .78rem; }
.gb-date b { display: block; font-family: var(--gb-display); font-size: 1.15rem; }
.gb-date[aria-pressed="true"] { border-color: var(--gb-gold); background: var(--gb-gold-soft); }
.gb-date:disabled { opacity: .35; cursor: not-allowed; }
.gb-slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); margin-top: 12px; }
.gb-slot { min-height: 42px; border: 1px solid var(--gb-border); border-radius: 8px; background: var(--gb-surface); color: var(--gb-white); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.gb-slot:hover { border-color: var(--gb-gold-2); }
.gb-slot[aria-pressed="true"] { background: var(--gb-gold); border-color: var(--gb-gold); color: #17130b; }
.gb-summary { background: var(--gb-surface-2); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.gb-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--gb-border); font-variant-numeric: tabular-nums; }

/* ======================================================================= Pix */

.gb-pix { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .gb-pix { grid-template-columns: 260px 1fr; } }
.gb-pix__qr { background: #fff; padding: 12px; border-radius: 10px; width: 260px; max-width: 100%; }
.gb-pix__qr img { display: block; width: 100%; height: auto; }
.gb-copy { display: flex; gap: 8px; }
.gb-copy .gb-input { font-family: var(--gb-mono); font-size: .82rem; }

/* ===================================================================== Utilidades */

.gb-mt { margin-top: 16px; }
.gb-mt-lg { margin-top: 28px; }
.gb-mb { margin-bottom: 16px; }
.gb-mb-0 { margin-bottom: 0 !important; }
.gb-center { text-align: center; }
.gb-right { text-align: right; }
.gb-muted { color: var(--gb-gray); }
.gb-faint { color: var(--gb-gray-2); }
.gb-small { font-size: .9rem; }
.gb-xsmall { font-size: .82rem; }
.gb-strong { font-weight: 700; }
.gb-gold { color: var(--gb-gold-3); }
.gb-good { color: var(--gb-success); }
.gb-bad { color: #ff8f93; }
.gb-nowrap { white-space: nowrap; }
.gb-break { overflow-wrap: anywhere; }
.gb-list-plain { list-style: none; padding: 0; margin: 0; }
.gb-stack > * + * { margin-top: 10px; }
.gb-divider { border-top: 1px solid var(--gb-border); margin: 16px 0; }
.gb-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--gb-surface-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gb-gold); font-size: .88rem; flex: none; overflow: hidden; }
.gb-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.gb-kbd { font-family: var(--gb-mono); background: var(--gb-surface-3); border-radius: 4px; padding: 1px 6px; font-size: .86em; }

@media print {
  .gb-sidebar, .gb-appbar, .gb-actions, .gb-btn, .gb-filters, .gb-site-header, .gb-pole-stripe { display: none !important; }
  body { background: #fff; color: #000; }
  .gb-section, .gb-stat { border-color: #ccc; background: #fff; }
  .gb-shell { display: block; }
}

/* ============================================== Área do cliente e complementos */

.gb-site-nav.gb-site-nav--static { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: none; border: 0; }
.gb-site-nav--static .gb-btn { margin: 0 0 0 6px; }
.gb-auth-card { width: 100%; max-width: 440px; margin: 24px auto; padding: 28px 24px; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: 14px; }
.gb-auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.gb-container-narrow { max-width: 760px; margin: 0 auto; }
.gb-divider-text { display: flex; align-items: center; gap: 12px; color: var(--gb-gray-2); font-size: .86rem; margin: 18px 0; }
.gb-divider-text::before, .gb-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--gb-border); }
.gb-pre-line { white-space: pre-line; }
.gb-h2 { font-size: 1.3rem; }

/* Horários como rádios: funcionam sem JavaScript */
label.gb-slot { display: flex; align-items: center; justify-content: center; position: relative; }
label.gb-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.gb-slot:has(input:checked) { background: var(--gb-gold); border-color: var(--gb-gold); color: #17130b; }
label.gb-slot:has(input:focus-visible) { outline: 2px solid var(--gb-gold-3); outline-offset: 2px; }
a.gb-date { display: block; text-decoration: none; }
a.gb-date:hover { border-color: var(--gb-gold-2); text-decoration: none; }
