/* =====================================================================
   Cupons Toda Hora — "cinema noturno"
   Mesma linguagem visual do app: fundo profundo, neon quente, vidro.
   ===================================================================== */

:root {
    --bg: #07070d;
    --surface: #11111b;
    --surface-2: #1a1a29;
    --stroke: rgba(255, 255, 255, .12);
    --text: #f5f5fa;
    --muted: #9c9cb5;
    --primary: #ff3d71;
    --secondary: #ff8a00;
    --accent: #00e5ff;
    --violet: #7c4dff;
    --success: #2ee59d;
    --warning: #ffc145;
    --danger: #ff4d5e;
    --grad: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-cool: linear-gradient(135deg, var(--violet), var(--accent));
    --radius: 22px;
    --wrap: 1200px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Poppins", var(--font);
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------ fundo vivo */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
    position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
    filter: blur(60px); opacity: .22; will-change: transform;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--primary), transparent 65%); top: -30vmax; left: -20vmax; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--violet), transparent 65%); top: -10vmax; right: -30vmax; animation: drift 26s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--accent), transparent 65%); bottom: -40vmax; left: 10vmax; opacity: .14; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(12vmax, 6vmax, 0) scale(1.1); } }
.grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------- vidro */
.glass {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------------------------------------------------------------- topbar */
.topbar {
    position: sticky; top: 0; z-index: 50;
    transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
    background: rgba(7, 7, 13, .72);
    border-color: var(--stroke);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__icon {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
    background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(255, 61, 113, .4);
}
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: .2s; }
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.topnav a.is-active { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(255, 61, 113, .35); }
.topbar .search--top { display: none; margin-left: auto; width: 320px; }

@media (min-width: 900px) {
    .topnav { display: flex; }
    .topbar .search--top { display: flex; }
}

/* ---------------------------------------------------------------- busca */
.search {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 6px 4px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    color: var(--muted); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(255, 61, 113, .6); box-shadow: 0 0 0 4px rgba(255, 61, 113, .15); }
.search input {
    flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0;
    color: var(--text); font: 500 15px var(--font);
}
.search input::placeholder { color: var(--muted); }
.search--hero { max-width: 640px; padding: 6px 6px 6px 18px; margin-top: 26px; }
.search--hero input { height: 50px; font-size: 16px; }

/* ---------------------------------------------------------------- botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: 16px;
    font: 700 15px var(--display); white-space: nowrap;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(255, 61, 113, .35); }
.btn--primary:hover { box-shadow: 0 14px 38px rgba(255, 61, 113, .55); transform: translateY(-1px); }
.btn--cool { background: var(--grad-cool); color: #fff; box-shadow: 0 10px 28px rgba(124, 77, 255, .35); }
.btn--ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn--xl { height: 58px; padding: 0 28px; font-size: 16px; border-radius: 18px; }
.btn--block { width: 100%; }
.btn--pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 26px rgba(255, 61, 113, .3); }
    50% { box-shadow: 0 14px 44px rgba(255, 61, 113, .65), 0 0 0 6px rgba(255, 61, 113, .08); }
}
.round {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); transition: .2s;
}
.round:hover { background: rgba(255, 255, 255, .16); }

/* ---------------------------------------------------------- selos / chips */
.pill {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    font: 800 11.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap;
    transition: transform .15s, box-shadow .2s;
}
.pill .i { width: 14px; height: 14px; }
.pill--hot { background: var(--grad); }
.pill--cool { background: var(--grad-cool); }
.pill:hover { transform: translateX(2px); box-shadow: 0 6px 20px rgba(255, 61, 113, .45); }

.chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; max-width: 100%;
    font: 800 10.5px var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    color: var(--muted); background: rgba(156, 156, 181, .12); border: 1px solid rgba(156, 156, 181, .3);
}
.chip .i { width: 13px; height: 13px; }
.chip time { font-variant-numeric: tabular-nums; }
.chip--hot { color: var(--danger); background: rgba(255, 77, 94, .13); border-color: rgba(255, 77, 94, .4); }
.chip--warn { color: var(--warning); background: rgba(255, 193, 69, .12); border-color: rgba(255, 193, 69, .38); }
.chip--ok { color: var(--success); background: rgba(46, 229, 157, .1); border-color: rgba(46, 229, 157, .3); }
.chip--hot .i { animation: flicker 1.2s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.18) rotate(-6deg); } }

