@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ——— Novo Design System — MobPlay Premium & Viral ——— */

:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Grotesk', ui-monospace, monospace;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 22px;
    --space-6: 30px;

    /* Base Dark Palette */
    --bg-deep: #06080d;
    --bg: #0a0d16;
    --bg-elevated: #111624;
    --surface-0: rgba(5, 7, 12, 0.65);
    --surface-1: rgba(16, 22, 38, 0.7);
    --surface-2: rgba(24, 33, 56, 0.8);
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);

    --text: #f9fafb;
    --text-secondary: #cbd5e1;
    --muted: #94a3b8;

    /* Teal Neon / Moedas e Sucesso */
    --accent: #0df2c9;
    --accent-hover: #3bffd8;
    --accent-dim: #0bbfa0;
    --accent-fg: #021a15;
    --accent-soft: rgba(13, 242, 201, 0.12);

    /* Purple Neon / Nível e Engajamento */
    --purple: #8b5cf6;
    --purple-hover: #a78bfa;
    --purple-soft: rgba(139, 92, 246, 0.14);

    --gold: #fbbf24;
    --gold-soft: rgba(251, 191, 36, 0.15);

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --danger-fg: #fca5a5;

    --card: var(--surface-1);
    --card-edge: var(--line);

    --withdraw: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-sm: var(--shadow-inset), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow: var(--shadow-inset), 0 12px 36px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);

    --dash-banner: #000;
    --dash-banner-edge: rgba(255, 255, 255, 0.06);
    --dash-game-bg: radial-gradient(circle at center, #111827 0%, #030712 100%);
    --dash-tab-bg: rgba(6, 8, 13, 0.85);

    /* UNIFICAÇÃO DA FAIXA DO USUÁRIO EM MODO DARK/GLASSMORPHIC */
    --strip-from: rgba(16, 22, 38, 0.8);
    --strip-to: rgba(8, 11, 19, 0.9);
    --strip-text: #f9fafb;
    --strip-muted: #94a3b8;
    --strip-accent: #0df2c9;
    --strip-line: rgba(255, 255, 255, 0.08);

    color-scheme: dark;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    --leading-tight: 1.25;
    --leading-body: 1.55;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    overflow-x: clip;
    height: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
}

/* ——— Fundo simplificado (otimizado para mobile) ——— */
.app-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--bg-deep);
    color: var(--text);
    -webkit-text-size-adjust: 100%;
}

/* Orbes de neon só nas páginas que não são o painel principal (não fica atrás do jogo) */
.app-body:not(.app-dashboard) {
    background-image:
        radial-gradient(circle 350px at 0% 0%, rgba(139, 92, 246, 0.11), transparent),
        radial-gradient(circle 400px at 50% 90%, rgba(139, 92, 246, 0.08), transparent),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.app-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-5) max(var(--space-4), env(safe-area-inset-left)) var(--space-6)
        max(var(--space-4), env(safe-area-inset-right));
}

.app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand-mark {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: -0.04em;
    text-shadow: 0 0 15px rgba(13, 242, 201, 0.4);
}

.brand-text {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-out {
    color: var(--danger-fg);
}

.nav-out:hover {
    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, 0.15);
}

