/* hpbikes.pt — sistema de design
   Amarelo #FFC400 · Carvão #1B1B19 · Papel #F4F1EA · Café #6B4A2F
   Anton (títulos) · Manrope (texto) */

:root {
  --y: #FFC400;
  --y-hover: #F0B800;
  --y-soft: #FFF4CC;
  --ink: #1B1B19;
  --ink-2: #121211;
  --ink-3: #252422;
  --ink-line: #343330;
  --paper: #F4F1EA;
  --paper-2: #EDE8DD;
  --paper-3: #F8F6F1;
  --card: #FFFFFF;
  --line: #E2DDD2;
  --line-2: #D6CFC1;
  --text: #1B1B19;
  --text-2: #3A3832;
  --muted: #57544C;
  --muted-2: #76726A;
  --sand: #C9C3B6;
  --sand-2: #D9D4C8;
  --coffee: #6B4A2F;
  --coffee-2: #5A3E27;
  --ok: #2F7D4F;
  --ok-soft: #E3F1E8;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --radius: 4px;
  --radius-sm: 3px;
  --font: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --stripes: repeating-linear-gradient(135deg, var(--y) 0 16px, var(--ink) 16px 32px);
  --shadow: 0 10px 30px rgba(27, 27, 25, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--text); }
a:hover { color: var(--coffee); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 0.98;
}
h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; line-height: 1.05; }
h4 { font-size: 18px; line-height: 1.1; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--y); padding: 10px 16px; font-weight: 800; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

