/* =============================================================
   Sistema de Check-in · Nutrição Brasil 2026
   IDV: O Novo Corpo — metabólico, mental e muscular
   ============================================================= */

:root {
  --bg: #080014;
  --bg-deep: #04000C;
  --surface: #15102B;
  --surface-2: #1F1A3D;
  --surface-3: #2A2456;
  --ink: #FFFFFF;
  --ink-soft: #B8B2D8;
  --ink-mute: #7A7596;
  --line: #2A2547;
  --line-soft: #1A1532;
  --violet: #A78BFA;
  --violet-deep: #7C5DF5;
  --violet-soft: #C4B5FD;
  --gold: #FFD15C;
  --success: #34D399;
  --success-deep: #10B981;
  --teal: #22D3EE;
  --danger: #F87171;
  --gradient-purple: linear-gradient(135deg, #A78BFA 0%, #7C5DF5 50%, #5B3FD9 100%);
  --gradient-neon: linear-gradient(135deg, #A78BFA 0%, #22D3EE 100%);
  --sticky: rgba(8, 0, 20, 0.92);
  --shadow-md: 0 8px 24px rgba(4, 0, 12, 0.4);
  --shadow-glow: 0 8px 24px rgba(124, 93, 245, 0.4);
}

/* =============================================================
   TEMA CLARO · mesmos nomes de token, valores validados em AA.
   A escolha é a mesma do painel (localStorage nb-tema), então
   quem trocar no painel encontra o app do mesmo jeito.
   ============================================================= */
[data-tema='claro'] {
  color-scheme: light;
  --bg: #f7f5fa;
  --bg-deep: #eeeaf4;
  --surface: #ffffff;
  --surface-2: #f3effa;
  --surface-3: #eae3f4;
  --ink: #16101f;
  --ink-soft: #4a3f5c;
  --ink-mute: #6f6383;
  --line: #e4dced;
  --line-soft: #f0ebf6;
  --violet: #6b2d8b;
  --violet-deep: #5a2475;
  --violet-soft: #8b5fbf;
  --gold: #8a6300;
  --success: #1a7a52;
  --success-deep: #14653f;
  --teal: #0b6d9e;
  --danger: #b4232b;
  --gradient-purple: linear-gradient(135deg, #6b2d8b 0%, #5a2475 50%, #4a1d61 100%);
  --gradient-neon: linear-gradient(135deg, #6b2d8b 0%, #0b6d9e 100%);
  --sticky: rgba(255, 255, 255, .93);
  --shadow-md: 0 6px 20px rgba(22, 16, 31, .08);
  --shadow-glow: 0 6px 20px rgba(107, 45, 139, .18);
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema]) {
    color-scheme: light;
    --bg: #f7f5fa; --bg-deep: #eeeaf4; --surface: #ffffff;
    --surface-2: #f3effa; --surface-3: #eae3f4;
    --ink: #16101f; --ink-soft: #4a3f5c; --ink-mute: #6f6383;
    --line: #e4dced; --line-soft: #f0ebf6;
    --violet: #6b2d8b; --violet-deep: #5a2475; --violet-soft: #8b5fbf;
    --gold: #8a6300; --success: #1a7a52; --success-deep: #14653f;
    --teal: #0b6d9e; --danger: #b4232b;
    --gradient-purple: linear-gradient(135deg, #6b2d8b 0%, #5a2475 50%, #4a1d61 100%);
    --gradient-neon: linear-gradient(135deg, #6b2d8b 0%, #0b6d9e 100%);
    --sticky: rgba(255, 255, 255, .93);
    --shadow-md: 0 6px 20px rgba(22, 16, 31, .08);
    --shadow-glow: 0 6px 20px rgba(107, 45, 139, .18);
  }
}


* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  background-image:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(34, 211, 238, 0.10) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
input, textarea { user-select: text; -webkit-user-select: text; font-family: inherit; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============== LOADING ============== */
.app-loader {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--bg);
  z-index: 9999;
}
.app-loader-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== LOGIN ============== */
.login-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 40px 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-logo { height: 38px; margin-bottom: 28px; }
.login-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.login-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.login-form { text-align: left; display: flex; flex-direction: column; gap: 12px; }

.field-label {
  font-size: 11px;
  color: var(--violet-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
}
.field-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
  background: var(--surface-2);
}
.field-input::placeholder { color: var(--ink-mute); }
.field { margin-bottom: 4px; }

.btn-login {
  width: 100%; height: 54px;
  background: var(--gradient-purple);
  color: #fff; border: none;
  border-radius: 14px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  margin-top: 10px;
}
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-login svg { width: 18px; height: 18px; }

.login-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
.login-error.show { display: block; }

/* ============== EVENTS LIST ============== */
.events-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sticky);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) 0 0;
}
.events-header-inner { padding: 16px 20px; }

.eh-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.eh-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.eh-logo { height: 28px; }
.eh-user { display: flex; align-items: center; gap: 8px; }
.eh-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700; font-size: 13px; color: #fff;
}
.eh-user-info { display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.eh-user-name { font-size: 12px; font-weight: 600; }
.eh-user-role {
  font-size: 10px; color: var(--violet-soft);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.eh-logout {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-soft);
}
.eh-logout svg { width: 16px; height: 16px; }

.eh-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.eh-sub {
  font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}

.events-list { padding: 14px 20px 120px; display: flex; flex-direction: column; gap: 10px; }

.section-head { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.section-head:first-child { padding-top: 6px; }
.section-head-title {
  font-size: 10px; color: var(--violet-soft);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.section-head-line { flex: 1; height: 1px; background: var(--line); }

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}
.event-card:active { transform: scale(0.99); }
.event-card.active-event {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(34, 211, 238, 0.04) 100%);
  border-color: var(--violet);
  box-shadow: 0 8px 32px rgba(124, 93, 245, 0.2);
}
.event-card.encerrado { opacity: 0.55; }

.event-body { padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px; }
.event-date-block {
  flex-shrink: 0; width: 56px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 0;
  overflow: hidden;
}
.event-date-month {
  font-size: 9px; color: var(--violet-soft);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  margin-bottom: 2px;
}
.event-date-day {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1;
}
.event-card.active-event .event-date-block {
  background: var(--gradient-purple);
  border-color: transparent;
}
.event-card.active-event .event-date-month { color: rgba(255, 255, 255, 0.85); }
.event-card.active-event .event-date-day { color: #fff; }

.event-info { flex: 1; min-width: 0; }
.event-city {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-venue {
  font-size: 12px; color: var(--ink-soft);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-stats { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.event-stat { display: flex; flex-direction: column; line-height: 1.1; }
.event-stat-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.event-stat-val.success { color: var(--success); }
.event-stat-label {
  font-size: 9px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  margin-top: 1px;
}
.event-progress {
  margin-top: 8px; height: 4px;
  background: var(--line-soft); border-radius: 99px; overflow: hidden;
}
.event-progress-fill {
  height: 100%; background: var(--gradient-neon);
  border-radius: 99px; box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-status { flex-shrink: 0; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 99px;
}
.status-pill.ativo { background: var(--success-deep); color: #fff; }
.status-pill.ativo::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
.status-pill.embreve { background: var(--surface-3); color: var(--violet-soft); }
.status-pill.encerrado { background: transparent; border: 1px solid var(--line); color: var(--ink-mute); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.event-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(167, 139, 250, 0.08);
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  color: var(--violet-soft);
}
.event-cta-row svg { width: 14px; height: 14px; }
.event-card:not(.active-event) .event-cta-row { display: none; }

.event-admin-actions { display: flex; gap: 6px; }
.event-action-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-soft);
}
.event-action-btn svg { width: 14px; height: 14px; }

/* ============== FAB ============== */
.fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: max(20px, calc((100vw - 680px) / 2 + 20px));
  z-index: 80;
  width: 60px; height: 60px;
  border-radius: 20px;
  background: var(--gradient-purple);
  border: none;
  display: grid; place-items: center;
  cursor: pointer; color: #fff;
  box-shadow: 0 12px 32px rgba(124, 93, 245, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}
.fab:active { transform: scale(0.94); }
.fab svg { width: 24px; height: 24px; }

/* ============== CHECKIN SCREEN ============== */
.checkin-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sticky);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: env(safe-area-inset-top) 0 0;
  border-bottom: 1px solid var(--line);
}
.checkin-header-inner { padding: 14px 20px 12px; }

.ch-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ch-brand-back {
  display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer;
  background: none; border: none; color: inherit;
}
.ch-back-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-soft);
}
.ch-back-btn svg { width: 16px; height: 16px; }
.ch-event-info { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.ch-event-name {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.ch-event-date {
  font-size: 10px; color: var(--violet-soft);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.ch-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ch-icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  transition: all 0.15s ease; color: var(--ink-soft);
}
.ch-icon-btn:active { transform: scale(0.94); background: var(--surface-2); }
.ch-icon-btn svg { width: 18px; height: 18px; }
.ch-icon-btn.accent {
  background: var(--gradient-purple); color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 93, 245, 0.4);
}

.search-wrap { position: relative; }
.search-input {
  width: 100%; height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  padding: 0 16px 0 46px;
  font-size: 15px;
  color: var(--ink); outline: none;
  transition: all 0.15s ease;
}
.search-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
  background: var(--surface-2);
}
.search-input::placeholder { color: var(--ink-mute); }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-mute); pointer-events: none;
}
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border: none; background: transparent;
  display: none; place-items: center;
  cursor: pointer; color: var(--ink-mute); border-radius: 9px;
}
.search-clear.show { display: grid; }
.search-clear svg { width: 16px; height: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 20px 0; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 14px;
  position: relative; overflow: hidden;
}
.stat-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 5px;
}
.stat-value {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat.success .stat-value {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat.violet .stat-value {
  background: var(--gradient-purple);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-track {
  height: 5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; overflow: hidden;
  margin: 10px 20px 0;
}
.progress-fill {
  height: 100%; background: var(--gradient-neon); width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}

.filters {
  display: flex; gap: 6px;
  padding: 14px 20px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.filter:active { transform: scale(0.96); }
.filter.active {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink); font-weight: 600;
}
.filter-count {
  display: inline-block; margin-left: 6px;
  font-size: 11px; opacity: 0.7;
  font-variant-numeric: tabular-nums; font-weight: 500;
}

.list { flex: 1; padding: 0 0 110px; }
.row {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  touch-action: pan-y;
  animation: slideIn 0.25s ease backwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.row-content {
  position: relative;
  padding: 16px 20px;
  background: var(--bg);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  display: flex; align-items: center; gap: 13px;
  min-height: 80px;
}
.row.swiped .row-content { transform: translateX(-118px); }
.row.dragging .row-content { transition: none; }

.row-main { flex: 1; min-width: 0; }
.row-name {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-meta {
  font-size: 12px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px;
}
.lot-tag {
  display: inline-block;
  font-size: 10px; padding: 2px 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--violet-soft);
  font-weight: 500; letter-spacing: 0.02em;
}
.row-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.row-status {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.25s ease;
}
.row.checked .row-status {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.5);
  animation: checkPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes checkPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.row.checked .row-status svg { width: 16px; height: 16px; }
.row:not(.checked) .row-status { border: 1.5px solid var(--line); background: var(--surface); }
.row:not(.checked) .row-status svg { display: none; }
.row.checked .row-name { color: var(--ink-soft); }

.row-action {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 118px;
  display: grid; place-items: center;
  z-index: 1;
  cursor: pointer; color: #fff;
  font-weight: 600; font-size: 12px;
  letter-spacing: -0.01em;
}
.row-action svg { width: 22px; height: 22px; margin-bottom: 5px; }
.row-action-inner { display: flex; flex-direction: column; align-items: center; }
.row:not(.checked) .row-action { background: var(--gradient-purple); }
.row.checked .row-action { background: linear-gradient(135deg, #F87171 0%, #DC2626 100%); }

.list-empty {
  padding: 60px 24px; text-align: center;
}
.list-empty-icon {
  width: 72px; height: 72px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px;
  margin: 0 auto 20px;
  display: grid; place-items: center; color: var(--violet);
}
.list-empty-icon svg { width: 32px; height: 32px; }
.list-empty-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 8px;
}
.list-empty-text { color: var(--ink-soft); font-size: 14px; max-width: 300px; margin: 0 auto 20px; }

.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 0, 20, 0.95) 30%, var(--bg) 100%);
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  pointer-events: none;
}
.bottom-bar-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; gap: 10px;
  pointer-events: auto;
}
.btn-primary {
  flex: 1; height: 56px;
  background: var(--gradient-purple);
  color: #fff; border: none;
  border-radius: 15px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(124, 93, 245, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  width: 56px; height: 56px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all 0.15s ease;
}
.btn-secondary:active { transform: scale(0.94); }
.btn-secondary svg { width: 20px; height: 20px; }

/* ============== MODAL ============== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 0, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 680px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: 24px; max-height: 88vh; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle { width: 44px; height: 5px; background: var(--line); border-radius: 99px; margin: 11px auto 0; }
.modal-header {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: sticky; top: 0;
  background: var(--sticky);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.modal-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em;
}
.modal-close {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-soft);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 20px 20px; }

.form-row { margin-bottom: 16px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.select-status { display: flex; gap: 6px; }
.status-option {
  flex: 1;
  padding: 11px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer; text-align: center;
  transition: all 0.15s ease;
}
.status-option.selected.ativo { background: var(--success-deep); border-color: var(--success-deep); color: #fff; }
.status-option.selected.embreve { background: var(--surface-3); color: var(--violet-soft); border-color: var(--violet); }
.status-option.selected.encerrado { background: var(--bg); border-color: var(--ink-mute); color: var(--ink-mute); }

.template-area {
  width: 100%; min-height: 130px;
  padding: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13px; color: var(--ink);
  outline: none; resize: vertical;
  line-height: 1.5;
}
.template-area:focus { border-color: var(--violet); }

.template-hint {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 10px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.template-hint strong { color: var(--violet-soft); }
.template-hint code {
  background: var(--surface);
  padding: 1px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--violet-soft);
}

.btn-row {
  display: flex; gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.btn-modal {
  flex: 1; height: 52px;
  border: none;
  border-radius: 13px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s ease;
}
.btn-modal:active { transform: scale(0.98); }
.btn-modal:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-modal.primary {
  background: var(--gradient-purple); color: #fff;
  box-shadow: 0 6px 18px rgba(124, 93, 245, 0.35);
}
.btn-modal.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-modal.danger { background: var(--danger); color: #fff; }
.btn-modal svg { width: 16px; height: 16px; }

/* ============== DASHBOARD ============== */
.dash-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 300px; height: 300px;
  background: var(--gradient-purple);
  filter: blur(80px);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero-content { position: relative; z-index: 1; }
.dash-event-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--violet-soft); font-weight: 600; margin-bottom: 6px;
}
.dash-event-name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 18px;
}
.dash-circle-wrap { display: flex; align-items: center; gap: 22px; }
.dash-circle { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.dash-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-circle-bg { fill: none; stroke: var(--line); stroke-width: 8; }
.dash-circle-fill {
  fill: none; stroke: url(#purpleGradient); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6));
}
.dash-circle-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dash-circle-pct {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
}
.dash-circle-label {
  font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500;
  margin-top: 4px;
}
.dash-numbers { flex: 1; min-width: 0; }
.dash-number-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.dash-number-row:last-child { border-bottom: none; }
.dash-number-label { font-size: 13px; color: var(--ink-soft); }
.dash-number-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dash-number-val.success { color: var(--success); }
.dash-number-val.mute { color: var(--ink-mute); }

.dash-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px;
  margin-bottom: 14px;
}
.dash-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-title-text {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.015em;
}
.dash-live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--success);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.dash-live-dot::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px var(--success);
}

