/* === Clube das Gruas (by FreePix) — mobile-first PWA
 * Paleta divertida (rosa + dourado + lavanda) sobre creme quente.
 * Defaults = mobile. Tablet/desktop via @media (min-width: 720px / 1024px). */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --pink: #ff5ea1;
    --pink-dark: #d6377b;
    --pink-soft: #ffe1ee;
    --pink-tint: #fff0f6;

    --gold: #ffc857;
    --gold-dark: #e1aa3a;
    --gold-soft: #fff7e0;

    --lavender: #b794f4;
    --lavender-dark: #9061d6;

    --bg-page: #fff8f3;
    --bg-card: #ffffff;
    --text: #2d1b3d;
    --text-secondary: #6b5b73;
    --muted: #94839b;
    --line: #f5e6e8;
    --line-strong: #ead3d8;

    --shadow-sm: 0 2px 6px rgba(255, 94, 161, 0.08);
    --shadow-md: 0 8px 20px rgba(255, 94, 161, 0.12);
    --shadow-lg: 0 16px 40px rgba(255, 94, 161, 0.18);
    --shadow-gold: 0 8px 24px rgba(255, 200, 87, 0.32);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    --gradient-pink: linear-gradient(135deg, #ff5ea1 0%, #ff8cb6 100%);
    --gradient-gold: linear-gradient(135deg, #ffc857 0%, #ffe089 100%);
    --gradient-rainbow: linear-gradient(120deg, #ff5ea1 0%, #b794f4 50%, #ffc857 100%);
    --gradient-soft: linear-gradient(135deg, #fff0f6 0%, #fff7e0 100%);

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Bottom-nav height + safe-area iOS */
    --bottom-nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body {
    margin: 0;
    font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg-page);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(255, 94, 161, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(255, 200, 87, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    /* Espaco pra bottom-nav fixa no mobile (none no desktop via media query) */
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: "Fredoka", "Inter", sans-serif;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; line-height: 1.6; color: var(--text-secondary); }

.text-muted { color: var(--muted); font-size: 0.92rem; }
.hidden { display: none !important; }

/* === TOPBAR === */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 248, 243, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-family: "Fredoka", sans-serif;
    min-width: 0;
}
.brand-emoji {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(255, 94, 161, 0.3));
}
.brand strong {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.brand-tag {
    display: none;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pink-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav {
    display: none; /* mobile: navega via bottom-nav */
}

.nav-actions {
    margin-left: auto;
    display: flex; gap: 6px;
}
.nav-actions .btn-ghost { display: none; } /* mobile: so o "Cadastrar" aparece no topbar */

/* === BOTTOM NAV (mobile) === */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -4px 16px rgba(255, 94, 161, 0.06);
}
.bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    padding: 10px 4px;
    min-height: var(--bottom-nav-h);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    transition: color var(--transition), background var(--transition);
}
.bottom-nav a .bn-icon { font-size: 22px; line-height: 1; }
.bottom-nav a.active {
    color: var(--pink-dark);
    background: var(--pink-tint);
}
.bottom-nav a:active { background: var(--pink-soft); }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 18px;
    min-height: 44px;
    border-radius: var(--radius-md);
    border: 0;
    font: inherit;
    font-family: "Fredoka", "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-lg { padding: 14px 26px; font-size: 1rem; min-height: 52px; }

.btn-primary {
    background: var(--gradient-pink);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover, .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }

.btn-gold {
    background: var(--gradient-gold);
    color: var(--text);
    box-shadow: var(--shadow-gold);
}

.btn-ghost {
    background: var(--bg-card);
    border: 2px solid var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--pink);
    color: var(--pink-dark);
    background: var(--pink-tint);
}

.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* === STATS BAR === */
.stats-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--gradient-rainbow);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
}
.stats-bar strong { font-weight: 700; font-size: 0.92rem; }
.stat-divider { opacity: 0.5; }

/* === MAIN === */
main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.route { padding: 24px 0; }

/* === HERO === */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px 0 16px;
}
.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hero h1 .grad {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero p {
    margin: 14px 0 20px;
    font-size: 1rem;
    max-width: 540px;
}
.hero p strong { color: var(--text); font-weight: 700; }

.hero-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 140px; }

.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}
.badge.gold {
    background: var(--gold-soft);
    border-color: #ffe089;
    color: var(--gold-dark);
}

.hero-visual {
    position: relative;
    height: 240px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}
