/* Importar fontes (auto-hospedadas) */
/* Fontes auto-hospedadas (Outfit, Shrikhand, Material Icons) — servidas
   pelo nosso domínio via Cloudflare; sem dependência do Google Fonts em
   runtime (5G do evento bloqueava/atrasava e o texto sumia). */
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJuktqQ4E.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-QGYvz_MVcBeNP4NJtEtq.fdf9c509a809.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* gujarati */
@font-face {
  font-family: 'Shrikhand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shrikhand-a8IbNovtLWfR7T7bMJwrGIKR4zg.5965df0c5758.woff2") format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}
/* latin-ext */
@font-face {
  font-family: 'Shrikhand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shrikhand-a8IbNovtLWfR7T7bMJwrDYKR4zg.34215d9f18a9.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Shrikhand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shrikhand-a8IbNovtLWfR7T7bMJwrA4KR.80a6ee3f30db.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/mi-flUhRq6tzZclQEJ-Vdg-IuiaDsNc.53436aca8627.woff2") format('woff2');
}


/* ========================================================================
   Design System — Addmind BAT Identity
   ======================================================================== */
:root {
  /* Backgrounds */
  --bg: #191921;
  --bg-card: #191921;
  --bg-input: #191921;
  --bg-elevated: #1e1e28;

  /* Brand colors */
  --lime: #d0f87a;
  --yellow: #ffc33e;
  --blue: #2354f2;
  --pink: #dd0054;
  --white: #fff;

  /* Text */
  --text-primary: #fff;
  --text-secondary: #8a8a8a;
  --text-muted: #585858;

  /* Semantic */
  --color-success: #d0f87a;
  --color-success-bg: rgba(208,248,122,0.08);
  --color-warning: #ffc33e;
  --color-warning-bg: rgba(255,195,62,0.08);
  --color-error: #dd0054;
  --color-error-bg: rgba(221,0,84,0.08);
  --color-info: #2354f2;
  --color-info-bg: rgba(35,84,242,0.08);

  /* Check-in/Checkout */
  --color-checkin-bg: #0d1f0d;
  --color-checkout-bg: #0d0d2a;

  /* Typography */
  /* Fallback robusto: se a web font não baixar (conexão ruim), o texto
     renderiza numa fonte do sistema (font-display: swap nas @font-face). */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, system-ui, sans-serif;
  --font-accent: 'Shrikhand', Georgia, 'Times New Roman', serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3.5rem;

  /* Layout — brutalist: zero radius */
  --radius: 0px;
  --shadow-r: 4px 4px 0 2px #000;
  --shadow-l: -4px 4px 0 2px #000;
  --transition: transform .5s;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg); line-height: 1.6; font-weight: 200; }