.bd-row { padding: 10px 0; }
.bd-row:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.bd-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.bd-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.bd-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bd-count strong { color: var(--ink); font-weight: 600; }
.bd-bar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bd-bar-fill {
  height: 100%; background: var(--gradient-purple);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.act-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.act-row:last-child { border-bottom: none; }
.act-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-purple);
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700; font-size: 13px; color: #fff;
  letter-spacing: -0.02em;
}
.act-info { flex: 1; min-width: 0; }
.act-name {
  font-size: 14px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.act-meta { font-size: 11px; color: var(--ink-mute); margin-top: 1px; }
.act-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--violet-soft);
  font-weight: 500; flex-shrink: 0;
}

.speed-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
}
.speed-row:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.speed-label { font-size: 13px; color: var(--ink-soft); }
.speed-value {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em;
}
.speed-value.violet { color: var(--violet-soft); }

/* ============== IMPORT ============== */
.import-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.import-tab {
  flex: 1; padding: 10px;
  border-radius: 9px; border: none;
  background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.import-tab.active { background: var(--bg); color: var(--ink); }
.import-panel { display: none; }
.import-panel.active { display: block; }

.file-drop {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.file-drop:hover { border-color: var(--violet); background: var(--surface); }
.file-drop-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--violet); }
.file-drop-title { font-weight: 600; margin-bottom: 4px; }
.file-drop-text { font-size: 13px; color: var(--ink-soft); }
.file-drop input { display: none; }

