/* =========================================================================
   Sandim R15 Store — brand-base
   Bootstrap 5.3 + Bootstrap Icons + Figtree
   Tema: <html data-bs-theme="light"> ou <html data-bs-theme="dark">
   Todas as cores vêm das variáveis --ap-* abaixo. Não use cores soltas.
   ========================================================================= */

/* ---------- 1. TOKENS — TEMA CLARO ---------- */
:root,
[data-bs-theme="light"] {
  --ap-bg: #FFFFFF;
  --ap-text: #111111;
  --ap-muted: #6B6B6B;
  --ap-answer: #4A4A4A;          /* texto das respostas do FAQ */
  --ap-surface: #F5F5F5;         /* caixas cinza (stepper, listas, cards) */
  --ap-surface-2: #EDEDED;       /* miniaturas / placeholders de imagem */
  --ap-hero: #F2F2F2;            /* área da foto principal */
  --ap-border: #EBEBEB;          /* linhas divisórias */
  --ap-border-strong: #D9D9D9;   /* borda de input / botão contorno */
  --ap-chip-border: #E3E3E3;     /* borda dos botões +10 +50 */
  --ap-input-bg: #FFFFFF;
  --ap-input-focus: #111111;     /* borda 2px do input em foco */
  --ap-seg-bg: #F2F2F2;          /* fundo do controle segmentado */
  --ap-seg-active: #FFFFFF;      /* aba ativa do segmentado */
  --ap-seg-shadow: 0 1px 2px rgba(0,0,0,.10);
  --ap-dot-off: #C4C4C4;         /* bolinhas do carrossel */
  --ap-dot-on: #111111;
  --ap-overlay: rgba(17,17,17,.45);

  --ap-brand: #0A78B6;           /* azul Sandim R15 (contraste 4.8:1 com branco) */
  --ap-on-brand: #FFFFFF;
  --ap-brand-soft: #E6F6FD;      /* fundo de aviso azul */
  --ap-brand-soft-text: #075985;

  --ap-success: #0A7C4A;
  --ap-success-soft: #E8F7EE;
  --ap-success-border: #BFE6CF;
  --ap-success-soft-text: #2F5D44;

  --ap-warn: #8A5A00;            /* texto "Pendente" */
  --ap-warn-dot: #E6A100;        /* bolinha "aguardando pagamento" */
  --ap-warn-soft: #FFF6DB;
  --ap-warn-soft-text: #5C4200;
  --ap-warn-dashed: #C9A23A;     /* borda tracejada do número reservado */
  --ap-warn-number-bg: #FFFBEF;

  --ap-danger: #C62828;

  --ap-wa: #25D366;              /* verde WhatsApp (igual nos dois temas) */
  --ap-on-wa: #052E16;
}

/* ---------- 2. TOKENS — TEMA ESCURO ---------- */
[data-bs-theme="dark"] {
  --ap-bg: #0B0B0D;             /* mesmo preto do Sandim R15 Store */
  --ap-text: #F5F5F5;
  --ap-muted: #A0A0A0;
  --ap-answer: #C4C4C4;
  --ap-surface: #1C1C1E;
  --ap-surface-2: #2C2C2E;
  --ap-hero: #1C1C1E;
  --ap-border: #2C2C2E;
  --ap-border-strong: #3A3A3C;
  --ap-chip-border: #333335;
  --ap-input-bg: #1C1C1E;
  --ap-input-focus: #F5F5F5;
  --ap-seg-bg: #1C1C1E;
  --ap-seg-active: #3A3A3C;
  --ap-seg-shadow: none;
  --ap-dot-off: #4A4A4C;
  --ap-dot-on: #F5F5F5;
  --ap-overlay: rgba(0,0,0,.60);

  --ap-brand: #16B2ED;           /* azul vivo no escuro — texto branco em cima */
  --ap-on-brand: #04121C;        /* texto escuro sobre o ciano no tema escuro (7.9:1) */
  --ap-brand-soft: #062233;
  --ap-brand-soft-text: #8FD8F7;

  --ap-success: #3DD68C;
  --ap-success-soft: #10241A;
  --ap-success-border: #1E4A33;
  --ap-success-soft-text: #B8C9BF;

  --ap-warn: #F5B400;
  --ap-warn-dot: #F5B400;
  --ap-warn-soft: #261E08;
  --ap-warn-soft-text: #F3D98B;
  --ap-warn-dashed: #8C6C14;
  --ap-warn-number-bg: #17140B;

  --ap-danger: #FF8A80;
}

/* ---------- 3. ESCALAS FIXAS (iguais nos dois temas) ---------- */
:root {
  --ap-font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ap-gutter: 20px;             /* margem lateral de todas as telas */
  --ap-app-max: 480px;           /* largura máxima do "app" no desktop */
  --ap-r-btn: 14px;
  --ap-r-card: 16px;
  --ap-r-input: 12px;
  --ap-r-chip: 12px;
  --ap-r-pill: 999px;
  --ap-h-btn: 56px;
  --ap-h-input: 52px;
  --ap-h-header: 56px;
  --ap-h-tabbar: 76px;
}

/* ---------- 4. OVERRIDES DO BOOTSTRAP ---------- */
[data-bs-theme] {
  --bs-body-font-family: var(--ap-font);
  --bs-body-bg: var(--ap-bg);
  --bs-body-color: var(--ap-text);
  --bs-border-color: var(--ap-border);
  --bs-secondary-color: var(--ap-muted);
  --bs-link-color: var(--ap-text);
  --bs-link-color-rgb: inherit;
  --bs-link-hover-color: var(--ap-brand);
}
html, body { background: var(--ap-bg); }
body {
  margin: 0;
  font-family: var(--ap-font);
  font-size: 16px;
  color: var(--ap-text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ap-text); }