img { max-width: 100%; height: auto; }
a { color: var(--lime); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

/* Material Icons inline — text-transform:none é CRÍTICO pra ligatures
   funcionarem dentro de botões com text-transform:uppercase do pai. */
.mi {
  font-family: 'Material Icons';
  font-size: 20px;
  font-weight: normal;
  font-style: normal;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-block;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ========================================================================
   Buttons — brutalist, hard shadow
   ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 40px; font-family: var(--font); font-weight: 200;
  font-size: var(--text-sm); letter-spacing: 0.02em;
  cursor: pointer; border: 1px solid var(--white); border-radius: var(--radius);
  transition: var(--transition); min-height: 44px;
  background: transparent; color: var(--white);
}
.btn:hover { transform: scale(1.06); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-r); }
.btn-primary:hover { background: #1a45d4; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }
.btn-danger { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--shadow-r); }
.btn-danger:hover { background: #b80046; }
.btn-success { background: var(--lime); border-color: var(--lime); color: var(--bg); box-shadow: var(--shadow-r); }
.btn-success:hover { background: #bde66a; }
.btn-back { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--shadow-l); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 16px; min-height: 32px; font-size: var(--text-xs); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

/* ========================================================================
   Cards — flat dark, white border
   ======================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.2); }
.card-title { font-size: var(--text-xl); font-weight: 100; margin-bottom: 16px; }

/* ========================================================================
   Inputs — dark bg, white border, thin font
   ======================================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: var(--text-xs); font-weight: 300;
  margin-bottom: 8px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.input {
  background: var(--bg-input); border: 1px solid #fff;
  padding: 15px 20px; font-family: var(--font); font-size: var(--text-sm);
  font-weight: 300; color: var(--text-primary); width: 100%;
  transition: border-color .3s; border-radius: var(--radius);
}
.input:focus { outline: none; border-color: var(--lime); }
.input::placeholder { color: var(--text-muted); }
.input-error { border-color: var(--pink); }
/* Olho de mostrar/ocultar senha (injetado por modules/password-toggle.js) */
.pwd-wrap { position: relative; display: block; width: 100%; }
.pwd-toggle { position: absolute; top: 0; bottom: 0; right: 8px; margin: auto 0; height: 34px; width: 34px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-muted); transition: color .2s; }
.pwd-toggle:hover { color: var(--text-primary); }
.pwd-toggle .mi { font-size: 20px; }
/* Entrada manual do QR (fallback injetado por modules/qr-reader.js) */
.qr-manual { margin-top: 12px; text-align: center; }
.qr-manual-toggle { background: none; border: 0; color: var(--text-secondary); font-size: var(--text-sm); text-decoration: underline; cursor: pointer; padding: 6px; }
.qr-manual-toggle:hover { color: var(--text-primary); }
.qr-manual-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.qr-manual-input { text-transform: uppercase; }
.qr-manual-submit { white-space: nowrap; }
.form-error { color: var(--pink); font-size: var(--text-xs); margin-top: 4px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23646464' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
input[type="datetime-local"].input::-webkit-calendar-picker-indicator,
input[type="date"].input::-webkit-calendar-picker-indicator,
input[type="time"].input::-webkit-calendar-picker-indicator { filter: invert(1) brightness(0.7); cursor: pointer; }

/* ========================================================================
   Stars NPS
   ======================================================================== */
.stars { display: flex; gap: 8px; }
.star { color: var(--text-muted); font-size: 2rem; cursor: pointer; transition: color 200ms; }
.star.active, .star:hover, .star.hover { color: var(--yellow); }

/* ========================================================================
   Status bar
   ======================================================================== */
.status-bar { padding: 4px 12px; font-size: var(--text-xs); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px; }
.status-online { background: var(--color-success-bg); color: var(--color-success); }
.status-offline { background: var(--color-warning-bg); color: var(--color-warning); }
.status-syncing { background: var(--color-info-bg); color: var(--color-info); }

/* ========================================================================
   Progress bar — white border, colored fill
   ======================================================================== */
.progress-bar { width: 100%; height: 8px; border: 1px solid rgba(255,255,255,0.2); padding: 1px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--yellow); transition: width 300ms ease; }
.progress-fill.green { background: var(--lime); }
.progress-fill.yellow { background: var(--yellow); }
.progress-fill.red { background: var(--pink); }

/* ========================================================================
   Offline banner
   ======================================================================== */
.offline-banner { background: var(--color-warning-bg); border: 1px solid rgba(255,195,62,0.3); color: var(--yellow); padding: 12px 16px; font-size: var(--text-sm); }

/* ========================================================================
   Feedback full-screen
   ======================================================================== */
.feedback-screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 9999;
  padding: 32px; text-align: center;
  animation: fbFadeIn .3s ease-out;
  overflow: hidden;
}
@keyframes fbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.feedback-screen .feedback-icon {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; line-height: 1; margin-bottom: 24px;
  position: relative; z-index: 2;
}
.feedback-screen .feedback-name { font-size: var(--text-2xl); font-weight: 600; color: white; margin-bottom: 8px; position: relative; z-index: 2; }
.feedback-screen .feedback-msg  { font-size: var(--text-base); color: rgba(255,255,255,0.7); font-weight: 400; position: relative; z-index: 2; }