/* ============== TOAST ============== */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-200%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(4, 0, 12, 0.6);
  z-index: 300;
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
  border-color: transparent;
  color: #04200F;
}
.toast.error {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  border-color: transparent;
  color: #fff;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============== NB RUN · CORRIDA ============== */
/* Identidade da corrida: teal (--teal), coerente com o gradient-neon da IDV. */
.race-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--teal);
}
.race-pill.inline {
  font-size: 8px; padding: 2px 7px;
  vertical-align: middle;
  position: relative; top: -1px;
}

/* Chips na linha do corredor (distância · camiseta · nutri · nº peito) */
.race-meta { margin-bottom: 4px; }
.race-chip {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.race-chip.dist {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--teal);
}
.race-chip.shirt {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}
.race-chip.nutri {
  background: rgba(255, 209, 92, 0.12);
  border: 1px solid rgba(255, 209, 92, 0.35);
  color: var(--gold);
}
.race-chip.bib {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
}

/* Fita de contadores de camiseta (retirados/total por tamanho) */
.kit-sizes {
  display: flex; gap: 8px;
  padding: 12px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.kit-sizes::-webkit-scrollbar { display: none; }
.kit-size-chip {
  flex-shrink: 0;
  display: flex; align-items: baseline; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 12px;
}
.kit-size-chip .ks-size {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
}
.kit-size-chip .ks-nums {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.kit-size-chip.done {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}
.kit-size-chip.done .ks-nums { color: var(--success); }

/* ============== NB RUN · PAINEL DO KIT (admin) ============== */
/* Chip de congressista: quem também está inscrito no congresso pai. */
.race-chip.congresso {
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: var(--violet);
}

/* Alerta de ruptura direto na fita de tamanhos */
.kit-size-chip.risk {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}
.kit-size-chip .ks-alert {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--danger);
  margin-left: 2px;
}

/* Abas do painel */
.dash-tabs {
  display: flex; gap: 4px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.dash-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 8px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all 0.16s ease;
}
.dash-tab.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.dash-panel[hidden] { display: none; }

/* Mini gráfico de barras por hora */
.hour-chart {
  display: flex; align-items: flex-end; gap: 6px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.hc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hc-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-soft);
  height: 12px;
}
.hc-bar {
  width: 100%; border-radius: 4px 4px 2px 2px;
  background: var(--gradient-neon);
  min-height: 3px;
}
.hc-bar.empty { background: var(--line); }
.hc-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--ink-mute);
}