.bear-card {
    position: absolute;
    width: 90px; height: 90px;
    display: grid; place-items: center;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    font-size: 50px;
    transition: transform 400ms ease;
}
.bear-1 { top: 0; left: 30px; transform: rotate(-6deg); background: var(--pink-tint); }
.bear-2 { top: 20px; right: 0; transform: rotate(8deg); background: var(--gold-soft); }
.bear-3 { top: 110px; left: 0; transform: rotate(-4deg); background: linear-gradient(135deg, #f3e8ff, #fff0f6); }
.bear-4 { top: 130px; right: 40px; transform: rotate(6deg); background: var(--pink-soft); }
.bear-5 { bottom: 0; left: 90px; transform: rotate(-12deg); background: var(--gold-soft); }
.bear-card:active { transform: scale(1.08) rotate(0); z-index: 5; }

/* === SECTIONS === */
.section { margin: 40px 0 24px; }
.section-head {
    margin-bottom: 18px;
    text-align: left;
    max-width: 720px;
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { font-size: 0.95rem; }

.see-more {
    display: flex; justify-content: center;
    margin-top: 20px;
}

/* === FEATURED MACHINES === */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.featured-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.featured-card:active { transform: translateY(-2px); border-color: var(--pink); box-shadow: var(--shadow-md); }

.featured-card .rarity-tag {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}
.rarity-tag.lendario { background: var(--gradient-gold); color: var(--text); box-shadow: var(--shadow-gold); }
.rarity-tag.exclusivo { background: var(--gradient-pink); color: #fff; }
.rarity-tag.raro { background: var(--lavender); color: #fff; }
.rarity-tag.comum { background: var(--line-strong); color: var(--text-secondary); }

.featured-card .prize-image {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--gradient-soft);
    margin-bottom: 12px;
    display: grid; place-items: center;
    font-size: 96px;
    line-height: 1;
    background-size: cover;
    background-position: center;
    text-shadow: 0 6px 16px rgba(45, 27, 61, 0.18);
    transition: transform var(--transition);
}
.featured-card:hover .prize-image { transform: scale(1.04) rotate(-2deg); }
/* Backgrounds por raridade (so aplicam quando nao tem photo url) */
.prize-image.rarity-comum { background: linear-gradient(135deg, #fff7e0 0%, #ffe1ee 100%); }
.prize-image.rarity-raro { background: linear-gradient(135deg, #ede9fe 0%, #fff0f6 100%); }
.prize-image.rarity-lendario { background: var(--gradient-gold); box-shadow: inset 0 0 0 2px var(--gold-dark); }
.prize-image.rarity-exclusivo { background: var(--gradient-pink); }
.prize-image.rarity-exclusivo, .prize-image.rarity-lendario { color: #fff; }
.featured-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.featured-card .machine-label { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }
.featured-card .remaining {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--pink-tint);
    color: var(--pink-dark);
    font-size: 0.86rem;
    font-weight: 600;
}
.featured-card .remaining strong { font-size: 1.05rem; }
.featured-card .other-rare {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gallery-card {
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.gallery-card:active { transform: scale(1.02); }
.gallery-card .photo {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    margin-bottom: 8px;
    display: grid; place-items: center;
    font-size: 64px;
    line-height: 1;
    overflow: hidden;
    background-size: cover; background-position: center;
    text-shadow: 0 4px 12px rgba(45, 27, 61, 0.16);
}
/* Idem por raridade na galeria */
.gallery-card .photo.rarity-comum { background: linear-gradient(135deg, #fff7e0 0%, #ffe1ee 100%); }
.gallery-card .photo.rarity-raro { background: linear-gradient(135deg, #ede9fe 0%, #fff0f6 100%); }
.gallery-card .photo.rarity-lendario { background: var(--gradient-gold); }
.gallery-card .photo.rarity-exclusivo { background: var(--gradient-pink); color: #fff; }
.gallery-card .winner-name { font-weight: 700; font-size: 0.86rem; margin-bottom: 4px; }
.gallery-card .prize-name { font-size: 0.78rem; color: var(--text-secondary); }
.gallery-card .when { font-size: 0.7rem; color: var(--muted); margin-top: 6px; }
.gallery-card .rarity-pill {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
}
.rarity-pill.lendario { background: var(--gold-soft); color: var(--gold-dark); }
.rarity-pill.exclusivo { background: var(--pink-soft); color: var(--pink-dark); }
.rarity-pill.raro { background: #ede9fe; color: var(--lavender-dark); }
.rarity-pill.comum { background: var(--line); color: var(--text-secondary); }

/* === HOW IT WORKS === */
.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
}
.how-card {
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.how-num {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient-pink);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
}
.how-card h3 { margin-bottom: 6px; }
.how-card p { font-size: 0.92rem; }

.cashback-call {
    padding: 24px;
    background: var(--gradient-rainbow);
    color: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-top: 16px;
}
.cashback-call h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.cashback-call p { color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }
.cashback-call a { color: #fff; font-weight: 800; text-decoration: underline; }

/* === AUTH === */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
}
.auth-side h1 { margin-bottom: 14px; font-size: clamp(1.7rem, 6vw, 2.8rem); }
.auth-side h1 .grad {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.auth-perks { list-style: none; padding: 0; margin: 12px 0 0; }
.auth-perks li {
    padding: 6px 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-form {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--line);
}
.auth-form h2 { margin-bottom: 6px; }
.auth-form > p { margin-bottom: 18px; color: var(--text-secondary); font-size: 0.95rem; }
.auth-form form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.auth-form label span { color: var(--text); }
.auth-form input {
    height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--line-strong);
    background: var(--bg-page);
    font: inherit;
    /* 16px+ evita zoom no iOS quando ganha foco */
    font-size: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px var(--pink-soft);
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.auth-switch a { color: var(--pink-dark); font-weight: 700; }
.auth-forgot {
    text-align: right;
    margin-top: -4px;
    margin-bottom: 4px;
}
.auth-forgot a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
}
.auth-forgot a:hover { color: var(--pink-dark); }

/* === SOCIAL AUTH === */
.social-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.social-divider::before, .social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.social-buttons {
    display: grid; gap: 10px;
    margin-bottom: 6px;
}
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    position: relative;
}
.social-btn:hover { border-color: var(--pink); background: var(--pink-tint); }
.social-btn:active { transform: scale(0.99); }
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.social-btn .soon-tag {
    position: absolute;
    top: -7px; right: 12px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--lavender);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === MINHA CONTA === */
.page-head { text-align: left; margin: 16px 0 24px; }
.page-head .eyebrow { margin-bottom: 10px; }

.account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.balance-card {
    background: var(--gradient-rainbow);
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-lg);
}
.balance-card .label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
}
.balance-card .balance {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.balance-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 16px; font-size: 0.92rem; }
.balance-card button {
    background: #fff;
    color: var(--pink-dark);
}

.logout-strip {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: right;
}

/* === FOOTER === */
.footer {
    margin-top: 48px;
    padding: 32px 16px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--line);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.footer-content strong { font-family: "Fredoka", sans-serif; font-size: 1.1rem; }
.footer-content p { font-size: 0.9rem; margin-top: 8px; }
.footer-content h4 { font-size: 0.84rem; margin-bottom: 8px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-content a { color: var(--pink-dark); font-weight: 600; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.78rem;
}
.footer-bottom a { color: var(--pink-dark); font-weight: 600; }

/* === LOADING + EMPTY + TOAST === */
.loading {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}
.empty {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

.toast {
    position: fixed;
    /* fica acima da bottom-nav */
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 92vw;
    text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.error { background: #c52e5b; }
.toast.success { background: #16a34a; }

/* === MODAL (esqueci senha) === */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(45, 27, 61, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 16px;
    animation: fade-in 200ms ease;
}
.modal-backdrop.hidden { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 420px; width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slide-up 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal h2 { margin-bottom: 6px; }
.modal p { margin-bottom: 16px; font-size: 0.95rem; }
.modal form { display: grid; gap: 12px; }
.modal input {
    height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--line-strong);
    background: var(--bg-page);
    font: inherit;
    font-size: 16px;
}
.modal input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px var(--pink-soft);
}
.modal-actions {
    display: flex; gap: 10px;
    margin-top: 6px;
}
.modal-actions .btn { flex: 1; }

/* === INSTALL PROMPT (aparece quando PWA instalavel) === */
.install-prompt {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
    left: 12px; right: 12px;
    background: var(--gradient-rainbow);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    z-index: 80;
    font-size: 0.9rem;
    animation: slide-up 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.install-prompt.hidden { display: none; }
.install-prompt strong { font-family: "Fredoka", sans-serif; }
.install-prompt button {
    background: #fff;
    color: var(--pink-dark);
    border: 0;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    margin-left: auto;
}
.install-prompt .install-close {
    background: transparent;
    color: #fff;
    padding: 8px 6px;
    margin-left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* === LANDING OPERADOR (B2B) === */
.op-hero {
    padding: 32px 24px 28px;
    margin: 16px 0 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #2d1b3d 0%, #4a2d6b 60%, #6b3a8f 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.op-hero::before {
    content: "🧸";
    position: absolute;
    top: -20px; right: -10px;
    font-size: 200px;
    opacity: 0.08;
    transform: rotate(15deg);
    pointer-events: none;
}
.op-hero .eyebrow {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 200, 87, 0.4);
}
.op-hero h1 {
    color: #fff;
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 6vw, 3rem);
}
.op-hero h1 .grad {
    background: var(--gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.op-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    max-width: 580px;
    margin-bottom: 20px;
}
.op-hero-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.op-hero-actions .btn-primary {
    background: var(--gradient-gold);
    color: var(--text);
}
.op-hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.op-hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.op-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.op-benefit {
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition);
}
.op-benefit:hover { transform: translateY(-3px); border-color: var(--pink); }
.op-benefit-icon {
    display: inline-block;
    font-size: 36px;
    margin-bottom: 8px;
}
.op-benefit h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}
.op-benefit p { font-size: 0.92rem; }
.op-benefit em {
    background: var(--gradient-gold);
    color: var(--text);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 4px;
    vertical-align: middle;
}

.op-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    counter-reset: opcounter;
}
.op-step {
    position: relative;
    padding: 18px 18px 18px 64px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.op-step-num {
    position: absolute;
    top: 18px; left: 18px;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient-pink);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.op-step h3 { margin-bottom: 4px; font-size: 1.02rem; }
.op-step p { font-size: 0.9rem; }

.op-pricing {
    background: var(--gradient-rainbow);
    color: #fff;
    border: 0;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}
.op-pricing h2 { color: #fff; margin-bottom: 14px; }
.op-pricing ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}
.op-pricing li {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.94rem;
}
.op-pricing strong { color: var(--gold); font-weight: 800; }

.op-final-cta {
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 2px dashed var(--pink);
    box-shadow: var(--shadow-md);
}
.op-final-cta h2 { font-size: 1.6rem; margin-bottom: 10px; }
.op-final-cta p { margin-bottom: 18px; }

/* === LANDING OPERADOR — problema vs solucao === */
.op-vs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.op-vs-col {
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.op-vs-before {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7e0 100%);
    border-color: #fecaca;
}
.op-vs-after {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff0f6 100%);
    border-color: #bbf7d0;
}
.op-vs-col h3 { margin-bottom: 14px; font-size: 1.05rem; }
.op-vs-col ul { list-style: none; padding: 0; margin: 0; }
.op-vs-col ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(45, 27, 61, 0.08);
    font-size: 0.92rem;
    line-height: 1.45;
}
.op-vs-col ul li:last-child { border-bottom: 0; }
.op-vs-col ul li strong { color: var(--text); font-weight: 700; }
.op-vs-after ul li::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: 800;
    margin-right: 4px;
}
.op-vs-before ul li::before {
    content: "✗ ";
    color: #dc2626;
    font-weight: 800;
    margin-right: 4px;
}

/* === LANDING OPERADOR — demo card === */
.op-demo {
    text-align: center;
    background: linear-gradient(135deg, var(--pink-tint) 0%, var(--gold-soft) 100%);
    padding: 28px 22px;
    border: 2px solid var(--pink-soft);
}
.op-demo h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--pink-dark);
}
.op-demo p {
    margin-bottom: 18px;
    font-size: 0.96rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.op-demo p strong { color: var(--text); }

/* === LANDING OPERADOR — FAQ === */
.op-faq {
    display: grid;
    gap: 8px;
}
.op-faq-item {
    background: var(--bg-card);
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0;
    transition: border-color var(--transition);
}
.op-faq-item:hover { border-color: var(--pink-soft); }
.op-faq-item[open] { border-color: var(--pink); }
.op-faq-item summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 40px;
}
.op-faq-item summary::-webkit-details-marker { display: none; }
.op-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--pink-dark);
    transition: transform var(--transition);
}
.op-faq-item[open] summary::after {
    content: "−";
}
.op-faq-item p {
    padding: 0 16px 14px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.op-faq-item p code {
    background: var(--pink-tint);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.86em;
    color: var(--pink-dark);
}

/* === COMO JOGAR (3 passos didaticos na home) === */
.how-play .section-head { text-align: center; max-width: none; }
.how-play .section-head p { margin: 0 auto; max-width: 540px; }

.play-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    counter-reset: play-counter;
}
.play-step {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-md);
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.play-step:hover { transform: translateY(-4px); border-color: var(--pink); }
.play-step::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}
.play-step-num {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--gradient-pink);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.play-step-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(255, 94, 161, 0.25));
}
.play-step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}
.play-step p { font-size: 0.95rem; line-height: 1.55; }
.play-step p strong { color: var(--pink-dark); font-weight: 700; }

.play-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    align-items: center;
}
.play-cta .btn { width: 100%; max-width: 320px; }

/* === ADMIN DASHBOARD === */
.btn-admin {
    background: var(--gradient-gold);
    color: var(--text);
    box-shadow: var(--shadow-gold);
    border: 0;
    font-weight: 700;
}
.btn-admin:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 0.86rem; }

.admin-gate {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 40px auto;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--line);
}
.admin-gate > span:first-child { font-size: 56px; display: block; margin-bottom: 12px; }
.admin-gate h2 { margin-bottom: 8px; }
.admin-gate p { margin-bottom: 18px; }
.admin-gate .btn { display: inline-flex; }

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0 28px;
}
.kpi-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.kpi-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.kpi-value {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--pink-dark);
}