a:hover { color: var(--ap-brand); }
h1, h2, h3, p { margin: 0; }
.text-muted, .ap-muted { color: var(--ap-muted) !important; }

/* ---------- 5. CASCA DO APP ---------- */
.ap-app {
  max-width: var(--ap-app-max);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--ap-bg);
}
.ap-main { padding: 20px var(--ap-gutter) 140px; }
.ap-main--tabbar { padding-bottom: calc(var(--ap-h-tabbar) + 24px); }

/* ---------- 6. TOPO ---------- */
.ap-header {
  height: var(--ap-h-header);
  padding: 0 var(--ap-gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.ap-header--nav {               /* voltar | título | vazio */
  padding: 0 8px;
  display: grid; grid-template-columns: 44px minmax(0,1fr) 44px;
}
.ap-header__title { text-align: center; font-size: 16px; font-weight: 700; }
.ap-page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ap-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--ap-text); }
.ap-logo--lg { font-size: 28px; }
.ap-logo { display: inline-flex; align-items: center; gap: 8px; }
.ap-logo__word { display: inline-block; white-space: nowrap; letter-spacing: inherit; }
.ap-logo__word > span { color: var(--ap-brand); margin: 0; padding: 0; }
.ap-logo b { color: var(--ap-brand); font-weight: 800; }
/* Selo redondo do logo: mostra a foto em assets/img/logo.jpg; sem a foto, mostra a letra S */
.ap-logo__mark { position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--ap-brand); color: var(--ap-on-brand); font-size: 16px; font-weight: 800; letter-spacing: 0; }
.ap-logo__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-logo--lg .ap-logo__mark { width: 44px; height: 44px; font-size: 21px; }
.ap-icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ap-text);
  font-size: 20px; text-decoration: none; padding: 0;
}
.ap-icon-btn--muted { color: var(--ap-muted); }
.ap-header__link { height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- 7. TIPOGRAFIA ---------- */
.ap-h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.ap-h1--xl { font-size: 30px; line-height: 1.12; }
.ap-h1--md { font-size: 24px; }
.ap-h2 { font-size: 18px; font-weight: 700; }
.ap-h2--sm { font-size: 17px; }
.ap-lead { font-size: 16px; line-height: 1.45; color: var(--ap-muted); }
.ap-small { font-size: 14px; }
.ap-xs { font-size: 13px; }
.ap-xxs { font-size: 12px; }
.ap-eyebrow { font-size: 15px; font-weight: 700; color: var(--ap-success); }
.ap-cap { font-size: 13px; font-weight: 600; color: var(--ap-muted); margin-top: 24px; }

/* ---------- 8. BOTÕES ---------- */
.ap-btn {
  height: var(--ap-h-btn);
  width: 100%;
  border-radius: var(--ap-r-btn);
  border: 0;
  font-family: var(--ap-font);
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.ap-btn:active { transform: scale(.99); }
.ap-btn:hover { filter: brightness(1.05); }
.ap-btn--primary { background: var(--ap-brand); color: var(--ap-on-brand); }
.ap-btn--primary:hover { color: var(--ap-on-brand); }
.ap-btn--wa { background: var(--ap-wa); color: var(--ap-on-wa); font-weight: 800; }
.ap-btn--wa:hover { color: var(--ap-on-wa); }
.ap-btn--outline { background: transparent; color: var(--ap-text); border: 1px solid var(--ap-border-strong); height: 52px; font-size: 16px; }
.ap-btn--ghost { background: transparent; color: var(--ap-text); height: 48px; font-size: 15px; font-weight: 600; text-decoration: underline; }
.ap-btn--sm { height: 48px; border-radius: 12px; font-size: 16px; }
.ap-btn--xs { height: 40px; width: auto; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.ap-btn--danger-text { background: transparent; color: var(--ap-danger); height: 52px; font-size: 15px; font-weight: 600; }
.ap-pill-btn {                  /* "Ver vídeo" sobre a foto */
  height: 40px; padding: 0 16px; border: 0; border-radius: var(--ap-r-pill);
  background: #FFFFFF; color: #111111; font: 600 14px var(--ap-font);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
[data-bs-theme="dark"] .ap-pill-btn { background: #F5F5F5; color: #0F0F10; box-shadow: none; }

/* ---------- 9. HERO / CARROSSEL ---------- */
.ap-hero { position: relative; aspect-ratio: 1 / 1; background: var(--ap-hero); overflow: hidden; }
.ap-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-hero__play { position: absolute; left: 16px; bottom: 16px; }
.ap-hero__dots { position: absolute; right: 16px; bottom: 28px; display: flex; gap: 5px; }
.ap-hero__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ap-dot-off); }
.ap-hero__dots span.is-active { background: var(--ap-dot-on); }

/* ---------- 10. PROGRESSO ---------- */
.ap-progress { height: 6px; border-radius: var(--ap-r-pill); background: var(--ap-surface-2); overflow: hidden; }
[data-bs-theme="light"] .ap-progress { background: #EFEFEF; }
.ap-progress__bar { height: 100%; background: var(--ap-brand); border-radius: inherit; }
.ap-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.ap-steps span { height: 4px; border-radius: 2px; background: var(--ap-border); }
.ap-steps span.is-done { background: var(--ap-brand); }

/* ---------- 11. QUANTIDADE ---------- */
.ap-adds { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.ap-add {
  height: 48px; border: 1px solid var(--ap-chip-border); border-radius: var(--ap-r-chip);
  background: var(--ap-bg); color: var(--ap-text);
  font: 700 16px var(--ap-font); cursor: pointer;
}
.ap-add--sm { height: 44px; border-radius: 10px; font-size: 15px; }
.ap-add:hover { border-color: var(--ap-brand); }
.ap-qty {
  height: 56px; border-radius: var(--ap-r-chip); background: var(--ap-surface);
  display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; align-items: center;
}
.ap-qty button { height: 56px; border: 0; background: transparent; color: var(--ap-text); font-size: 24px; cursor: pointer; }
.ap-qty output { text-align: center; font-size: 22px; font-weight: 800; }
.ap-nudge {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: var(--ap-r-chip);
  background: var(--ap-brand-soft); color: var(--ap-brand-soft-text);
  font: 600 14px var(--ap-font); text-align: left; cursor: pointer;
}
.ap-unit { font-size: 14px; font-weight: 600; color: var(--ap-muted); }
.ap-unit.is-discount { color: var(--ap-success); }

/* ---------- 12. LISTAS, LINHAS E CARDS ---------- */
.ap-rowlink {                   /* linha com borda em cima/baixo e seta › */
  padding: 16px 0; border-top: 1px solid var(--ap-border); border-bottom: 1px solid var(--ap-border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ap-text);
}
.ap-rowlink__title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.ap-rowlink__sub { font-size: 14px; color: var(--ap-muted); }
.ap-chev { font-size: 20px; color: var(--ap-muted); }
.ap-chev--brand { color: var(--ap-brand); }

.ap-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; }
.ap-line--total { padding-top: 12px; font-size: 18px; font-weight: 800; }
.ap-info { border-top: 1px solid var(--ap-border); }
.ap-info__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ap-border); font-size: 15px; }
.ap-info__row > span:first-child { color: var(--ap-muted); }

.ap-group { margin-top: 12px; border-radius: var(--ap-r-card); background: var(--ap-surface); overflow: hidden; }
.ap-group__item {
  min-height: 56px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; text-decoration: none; color: var(--ap-text);
  border-bottom: 1px solid var(--ap-border);
}
.ap-group__item:last-child { border-bottom: 0; }

.ap-campaign {                  /* card de campanha em Meus bilhetes */
  padding: 14px; border-radius: var(--ap-r-card); background: var(--ap-surface);
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ap-text);
}
.ap-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--ap-surface-2); flex: none; object-fit: cover; }
.ap-campaign .ap-thumb { background: var(--ap-border-strong); }
[data-bs-theme="light"] .ap-campaign .ap-thumb { background: #E3E3E3; }
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ap-stat { padding: 14px 10px; border-radius: 14px; background: var(--ap-surface); min-width: 0; }
.ap-stat__value { font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ap-stat__label { font-size: 12px; color: var(--ap-muted); margin-top: 2px; }
.ap-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ap-brand-soft); color: var(--ap-brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
[data-bs-theme="dark"] .ap-avatar { background: var(--ap-surface-2); }
.ap-winners { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ap-winner {
  aspect-ratio: 3 / 4; border-radius: 12px; background: var(--ap-hero);
  display: flex; align-items: flex-end; padding: 8px; font-size: 12px; font-weight: 600;
  background-size: cover; background-position: center;
}

/* ---------- 13. NÚMEROS DOS BILHETES ---------- */
.ap-numbers { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.ap-number {
  padding: 10px 0; border-radius: 10px; background: var(--ap-surface);
  font-size: 15px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.ap-number--reserved { background: var(--ap-warn-number-bg); border: 1px dashed var(--ap-warn-dashed); }

/* ---------- 14. AVISOS ---------- */
.ap-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.ap-alert--sm { font-size: 13px; line-height: 1.5; }
.ap-alert--warn { background: var(--ap-warn-soft); color: var(--ap-warn-soft-text); }
.ap-alert--brand { background: var(--ap-brand-soft); color: var(--ap-brand-soft-text); }
.ap-pending {                   /* faixa "Pix pendente" em Meus bilhetes */
  padding: 14px 16px; border-radius: 14px; background: var(--ap-brand-soft);
  display: flex; align-items: center; gap: 12px;
}
.ap-pending__sub { font-size: 14px; color: var(--ap-brand-soft-text); margin-top: 2px; }
[data-bs-theme="dark"] .ap-pending__sub { color: #FFC79E; }
.ap-status { padding: 16px; border-radius: 14px; background: var(--ap-surface); display: flex; gap: 12px; align-items: center; }
.ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ap-warn-dot); flex: none; }
.ap-text-warn { color: var(--ap-warn) !important; }
.ap-text-success { color: var(--ap-success) !important; }
.ap-text-brand { color: var(--ap-brand) !important; }

.ap-group-card {                /* "Último passo: entre no grupo" */
  padding: 20px; border-radius: 18px;
  background: var(--ap-success-soft); border: 1px solid var(--ap-success-border);
}
.ap-group-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--ap-success-soft-text); }

/* ---------- 15. FORMULÁRIOS ---------- */
.ap-label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.ap-input {
  width: 100%; height: var(--ap-h-input); padding: 0 16px;
  border: 1px solid var(--ap-border-strong); border-radius: var(--ap-r-input);
  background: var(--ap-input-bg); color: var(--ap-text);
  font: 400 16px var(--ap-font); outline: 0;
}
.ap-input::placeholder { color: var(--ap-muted); }
.ap-input:focus { border: 2px solid var(--ap-input-focus); padding: 0 15px; }
.ap-phone {
  display: flex; height: var(--ap-h-input); overflow: hidden;
  border: 1px solid var(--ap-border-strong); border-radius: var(--ap-r-input); background: var(--ap-input-bg);
}
.ap-phone:focus-within { border: 2px solid var(--ap-input-focus); }
.ap-phone__ddi { padding: 0 12px 0 16px; display: flex; align-items: center; font-size: 16px; color: var(--ap-muted); border-right: 1px solid var(--ap-border-strong); }
.ap-phone input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ap-text); font: 400 16px var(--ap-font); }
.ap-phone--lg { height: 56px; }
.ap-phone--lg .ap-phone__ddi, .ap-phone--lg input { font-size: 17px; }
.ap-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ap-surface); }
.ap-search i { color: var(--ap-muted); }
.ap-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ap-text); font: 400 16px var(--ap-font); }