/* Caixas de alerta do kit */
.kit-alert {
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.kit-alert.danger { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); }
.kit-alert.ok { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); }
.kit-alert.warn { border-color: rgba(255, 209, 92, 0.35); background: rgba(255, 209, 92, 0.06); }
.kit-alert.compact { padding: 10px 13px; margin-bottom: 0; }
.ka-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 4px;
}
.kit-alert.danger .ka-title { color: var(--danger); }
.kit-alert.ok .ka-title { color: var(--success); }
.kit-alert.warn .ka-title { color: var(--gold); }
.ka-body { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

/* Grade de números do kit */
.kit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.kit-grid.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.kit-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}
.kc-label {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.kc-val {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px; font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kc-val.success { color: var(--success); }
.kc-val.violet { color: var(--violet); }
.kc-val.danger { color: var(--danger); }
.kc-val.mute { color: var(--ink-mute); }
.kc-sub {
  font-size: 10.5px; color: var(--ink-mute);
  margin-top: 5px; line-height: 1.35;
}

/* Linha por tamanho, com barra segmentada */
.kit-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kit-row:last-child { border-bottom: none; }
.kit-row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 7px;
}
.kit-row-size {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 16px; font-weight: 700;
}
.kit-row.risk .kit-row-size { color: var(--danger); }
.kit-row-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.kit-bar {
  display: flex; height: 9px;
  background: var(--line-soft);
  border-radius: 99px; overflow: hidden;
}
.kb-seg { height: 100%; transition: width 0.3s ease; }
.kb-seg.done { background: var(--success); }
.kb-seg.todo { background: var(--violet); }
.kb-seg.miss { background: var(--danger); }
.kit-row-nums {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 8px;
  font-size: 11px; color: var(--ink-mute);
}
.kit-row-nums strong {
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.kit-row-warn {
  margin-top: 7px;
  font-size: 11.5px; font-weight: 600;
  color: var(--danger);
}
.kit-note {
  margin-top: 10px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--ink-soft);
}
.kit-note strong { color: var(--ink); }
.kit-note.mini { font-size: 11.5px; color: var(--ink-mute); margin-top: 12px; }

/* Legenda das barras */
.dash-legend {
  display: flex; align-items: center; gap: 5px;
  font-size: 9.5px; color: var(--ink-mute);
  text-transform: none; letter-spacing: 0;
}
.dash-legend .lg {
  width: 8px; height: 8px; border-radius: 3px;
  display: inline-block;
}
.dash-legend .lg + .lg, .dash-legend .lg { margin-left: 6px; }
.dash-legend .lg.done { background: var(--success); }
.dash-legend .lg.todo { background: var(--violet); }
.dash-legend .lg.miss { background: var(--danger); }
.bd-extra { color: var(--ink-mute); font-weight: 500; }

/* ============== HELPERS ============== */
.hidden { display: none !important; }

/* =============================================================
   EXPOSIÇÃO · credenciamento por empresa
   Alvos grandes, leitura à distância de braço, feita para o balcão.
   ============================================================= */
.expo-modos {
  display: flex; gap: 4px; margin-top: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.expo-modo {
  flex: 1; min-height: 40px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-mute);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s;
}
.expo-modo.on { background: var(--violet-deep); color: #fff; }

.empresa-card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 10px;
  color: var(--ink); font: inherit; cursor: pointer;
  animation: rowIn .28s ease both;
  transition: border-color .15s, transform .1s;
}
.empresa-card:active { transform: scale(.985); }
.empresa-card:hover { border-color: var(--violet); }
.empresa-card.completo { opacity: .62; }
.empresa-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.empresa-nome { font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; }
.empresa-placar {
  font-size: 20px; font-weight: 800; color: var(--gold); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.empresa-placar.ok { color: var(--success); }
.empresa-placar span { font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.empresa-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.empresa-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-soft); padding: 3px 9px; border-radius: 999px;
}
.empresa-chip.codigo { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0; }
.empresa-time { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.empresa-pessoa {
  font-size: 11.5px; font-weight: 600; color: var(--ink-mute);
  background: var(--surface-2); padding: 3px 8px; border-radius: 6px;
}
.empresa-pessoa.ret { color: var(--success); background: rgba(52,211,153,.12); }
.empresa-pessoa.mais { color: var(--violet); }
.empresa-quem { margin-top: 9px; font-size: 12px; color: var(--ink-mute); }

/* ── folha de retirada ─────────────────────────────────────────────── */
.modal.retirada .modal-header { align-items: flex-start; }
.modal-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.ret-secao { margin-bottom: 20px; }
.ret-rotulo {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 9px;
}
.ret-pessoas { display: flex; flex-direction: column; gap: 7px; }
.ret-pessoa {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 14px;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 12px;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.ret-pessoa.on { border-color: var(--violet); background: rgba(167,139,250,.1); }
.ret-box {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px;
  border: 2px solid var(--line-soft); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ret-pessoa.on .ret-box { background: var(--violet-deep); border-color: var(--violet-deep); }
.ret-box svg { width: 15px; height: 15px; }
.ret-info { flex: 1; min-width: 0; }
.ret-nome { display: block; font-size: 15px; font-weight: 600; }
.ret-cargo { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 1px; }
.ret-autor {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--success); background: rgba(52,211,153,.12);
  padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.ret-atalhos { display: flex; gap: 8px; margin-top: 10px; }
.ret-atalho {
  flex: 1; min-height: 38px; background: none; border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink-soft); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer;
}
.ret-feitos { display: flex; flex-wrap: wrap; gap: 6px; }
.ret-feito {
  font-size: 12px; color: var(--success); background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.25); padding: 5px 10px; border-radius: 999px;
}
.ret-feito em { color: var(--ink-mute); font-style: normal; }
.ret-select, .ret-input {
  width: 100%; min-height: 48px; padding: 12px 14px; margin-top: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 15px;
}
.ret-alerta {
  margin-top: 9px; font-size: 12.5px; line-height: 1.45; color: var(--gold);
  background: rgba(255,209,92,.1); border: 1px solid rgba(255,209,92,.28);
  border-radius: 10px; padding: 9px 12px;
}
.modal-foot {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft); background: var(--surface);
  position: sticky; bottom: 0;
}
.btn-retirar {
  width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  background: var(--gradient-purple); color: #fff;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .2px;
  cursor: pointer; box-shadow: var(--shadow-glow);
}
.btn-retirar:disabled { opacity: .4; box-shadow: none; cursor: default; }

/* ── tema dentro do app ────────────────────────────────────────────── */
.tema-app {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 4px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.tema-app-rot { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tema-app-opts { display: flex; gap: 3px; background: var(--surface); border-radius: 999px; padding: 3px; }
.tema-app-opt {
  min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-mute); font: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer;
}
.tema-app-opt.on { background: var(--violet-deep); color: #fff; }

/* ── Fila offline do credenciamento ──────────────────────────────────── */
/* Barra que só existe quando há algo represado. Fica no rodapé porque o
   polegar mora ali e porque o topo já tem busca e filtros. */
.rede-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 16px; width: calc(100% - 24px);
  border: 0; border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 600;
  text-align: center; cursor: pointer; color: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
  animation: redeSobe .22s ease;
}
.rede-bar[hidden] { display: none; }
.rede-bar:disabled { cursor: default; }
.rede-bar.off   { background: #8a6300; }
.rede-bar.sync  { background: #6b2d8b; }
.rede-bar.erro  { background: #b4232b; }
@keyframes redeSobe { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

.rede-bar.sync::before {
  content: ''; width: 13px; height: 13px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: redeGira .8s linear infinite;
}
@keyframes redeGira { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) {
  .rede-bar { animation: none }
  .rede-bar.sync::before { animation: none; border-top-color: rgba(255,255,255,.35) }
}

/* Linha marcada mas ainda não confirmada pelo banco: fica visível que o
   registro está no aparelho, não no sistema. */
.row.pendente-envio { position: relative; }
.row.pendente-envio::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #8a6300; border-radius: 0 2px 2px 0;
}
.pend-tag { color: #8a6300; font-weight: 700; }

/* a lista precisa de espaço para a barra não cobrir a última pessoa */
body:has(.rede-bar:not([hidden])) #list { padding-bottom: 68px; }

/* =============================================================
   LEITOR DE CÓDIGO
   Sobreposição de tela cheia com a câmera. Vive fora do fluxo do
   app: entra por cima de qualquer tela, sai sem redesenhar nada.
   ============================================================= */

/* Botão na barra de busca. Fica cheio, não fantasma, porque numa fila
   ele é a ação principal — quem busca por nome é a exceção agora. */
.search-scan {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border: none; border-radius: 10px;
  background: var(--gradient-purple);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(124, 93, 245, 0.35);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.search-scan:active { transform: translateY(-50%) scale(0.94); }
.search-scan svg { width: 19px; height: 19px; }
/* Abre espaço para os dois botões: o texto digitado não passa por baixo. */
.search-input { padding-right: 92px; }
.search-clear { right: 47px; }

.leitor {
  position: fixed; inset: 0; z-index: 9000;
  background: #000;
  opacity: 0; transition: opacity 0.18s ease;
  overscroll-behavior: contain;
}
.leitor.on { opacity: 1; }

.leitor-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}

/* Escurece tudo menos a janela do meio. É o que faz a pessoa apontar
   para o lugar certo sem instrução escrita. */
.leitor-escuro {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.58);
  -webkit-mask: radial-gradient(circle at center, transparent 0 128px, #000 129px);
          mask: radial-gradient(circle at center, transparent 0 128px, #000 129px);
  pointer-events: none;
}

.leitor-mira {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 232px; height: 232px;
  pointer-events: none;
}
.leitor-mira span {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid var(--violet);
  border-radius: 4px;
}
.leitor-mira span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.leitor-mira span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.leitor-mira span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.leitor-mira span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }

.leitor-topo {
  position: absolute; top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), transparent);
}
.leitor-x, .leitor-luz {
  width: 42px; height: 42px; flex: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.leitor-x svg, .leitor-luz svg { width: 20px; height: 20px; }
.leitor-luz.on { background: var(--gold); border-color: var(--gold); color: #241a00; }
.leitor-conta {
  flex: 1; text-align: center;
  color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.leitor-conta b { color: #fff; font-size: 16px; }

.leitor-dica {
  position: absolute; left: 0; right: 0; top: calc(50% + 150px);
  text-align: center; color: rgba(255,255,255,0.78);
  font-size: 14px; font-weight: 500; padding: 0 30px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

/* Resultado da leitura. Alto contraste e nome grande: é lido de relance,
   com a pessoa em pé na frente do balcão. */
.leitor-aviso {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: 16px;
  background: rgba(10, 6, 22, 0.93);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}
.leitor-aviso.on { opacity: 1; transform: none; }
.leitor-aviso.ok   { border-color: rgba(52, 211, 153, 0.55); }
.leitor-aviso.rep  { border-color: rgba(255, 209, 92, 0.55); }
.leitor-aviso.erro { border-color: rgba(248, 113, 113, 0.55); }
.la-ico {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px; font-weight: 800;
}
.leitor-aviso.ok   .la-ico { background: rgba(52, 211, 153, 0.18); color: var(--success); }
.leitor-aviso.rep  .la-ico { background: rgba(255, 209, 92, 0.18); color: var(--gold); }
.leitor-aviso.erro .la-ico { background: rgba(248, 113, 113, 0.18); color: var(--danger); }
.la-t { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25; }
.la-s { font-size: 13px; color: rgba(255,255,255,0.66); margin-top: 2px; line-height: 1.35; }

.leitor-manual {
  position: absolute; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex; justify-content: center;
}
.leitor-digitar {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 20px; border-radius: 12px; cursor: pointer;
}

/* Câmera negada ou indisponível: explica e devolve para a busca em vez
   de deixar uma tela preta na frente da fila. */
.leitor-falha {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 44px));
  background: rgba(10, 6, 22, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 16px; padding: 22px;
  text-align: center;
}
.lf-t { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.lf-s { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ============== BOTÃO DE LER CÓDIGO (rodapé) ==============
   No balcão, ler o código é a única coisa que a operadora faz o dia
   inteiro. Estava como um ícone de 36 px dentro do campo de busca,
   disputando espaço com o "x" de limpar; agora ocupa a faixa do polegar.
   Importar lista saiu daqui: é uma ação de uma vez por evento e estava
   no lugar mais valioso da tela. */
.btn-ler {
  flex: 1; min-height: 68px;
  background: var(--gradient-purple);
  color: #fff; border: none;
  border-radius: 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(124, 93, 245, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn-ler:active {
  transform: scale(0.975);
  box-shadow: 0 4px 14px rgba(124, 93, 245, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-ler-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center;
}
.btn-ler-ico svg { width: 23px; height: 23px; }
.btn-ler-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btn-ler-txt b {
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.btn-ler-txt small {
  font-size: 12px; font-weight: 500; opacity: 0.78; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============== MENU "MAIS AÇÕES" ==============
   Era uma pilha de botões iguais, e "Limpar TODA a lista" ficava a um
   dedo de "Resetar check-ins". Agora vai em grupos, cada item diz o que
   faz, e as duas ações sem volta moram num cartão vermelho separado. */
.menu-grupo { margin-bottom: 22px; }
.menu-grupo:last-child { margin-bottom: 4px; }
.menu-grupo-rot {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 4px 9px;
}
.menu-item {
  width: 100%;
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  margin-bottom: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: transform 0.13s ease, border-color 0.13s ease;
}
.menu-item:last-child { margin-bottom: 0; }
.menu-item:active { transform: scale(0.985); border-color: var(--violet); }
.menu-item-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--violet);
  display: grid; place-items: center;
}
.menu-item-ico svg { width: 18px; height: 18px; }
.menu-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-item-txt b {
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25;
}
.menu-item-txt small {
  font-size: 12px; font-weight: 400; color: var(--ink-mute);
  line-height: 1.35;
}
.menu-item-seta { flex: none; color: var(--ink-mute); opacity: 0.5; display: grid; place-items: center; }
.menu-item-seta svg { width: 15px; height: 15px; }

/* zona de risco */
.menu-grupo.perigo {
  background: rgba(255, 107, 107, 0.055);
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 16px;
  padding: 13px 12px 12px;
}
.menu-grupo.perigo .menu-grupo-rot { color: #ff6b6b; margin-left: 2px; }
.menu-perigo-aviso {
  font-size: 12px; line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 2px 11px;
}
.menu-item.perigo { border-color: rgba(255, 107, 107, 0.28); }
.menu-item.perigo:active { border-color: #ff6b6b; }
.menu-item.perigo .menu-item-ico { background: rgba(255, 107, 107, 0.14); color: #ff6b6b; }
.menu-item.perigo .menu-item-txt b { color: #ff6b6b; }

/* ---- correções de contraste, medidas e não estimadas ----
   Três coisas reprovaram em 4.5:1 na medição com alpha composto:
   · #ff6b6b no tema claro dá 2.78:1 sobre branco. Vermelho de tema
     escuro não serve para texto em fundo claro.
   · o subtítulo em --ink-mute dá 4.22:1 no escuro. Faltava pouco,
     mas faltava.
   · branco sobre a primeira parada do gradiente (#A78BFA) dá 2.72:1.
     O botão de ler é o mais tocado do app; começa na parada seguinte. */
:root {
  --perigo-txt: #ff6b6b;
  --menu-sub: #9A94B8;                                    /* 6.40:1 */
  --grad-ler: linear-gradient(135deg, #6B4BE0 0%, #5B3FD9 55%, #4E35BE 100%);
}
[data-tema='claro'] {
  --perigo-txt: #a51f1f;                                  /* medido sobre o cartão, não sobre branco */
  --menu-sub: var(--ink-mute);                            /* 5.54:1 */
  --grad-ler: var(--gradient-purple);                     /* 8.85:1 */
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema='escuro']) {
    --perigo-txt: #a51f1f;
    --menu-sub: var(--ink-mute);
    --grad-ler: var(--gradient-purple);
  }
}
.btn-ler { background: var(--grad-ler); }
.menu-item-txt small { color: var(--menu-sub); }
.menu-grupo.perigo .menu-grupo-rot { color: var(--perigo-txt); }
.menu-item.perigo .menu-item-txt b { color: var(--perigo-txt); }
.menu-item.perigo .menu-item-ico { color: var(--perigo-txt); }

/* ============================================================
   BUSCA CRUZADA — credencial que está em outra lista do mesmo evento

   São quatro listas no mesmo prédio nos mesmos dias: congresso,
   visitantes, expositores e corrida. Quem chega sem QR e é de outra
   categoria antes ficava parado no balcão enquanto o operador fechava a
   busca e trocava de aba. Agora aparece aqui, com a categoria à vista, e
   é credenciado no lugar — o registro vai para o evento da pessoa.
   ============================================================ */
.lista-cruzada-aviso {
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.row.cruzada {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg);
}
.row.cruzada .row-main { flex: 1; min-width: 0; }
.row.cruzada .row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row.cruzada .row-code {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.row.cruzada.is-checked .row-name { color: var(--ink-mute); }
.row.cruzada .row-ok {
  font-size: 18px;
  color: #34d399;
  flex: none;
  padding: 0 6px;
}
/* Alvo de toque generoso: é usado com fila na frente e uma mão só. */
.btn-credenciar {
  flex: none;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--violet-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s;
}
.btn-credenciar:active { filter: brightness(.85); }


/* =============================================================
   INSCRIÇÃO INATIVA · reembolso, chargeback, parcelamento parado
   A pessoa continua na lista: sumir seria pior, porque ela aparece
   na porta e ninguém sabe quem é. O que muda é que não credencia.
   Azul, nunca vermelho: o aparelho fica virado para a fila e uma
   pendência de pagamento não é motivo para expor ninguém.
   ============================================================= */
:root {
  --apoio: #22D3EE;
  --apoio-fundo: #0B3D63;
  --apoio-borda: #18719E;
}
[data-tema='claro'] {
  --apoio: #0b6d9e;
  --apoio-fundo: #0B3D63;
  --apoio-borda: #18719E;
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema='escuro']) { --apoio: #0b6d9e; }
}

.inativa-tag {
  display: inline-block;
  font-size: 10px; padding: 2px 7px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid var(--apoio);
  border-radius: 99px;
  color: var(--apoio);
  font-weight: 700; letter-spacing: .02em;
}
.row.inativa .row-name { opacity: .82; }
.row.inativa .row-content { box-shadow: inset 3px 0 0 var(--apoio); }
.row:not(.checked) .row-action.acao-apoio {
  background: linear-gradient(135deg, #18719E 0%, #0B3D63 100%);
}

/* trava de tela: fica até o operador confirmar que leu */
.trava-apoio {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4, 12, 22, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.trava-apoio.on { opacity: 1; }
.ta-caixa {
  width: 100%; max-width: 380px;
  background: var(--apoio-fundo);
  border: 2px solid var(--apoio-borda);
  border-radius: 20px;
  padding: 28px 24px 22px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(4, 12, 22, .55);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.trava-apoio.on .ta-caixa { transform: none; }
.ta-ico {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, .16);
  color: var(--apoio);
}
.ta-ico svg { width: 30px; height: 30px; }
.ta-rot {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--apoio); margin-bottom: 10px;
}
.ta-t { font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.ta-cod {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: rgba(255, 255, 255, .62); margin-bottom: 14px;
}
.ta-s { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .92); margin-bottom: 22px; }
.ta-btn {
  width: 100%; padding: 15px;
  background: var(--apoio); color: #06263B;
  border: none; border-radius: 13px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.ta-btn:active { transform: scale(.98); }

/* aviso azul dentro do leitor de QR */
.leitor-aviso.apoio { background: var(--apoio-fundo); border: 2px solid var(--apoio-borda); }
.leitor-aviso.apoio .la-ico {
  background: var(--apoio); color: #06263B; font-weight: 800;
}
.leitor-aviso.apoio .la-t, .leitor-aviso.apoio .la-s { color: #fff; }
.leitor-aviso.travado { flex-wrap: wrap; }
.la-btn {
  flex: 1 0 100%; margin-top: 12px; padding: 13px;
  background: var(--apoio); color: #06263B;
  border: none; border-radius: 11px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.la-btn:active { transform: scale(.98); }