.tag {
    display: inline-block; padding: 4px 8px; border-radius: 8px;
    font: 800 10px var(--font); letter-spacing: .1em; text-transform: uppercase;
    color: var(--primary); background: rgba(255, 61, 113, .15);
}
.tag--gold { color: var(--warning); background: rgba(255, 193, 69, .14); }
.tag--cool { color: var(--accent); background: rgba(0, 229, 255, .12); }
.tag--violet { color: #b9a2ff; background: rgba(124, 77, 255, .2); }
.tag--solid { color: #fff; }
.tag--hot.tag--solid { background: var(--primary); }
.tag--violet.tag--solid { background: var(--violet); }
.tag--orange.tag--solid { background: var(--secondary); }

.badge {
    position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px;
    background: var(--grad); color: #fff; font: 800 12px var(--font);
    box-shadow: 0 6px 18px rgba(255, 61, 113, .5);
}
.badge--xl { font-size: 16px; padding: 8px 14px; top: 16px; left: 16px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip {
    flex: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
    color: var(--muted); background: var(--surface-2); border: 1px solid var(--stroke); transition: .2s;
}
.fchip:hover { color: var(--text); }
.fchip.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 22px rgba(255, 61, 113, .35); }
.chips--static { flex-wrap: wrap; margin-top: 18px; }
.chips--static .fchip { padding: 6px 12px; font-size: 12.5px; }

/* ---------------------------------------------------------------- avatar */
.avatar {
    --s: 48px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
    background: #fff; border: 2px solid rgba(255, 255, 255, .16);
    display: grid; place-items: center; overflow: hidden;
}
.avatar img { width: 72%; height: 72%; object-fit: contain; }
.avatar__i { display: none; font: 700 calc(var(--s) * .42) var(--display); color: #fff; }
.avatar--empty { background: var(--grad); }
.avatar--empty .avatar__i { display: block; }
.avatar--glow { box-shadow: 0 0 calc(var(--s) * .5) rgba(255, 61, 113, .5); }

/* ------------------------------------------------------------ cabeçalhos */
.intro { padding: 36px 0 26px; }
.eyebrow { font: 800 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.display { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; }
.display--sm { font-size: clamp(26px, 3.6vw, 40px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head { padding: 34px 0 6px; display: grid; gap: 16px; }
.page-head .search { max-width: 640px; }
.h3 { font-size: 19px; margin: 30px 0 10px; }

.section { padding-top: 46px; }
.section--tight { padding-top: 16px; }
.shead { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.shead__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.shead__icon--hot { color: var(--danger); background: rgba(255, 77, 94, .14); }
.shead__icon--warn { color: var(--warning); background: rgba(255, 193, 69, .14); }
.shead__icon--cool { color: var(--accent); background: rgba(0, 229, 255, .12); }
.shead__icon--violet { color: #b9a2ff; background: rgba(124, 77, 255, .18); }
.shead__text { flex: 1; min-width: 0; }
.shead h2 { font-size: clamp(20px, 2.4vw, 26px); }
.shead p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.shead__action { color: var(--secondary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.shead__action:hover { text-decoration: underline; }
.shead__arrows { display: none; gap: 8px; }
@media (min-width: 900px) { .shead__arrows { display: flex; } }

/* ------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 4px 0 8px; }
.hero__track {
    display: flex; gap: 0; transition: transform .9s var(--ease);
    padding-left: calc((100vw - min(100vw - 32px, var(--wrap))) / 2);
}
.hero__slide {
    flex: 0 0 min(88vw, 1100px); padding: 0 8px;
    transform: scale(.92); opacity: .45; transition: transform .9s var(--ease), opacity .9s;
}
.hero__slide.is-active { transform: none; opacity: 1; }
.hero__card {
    position: relative; display: block; height: clamp(260px, 42vw, 440px);
    border-radius: 30px; overflow: hidden; isolation: isolate;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 112%; height: 100%; object-fit: cover; margin-left: -6%; transition: transform .2s linear; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--grad-cool); }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .45) 55%, rgba(7, 7, 13, .96)); }
.hero__tags { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; }
.hero__content { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.hero__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.hero__content h2 { font-size: clamp(22px, 3.4vw, 40px); margin: 10px 0 14px; max-width: 800px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.hero__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero__nav { position: absolute; top: 45%; display: none; backdrop-filter: blur(12px); }
.hero__nav--prev { left: 18px; }
.hero__nav--next { right: 18px; }
.hero__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.hero__dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: .3s; }
.hero__dots button.is-active { width: 26px; background: var(--grad); }
@media (min-width: 900px) { .hero__nav { display: grid; } }

/* ------------------------------------------------------------- rails */
.rail {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px 2px 14px; margin: 0 -2px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

.mini {
    width: 270px; min-height: 154px; padding: 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px;
    background: linear-gradient(135deg, rgba(255, 77, 94, .22), var(--surface));
    border: 1px solid rgba(255, 77, 94, .35); transition: transform .25s var(--ease), box-shadow .25s;
}
.mini:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(255, 77, 94, .25); }
.mini__brand { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mini__title { flex: 1; font: 600 15px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__time { display: flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }

.bubble { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bubble .avatar { transition: transform .25s var(--ease), box-shadow .25s; }
.bubble:hover .avatar { transform: translateY(-4px) scale(1.05); box-shadow: 0 0 30px rgba(124, 77, 255, .55); }
.bubble__name { font-size: 12.5px; font-weight: 700; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble__count { font-size: 11px; color: var(--secondary); font-weight: 700; margin-top: -6px; }

/* ------------------------------------------------------------ ticket */
.tickets { display: grid; gap: 14px; }
@media (min-width: 900px) { .tickets--grid { grid-template-columns: 1fr 1fr; } }

.ticket {
    --split: 96px; --tone: var(--primary);
    position: relative; display: flex; min-height: 140px; border-radius: 22px;
    background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface) 90%, var(--tone)));
    -webkit-mask:
        radial-gradient(12px at var(--split) 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(12px at var(--split) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
    mask:
        radial-gradient(12px at var(--split) 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(12px at var(--split) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
    transition: transform .25s var(--ease), background .25s;
}
.ticket--offer { --tone: var(--accent); }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); }
.ticket::after {
    content: ""; position: absolute; left: var(--split); top: 18px; bottom: 18px;
    border-left: 1.5px dashed rgba(255, 255, 255, .18);
}
.ticket:hover { transform: translateY(-3px); background: linear-gradient(135deg, #20203a, color-mix(in srgb, var(--surface) 80%, var(--tone))); }
.ticket__link { position: absolute; inset: 0; z-index: 1; }
.ticket__stub { width: var(--split); flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ticket__type { font: 800 10.5px var(--font); letter-spacing: .12em; color: var(--tone); }
.ticket__body { flex: 1; min-width: 0; padding: 14px 16px 14px 18px; display: flex; flex-direction: column; }
.ticket__meta { display: flex; align-items: center; gap: 8px; }
.ticket__brand { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket__title { font: 600 15.5px/1.3 var(--display); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket__foot .chip { overflow: hidden; }

/* ------------------------------------------------------- product card */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.rail--products .pcard { width: 200px; }
.pcard {
    position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--stroke);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-5px); border-color: rgba(255, 61, 113, .4); box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 61, 113, .15); }
.pcard__link { position: absolute; inset: 0; z-index: 1; }
.pcard__media { position: relative; aspect-ratio: 1; background: #fff; padding: 14px; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__brand { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__title { font: 600 13.5px/1.35 var(--font); height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__prices { margin-top: 4px; min-height: 42px; display: flex; flex-direction: column; justify-content: flex-end; }
.pcard__prices s { color: var(--muted); font-size: 12px; }
.pcard__prices strong { font: 700 19px var(--display); }
.pcard__ask { font-size: 14px !important; color: var(--secondary); }
.pcard__buy {
    position: relative; z-index: 2; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; border-radius: 12px; font-weight: 800; font-size: 13px; color: #fff; background: var(--grad);
    opacity: .92; transition: opacity .2s;
}
.pcard__buy:hover { opacity: 1; }
.pcard__buy .i { width: 14px; height: 14px; }

/* ---------------------------------------------------------- lojas */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.store {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; text-align: center;
    border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); transition: .25s var(--ease);
}
.store:hover { transform: translateY(-4px); border-color: rgba(124, 77, 255, .5); box-shadow: 0 16px 36px rgba(124, 77, 255, .2); }
.store strong { font-size: 14px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store__count { font-size: 12px; font-weight: 700; color: var(--secondary); }
.store__count--muted { color: var(--muted); }
.store[hidden] { display: none; }

.storehero { position: relative; overflow: hidden; padding: 50px 0 20px; text-align: center; }
.storehero__glow { position: absolute; inset: -40% 0 auto; height: 520px; background: radial-gradient(ellipse at center, rgba(124, 77, 255, .45), transparent 65%); z-index: -1; }
.storehero__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.storehero .display { font-size: clamp(30px, 5vw, 52px); margin-top: 8px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 10px; }
.stats span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); font-size: 13.5px; color: var(--muted); }
.stats b { color: var(--text); font-family: var(--display); }

/* ---------------------------------------------------------- detalhe */
.detail__stage { position: relative; height: clamp(240px, 38vw, 460px); margin-top: -72px; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s, transform 7s linear; }
.stage img.is-active { opacity: 1; transform: scale(1); }
.stage--empty { display: grid; place-items: center; background: var(--grad-cool); }
.stage__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 13, .55), transparent 30%, rgba(7, 7, 13, .5) 60%, var(--bg)); }
.detail__grid { display: grid; gap: 40px; margin-top: -60px; position: relative; }
@media (min-width: 1000px) { .detail__grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brandrow > div { flex: 1; display: flex; flex-direction: column; }
.brandrow strong { display: inline-flex; align-items: center; gap: 4px; }
.brandrow .muted { font-size: 13px; }
.verified { color: var(--accent); display: inline-flex; }
.valid { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--success); font-weight: 600; }

.countdown { margin-top: 22px; padding: 18px; border-radius: 22px; border: 1px solid; }
.countdown--warn { --c: var(--warning); }
.countdown--hot { --c: var(--danger); }
.countdown { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), var(--surface)); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.countdown p { display: flex; align-items: center; gap: 8px; color: var(--c); font-weight: 800; font-size: 14px; }
.countdown__boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.countdown__boxes span { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 16px; background: rgba(0, 0, 0, .35); }
.countdown__boxes b { font: 800 clamp(24px, 4vw, 34px) var(--display); font-variant-numeric: tabular-nums; }
.countdown__boxes small { font-size: 11.5px; color: var(--muted); }

.codebox {
    position: relative; margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 18px; border-radius: 20px; background: var(--surface);
    border: 2px dashed rgba(255, 61, 113, .55);
}
.codebox__label { width: 100%; font: 800 10.5px var(--font); letter-spacing: .14em; color: var(--muted); }
.codebox__code { flex: 1; font: 700 26px var(--mono); letter-spacing: .12em; color: var(--muted); word-break: break-all; }
.codebox.is-revealed .codebox__code { color: var(--text); animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.codebox--big { justify-content: center; text-align: center; }
.codebox--big .codebox__code { color: var(--text); font-size: 30px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-row--center { justify-content: center; }
.prose { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.prose--clamp { max-height: 18em; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; color: var(--muted); }
.steps li::before {
    content: counter(s); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
    background: var(--grad-cool); color: #fff; font: 800 13px var(--font);
}
.steps b { color: var(--text); }
.disclaimer { margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.detail__side .h3 { margin-top: 0; }

.sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 8px; border-radius: 22px; background: rgba(17, 17, 27, .7); border: 1px solid var(--stroke);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transform: translateY(160%); transition: transform .45s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 900px) { .sticky-cta { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* produto */
.product { padding-top: 26px; }
.product__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .product__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.product__main { position: relative; aspect-ratio: 1; border-radius: 28px; background: #fff; padding: 30px; overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.product__thumbs button { flex: none; width: 70px; height: 70px; border-radius: 14px; background: #fff; padding: 6px; border: 2px solid transparent; }
.product__thumbs button.is-active { border-color: var(--primary); }
.product__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.price { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.price s { color: var(--muted); }
.price strong { font: 800 clamp(30px, 4vw, 40px) var(--display); }
.save { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; color: var(--success); background: rgba(46, 229, 157, .12); font-weight: 700; font-size: 14px; }
.combo { margin-top: 26px; padding: 16px; }
.combo > p { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }

/* --------------------------------------------------------- estados */
.empty { padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; padding: 40px 0; }
.notfound__code { font: 800 clamp(90px, 18vw, 180px)/1 var(--display); }

/* paginação (CodeIgniter Pager) */
.pager { margin-top: 28px; }
.pager ul { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--stroke); font-weight: 700; color: var(--muted); }
.pager .active a { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------------------------------------------------------- footer */
.footer { margin-top: 70px; padding: 0 0 120px; }
.trust { display: flex; gap: 14px; align-items: flex-start; padding: 18px; font-size: 13.5px; color: var(--muted); }
.trust__icon { color: var(--success); flex: none; }
.trust strong { color: var(--text); }
.footer__grid { display: grid; gap: 24px; margin-top: 34px; }
.footer__grid p { margin-top: 10px; max-width: 360px; font-size: 14px; }
.footer__grid nav { display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.footer__grid nav a:hover { color: var(--text); }
.footer__stores { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.footer__stores a:hover { color: var(--text); }
.footer__copy { margin-top: 26px; font-size: 12.5px; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--secondary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ dock mobile */
.dock {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; justify-content: space-around; padding: 8px; border-radius: 26px;
    background: rgba(17, 17, 27, .72); border: 1px solid var(--stroke);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.dock a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 18px; color: var(--muted); font-weight: 700; font-size: 12.5px; transition: .3s var(--ease); }
.dock a span { display: none; }
.dock a.is-active { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(255, 61, 113, .45); padding: 10px 14px; }
.dock a.is-active span { display: inline; }
@media (min-width: 900px) { .dock { display: none; } }

/* ------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); animation: fade .3s; }
.modal__card {
    position: relative; width: min(100%, 460px); padding: 30px 24px 24px; border-radius: 28px; text-align: center;
    background: linear-gradient(160deg, #1d1d30, var(--surface)); border: 1px solid var(--stroke);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 61, 113, .15);
    animation: rise .45s var(--ease); display: grid; gap: 12px; justify-items: center;
}
.modal__card h2 { font-size: 20px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.modal__close:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.modal__logo:empty { display: none; }
.modal__hint { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--success); font-weight: 600; }
.modal .codebox { width: 100%; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }

.toast {
    position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 120;
    transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
    padding: 12px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--stroke);
    font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: .35s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* --------------------------------------------------- entrada em cena */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
.h-inline { font: inherit; letter-spacing: normal; }

img.is-broken { visibility: hidden; }
@media (max-width: 380px) { .brand__name { font-size: 16px; } }

/* =====================================================================
   App Android — convites para instalar
   ===================================================================== */

/* Menu */
.topnav__app {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 6px;
    color: var(--text) !important; position: relative;
    background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
    border: 1.5px solid transparent;
}
.topnav__app:hover { background: linear-gradient(#141422, #141422) padding-box, var(--grad) border-box !important; box-shadow: 0 6px 20px rgba(255, 61, 113, .3); }
.topnav__app .i { width: 15px; height: 15px; color: var(--secondary); }
.topbar__app {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
    border-radius: 12px; font-weight: 800; font-size: 13px; color: #fff; background: var(--grad);
    box-shadow: 0 6px 18px rgba(255, 61, 113, .4);
}
.topbar__app .i { width: 16px; height: 16px; }
@media (min-width: 900px) { .topbar__app { display: none; } }

/* Faixa Android */
.smartbar {
    position: relative; z-index: 60; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px 10px 8px; background: linear-gradient(90deg, #1b1030, #2a0f1f);
    border-bottom: 1px solid var(--stroke); animation: slidedown .5s var(--ease);
}
.smartbar[hidden] { display: none; }
.smartbar__close { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); flex: none; }
.smartbar__close .i { width: 16px; height: 16px; }
.smartbar__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--grad); color: #fff; }
.smartbar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.smartbar__text strong { font-size: 14px; }
.smartbar__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smartbar__cta { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; }
@keyframes slidedown { from { transform: translateY(-100%); } }

/* Selo oficial (sem alterações) */
.playbadge { display: inline-block; line-height: 0; transition: transform .2s var(--ease), filter .2s; }
.playbadge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(0, 229, 255, .25)); }

/* Seção na home */
.apppromo {
    position: relative; overflow: hidden; display: grid; gap: 30px; align-items: center;
    padding: clamp(24px, 4vw, 48px); border-radius: 32px;
    background:
        radial-gradient(circle at 85% 20%, rgba(124, 77, 255, .45), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 61, 113, .35), transparent 45%),
        var(--surface);
    border: 1px solid var(--stroke);
}
@media (min-width: 900px) { .apppromo { grid-template-columns: 1.1fr .9fr; } }
.apppromo__list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.apppromo__list li { display: flex; align-items: center; gap: 10px; color: #d7d7e6; font-weight: 500; }
.apppromo__list .i { color: var(--secondary); flex: none; }
.apppromo__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.apppromo__free { font: 800 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.apppromo__visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.apppromo__qr { display: none; position: absolute; right: 0; bottom: 10px; width: 110px; height: 110px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
@media (min-width: 1100px) { .apppromo__qr { display: block; } }

/* Mockup do celular (CSS puro) */
.phone {
    width: 210px; height: 420px; border-radius: 38px; padding: 10px; position: relative;
    background: linear-gradient(145deg, #2b2b40, #0d0d16);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 60px rgba(255, 61, 113, .25);
    transform: rotate(-6deg); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-6deg) translateY(-12px); } }
.phone__notch { position: absolute; top: 16px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 99px; background: #05050a; z-index: 2; }
.phone__screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.phone__head { display: flex; align-items: center; gap: 6px; font: 700 13px var(--display); }
.phone__head .brand__icon { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.phone__head .i { width: 13px; height: 13px; }
.phone__hero { border-radius: 16px; padding: 12px; min-height: 96px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; background: linear-gradient(160deg, var(--violet), var(--primary)); }
.phone__hero strong { font: 800 16px var(--display); }
.phone__hero .tag, .phone__hero .chip { align-self: flex-start; font-size: 8px; }
.phone__hero .chip { background: rgba(0, 0, 0, .35); }
.phone__ticket { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--primary); }
.phone__ticket i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); flex: none; }
.phone__ticket span { flex: 1; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .18); }
.phone__ticket em { font: 800 8px var(--font); font-style: normal; padding: 4px 7px; border-radius: 99px; background: var(--grad); }
.phone__ticket--cool { border-left-color: var(--accent); }
.phone__ticket--cool em, .phone__ticket--cool i { background: var(--grad-cool); }
.phone__dock { margin-top: auto; display: flex; justify-content: space-around; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.phone__dock i { width: 18px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .2); }
.phone__dock i.is-on { width: 30px; background: var(--grad); }

/* Rodapé */
.appcard { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 24px; margin-top: 16px; }
.appcard h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 4px 0 8px; }
.appcard p { margin-bottom: 14px; max-width: 520px; font-size: 14px; }
.appcard .eyebrow { margin-bottom: 0; }
.appcard__qr { display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.appcard__qr img { width: 132px; height: 132px; padding: 8px; border-radius: 16px; background: #fff; }
@media (min-width: 900px) { .appcard__qr { display: flex; } }

/* Modal do cupom */
.modal__app { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 10px; }
.modal__app:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.modal__app b { color: var(--secondary); }
.modal__app .i { width: 16px; height: 16px; color: var(--secondary); }
/* Fallback se a imagem oficial do selo não carregar */
.playbadge--text {
    line-height: 1.15; padding: 9px 18px 9px 46px; border-radius: 12px; color: #fff;
    border: 1px solid #a6a6a6;
    background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300E5FF' d='M4 2.5l11 9.5-11 9.5z'/%3E%3Cpath fill='%23FFC145' d='M15 12l4-3.4 2.4 1.5c1 .6 1 1.2 0 1.8L19 15.4z'/%3E%3C/svg%3E") 14px center / 22px no-repeat;
}
.playbadge--text::before { content: "DISPONÍVEL NO"; display: block; font: 600 9.5px var(--font); letter-spacing: .06em; }
.playbadge--text::after { content: "Google Play"; display: block; font: 700 19px var(--font); }