/* ---------- 16. CONTROLE SEGMENTADO ---------- */
.ap-seg { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 4px; border-radius: 12px; background: var(--ap-seg-bg); }
.ap-seg a, .ap-seg button {
  height: 40px; border: 0; border-radius: 9px; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-muted); font: 600 14px var(--ap-font); text-decoration: none;
}
.ap-seg .is-active { background: var(--ap-seg-active); color: var(--ap-text); font-weight: 700; box-shadow: var(--ap-seg-shadow); }

/* ---------- 17. FAQ ---------- */
.ap-faq details { border-bottom: 1px solid var(--ap-border); }
.ap-faq summary {
  min-height: 56px; list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; font-weight: 600;
}
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary i { color: var(--ap-muted); transition: transform .2s ease; }
.ap-faq details[open] summary i { transform: rotate(180deg); }
.ap-faq p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ap-answer); }

/* ---------- 18. BARRAS FIXAS ---------- */
.ap-sticky {                    /* rodapé com total + botão */
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--ap-app-max);
  padding: 12px var(--ap-gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ap-bg); border-top: 1px solid var(--ap-border); z-index: 20;
}
.ap-sticky--buy { display: flex; align-items: center; gap: 16px; }
.ap-sticky__total { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

.ap-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--ap-app-max);
  height: calc(var(--ap-h-tabbar) + env(safe-area-inset-bottom));
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  background: var(--ap-bg); border-top: 1px solid var(--ap-border); z-index: 20;
}
.ap-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--ap-muted); font-size: 11px; font-weight: 600;
}
.ap-tabbar a i { font-size: 22px; line-height: 1; }
.ap-tabbar a.is-active { color: var(--ap-brand); font-weight: 700; }