/* ——— Glassmorphism Cards ——— */
.card {
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-title {
    margin: 0 0 var(--space-3);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.eyebrow {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-name {
    margin: 6px 0 18px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.saldo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 14px;
}

.saldo-block {
    background: var(--surface-0);
    border-radius: var(--radius);
    padding: var(--space-4);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.saldo-block.highlight {
    border-color: rgba(13, 242, 201, 0.25);
    box-shadow: 0 0 15px rgba(13, 242, 201, 0.05);
}

.saldo-block .label {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    font-weight: 700;
}

.saldo-valor {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.saldo-valor.brl {
    color: var(--gold);
}

.saldo-block .hint {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.alert-soft {
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    color: var(--danger-fg);
    font-size: 0.875rem;
    line-height: var(--leading-body, 1.5);
}

.alert-ok {
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    background: var(--accent-soft);
    border: 1px solid rgba(13, 242, 201, 0.25);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.875rem;
    line-height: var(--leading-body, 1.5);
}

.level-line {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.level-line strong {
    color: var(--accent);
}

/* ——— Barra de Progresso Gamificada ——— */
.barra {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.barra-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple) 0%, var(--accent) 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(13, 242, 201, 0.4);
}

.status-level {
    min-height: 1.4em;
    margin: var(--space-3) 0 0;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.msg-erro {
    color: var(--danger-fg);
    text-align: center;
    margin: var(--space-2) 0 0;
    min-height: 1.2em;
    font-size: 0.875rem;
    font-weight: 600;
}

.acoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* ——— Botões Premium e Efeitos Neon ——— */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-play {
    background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-play:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-withdraw {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 700;
    border: 1px solid var(--line);
}

/* Pulsação Viral no botão de saque liberado */
.btn-withdraw--ready {
    background: var(--withdraw);
    color: #3b1c03;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    box-shadow: 0 6px 22px rgba(217, 119, 6, 0.35);
    animation: btn-pulse-amber 2.4s ease-in-out infinite;
    will-change: box-shadow;
}

.btn-withdraw--ready:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.55);
}

@keyframes btn-pulse-amber {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 119, 6, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}

.tempo-cooldown {
    text-align: center;
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ——— Tabelas Modernizadas ——— */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(5, 7, 12, 0.3);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: var(--space-4) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    background: var(--surface-0);
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.data-table td {
    font-weight: 500;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 30px !important;
    font-weight: 600;
}

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13, 242, 201, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(13, 242, 201, 0.2);
}

.toast {
    position: fixed;
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    max-width: min(92vw, 400px);
    padding: var(--space-3) var(--space-5);
    background: var(--surface-2);
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: var(--leading-body);
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(13, 242, 201, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.toast.toast--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ——— Admin CRM styling ——— */
.admin-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.admin-head.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-title {
    margin: 4px 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
}

.admin-sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.admin-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-metric {
    margin: 0;
    padding: 18px 20px;
}

.admin-metric .label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.admin-metric strong {
    font-size: 1.45rem;
    font-weight: 800;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-tab {
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.admin-tab--on {
    color: var(--text);
    background: var(--accent-soft);
    border-color: rgba(13, 242, 201, 0.3);
}

.fld span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.fld input,
.fld select,
.fld textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-0);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fld input:focus-visible,
.fld select:focus-visible,
.fld textarea:focus-visible {
    outline: none;
    border-color: rgba(13, 242, 201, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-sm {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
}

.btn-danger-soft {
    background: var(--danger-soft);
    color: var(--danger-fg);
}

.btn-soft {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ——— Unity WebGL e Iframe Game Area ——— */
.unity-iframe-wrap {
    position: relative;
    width: 100%;
    max-width: min(520px, 100%);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
    max-height: min(78dvh, 780px);
    min-height: 200px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--line-strong);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.app-main--dash .dash-game-panel .unity-iframe-wrap {
    aspect-ratio: unset;
    max-height: none;
    max-width: 100%;
    margin-inline: 0;
    min-height: 0;
    flex: 1 1 0%;
    overflow: hidden;
    align-self: stretch;
    width: 100%;
}

.webgl-runtime-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 540px) {
    .unity-iframe-wrap {
        max-width: 100%;
        max-height: min(82dvh, 900px);
        border-radius: 14px;
    }

    .card {
        padding: 20px 16px;
    }

    .app-shell:not(.app-shell--dashboard) {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

/* ——— Estrutura Dashboard Fixo (Mobile-First Shell) ——— */
html.html-dash {
    overflow-x: clip;
    overflow-y: hidden;
    height: 100%;
}

body.app-body.app-dashboard {
    padding-bottom: 0;
    overscroll-behavior: none;
}

.app-dashboard {
    padding-bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.app-shell--dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: min(560px, 100vw);
    margin: 0 auto;
    padding: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
}

.dashboard-banner {
    width: 100%;
    background: var(--dash-banner);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--dash-banner-edge);
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    isolation: isolate;
}

.dashboard-banner > .ad-slot,
.dashboard-banner > aside {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dashboard-banner--placeholder .dashboard-banner__fallback {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px var(--space-4);
    width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.dashboard-banner__logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.dashboard-banner__text {
    flex: 1;
    text-align: center;
    line-height: 1.4;
}

.dashboard-banner__text code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.72rem;
}

.dashboard-banner__cta {
    color: #1e1b4b;
    background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%);
    font-weight: 800;
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
}

/* ——— Painel do Usuário (Glassmorphic) ——— */
.dash-user-strip {
    background: #0a0d16;
    color: var(--strip-text);
    padding: 10px max(14px, env(safe-area-inset-left)) 8px max(14px, env(safe-area-inset-right));
    border-bottom: 1px solid var(--strip-line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.dash-user-strip__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dash-user-strip__left {
    flex: 1;
    min-width: 0;
}

.dash-user-strip__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    max-width: min(200px, 48vw);
}

.dash-user-strip__left .dash-user-name {
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text);
    font-weight: 500;
}

.dash-user-name strong {
    font-weight: 800;
    color: #fff;
}

.dash-user-points {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-mono);
    text-shadow: 0 0 15px rgba(13, 242, 201, 0.3);
}

.dash-coin {
    color: var(--gold);
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.barra--header {
    width: 100%;
    max-width: 170px;
    height: 7px;
    margin-top: 3px;
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.dash-mini-level {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--strip-muted);
}

.dash-mini-level .dash-level-num {
    color: var(--purple-hover);
    font-weight: 800;
}

.status-level--header {
    margin: 0 !important;
    min-height: 0.95em !important;
    font-size: 0.7rem !important;
    font-weight: 800;
    color: var(--accent) !important;
    text-shadow: 0 0 8px rgba(13, 242, 201, 0.3);
}

.dash-msg-spot--header {
    text-align: right;
    font-size: 0.72rem !important;
    margin: 0 !important;
    max-width: 170px;
    line-height: 1.35;
    color: var(--muted) !important;
}

.dash-user-strip__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    align-items: center;
}

.dash-brl-pill,
.dash-time-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(13, 242, 201, 0.1);
    color: var(--accent);
    border: 1px solid rgba(13, 242, 201, 0.2);
    font-family: var(--font-mono);
}

.dash-time-pill {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-hover);
    border-color: rgba(139, 92, 246, 0.2);
}

.app-main--dash {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    padding: 2px max(4px, env(safe-area-inset-left)) 2px max(4px, env(safe-area-inset-right));
}

.dash-game-panel {
    background: #030712;
    border-color: var(--line-strong);
    padding: 8px !important;
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0 !important;
    contain: layout paint;
}

.app-main--dash .dash-game-panel--iframe-only {
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #000;
}

.app-main--dash .dash-game-panel--iframe-only .unity-iframe-wrap,
.app-main--dash .dash-game-panel--iframe-only #unityIframeShell {
    flex: 1 1 0%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    background: #000;
}

.unity-fullscreen-host {
    position: relative;
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.unity-fullscreen-host .unity-iframe-wrap {
    flex: 1 1 0%;
}

.dash-game-empty {
    color: var(--muted);
    font-weight: 500;
}

.dash-unity-warn {
    flex-shrink: 0;
    margin: 0 0 6px !important;
    font-size: 0.85rem;
    line-height: 1.45;
    border-radius: 10px;
}

/* ——— Barra de Navegação Inferior (Premium Glassmorphic) ——— */
.dash-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 4px;
    padding: var(--space-2) max(var(--space-2), env(safe-area-inset-left)) max(var(--space-2), env(safe-area-inset-bottom))
        max(var(--space-2), env(safe-area-inset-right));
    background: #06080d;
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}

.dash-tab {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: capitalize;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.dash-tab__icon svg {
    display: block;
    transition: transform 0.2s ease;
}

.dash-tab:hover .dash-tab__icon svg {
    transform: translateY(-2px);
}

.dash-tab__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-tab__badge {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    border: 2px solid var(--bg);
}

.dash-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Tab Ativa com Efeito Amethyst/Violet */
.dash-tab--active {
    color: var(--purple-hover);
    background: var(--purple-soft);
}

.dash-tab--active .dash-tab__icon {
    color: var(--purple-hover);
}

/* ——— Páginas Secundárias (Relatório, Perfil, Saque) ——— */
.app-page-sub {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
    overflow-x: clip;
}

.app-shell--sub {
    max-width: 560px;
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
    position: relative;
}

.dash-js-bridge-offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.saque-pontos-destaque {
    margin: 12px 0 6px;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 600;
}

.saque-pontos-destaque strong {
    color: var(--accent);
    font-family: var(--font-mono);
}

.saque-brl-line {
    margin: 0 0 18px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
}

.saque-brl-line span {
    color: var(--gold);
    font-family: var(--font-mono);
}

.sub-page-head {
    margin-bottom: 22px;
}

.sub-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-2);
    color: var(--purple-hover);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.sub-back:hover {
    transform: translateX(-4px);
}

.sub-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: var(--leading-tight);
}

.sub-page-lead {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: var(--leading-body);
}

.dash-report-hero .dash-report-big {
    margin: 0 0 6px;
    font-size: clamp(2rem, 8vw, 2.5rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
    text-shadow: 0 0 15px rgba(13, 242, 201, 0.2);
}

.dash-report-unit {
    font-size: 0.6em;
    font-weight: 800;
    color: var(--muted);
}

.dash-report-sub {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.dash-report-hint {
    margin-top: 14px !important;
}

.dash-report-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-report-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.dash-report-list li:last-child {
    border-bottom: none;
}

.dash-report-list span {
    color: var(--muted);
    font-weight: 600;
}

.dash-report-list strong {
    color: var(--text);
    font-weight: 800;
}

.dash-dl div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dash-dl div:last-child {
    border-bottom: none;
}

.dash-dl dt {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dash-dl dd {
    font-size: 0.95rem;
    font-weight: 700;
}

.dash-pix-mask {
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
}

.dash-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.dash-profile-actions .btn {
    text-decoration: none;
}

/* ——— Modais de Saque Modernizados ——— */
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-modal__panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #182138;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px var(--space-4) var(--space-4);
}

.app-modal__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.app-modal__text {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.app-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-modal__progress-label {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 800;
    text-align: center;
}

.app-modal__progress-track {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.app-modal__progress-indeterminate {
    height: 100%;
    width: 42%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--accent) 100%);
    animation: app-modal-progress-slide 1.2s ease-in-out infinite;
}

/* ——— Telas de Login e Cadastro (Auth UI) ——— */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    min-height: 100vh;
    padding: var(--space-5) var(--space-4);
}

/* ——— Bloqueio desktop / tablet ——— */
.device-gate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    min-height: 100vh;
    padding: var(--space-5) var(--space-4);
    background: var(--bg-deep);
}

.device-gate-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

body.device-gate-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    min-height: 100vh;
    padding: var(--space-5) var(--space-4);
}

body.device-gate-page #deviceGate {
    width: 100%;
}

.device-gate-card {
    text-align: center;
    padding: 28px 22px 24px !important;
}

.device-gate-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 18px rgba(13, 242, 201, 0.35));
}

.device-gate-title {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.device-gate-lead {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.device-gate-lead strong {
    color: var(--accent);
}

.device-gate-hint {
    margin: 0 0 18px;
    font-size: 0.82rem;
    color: var(--muted);
}

.device-gate-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    opacity: 0.92;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html.mobplay-desktop-block body {
    overflow: hidden;
}

.auth-shell {
    width: 100%;
    max-width: 400px;
}

.auth-shell .card {
    margin-bottom: 0;
    background: rgba(16, 22, 38, 0.55);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.auth-eyebrow {
    margin: 0 0 var(--space-2);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 8px rgba(13, 242, 201, 0.25);
}

.auth-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
}

.auth-lead {
    margin: 0 0 24px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: var(--leading-body);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.auth-label span {
    font-weight: 700;
}

.auth-label input,
.auth-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--surface-0);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.auth-label input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-label input:focus-visible,
.auth-form select:focus-visible {
    outline: none;
    border-color: var(--purple-hover);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
    background: var(--surface-1);
}

.auth-senha-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-senha-row input {
    flex: 1;
}

.auth-senha-row button[type="button"] {
    flex-shrink: 0;
    min-width: 52px;
    padding: 0 var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-senha-row button[type="button"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-form__link {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-form__link:hover {
    opacity: 0.8;
}

.auth-favorecido {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px dashed var(--line);
}

.auth-page--scroll {
    align-items: flex-start;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: 32px;
}

/* ——— Conclusão do Cadastro (Sucesso) ——— */
.register-success-body {
    overflow: hidden;
    min-height: 100vh;
}

.register-success-panel {
    text-align: center;
    padding-top: var(--space-6);
}

.register-success-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(13, 242, 201, 0.25);
    box-shadow: 0 0 15px rgba(13, 242, 201, 0.2);
}

.register-success-title {
    text-align: center;
}

/* ——— Popup de Erro no Cadastro ——— */

.register-error-overlay {
    animation: register-popup-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.register-error-panel {
    text-align: center;
    animation: register-popup-scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.register-error-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    animation: register-error-pulse 2s ease-in-out infinite;
}

.register-error-title {
    text-align: center;
    color: var(--danger-fg) !important;
}

.register-success-overlay {
    animation: register-popup-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.register-success-panel {
    text-align: center;
    animation: register-popup-scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes register-popup-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes register-popup-scale {
    from { opacity: 0; transform: scale(0.85) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes register-error-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ——— Anúncios Intersticiais ——— */
.ad-interstitial {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ad-interstitial__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 7, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.ad-interstitial__panel {
    position: relative;
    width: 100%;
    max-width: min(560px, 100%);
    max-height: min(92dvh, 880px);
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ad-interstitial__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.ad-interstitial__titles {
    flex: 1;
    min-width: 0;
}

.ad-interstitial__eyebrow {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ad-interstitial__main-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #fff;
}

.ad-interstitial__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(13, 242, 201, 0.3);
    background: rgba(13, 242, 201, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-interstitial__close:hover {
    background: rgba(13, 242, 201, 0.18);
}

.ad-interstitial__close-x {
    display: block;
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

.ad-interstitial__body {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(78dvh, 720px);
    overflow: auto;
    padding: var(--space-4);
    text-align: center;
}

body.ad-interstitial--open,
html.ad-interstitial--open {
    overflow: hidden !important;
}

.hint {
    margin: 0 0 var(--space-3);
    font-size: 0.88rem;
    color: var(--muted);
    line-height: var(--leading-body);
}

::selection {
    background: rgba(13, 242, 201, 0.25);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .barra-fill {
        transition: none;
    }

    .pwa-notif__progress-bar {
        animation: none !important;
    }
}

/* ──────────────────────────────────────────────────────
   PWA Install — Premium Button & Notification
   ────────────────────────────────────────────────────── */

.pwa-install-section {
    width: 100%;
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}

/* ── Install Button ──────────────────────────────────── */

.pwa-install-btn {
    display: none;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 1px solid rgba(13, 242, 201, 0.25);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(13, 242, 201, 0),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pwa-install-btn--visible {
    display: flex;
}

.pwa-install-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pwa-install-btn:hover {
    border-color: rgba(13, 242, 201, 0.45);
    box-shadow: 0 0 24px rgba(13, 242, 201, 0.12),
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.pwa-install-btn:hover::before {
    opacity: 1;
}

.pwa-install-btn:active {
    transform: translateY(0) scale(0.995);
}

.pwa-install-btn--done {
    border-color: rgba(13, 242, 201, 0.4);
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.14) 0%, rgba(13, 242, 201, 0.04) 100%);
    pointer-events: none;
    opacity: 0.8;
}

.pwa-install-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.15), rgba(139, 92, 246, 0.1));
    font-size: 1.35rem;
    flex-shrink: 0;
    border: 1px solid rgba(13, 242, 201, 0.12);
}

.pwa-install-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pwa-install-btn__text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.pwa-install-btn__text small {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 400;
}

.pwa-install-btn__arrow {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-weight: 600;
}

.pwa-install-btn:hover .pwa-install-btn__arrow {
    transform: translateX(3px);
}

/* ── Install Notification ────────────────────────────── */

.pwa-install-notification {
    margin-top: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.pwa-notif--show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pwa-notif--hide {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
}

/* ── Notification Variants ───────────────────────────── */

.pwa-notif--installing {
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.06) 0%, rgba(11, 191, 160, 0.03) 100%);
    border-color: rgba(13, 242, 201, 0.2);
    box-shadow: 0 4px 24px rgba(13, 242, 201, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pwa-notif--installing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 242, 201, 0.06), transparent);
    animation: pwa-shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

.pwa-notif--installed {
    background: linear-gradient(135deg, rgba(13, 242, 201, 0.08) 0%, rgba(59, 255, 216, 0.03) 100%);
    border-color: rgba(13, 242, 201, 0.3);
    box-shadow: 0 4px 24px rgba(13, 242, 201, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pwa-notif--dismissed {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Notification Parts ──────────────────────────────── */

.pwa-notif__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pwa-notif--installing .pwa-notif__icon-wrap {
    background: rgba(13, 242, 201, 0.1);
    border: 1px solid rgba(13, 242, 201, 0.15);
    animation: pwa-pulse 2s ease-in-out infinite;
}

.pwa-notif--installed .pwa-notif__icon-wrap {
    background: rgba(13, 242, 201, 0.12);
    border: 1px solid rgba(13, 242, 201, 0.2);
}

.pwa-notif--dismissed .pwa-notif__icon-wrap {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.pwa-notif__icon {
    font-size: 1.15rem;
}

.pwa-notif__body {
    flex: 1;
    min-width: 0;
}

.pwa-notif__title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.pwa-notif--installing .pwa-notif__title {
    color: var(--accent);
}

.pwa-notif--installed .pwa-notif__title {
    color: var(--accent-hover);
}

.pwa-notif--dismissed .pwa-notif__title {
    color: var(--purple-hover);
}

.pwa-notif__message {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

/* ── Progress Bar ────────────────────────────────────── */

.pwa-notif__progress {
    margin-top: var(--space-3);
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}

.pwa-notif__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    animation: pwa-progress 5s ease-in-out forwards,
               pwa-progress-glow 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(13, 242, 201, 0.4);
}

/* ── PWA Animations ──────────────────────────────────── */

@keyframes pwa-progress {
    0%   { width: 0%; }
    15%  { width: 20%; }
    40%  { width: 45%; }
    65%  { width: 70%; }
    85%  { width: 88%; }
    100% { width: 100%; }
}

@keyframes pwa-progress-glow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes pwa-shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes pwa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 242, 201, 0.15); }
    50%      { box-shadow: 0 0 0 6px rgba(13, 242, 201, 0); }
}