/* ---------- utilitários ---------- */
.container { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.container--narrow { max-width: 860px; }
.container--mid { max-width: 1040px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.row--tight { gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-small { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-yellow { color: var(--y); }
.text-coffee { color: var(--coffee); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }
.strong { font-weight: 800; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.92em; }
.hidden { display: none !important; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose h2 { font-size: 26px; margin: 34px 0 12px; color: var(--ink); }
.prose h3 { font-size: 20px; margin: 26px 0 10px; color: var(--ink); }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coffee);
}
.on-dark .eyebrow, .eyebrow--yellow { color: var(--y); }
.label-caps {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .label-caps { color: var(--muted-2); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.on-dark .lead { color: var(--sand); }
.stripes { height: 12px; background: var(--stripes); }
.stripes--thin { height: 8px; background: repeating-linear-gradient(135deg, var(--y) 0 12px, var(--ink) 12px 24px); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--yellow { background: var(--y); border-color: var(--y); color: var(--ink); }
.btn--yellow:hover { background: var(--y-hover); border-color: var(--y-hover); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; color: var(--y); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--line { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink); padding: 0 12px; }
.btn--ghost:hover { background: var(--paper-2); }
.btn--light-outline { background: rgba(18, 18, 17, 0.35); border-color: rgba(244, 241, 234, 0.55); color: var(--paper); }
.btn--light-outline:hover { border-color: var(--y); color: var(--y); }
.btn--danger { background: var(--card); border-color: #E7B9B4; color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn--xs { min-height: 30px; padding: 0 12px; font-size: 12px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { width: 38px; min-height: 38px; padding: 0; }
.link-caps {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid var(--y);
  padding-bottom: 3px;
  color: var(--ink);
}
.on-dark .link-caps { color: var(--y); border-bottom: 0; }
.link-plain { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-plain:hover { color: var(--ink); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--paper-2);
  color: var(--text-2);
}
.badge--yellow { background: var(--y); color: var(--ink); }
.badge--dark { background: var(--ink); color: var(--paper); }
.badge--outline { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--coffee { background: var(--coffee); color: var(--paper); }
.badge--muted { background: var(--paper-2); color: var(--muted); }
.badge--square { border-radius: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot--yellow { background: var(--y); }
.dot--danger { background: var(--danger); }
.dot--muted { background: var(--sand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed='true'], .chip-input:checked + .chip { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input:focus-visible + .chip { outline: 3px solid var(--y); outline-offset: 2px; }
.chip--sm { min-height: 34px; padding: 0 14px; font-size: 12px; }
.chip.is-disabled { opacity: 0.4; text-decoration: line-through; pointer-events: none; }

/* ---------- cartões ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.card-pad-lg { padding: 30px; }
.card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 22px; }
.card-body { padding: 20px 24px; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line); }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card--dark .card-head, .card--dark .card-foot { border-color: var(--ink-line); }
.card--paper { background: var(--paper-3); }
.card--yellow { background: var(--y); border-color: var(--y); }
.panel-dark { background: var(--ink); color: var(--paper); }

/* ---------- formulários ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B1B19' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.45); }
.input[readonly], .input.is-readonly { background: var(--paper-2); font-weight: 800; }
.input--sm { min-height: 38px; font-size: 14px; }
.input--search { padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376726A' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; }
.has-error .input, .has-error .select, .has-error .textarea, .input.is-invalid { border-color: var(--danger); }
.field-help { font-size: 12px; color: var(--muted-2); margin: 0; }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 700; margin: 0; }
.on-dark .input, .on-dark .select, .on-dark .textarea { background: var(--ink-3); border-color: var(--ink-line); color: var(--paper); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1 1 auto; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 38px; }
.input-affix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-weight: 700; font-size: 14px; pointer-events: none; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; color: var(--muted-2); font-size: 12.5px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background 0.15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::before { transform: translateX(18px); background: var(--y); }
.switch input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }
.option-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.option-row:last-child { border-bottom: 0; }
.option-row strong { display: block; font-size: 14px; }
.option-row small { display: block; font-size: 12.5px; color: var(--muted-2); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  height: 42px;
}
.qty button { width: 38px; height: 100%; border: 0; background: none; font-size: 18px; font-weight: 700; color: var(--ink); border-radius: 999px; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 36px; border: 0; text-align: center; font-weight: 800; font-size: 15px; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }

/* ---------- mensagens ---------- */
.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 900; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.flash {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  border-left: 6px solid var(--y);
  animation: flash-in 0.25s ease-out;
}
.flash--error { border-left-color: #E5534B; }
.flash--success { border-left-color: #4CC38A; }
.flash button { margin-left: auto; background: none; border: 0; color: var(--sand); font-size: 18px; line-height: 1; padding: 0 2px; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--y-soft);
  border: 1px solid #F2DC8C;
  font-size: 14px;
  line-height: 1.5;
}
.notice--muted { background: var(--paper-2); border-color: var(--line); color: var(--text-2); }
.notice--error { background: var(--danger-soft); border-color: #F0C2BD; color: #7A1D17; }
.notice--ok { background: var(--ok-soft); border-color: #BFDFCB; color: #1F5A37; }
.notice--dark { background: var(--ink-3); border-color: var(--ink-line); color: var(--sand); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- avatares ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
  overflow: hidden;
  object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--yellow { background: var(--y); color: var(--ink); }
.avatar--soft { background: var(--ink-line); color: var(--paper); }
.avatar--xs { width: 30px; height: 30px; font-size: 10.5px; }
.avatar--sm { width: 34px; height: 34px; font-size: 11.5px; }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.avatar--xl { width: 96px; height: 96px; font-size: 30px; }
.avatar--xxl { width: 132px; height: 132px; font-size: 44px; font-family: var(--display); font-weight: 400; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--ink); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.on-light .avatar-stack .avatar, .avatar-stack--light .avatar { border-color: var(--card); }

/* ---------- mapa da sala ---------- */
.room { --seat: 52px; }
.room-front { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.room-teacher {
  min-width: 170px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--y);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.room-front small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.room-rows { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.room-row { display: flex; align-items: center; gap: 10px; }
.room-row-label { width: 74px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.room-row-label--num { width: 18px; text-align: center; }
.seat {
  width: var(--seat);
  height: calc(var(--seat) * 0.82);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px dashed var(--line-2);
  background: var(--card);
  color: var(--muted-2);
}
.seat svg { width: 22px; height: 14px; }
.seat--taken { background: var(--ink); border: 1.5px solid var(--ink); color: var(--paper); }
.seat--mine { background: var(--y); border: 1.5px solid var(--y); color: var(--ink); }
.room--dark .seat { background: transparent; border-color: #4A4844; color: var(--muted-2); }
.room--dark .seat--taken { background: var(--y); border: 1.5px solid var(--y); color: var(--ink); }
.room--dark .seat--mine { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.room--dark .room-front small { color: var(--muted-2); }
.room-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.room-legend span { display: inline-flex; align-items: center; gap: 8px; }
.room-legend i { width: 14px; height: 14px; border-radius: 2px; background: var(--card); border: 1.5px dashed var(--line-2); display: inline-block; }
.room-legend i.taken { background: var(--ink); border: 0; }
.room-legend i.mine { background: var(--y); border: 0; }
.room--dark .room-legend { color: var(--sand); }
.room--dark .room-legend i { background: transparent; border-color: #4A4844; }
.room--dark .room-legend i.taken { background: var(--y); }
.room--dark .room-legend i.mine { background: var(--paper); }
.room--compact { --seat: 40px; }
.room--compact .seat svg { display: none; }
.room--compact .room-row-label { display: none; }

/* barra de ocupação */
.meter { position: relative; height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--y); }
.meter--dark > i { background: var(--ink); }
.meter--full > i { background: var(--ink); }
.card--dark .meter, .on-dark .meter { background: var(--ink-line); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--card);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr[data-href]:hover td, .table tbody tr.is-selected td { background: var(--paper-3); }
.table tbody tr.is-selected td:first-child { box-shadow: inset 4px 0 0 var(--y); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; }
.table--compact td { padding: 9px 14px; }
.cell-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-user strong { display: block; font-size: 14px; }
.cell-user small { display: block; font-size: 12px; color: var(--muted-2); }
.cell-thumb { width: 44px; height: 36px; border-radius: 3px; background: var(--paper-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-thumb svg { height: 28px !important; }

.empty {
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ---------- diálogos ---------- */
dialog.modal {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
dialog.modal--wide { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(18, 18, 17, 0.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal-head h2 { font-size: 24px; }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-3); position: sticky; bottom: 0; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-size: 20px; line-height: 1; }

/* ---------- separadores ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a, .tabs button {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.is-active, .tabs button.is-active { color: var(--ink); border-bottom-color: var(--y); }

/* ---------- passos ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted-2); }
.steps li b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-line); font-size: 12px; }
.steps li.is-active { color: var(--paper); }
.steps li.is-active b { background: var(--y); border-color: var(--y); color: var(--ink); }
.steps li.is-done { color: var(--sand); }
.steps li.is-done b { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.steps-pill li.is-active { background: var(--y); color: var(--ink); padding: 6px 14px 6px 6px; border-radius: 999px; }
.steps-pill li.is-active b { background: var(--ink); color: var(--y); border-color: var(--ink); }

/* ============================================================
   SITE PÚBLICO
   ============================================================ */
.topbar { background: var(--ink); color: var(--sand-2); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: var(--y); text-decoration: none; font-weight: 700; }
.topbar-right { color: var(--sand-2); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a.is-active { border-bottom-color: var(--y); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.header-search { position: relative; }
.header-search .input { min-height: 42px; width: 190px; border-radius: 999px; font-size: 14px; }
.cart-btn { position: relative; }
.cart-btn .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--y); font-size: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.site-header--dark { background: var(--ink); border-bottom-color: var(--ink-line); color: var(--paper); }
.site-header--dark .nav a { color: var(--paper); }
.site-header--dark .nav a:hover { color: var(--y); }
.site-header--dark .nav a.is-active { color: var(--y); border-bottom-color: var(--y); }
.site-header--dark .nav-toggle { border-color: var(--paper); color: var(--paper); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--darker { background: var(--ink-2); color: var(--paper); }
.section--coffee { background: var(--coffee); color: var(--paper); }
.section--white { background: var(--card); }
.section-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head h2 { font-size: 56px; line-height: 0.94; }
.section-head .lead { margin: 14px 0 0; }

/* cabeçalho de página escuro com riscas (loja, aluno, carrinho) */
.page-hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.page-hero h1 { font-size: 72px; line-height: 0.92; }
.page-hero .lead { margin: 18px 0 0; color: var(--sand); }
.page-hero-mark { position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; opacity: 0.12; pointer-events: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero-stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--y); }
.hero-stat span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
.page-hero--sm .container { padding-top: 40px; padding-bottom: 40px; }
.page-hero--sm h1 { font-size: 56px; }

/* herói da landing */
.hero { background: var(--ink-2); color: var(--paper); position: relative; overflow: hidden; }
.hero-media { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-shade-x { position: absolute; inset: 0; background: linear-gradient(90deg, #121211 0%, rgba(18,18,17,0.93) 25%, rgba(18,18,17,0.6) 46%, rgba(18,18,17,0.1) 66%, rgba(18,18,17,0.45) 100%); }
.hero-shade-y { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,17,0.55) 0%, rgba(18,18,17,0) 30%, rgba(18,18,17,0) 58%, rgba(18,18,17,0.75) 100%); }
.hero-mark { position: absolute; left: -54px; top: -46px; width: 300px; height: 300px; opacity: 0.18; pointer-events: none; }
.hero-arc { position: absolute; right: 6%; top: 50%; width: 470px; height: 470px; transform: translateY(-50%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 104px; }
.hero-content > div { max-width: 640px; }
.hero h1 { font-size: 88px; line-height: 0.9; margin: 0 0 26px; text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.hero h1 span { color: var(--y); }
.hero-text { margin: 0 0 34px; font-size: 19px; line-height: 1.6; color: #D5CFC2; max-width: 520px; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.hero-facts { position: relative; z-index: 1; border-top: 1px solid rgba(244,241,234,0.12); background: rgba(18,18,17,0.88); }
.hero-facts .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-fact { display: flex; gap: 14px; align-items: center; padding: 24px 20px; border-left: 1px solid rgba(244,241,234,0.12); }
.hero-fact:first-child { border-left: 0; padding-left: 0; }
.hero-fact svg { width: 28px; height: 28px; flex: none; color: var(--y); }
.hero-fact strong { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--y); white-space: nowrap; }
.hero-fact span { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }

.door-card { position: relative; display: flex; flex-direction: column; padding: 26px; min-height: 270px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.door-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.door-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--y); font-weight: 800; font-size: 14px; margin-bottom: 22px; }
.door-card h3 { font-size: 28px; margin-bottom: 12px; }
.door-card p { font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }

.step-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.step-list li > span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 800; font-size: 13px; flex: none; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); font-size: 13px; text-decoration: none; }
.slot strong { font-weight: 800; }
.slot span { color: var(--muted); }
a.slot:hover { border-color: var(--ink); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.service { padding: 24px 26px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.service:nth-child(3n) { border-right: 0; }
.service h3 { font-size: 20px; margin-bottom: 10px; color: var(--paper); }
.service p { font-size: 14px; line-height: 1.6; color: var(--sand); flex: 1; }
.service strong { color: var(--y); font-size: 15px; font-weight: 800; }

.trail-feature { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 34px; position: relative; }
.date-tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--y); color: var(--ink); text-align: center; }
.date-tile strong { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.date-tile span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; }
.fact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.fact-row > div { padding: 14px 16px 14px 0; }
.fact-row > div + div { padding-left: 16px; border-left: 1px solid var(--ink-line); }
.fact-row small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.fact-row strong { font-size: 17px; font-weight: 800; }
.fact-row--light { border-color: var(--line); }
.fact-row--light > div + div { border-color: var(--line); }

.contact-card { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card p { margin: 0; font-size: 15px; line-height: 1.7; }

.site-footer { background: var(--ink); color: var(--sand); font-size: 14px; }
.site-footer .container { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--sand); text-decoration: none; }
.footer-grid a:hover { color: var(--y); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 12.5px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 3px; border: 1px solid var(--ink-line); font-size: 11px; font-weight: 800; color: var(--sand); }
.on-light .pay-methods span { border-color: var(--line-2); color: var(--muted); background: var(--card); }

/* loja */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 24px 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; display: flex; align-items: center; justify-content: center; height: 196px; padding: 24px; background: var(--paper-3); border-bottom: 1px solid var(--line); text-decoration: none; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media .badge { position: absolute; left: 14px; top: 14px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; }
.product-body .label-caps { color: var(--coffee); margin-bottom: 6px; }
.product-body h3 { font-size: 21px; margin-bottom: 8px; }
.product-body h3 a { text-decoration: none; }
.product-body p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 12px; flex: 1; }
.stock-line { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.price { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.price-old { font-size: 14px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.perk strong { display: block; font-size: 15px; margin-bottom: 4px; }
.perk span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.gallery-main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .badge { position: absolute; left: 16px; top: 16px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-thumbs button.is-active { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding: 18px 0; }
.breadcrumbs a { color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table td:last-child { text-align: right; font-weight: 800; }

.ship-options { display: grid; gap: 8px; }
.ship-option { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.ship-option input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
.ship-option strong { display: block; font-size: 14px; }
.ship-option small { display: block; font-size: 12.5px; color: var(--muted-2); }
.ship-option .price-tag { margin-left: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }
.ship-option:has(input:checked) { border-color: var(--ink); background: var(--y-soft); }

.summary-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 24px; }
.summary-card h2 { font-size: 24px; margin-bottom: 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--ink-line); }
.summary-line span:last-child { font-weight: 800; white-space: nowrap; }
.summary-line--discount span:last-child { color: var(--y); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0 6px; }
.summary-total strong { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--y); }

.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 64px; border-radius: var(--radius-sm); background: var(--paper-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* área do aluno */
.portal-header { background: var(--ink); color: var(--paper); }
.portal-header .container { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.portal-header .brand img { height: 36px; }
.portal-nav { display: flex; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-nav a { color: var(--sand); text-decoration: none; padding: 8px 12px; border-bottom: 3px solid transparent; }
.portal-nav a:hover { color: var(--paper); }
.portal-nav a.is-active { color: var(--y); border-bottom-color: var(--y); }
.portal-me { display: flex; align-items: center; gap: 12px; }
.portal-me strong { display: block; font-size: 14px; text-align: right; }
.portal-me small { display: block; font-size: 12px; color: var(--muted-2); text-align: right; }
.portal-hero { background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink-line); }
.portal-hero .container { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.portal-hero h1 { font-size: 60px; }
.portal-stats { display: flex; gap: 12px; }
.portal-stat { min-width: 116px; padding: 14px 16px; border: 1px solid var(--ink-line); border-radius: var(--radius); }
.portal-stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--y); }
.portal-stat span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }

.day-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.day-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 66px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.day-btn small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.day-btn strong { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.day-btn:hover { border-color: var(--ink); color: var(--ink); }
.day-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day-btn.is-active small { color: var(--y); }
.day-btn.is-empty { opacity: 0.45; }
.session-btn { display: flex; align-items: center; gap: 14px; justify-content: space-between; width: 100%; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.session-btn:hover { border-color: var(--ink); color: var(--ink); }
.session-btn strong.time { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.session-btn small { display: block; font-size: 12.5px; color: var(--muted-2); }
.session-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.session-btn.is-active small { color: var(--sand); }
.session-btn.is-full .time { color: var(--muted-2); }

.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 12px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.person strong { font-size: 13px; line-height: 1.25; }
.person small { font-size: 11px; color: var(--muted-2); margin-top: -6px; }

/* ============================================================
   BACKOFFICE
   ============================================================ */
.admin { display: flex; min-height: 100vh; align-items: stretch; }
.admin-side { width: 250px; flex: none; background: var(--ink); color: var(--sand); padding: 26px 22px 30px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand img { height: 36px; margin-bottom: 30px; }
.admin-side .label-caps { color: var(--muted-2); margin: 0 0 12px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 28px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--sand); }
.admin-nav a:hover { background: var(--ink-3); color: var(--paper); }
.admin-nav a.is-active { background: var(--y); color: var(--ink); }
.admin-nav .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink-line); color: var(--paper); font-size: 11px; font-weight: 800; }
.admin-nav a.is-active .count { background: var(--ink); color: var(--y); }
.admin-me { margin-top: auto; border-top: 1px solid var(--ink-line); padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.admin-me p { margin: 0; }
.admin-me strong { display: block; font-size: 14px; color: var(--paper); }
.admin-me small { display: block; font-size: 12px; color: var(--muted-2); }
.admin-me form { margin-left: auto; }
.admin-me button { background: none; border: 1px solid var(--ink-line); color: var(--sand); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.admin-me button:hover { border-color: var(--y); color: var(--y); }
.admin-main { flex: 1 1 auto; min-width: 0; padding: 30px 36px 48px; }
.admin-topbar { display: none; }
.admin-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.admin-head .eyebrow { font-size: 12px; letter-spacing: 0.18em; margin-bottom: 8px; }
.admin-head h1 { font-size: 44px; }
.admin-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-head-actions .input { min-height: 46px; width: 260px; max-width: 100%; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; display: block; }
a.kpi:hover { border-color: var(--ink); color: var(--ink); }
.kpi .label-caps { margin: 0 0 10px; }
.kpi strong { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 6px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi span.up { color: var(--ok); font-weight: 700; }
.kpi span.down { color: var(--danger); font-weight: 700; }
.kpi--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kpi--dark strong { color: var(--y); }
.kpi--dark span { color: var(--sand); }
.bar-chart { display: flex; gap: 14px; align-items: flex-end; height: 200px; padding-top: 24px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bar i { display: block; width: 100%; max-width: 64px; border-radius: 3px 3px 0 0; background: var(--ink); min-height: 2px; position: relative; }
.bar i b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.bar.is-today i { background: var(--y); }
.bar span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bar.is-today span { font-weight: 800; color: var(--ink); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.activity li:last-child { border-bottom: 0; }
.activity li .dot { margin-top: 6px; }
.activity li small { display: block; color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.activity a { text-decoration: none; }
.activity a:hover { text-decoration: underline; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week-col h4 { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.week-col.is-today h4 { color: var(--ink); border-bottom: 3px solid var(--y); }
.week-col .stack-sm { display: flex; flex-direction: column; gap: 8px; }
.week-slot { display: block; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.week-slot:hover { border-color: var(--ink); color: var(--ink); }
.week-slot strong { display: block; font-size: 15px; font-weight: 800; }
.week-slot .meter { margin: 8px 0 6px; height: 4px; }
.week-slot small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.week-slot.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.week-slot.is-active small { color: var(--sand); }
.week-slot.is-active .meter { background: var(--ink-line); }
.week-slot.is-cancelled { opacity: 0.5; text-decoration: line-through; }
.week-slot.is-past { background: var(--paper-3); }

.image-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.image-slot { position: relative; aspect-ratio: 1; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--paper-3); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted-2); font-size: 28px; }
.image-slot img { width: 100%; height: 100%; object-fit: cover; }
.image-slot .remove { position: absolute; right: 6px; top: 6px; }
.image-slot label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.photo-picker { display: flex; align-items: center; gap: 18px; }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv strong { text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--y); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted-2); font-size: 12px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.login-art { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-art img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.login-art > * { position: relative; }
.login-art h1 { font-size: 64px; line-height: 0.92; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 380px; }

.code-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.code-box button { margin-left: auto; flex: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 72px; }
  .hero-arc { width: 380px; height: 380px; right: 2%; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .grid-4, .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3n) { border-right: 1px solid var(--ink-line); }
  .service:nth-child(2n) { border-right: 0; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; }
  .site-header .nav, .site-header .header-actions { display: none; width: 100%; }
  .site-header.is-open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; order: 3; padding: 8px 0; }
  .site-header.is-open .header-actions { display: flex; order: 4; padding-bottom: 8px; }
  .header-search .input { width: 100%; }
  .admin { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; padding: 0; }
  .admin-side > :not(.admin-topbar) { display: none; }
  .admin-side.is-open > * { display: flex; }
  .admin-side.is-open { padding: 0 20px 20px; }
  .admin-side.is-open .admin-topbar { margin: 0 -20px 16px; }
  .admin-side.is-open .label-caps { display: block; }
  .admin-topbar { display: flex !important; align-items: center; justify-content: space-between; padding: 14px 20px; width: 100%; }
  .admin-topbar .brand img { height: 30px; margin: 0; }
  .admin-topbar button { background: none; border: 1px solid var(--ink-line); color: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
  .admin-main { padding: 24px 20px 40px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; padding: 28px; }
  .login-art h1 { font-size: 44px; }
  .hero-facts .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 36px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .perks, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { border-right: 0 !important; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-media { height: 140px; padding: 14px; }
  .product-body { padding: 14px; }
  .product-body h3 { font-size: 17px; }
  .product-body p { display: none; }
  .price { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 40px; }
  .page-hero h1, .portal-hero h1 { font-size: 46px; }
  .page-hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero-media { min-height: 560px; }
  .hero h1 { font-size: 54px; }
  .hero-text { font-size: 17px; }
  .hero-arc { display: none; }
  .hero-content { padding-top: 64px; padding-bottom: 72px; }
  .hero-fact { padding: 16px 8px; }
  .hero-fact strong { font-size: 22px; }
  .room { --seat: 44px; }
  .room-row-label { display: none; }
  .room-row { gap: 6px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .cart-line .cart-thumb { width: 56px; height: 48px; }
  .cart-line > :last-child { grid-column: 2; }
  .admin-head h1 { font-size: 36px; }
  .admin-head-actions .input { width: 100%; }
  .week-grid { grid-template-columns: minmax(0, 1fr); }
  .image-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-header .container { flex-wrap: wrap; }
  .portal-stats { flex-wrap: wrap; }
  .trail-feature { padding: 22px; }
  .card-pad-lg { padding: 20px; }
  .table th, .table td { padding: 10px 12px; }
}
@media print {
  .site-header, .topbar, .site-footer, .admin-side, .flash-stack, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- pesquisa de alunos (backoffice) ---------- */
[data-student-picker] { position: relative; }
[data-student-results] { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.picker-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 3px; background: none; }
.picker-item:hover, .picker-item:focus { background: var(--paper-2); }
.picker-item strong { display: block; font-size: 14px; }
.picker-item small { display: block; font-size: 12px; color: var(--muted-2); }
.picker-empty { padding: 9px 10px; font-size: 13px; color: var(--muted); }
.on-dark [data-student-results] { color: var(--ink); }