/* ---------- 19. BOTTOM SHEET (opcional) ---------- */
.ap-sheet-backdrop { position: fixed; inset: 0; background: var(--ap-overlay); z-index: 30; }
.ap-sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--ap-app-max);
  padding: 10px var(--ap-gutter) 28px; border-radius: 24px 24px 0 0;
  background: var(--ap-bg); z-index: 31;
}
[data-bs-theme="dark"] .ap-sheet { background: var(--ap-surface); }
.ap-sheet__grip { width: 40px; height: 4px; margin: 0 auto 18px; border-radius: 2px; background: var(--ap-border-strong); }

/* ---------- 20. ESTADO VAZIO / EM BREVE ---------- */
.ap-empty { padding: 72px 28px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ap-empty__icon {
  width: 72px; height: 72px; border-radius: 22px;
  background: var(--ap-brand-soft); color: var(--ap-brand);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.ap-badge { padding: 6px 12px; border-radius: var(--ap-r-pill); background: var(--ap-surface); font-size: 13px; font-weight: 700; }
.ap-dashed-box { padding: 18px; border-radius: var(--ap-r-card); border: 1px dashed var(--ap-border-strong); text-align: center; }

/* ---------- 21. TOAST ---------- */
.ap-toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  padding: 12px 18px; border-radius: 12px; background: var(--ap-text); color: var(--ap-bg);
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 50;
}
.ap-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 22. ACESSIBILIDADE ---------- */
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ap-brand); outline-offset: 2px; }

/* =========================================================================
   23. VERSÃO PC (≥ 992px — breakpoint "lg" do Bootstrap)
   Abaixo de 992px nada muda: é exatamente o layout mobile.
   ========================================================================= */

/* --- Menu do topo (só aparece no PC: classe d-none d-lg-block no HTML) --- */
.ap-topnav { position: sticky; top: 0; z-index: 40; background: var(--ap-bg); border-bottom: 1px solid var(--ap-border); }
.ap-topnav__in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 48px; }
.ap-topnav .ap-logo { font-size: 22px; }
.ap-topnav__links { display: flex; gap: 32px; flex: 1; height: 100%; }
.ap-topnav__links a {
  height: 100%; display: flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--ap-muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ap-topnav__links a:hover { color: var(--ap-text); }
.ap-topnav__links a.is-active { color: var(--ap-text); border-bottom-color: var(--ap-brand); }
.ap-topnav__user { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ap-text); }
.ap-avatar--sm { width: 36px; height: 36px; font-size: 13px; }
.ap-topnav__secure { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ap-success); }

/* --- Página da campanha: 3 blocos que viram 2 colunas no PC --- */
.ap-cg__panel { padding: 20px var(--ap-gutter) 0; }
.ap-cg__details { padding: 0 var(--ap-gutter) 140px; }