.admin-section { margin: 32px 0; }
.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.admin-section-head h2 { font-size: 1.3rem; }

.admin-machines {
    display: grid;
    gap: 10px;
}
.admin-machine-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.admin-machine-row .am-emoji { font-size: 28px; }
.admin-machine-row .am-info { min-width: 0; }
.admin-machine-row .am-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-machine-row .am-address {
    font-size: 0.78rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-machine-row .am-prize {
    font-size: 0.78rem;
    color: var(--pink-dark);
    font-weight: 600;
    margin-top: 4px;
}
.admin-machine-row .am-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.am-status.online { background: #dcfce7; color: #15803d; }
.am-status.offline { background: #fee2e2; color: #b91c1c; }
.am-status.pending { background: #f3f4f6; color: #6b7280; }

.admin-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.module-card {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
}
.module-card.active { border-color: var(--pink); background: var(--pink-tint); }
.module-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.module-card p { font-size: 0.84rem; }
.module-tag {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.module-tag.active { background: var(--gradient-pink); color: #fff; }
.module-tag.available { background: var(--line-strong); color: var(--text-secondary); }
.module-tag.beta { background: var(--lavender); color: #fff; }
.module-tag.planned { background: var(--gold-soft); color: var(--gold-dark); }

.admin-roadmap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.roadmap-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff7e0 0%, #fff0f6 100%);
    border: 2px dashed var(--line-strong);
}
.roadmap-card h3 { font-size: 1rem; margin-bottom: 6px; }
.roadmap-card p { font-size: 0.86rem; margin-bottom: 8px; }
.roadmap-card code {
    background: rgba(0,0,0,0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.84em;
}
.roadmap-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--lavender);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === MAPA DE MAQUINAS (Leaflet) === */
.map-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 280px);
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--line);
    background: #e8e0d3;
}
#map-container {
    width: 100%;
    height: 100%;
}

/* Override do Leaflet pra combinar com o resto do site */
.leaflet-container { font-family: "Inter", sans-serif; background: #e8e0d3; }
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0;
}
.leaflet-popup-tip { background: #fff; }
.leaflet-popup-content {
    margin: 14px 16px;
    font-size: 0.92rem;
    line-height: 1.4;
    min-width: 200px;
}
.popup-machine h4 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    font-family: "Fredoka", sans-serif;
}
.popup-machine .pop-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.popup-machine .pop-status.online { background: #dcfce7; color: #15803d; }
.popup-machine .pop-status.offline { background: #fee2e2; color: #b91c1c; }
.popup-machine .pop-status.pending { background: #f3f4f6; color: #6b7280; }
.popup-machine .pop-address {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 4px 0;
    line-height: 1.35;
}
.popup-machine .pop-prize {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    font-size: 0.84rem;
    color: var(--pink-dark);
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.popup-machine .pop-prize .pop-prize-emoji { font-size: 18px; }

/* Marker customizado (DivIcon) — pin estilo gota */
.machine-pin {
    width: 36px; height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.32);
    display: grid; place-items: center;
    cursor: pointer;
    transition: transform 200ms ease;
}
.machine-pin:hover { transform: rotate(-45deg) scale(1.1); }
.machine-pin .pin-emoji {
    transform: rotate(45deg);
    font-size: 17px;
    line-height: 1;
}
.machine-pin.online { background: #22c55e; }
.machine-pin.offline { background: #ef4444; }
.machine-pin.pending { background: #9ca3af; }

/* Legenda (canto inferior esquerdo) */
.map-legend {
    position: absolute;
    bottom: 12px; left: 12px;
    z-index: 500;
    display: flex; gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
}
.legend-dot.online { background: #22c55e; }
.legend-dot.offline { background: #ef4444; }
.legend-dot.pending { background: #9ca3af; }

/* Overlay de loading */
.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: grid;
    place-items: center;
    grid-auto-flow: row;
    background: rgba(255, 248, 243, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-secondary);
    font-weight: 600;
    gap: 6px;
    padding: 24px;
    text-align: center;
}
.map-overlay > span:first-child { font-size: 36px; }

/* Banner "demo" (no topo do mapa quando usando dados ficticios) */
.map-demo-banner {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--gradient-gold);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

/* ============================================================
 * TABLET (>= 720px)
 * ============================================================ */
@media (min-width: 720px) {
    body { padding-bottom: 0; } /* bottom-nav some no tablet+ */
    .topbar { padding: 14px 24px; gap: 16px; }
    .brand-tag { display: block; }
    .brand strong { font-size: 1.25rem; }
    .nav { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
    .nav a {
        padding: 8px 14px;
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-secondary);
        transition: background var(--transition), color var(--transition);
    }
    .nav a:hover, .nav a.active {
        background: var(--pink-tint);
        color: var(--pink-dark);
    }
    .nav-actions .btn-ghost { display: inline-flex; }
    .bottom-nav { display: none; }

    .stats-bar { font-size: 0.92rem; gap: 14px; padding: 12px 24px; }
    .stats-bar strong { font-size: 1.05rem; }

    main { padding: 0 24px; }
    .route { padding: 32px 0; }

    .hero {
        grid-template-columns: 1.3fr 1fr;
        gap: 40px;
        padding: 40px 0 32px;
    }
    .hero p { font-size: 1.1rem; }
    .hero-actions .btn { flex: 0 0 auto; }
    .hero-visual {
        height: 380px;
        max-width: none;
        margin: 0;
    }
    .bear-card { width: 120px; height: 120px; font-size: 64px; }
    .bear-1 { top: 0; left: 50px; }
    .bear-2 { top: 30px; right: 0; }
    .bear-3 { top: 160px; left: 0; }
    .bear-4 { top: 200px; right: 60px; }
    .bear-5 { bottom: 0; left: 130px; }
    .bear-card:hover { transform: scale(1.08) rotate(0); z-index: 5; }

    .section { margin: 56px 0 32px; }
    .section-head h2 { font-size: 1.8rem; }

    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .gallery-card { padding: 14px; }
    .gallery-card .winner-name { font-size: 0.94rem; }
    .gallery-card .prize-name { font-size: 0.84rem; }
    .gallery-card .when { font-size: 0.74rem; }
    .gallery-card .photo { font-size: 48px; }

    .how-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }

    .auth-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 32px 0;
    }
    .auth-form { padding: 32px; }

    .account-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 18px;
    }

    .footer { padding: 40px 24px 30px; }
    .footer-content { grid-template-columns: 2fr 1fr; gap: 40px; }

    .toast { bottom: 24px; }

    /* Admin dashboard mais espaçoso */
    .admin-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .admin-modules {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-roadmap {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Como jogar: 3 colunas lado a lado */
    .play-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .play-cta {
        flex-direction: row;
        justify-content: center;
    }
    .play-cta .btn { width: auto; }

    /* Landing operador: hero maior, beneficios 3 cols, steps 2 cols */
    .op-hero { padding: 56px 48px 48px; }
    .op-hero p { font-size: 1.1rem; }
    .op-hero::before { font-size: 320px; top: -40px; right: 10px; }
    .op-benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .op-steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .op-pricing ul { grid-template-columns: repeat(3, 1fr); }
    .op-vs { grid-template-columns: 1fr 1fr; gap: 18px; }
    .op-demo { padding: 40px 32px; }
    .op-demo h2 { font-size: 1.7rem; }
}

/* ============================================================
 * DESKTOP (>= 1024px) — ajustes finos
 * ============================================================ */
@media (min-width: 1024px) {
    .topbar { padding: 16px 32px; gap: 24px; }
    .brand-emoji { font-size: 32px; }
    .brand strong { font-size: 1.3rem; }

    .featured-grid { gap: 16px; }
    .hero-visual { height: 420px; }
    .bear-card { width: 130px; height: 130px; font-size: 70px; }
}

/* ============================================================
 * REDUCED MOTION
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