/* Ripple rings (via pseudo-elements on the screen) */
.feedback-checkin::before, .feedback-checkin::after,
.feedback-checkout::before, .feedback-checkout::after {
  content: ''; position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}
.feedback-checkin::before, .feedback-checkout::before {
  width: 200px; height: 200px;
  animation: fbRipple .7s ease-out forwards;
}
.feedback-checkin::after, .feedback-checkout::after {
  width: 320px; height: 320px;
  animation: fbRipple .9s .1s ease-out forwards;
}
@keyframes fbRipple {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: .5; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* --- Generic types ---
   Backgrounds 100% opacos: feedback é tela cheia e qualquer transparência
   deixa o QR/listagem vazarem por baixo, gerando ruído visual. */
.feedback-success { background: #0d1f0d; }
.feedback-success .feedback-icon {
  color: #d0f87a; border: 2px solid rgba(208,248,122,0.3);
  background: rgba(208,248,122,0.08);
  animation: fbPopIn .4s cubic-bezier(.34,1.56,.64,1);
}
.feedback-warning { background: #322805; }
.feedback-warning .feedback-icon {
  color: #ffc33e; border: 2px solid rgba(255,193,62,0.3);
  background: rgba(255,193,62,0.08);
  animation: fbPopIn .4s cubic-bezier(.34,1.56,.64,1);
}
.feedback-error { background: #32050f; }
.feedback-error .feedback-icon {
  color: #f87171; border: 2px solid rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.08);
  animation: fbShake .5s ease-out;
}
.feedback-info { background: #0a1432; }
.feedback-info .feedback-icon {
  color: #60a5fa; border: 2px solid rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.08);
  animation: fbPopIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes fbPopIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fbShake {
  0%   { transform: scale(0); opacity: 0; }
  40%  { transform: scale(1.1); opacity: 1; }
  55%  { transform: translateX(-8px) scale(1); }
  70%  { transform: translateX(6px); }
  85%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* --- Checkin: green sweep from left --- */
.feedback-checkin {
  background: radial-gradient(ellipse at 30% 50%, rgba(208,248,122,0.08) 0%, #0d1f0d 60%), #0d1f0d;
}
.feedback-checkin::before { border: 2px solid rgba(208,248,122,0.25); }
.feedback-checkin::after  { border: 2px solid rgba(208,248,122,0.12); }
.feedback-checkin .feedback-icon {
  color: #d0f87a;
  border: 3px solid rgba(208,248,122,0.4);
  background: rgba(208,248,122,0.1);
  animation: fbEnter .5s cubic-bezier(.25,.46,.45,.94) forwards;
  box-shadow: 0 0 40px rgba(208,248,122,0.2), inset 0 0 20px rgba(208,248,122,0.05);
}
@keyframes fbEnter {
  0%   { transform: translateX(-80px) scale(.5); opacity: 0; }
  60%  { transform: translateX(8px) scale(1.05);  opacity: 1; }
  80%  { transform: translateX(-3px) scale(.98); }
  100% { transform: translateX(0) scale(1); }
}

/* --- Checkout: blue sweep from right --- */
.feedback-checkout {
  background: radial-gradient(ellipse at 70% 50%, rgba(96,165,250,0.08) 0%, #0a0c23 60%), #0a0c23;
}
.feedback-checkout::before { border: 2px solid rgba(96,165,250,0.25); }
.feedback-checkout::after  { border: 2px solid rgba(96,165,250,0.12); }
.feedback-checkout .feedback-icon {
  color: #60a5fa;
  border: 3px solid rgba(96,165,250,0.4);
  background: rgba(96,165,250,0.1);
  animation: fbExit .5s cubic-bezier(.25,.46,.45,.94) forwards;
  box-shadow: 0 0 40px rgba(96,165,250,0.2), inset 0 0 20px rgba(96,165,250,0.05);
}
@keyframes fbExit {
  0%   { transform: translateX(80px) scale(.5); opacity: 0; }
  60%  { transform: translateX(-8px) scale(1.05); opacity: 1; }
  80%  { transform: translateX(3px) scale(.98); }
  100% { transform: translateX(0) scale(1); }
}

/* ========================================================================
   Mobile layout
   ======================================================================== */
.mobile-top-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(25,25,33,0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-top-spacer {
  /* Reserva espaço para o fixed header. Altura definida via JS. */
}
.mobile-header {
  color: white; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between;
}
.mobile-header .event-name { font-size: var(--text-lg); color: var(--lime); font-weight: 100; }
.mobile-header .user-name { font-size: var(--text-xs); color: var(--text-secondary); }
.mobile-subheader {
  padding: 12px 16px 0 16px;
}
.mobile-content { padding: 16px; min-height: calc(100vh - 60px); }

/* QR Reader — default global.
   A biblioteca html5-qrcode não usa qrbox aqui (vide qr-reader.js): a detecção
   roda no stream raw, então podemos clipar o vídeo visualmente com overflow
   sem afetar o reconhecimento de QR.
   Em touch devices (mobile/tablet) força 1:1 — câmera entrega portrait, e o
   vídeo é clipado pelo overflow. Em desktop deixa o aspect natural da câmera
   landscape pra não deixar metade do container vazia. */
.qr-container {
  width: 100%;
  max-width: min(280px, 80vw);
  margin: 0 auto;
  border: 2px solid var(--lime);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s;
}
@media (pointer: coarse) {
  .qr-container { aspect-ratio: 1 / 1; }
}
/* Modifier mantido como no-op pra retrocompat com templates que referenciam
   `qr-container-sm`. O default global já é compacto/responsivo. */
.qr-container-sm { /* no-op */ }
body.modo-checkout .qr-container { border-color: #60a5fa; }
/* html5-qrcode: esconde UI interna desnecessária */
#qr-reader img[alt="Info icon"] { display: none !important; }
#qr-reader > div:last-child { display: none !important; }
/* html5-qrcode: esconde os corner markers originais (quadrados) */
#qr-reader [style*="border-width: 2px"] { border: none !important; }

/* ========================================================================
   Admin layout
   ======================================================================== */
.admin-sidebar {
  width: 260px; background: #111118; color: white; height: 100vh;
  padding: 24px 0; position: fixed; left: 0; top: 0;
  border-right: 1px solid rgba(255,255,255,0.06); z-index: 50;
  overflow-y: auto;
}
.admin-sidebar .logo { padding: 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-sidebar .logo h1 { font-size: var(--text-lg); color: var(--lime); font-weight: 100; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 300;
  transition: all .2s; border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(208,248,122,0.04); color: #fff; border-left-color: rgba(208,248,122,0.3); }
.admin-nav a.active { background: rgba(208,248,122,0.06); color: var(--lime); border-left-color: var(--lime); }
.admin-main { margin-left: 260px; padding: 32px; position: relative; flex: 1; min-width: 0; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 40px; font-weight: 100; }

/* Accent highlight in headings */
.accent-lime { color: var(--lime); font-family: var(--font-accent); }
.accent-yellow { color: var(--yellow); font-family: var(--font-accent); }
.accent-blue { color: var(--blue); font-family: var(--font-accent); }

/* ========================================================================
   Dashboard
   ======================================================================== */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 24px; }
.plenaria-card .presentes-num { font-size: var(--text-3xl); font-weight: 100; line-height: 1; color: var(--lime); }
.plenaria-card .sessao-atual { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 8px; }

/* ========================================================================
   Toggle check-in/checkout
   ======================================================================== */
/* Access toggle switch */
.access-toggle { text-align: center; }
.access-toggle-track {
  position: relative; display: flex; width: 100%;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 4px; gap: 0;
}
.access-toggle-slider {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: 9px;
  background: rgba(208,248,122,0.12);
  border: 1px solid rgba(208,248,122,0.35);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .35s, border-color .35s;
  box-shadow: 0 0 16px rgba(208,248,122,0.08);
}
.access-toggle.is-checkout .access-toggle-slider {
  transform: translateX(100%);
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.35);
  box-shadow: 0 0 16px rgba(96,165,250,0.08);
}
.access-toggle-option {
  flex: 1; position: relative; z-index: 2;
  padding: 14px 12px; background: none; border: none;
  font-size: var(--text-sm); font-weight: 600; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); cursor: pointer;
  transition: color .3s;
}
.access-toggle.is-checkin #btn-checkin { color: var(--lime); }
.access-toggle.is-checkout #btn-checkout { color: #60a5fa; }
.access-toggle-label {
  margin-top: 8px; font-size: var(--text-xs);
  color: var(--text-muted); font-weight: 400;
  transition: color .3s;
}
.access-toggle.is-checkin .access-toggle-label { color: rgba(208,248,122,0.5); }
.access-toggle.is-checkout .access-toggle-label { color: rgba(96,165,250,0.5); }

body.modo-checkin { background: var(--color-checkin-bg); }
body.modo-checkout { background: var(--color-checkout-bg); }
body.modo-checkin .mobile-top-fixed, body.modo-checkout .mobile-top-fixed { background: rgba(0,0,0,0.4); }

/* ========================================================================
   Table
   ======================================================================== */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { background: #111118; color: var(--text-secondary); padding: 12px 16px; text-align: left; font-weight: 400; white-space: nowrap; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); font-weight: 300; }
tr:hover { background: rgba(208,248,122,0.02); }

/* ========================================================================
   Badge
   ======================================================================== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: var(--text-xs); font-weight: 400; border: 1px solid; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); border-color: rgba(208,248,122,0.2); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: rgba(255,195,62,0.2); }
.badge-error, .badge-danger { background: var(--color-error-bg); color: var(--color-error); border-color: rgba(221,0,84,0.2); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); border-color: rgba(35,84,242,0.2); }
.badge-neutral { background: rgba(255,255,255,0.03); color: var(--text-secondary); border-color: rgba(255,255,255,0.08); }

/* ========================================================================
   Alert / Toast
   ======================================================================== */
.alert { padding: 12px 16px; margin-bottom: 16px; font-size: var(--text-sm); font-weight: 300; border: 1px solid; }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: rgba(208,248,122,0.2); }
.alert-error { background: rgba(221,0,84,0.15); color: #ff6da0; border-color: rgba(221,0,84,0.4); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: rgba(255,195,62,0.2); }
.alert-info { background: var(--color-info-bg); color: var(--color-info); border-color: rgba(35,84,242,0.2); }

/* ========================================================================
   Page header
   ======================================================================== */
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* ========================================================================
   Utilities
   ======================================================================== */
.d-none { display: none !important; }

/* ========================================================================
   Responsive
   ======================================================================== */
/* Admin mobile hamburger button */
.admin-menu-toggle {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 60;
  background: #111118; border: 1px solid rgba(255,255,255,0.1);
  color: var(--lime); width: 44px; height: 44px; cursor: pointer;
  font-family: 'Material Icons'; font-size: 24px; line-height: 1;
  padding: 0; border-radius: 0;
}
/* Admin mobile backdrop */
.admin-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 45; opacity: 0; transition: opacity .3s;
}
.admin-backdrop.visible { display: block; opacity: 1; }

@media (max-width: 768px) {
  .admin-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .admin-sidebar {
    transform: translateX(-100%); transition: transform .3s ease;
    z-index: 55;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 16px; padding-top: 68px; }
  .btn { min-height: 48px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-header h1 { font-size: 28px; }
}