/* --- Cards que só existem no PC --- */
.ap-summary {                  /* resumo do pedido à direita no checkout */
  border: 1px solid var(--ap-border); border-radius: 20px; padding: 24px;
  position: sticky; top: 104px;
}
.ap-steps-labels { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ap-muted); }
.ap-steps-labels .is-done { color: var(--ap-text); }
.ap-qr-desk {                  /* QR Code grande no Pix (PC) */
  padding: 28px; border-radius: 20px; background: var(--ap-surface);
  flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.ap-qr-desk__img { width: 220px; height: 220px; border-radius: 12px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: #52525B; font-size: 13px; }
.ap-aside-card { border: 1px solid var(--ap-border); border-radius: 20px; padding: 24px; }

@media (min-width: 992px) {
  .ap-app { max-width: 1200px; padding: 0 32px; }
  .ap-tabbar { display: none; }
  .ap-main { padding: 32px 0 80px; }
  .ap-main--tabbar { padding-bottom: 80px; }

  /* Cabeçalho interno da página vira título grande alinhado à esquerda */
  .ap-header { padding: 0; height: auto; margin-top: 40px; }
  .ap-header--nav { grid-template-columns: 44px auto; justify-content: start; gap: 4px; margin-left: -12px; }
  .ap-header__title { text-align: left; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
  .ap-page-title { font-size: 32px; }

  /* Rodapé fixo vira bloco normal dentro do conteúdo */
  .ap-sticky { position: static; transform: none; width: auto; max-width: none; padding: 0; border: 0; background: transparent; margin-top: 28px; }
  .ap-toast { bottom: 40px; }

  /* Larguras de conteúdo */
  .ap-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
  .ap-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }

  /* Campanha */
  .ap-cg {
    display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); column-gap: 56px;
    grid-template-areas: "hero panel" "details panel"; align-items: start;
    padding: 40px 0 80px;
  }
  .ap-cg__hero { grid-area: hero; }
  .ap-cg__panel { grid-area: panel; position: sticky; top: 104px; padding: 32px; border: 1px solid var(--ap-border); border-radius: 24px; }
  .ap-cg__details { grid-area: details; padding: 40px 0 0; }
  .ap-cg .ap-hero { aspect-ratio: 4 / 3; border-radius: 24px; }
  .ap-cg .ap-h1 { font-size: 40px; }
  .ap-cg .ap-winners { gap: 16px; }
  .ap-sticky--buy { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ap-border); }
  .ap-sticky--buy .ap-btn { height: 60px; font-size: 18px; }

  /* Checkout */
  .ap-checkout { max-width: 1040px; margin: 0 auto; }
  .ap-checkout.ap-narrow { max-width: 640px; }
  .ap-split { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 56px; align-items: start; }
  .ap-steps-wrap { padding: 24px 0 0 !important; }

  /* Números do bilhete: 6 por linha */
  .ap-numbers { grid-template-columns: repeat(6, minmax(0,1fr)); }

  /* Meus bilhetes: cards em 2 colunas */
  .ap-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .ap-cards > * { margin-top: 0 !important; }

  /* Perfil: coluna do usuário + coluna das opções */
  .ap-profile { display: grid; grid-template-columns: 400px minmax(0,1fr); gap: 48px; align-items: start; }
  .ap-stat__value { font-size: 18px; }
  .ap-profile__card { border: 1px solid var(--ap-border); border-radius: 20px; padding: 28px; }
  .ap-profile .ap-cap:first-child { margin-top: 0; }

  /* Ajuda: FAQ + lateral */
  .ap-help { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
  .ap-help aside { position: sticky; top: 104px; }

  /* Entrar: cartão centralizado */
  .ap-auth { max-width: 460px; margin: 64px auto; border: 1px solid var(--ap-border); border-radius: 24px; padding: 40px !important; }
  .ap-auth-note { max-width: 460px; margin: 0 auto; }

  /* Comunidade */
  .ap-empty { max-width: 520px; margin: 0 auto; padding-top: 96px; }

  /* Controle segmentado não estica no PC */
  .ap-seg { max-width: 420px; }
  .ap-col-640 { max-width: 640px; }
}

/* =========================================================================
   24. CARREGAMENTO PROFISSIONAL
   - Tela de abertura (.ap-splash): só na 1ª visita da sessão (ou ?splash=1)
   - Barra azul no topo durante a navegação (.ap-progressbar), estilo YouTube
   - Skeleton com brilho: qualquer elemento com [data-sk] vira bloco cinza
     animado enquanto <html> tiver a classe .ap-loading
   - Imagens lazy com fade-in (.ap-media + img.ap-img)
   - Botão carregando (.ap-btn.is-loading)
   - Transição suave entre páginas (View Transitions API)
   Tudo respeita prefers-reduced-motion.
   ========================================================================= */
:root, [data-bs-theme="light"] { --ap-skel: #ECECEC; --ap-skel-shine: rgba(255,255,255,.65); }
[data-bs-theme="dark"] { --ap-skel: #232325; --ap-skel-shine: rgba(255,255,255,.06); }

@keyframes ap-shimmer { 100% { transform: translateX(100%); } }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-indeterminate { 0% { left: -40%; width: 40%; } 60% { left: 100%; width: 40%; } 100% { left: 100%; width: 40%; } }
@keyframes ap-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ap-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- 24.1 Tela de abertura --- */
.ap-splash { display: none; }
.ap-first .ap-splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--ap-bg);
  transition: opacity .4s ease, visibility .4s ease;
}
.ap-splash.is-hidden { opacity: 0; visibility: hidden; }
.ap-splash__logo { font: 800 44px/1 var(--ap-font); letter-spacing: -0.03em; color: var(--ap-text); animation: ap-rise .5s ease both; }
.ap-splash__logo { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 30px; }
.ap-splash__logo b { color: var(--ap-brand); }
.ap-logo__txt b { color: var(--ap-brand); font-weight: 800; }
.ap-splash__logo .ap-logo__mark { width: 72px; height: 72px; font-size: 32px; animation: ap-pulse 1.4s ease-in-out infinite; }
@keyframes ap-pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ap-brand) 45%, transparent); } 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--ap-brand) 0%, transparent); } }
.ap-splash__bar { position: relative; width: 140px; height: 3px; border-radius: 3px; background: var(--ap-skel); overflow: hidden; }
.ap-splash__bar::after { content: ""; position: absolute; top: 0; height: 100%; border-radius: 3px; background: var(--ap-brand); animation: ap-indeterminate 1.1s cubic-bezier(.4,0,.2,1) infinite; }
.ap-splash__tag { font-size: 13px; font-weight: 600; color: var(--ap-muted); letter-spacing: .02em; animation: ap-rise .5s .1s ease both; }

/* --- 24.2 Barra de progresso no topo (navegação) --- */
.ap-progressbar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: var(--ap-brand); box-shadow: 0 0 10px var(--ap-brand), 0 0 4px var(--ap-brand);
  transition: width .25s ease, opacity .3s ease;
}
.ap-progressbar.is-active { opacity: 1; }

/* --- 24.3 Skeleton ---
   Uso: coloque data-sk em blocos (título, parágrafo, card, foto, número).
   Enquanto <html class="ap-loading">, eles viram placeholders com brilho. */
.ap-loading [data-sk] {
  position: relative; overflow: hidden;
  color: transparent !important; background: var(--ap-skel) !important;
  border-color: transparent !important; box-shadow: none !important;
  border-radius: 10px; user-select: none; pointer-events: none;
}
.ap-loading [data-sk] * { visibility: hidden !important; }
.ap-loading [data-sk]::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--ap-skel-shine), transparent);
  animation: ap-shimmer 1.3s ease-in-out infinite;
}
.ap-loading p[data-sk], .ap-loading h1[data-sk], .ap-loading h2[data-sk] { border-radius: 6px; width: fit-content; max-width: 100%; }
.ap-loading .text-center[data-sk] { margin-left: auto; margin-right: auto; }
/* Ao terminar, o conteúdo aparece com um fade curto */
.ap-ready [data-sk] { animation: ap-rise .35s ease both; }

/* --- 24.4 Imagens: lazy + fade-in --- */
.ap-media { position: relative; overflow: hidden; background: var(--ap-skel); }
.ap-media:not(.is-loaded)::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--ap-skel-shine), transparent);
  animation: ap-shimmer 1.3s ease-in-out infinite;
}
.ap-media.is-empty::after { display: none; }      /* placeholder sem imagem (protótipo) */
.ap-media.is-empty { background: var(--ap-hero); }
.ap-img { opacity: 0; transition: opacity .45s ease; }
.ap-img.is-loaded { opacity: 1; }

/* --- 24.5 Botão carregando --- */
.ap-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ap-btn.is-loading i { visibility: hidden; }
.ap-btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid var(--ap-on-brand); border-right-color: transparent;
  animation: ap-spin .7s linear infinite;
}
.ap-btn--wa.is-loading::after { border-color: var(--ap-on-wa); border-right-color: transparent; }

/* --- 24.6 Microinterações --- */
.ap-btn, .ap-add, .ap-group__item, .ap-campaign, .ap-rowlink, .ap-tabbar a, .ap-topnav__links a { -webkit-tap-highlight-color: transparent; }
.ap-add:active, .ap-qty button:active { transform: scale(.96); }
.ap-campaign, .ap-group__item { transition: background-color .15s ease; }
@media (hover: hover) {
  .ap-campaign:hover { background: var(--ap-skel); }
  .ap-group__item:hover { background: var(--ap-skel); }
  .ap-rowlink:hover .ap-chev { transform: translateX(3px); }
}
.ap-chev { transition: transform .15s ease; }
output[data-qty-output] { transition: transform .12s ease; }
output[data-qty-output].is-bump { transform: scale(1.12); }

/* --- 24.7 Transição entre páginas (Chrome/Edge/Safari recentes) --- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.ap-topnav { view-transition-name: ap-topnav; }
.ap-tabbar { view-transition-name: ap-tabbar; }

/* --- 24.8 Movimento reduzido --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  @view-transition { navigation: none; }
}

/* --- 24.9 Player de vídeo (modal) --- */
.ap-video-modal .modal-content { background: #000; border: 0; border-radius: 16px; overflow: hidden; }
.ap-video-modal video { width: 100%; height: 100%; background: #000; }
.ap-video-close { position: absolute; top: -52px; right: -8px; color: #FFFFFF; z-index: 2; font-size: 20px; }
.modal-backdrop.show { opacity: .85; }

/* =========================================================================
   25. TABELA DE BILHETES + PAGINAÇÃO (Meus bilhetes)
   ========================================================================= */
.ap-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ap-toolbar__search { flex: 1 1 220px; min-width: 0; }
.ap-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-chip {
  height: 40px; padding: 0 14px; border-radius: var(--ap-r-pill);
  border: 1px solid var(--ap-chip-border); background: var(--ap-bg); color: var(--ap-text);
  font: 600 14px var(--ap-font); cursor: pointer; white-space: nowrap;
}
.ap-chip.is-active { background: var(--ap-text); color: var(--ap-bg); border-color: var(--ap-text); }

.ap-table-wrap { border: 1px solid var(--ap-border); border-radius: var(--ap-r-card); overflow: hidden; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ap-table thead th {
  height: 40px; padding: 0 14px; text-align: left; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ap-muted);
  background: var(--ap-surface); border-bottom: 1px solid var(--ap-border);
}
.ap-table tbody td { height: 52px; padding: 0 14px; border-bottom: 1px solid var(--ap-border); white-space: nowrap; }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table tbody tr { transition: background-color .12s ease; }
@media (hover: hover) { .ap-table tbody tr:hover { background: var(--ap-surface); } }
.ap-table .text-end { text-align: right; }
.ap-tnum { font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--ap-text); }
.ap-tnum:hover { color: var(--ap-brand); }
.ap-table-empty { padding: 28px 16px; text-align: center; color: var(--ap-muted); font-size: 15px; }
mark.ap-hl { padding: 0; background: var(--ap-brand-soft); color: var(--ap-brand-soft-text); border-radius: 3px; }

.ap-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--ap-r-pill); font-size: 13px; font-weight: 600; }
.ap-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-pill--paid { background: var(--ap-success-soft); color: var(--ap-success); }
.ap-pill--reserved { background: var(--ap-warn-soft); color: var(--ap-warn); }

.ap-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ap-pager__info { font-size: 13px; color: var(--ap-muted); }
.ap-pager__ctrl { display: flex; align-items: center; gap: 4px; }
.ap-pager__pages { display: flex; gap: 4px; }
.ap-pager__btn {
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px;
  border: 1px solid var(--ap-chip-border); background: var(--ap-bg); color: var(--ap-text);
  font: 600 14px var(--ap-font); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ap-pager__btn.is-active { background: var(--ap-brand); border-color: var(--ap-brand); color: var(--ap-on-brand); }
.ap-pager__btn:disabled { opacity: .4; cursor: default; }
.ap-pager__gap { min-width: 24px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ap-muted); }
.ap-pager__per { align-items: center; gap: 8px; font-size: 13px; }
.ap-select {
  height: 40px; padding: 0 32px 0 12px; border-radius: 10px;
  border: 1px solid var(--ap-chip-border); background-color: var(--ap-bg); color: var(--ap-text);
  font: 600 14px var(--ap-font); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
/* No celular a paginação fica centralizada embaixo da tabela */
@media (max-width: 575.98px) {
  .ap-pager { justify-content: center; }
  .ap-pager__info { width: 100%; text-align: center; order: 2; }
  .ap-table thead th, .ap-table tbody td { padding: 0 12px; }
}

/* =========================================================================
   26. EXCLUSIVO Sandim R15 Store — Clube, ranking, VSL, como participar
   ========================================================================= */
/* 26.1 Etiqueta "Clube" na tabela de bilhetes */
.ap-pill--club { background: var(--ap-brand-soft); color: var(--ap-brand-soft-text); }

/* 26.2 Chamada para o Clube (index, meus-bilhetes) */
.ap-club-cta {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 72px;
  border-radius: var(--ap-r-card); background: var(--ap-brand-soft); color: var(--ap-text); text-decoration: none;
  transition: transform .15s ease;
}
.ap-club-cta:hover { color: var(--ap-text); }
.ap-club-cta:active { transform: scale(.99); }
.ap-club-cta .ap-rowlink__sub { color: var(--ap-brand-soft-text); }
.ap-club-cta__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ap-brand); color: var(--ap-on-brand); font-size: 18px; }
.ap-club-cta .ap-chev { color: var(--ap-brand-soft-text); }

/* 26.3 Ranking de compradores */
.ap-rank { list-style: none; margin: 0; padding: 0; border-radius: var(--ap-r-card); background: var(--ap-surface); overflow: hidden; }
.ap-rank__item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--ap-border); }
.ap-rank__item:last-child { border-bottom: 0; }
.ap-rank__pos { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ap-surface-2); font-size: 14px; font-weight: 800; }
.ap-rank__pos.is-1 { background: var(--ap-brand); color: var(--ap-on-brand); }
.ap-rank__name { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-rank__sub { display: block; font-size: 13px; color: var(--ap-muted); }
.ap-rank__val { flex: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 26.4 Capa do vídeo (VSL) */
.ap-vsl {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--ap-r-card); background: var(--ap-hero); overflow: hidden; color: var(--ap-text); text-align: left;
}
.ap-vsl .ap-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-vsl__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ap-brand); color: var(--ap-on-brand); font-size: 30px; padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s ease;
}
.ap-vsl:hover .ap-vsl__play { transform: translate(-50%, -50%) scale(1.06); }
.ap-vsl__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px;
  background: var(--ap-bg); font-size: 13px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 26.5 Como participar (passos numerados) */
.ap-howto { list-style: none; margin: 0; padding: 0; counter-reset: howto; }
.ap-howto li { position: relative; counter-increment: howto; padding: 0 0 18px 48px; min-height: 52px; }
.ap-howto li:last-child { padding-bottom: 0; min-height: 0; }
.ap-howto li::before {
  content: counter(howto); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ap-brand-soft); color: var(--ap-brand-soft-text); font-size: 14px; font-weight: 800;
}
.ap-howto li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 4px; width: 1px; background: var(--ap-border-strong); }
.ap-howto b { display: block; font-size: 16px; font-weight: 700; line-height: 32px; }
.ap-howto span { display: block; font-size: 15px; color: var(--ap-muted); line-height: 1.45; }

/* 26.6 Clube — planos */
.ap-club-head { max-width: 640px; }
.ap-plans { display: flex; flex-direction: column; gap: 12px; }
.ap-plan--rec { order: -1; }              /* celular: Recomendado aparece primeiro */
.ap-plan {
  display: flex; flex-direction: column; padding: 20px; border-radius: var(--ap-r-card);
  border: 1px solid var(--ap-border-strong); background: var(--ap-bg);
}
.ap-plan--rec { border: 2px solid var(--ap-brand); padding: 19px; }
.ap-plan__name { margin: 0; font-size: 18px; font-weight: 800; }
.ap-plan__tag { padding: 4px 10px; border-radius: var(--ap-r-pill); background: var(--ap-brand); color: var(--ap-on-brand); font-size: 12px; font-weight: 700; }
.ap-plan__price { margin: 10px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-plan__price span { margin-left: 2px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ap-muted); }
.ap-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ap-answer); }
.ap-checks li i { flex: none; color: var(--ap-brand); font-size: 18px; line-height: 1.1; }
.ap-checks b { color: var(--ap-text); font-weight: 700; }
.ap-plan__btn { margin-top: 20px; }
.ap-narrow-sm { max-width: 640px; }

@media (min-width: 992px) {
  .ap-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .ap-plan--rec { order: 0; }
  .ap-plan__btn { margin-top: auto; }
  .ap-checks { margin-bottom: 24px; }
  .ap-club-head .ap-h1 { font-size: 36px; }
}
.ap-campaign p span { white-space: nowrap; }  /* cada contagem quebra inteira para a linha de baixo */

/* ---------- 27. UX, checkout e performance sincronizados ---------- */
/* A marca e renderizada pelo elemento .ap-logo__mark. Nao adicionamos
   uma segunda imagem via pseudo-elemento para evitar logos duplicados. */
html, body { touch-action: manipulation; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
.ap-theme-toggle { position: static;z-index:2;flex:0 0 auto;min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ap-border-strong);border-radius:999px;background:color-mix(in srgb,var(--ap-bg) 90%,transparent);color:var(--ap-text);box-shadow:0 4px 18px rgba(0,0,0,.08);backdrop-filter:blur(12px);font-size:12px;font-weight:700 }
.ap-theme-toggle i { font-size:16px }
.ap-header-actions { margin-left:auto;display:flex;align-items:center;gap:4px }
.ap-header-actions .ap-header__link { white-space:nowrap }
.ap-topnav__in>.ap-theme-toggle { margin-left:8px }
.ap-adds--offers { grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px;row-gap:22px;padding-top:10px;align-items:stretch }
.ap-adds--offers .ap-add,.ap-adds--offers .ap-add[data-badge] { position:relative;height:62px;margin-top:0;padding-top:15px;overflow:visible;font-size:17px;font-weight:800 }
.ap-adds--offers .ap-add::after { content:"bilhetes";display:block;margin-top:1px;color:var(--ap-muted);font-size:10px;font-weight:600;line-height:1;text-transform:uppercase }
.ap-adds--offers .ap-add[data-badge]::before { content:attr(data-badge);position:absolute;z-index:1;top:-10px;left:5px;right:5px;min-height:19px;padding:3px 4px;border-radius:999px;background:var(--ap-success);color:#fff;font-size:9px;font-weight:800;line-height:13px;letter-spacing:.02em;text-align:center;text-transform:uppercase;white-space:nowrap }
.ap-adds--offers .ap-add.is-selected { border:2px solid var(--ap-brand);background:var(--ap-bg);color:var(--ap-text);box-shadow:none;transform:none }
.ap-adds--offers .ap-add.is-selected::after { content:"✓ selecionado";color:currentColor }
.ap-adds--offers .ap-add.is-selected[data-badge]::before { background:var(--ap-success);color:#fff }
.ap-package-selected { display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;margin-top:10px;border-radius:9px;background:var(--ap-brand-soft);color:var(--ap-brand-soft-text);font-size:13px;font-weight:800 }
.ap-package-selected i { font-size:15px }
.ap-quantity-reset-wrap { display:block;margin-top:10px }
.ap-quantity-reset { width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border:1px solid var(--ap-border-strong);border-radius:11px;background:var(--ap-surface);color:var(--ap-text);font:700 13px var(--ap-font);cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .12s ease }
.ap-quantity-reset:hover,.ap-quantity-reset:focus-visible { border-color:var(--ap-brand);background:var(--ap-brand-soft);color:var(--ap-brand);outline:none }
.ap-quantity-reset:active { transform:scale(.99) }
.ap-quantity-reset i { font-size:15px }
.ap-quantity-reset b { color:var(--ap-text);font-weight:750 }
.ap-campaign .ap-thumb img { width:100%;height:100%;border-radius:inherit;object-fit:cover }
.ap-alert--promo { border:1px solid var(--ap-success-border);background:var(--ap-success-soft);color:var(--ap-success) }
.ap-video-modal .ratio.is-video-loading::after { content:"";position:absolute;z-index:4;left:50%;top:50%;width:42px;height:42px;margin:-21px 0 0 -21px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:ap-spin .75s linear infinite;pointer-events:none }
.ap-video-modal .ratio.has-video-error::after { content:"Não foi possível carregar o vídeo. Verifique sua conexão e tente novamente.";position:absolute;z-index:4;inset:0;padding:28px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.78);color:#fff;text-align:center;font-size:14px;line-height:1.45 }
@keyframes ap-spin { to { transform:rotate(360deg) } }
.ap-credit { width:min(100% - 32px,1180px);margin:34px auto 0;padding:20px 12px 30px;border-top:1px solid var(--ap-border);color:var(--ap-muted);font-size:12px;line-height:1.6;text-align:center }
.ap-credit a { color:var(--ap-text);font-weight:700;text-decoration:none }
.ap-credit a:hover { color:var(--ap-brand) }
.ap-credit i { margin-left:2px;font-size:10px }
.ap-account-pager { padding:2px 0 8px }
.ap-account-pager .ap-pager__pages { display:flex;gap:4px }
.ap-account-pager .ap-pager__info { flex:1 1 100%;order:2;text-align:center }
.ap-account-pager .ap-pager__per { display:inline-flex }
@media(max-width:991.98px){.ap-credit{margin-top:24px;padding-bottom:96px}}
@media(max-width:575.98px){.ap-theme-toggle span{display:none}.ap-theme-toggle{width:38px;padding:0;justify-content:center}.ap-account-pager .ap-pager__pages .ap-pager__btn:nth-child(n+4){display:none}.ap-account-pager .ap-pager__per{width:100%;justify-content:center;order:3}}
