body.app-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #1e293b;
    touch-action: manipulation;
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* Mobile: tela completa */
.app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
}

/* Desktop: coluna centralizada */
@media (min-width: 768px) {
    body.app-body {
        background: #64748b;
    }
    .app-shell {
        max-width: 420px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.25);
    }
}

.app-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #dbeafe;
    backdrop-filter: blur(8px);
}
.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}
.app-header-left,
.app-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.app-header-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    color: #1d4ed8;
}
.app-balance-chip i {
    font-size: 0.7rem;
    color: #2563eb;
}
.app-balance-chip span {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #1d4ed8;
}

/* Body: cor natural do palco · shell: fundo completo */
body.app-body-game {
    background: #64748b !important;
    background-image: none !important;
    min-height: 100vh;
}
.app-shell-game {
    background-color: #071433 !important;
    background-image: var(--scratch-stage-bg, url('/assets/img/fundos/stage-azul.png')) !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh;
}
@media (min-width: 768px) {
    body.app-body-game {
        background: #64748b !important;
    }
    .app-shell-game {
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.45);
    }
}

/* Header pill flutuante na tela do jogo */
.app-shell-game .app-content {
    background: transparent !important;
}
.app-body-game .app-header-pill,
.app-shell-game .app-header-pill {
    background: transparent !important;
    border-bottom: 0 !important;
    backdrop-filter: none !important;
    padding: 0.65rem 0.7rem 0.35rem;
}
.app-body-game .app-header-pill .app-header-inner,
.app-shell-game .app-header-pill .app-header-inner {
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.55rem 0.45rem 0.5rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.app-body-game .app-header-pill .app-back,
.app-shell-game .app-header-pill .app-back {
    width: 1.85rem;
    height: 1.85rem;
    background: #dbeafe;
    color: #334155;
}
.app-body-game .app-header-pill .app-header-title,
.app-shell-game .app-header-pill .app-header-title {
    font-size: 0.78rem;
    color: #0f172a;
}
.app-body-game .app-header-pill .app-balance-chip,
.app-shell-game .app-header-pill .app-balance-chip {
    background: #e8f1ff;
    border-color: #c7dcff;
    padding: 0.22rem 0.55rem;
}
.app-body-game .app-header-pill .profile-avatar,
.app-shell-game .app-header-pill .profile-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border: 2px solid #93c5fd;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 0 10px rgba(59, 130, 246, 0.35);
}

.nav-item { position: relative; }
.nav-badge,
.home-inv-badge {
    position: absolute;
    top: 0.15rem;
    right: calc(50% - 1.35rem);
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.home-inv-badge {
    top: 0.45rem;
    right: 0.55rem;
}
.hidden { display: none !important; }
.nav-badge.hidden,
.home-inv-badge.hidden { display: none !important; }


.app-nav {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    padding: 0.35rem 0.4rem 0.45rem;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 40;
}

.app-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.app-logo {
    height: 2.25rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
    display: block;
}
.app-back {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.app-back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 3.25rem;
    padding: 0.35rem 0.4rem;
    font-size: 10px;
    color: #64748b;
    text-decoration: none;
}
.nav-item i { font-size: 0.95rem; }
.nav-item:hover { color: #2563eb; }

.nav-deposit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    background: none;
    border: none;
    padding: 0 0.25rem;
    margin-top: -1.85rem;
    cursor: pointer;
    min-width: 4.5rem;
}
.nav-deposit:has(.has-img) {
    margin-top: -2.1rem;
}
.nav-deposit-btn {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    border: 3px solid #fff;
    overflow: hidden;
}
.nav-deposit-btn.has-img {
    width: 4.35rem;
    height: 4.35rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.nav-deposit-btn.has-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.45));
    pointer-events: none;
}
.nav-deposit:hover .nav-deposit-btn {
    filter: brightness(1.08);
}
.nav-deposit:hover .nav-deposit-btn.has-img {
    filter: none;
}
.nav-deposit:hover .nav-deposit-btn.has-img img {
    filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.55)) brightness(1.05);
    transform: translateY(-1px) scale(1.03);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.nav-deposit-label {
    font-size: 10px;
    color: #2563eb;
    font-weight: 700;
    line-height: 1.1;
}

.safe-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Bottom sheet depósito PIX */
.sheet-root {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    visibility: hidden;
}
.sheet-root.is-open {
    pointer-events: auto;
    visibility: visible;
}
.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sheet-root.is-open .sheet-backdrop {
    opacity: 1;
}
.sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.2);
}
.sheet-root.is-open .sheet-panel {
    transform: translateY(0);
}
/* Mobile: sheet quase tela cheia */
@media (max-width: 767px) {
    .sheet-panel {
        top: 8vh;
        max-height: 92vh;
        border-radius: 1.25rem 1.25rem 0 0;
    }
}
/* Desktop: sheet preso à coluna do app */
@media (min-width: 768px) {
    .sheet-root {
        left: 50%;
        right: auto;
        width: 420px;
        transform: translateX(-50%);
    }
    .sheet-panel {
        max-height: 85vh;
        border-radius: 1.25rem 1.25rem 0 0;
    }
}
.sheet-handle {
    width: 2.5rem;
    height: 0.3rem;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0.25rem auto 0.75rem;
}
.sheet-scroll {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.font-gamer {
    font-family: 'Unbounded', system-ui, sans-serif;
    letter-spacing: -0.02em;
}
.font-sub {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.blue-text-gradient {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.scratch-canvas-cursor {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='28' fill='%232563eb' stroke='%23ffffff' stroke-width='4'/%3E%3Ccircle cx='32' cy='32' r='20' fill='%231d4ed8'/%3E%3Cpath d='M32 18 L36 28 L46 28 L38 34 L41 44 L32 38 L23 44 L26 34 L18 28 L28 28 Z' fill='%2393c5fd'/%3E%3C/svg%3E") 32 32, pointer;
}
.card-tile {
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.btn-primary {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.6; }
.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    text-align: center;
}
.input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    background: #fff;
}
.input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
.table-admin { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.table-admin th, .table-admin td { border-bottom: 1px solid #e2e8f0; padding: 0.5rem 0.4rem; text-align: left; }
.table-admin th { background: #f8fafc; font-weight: 600; }

/* ========== ADMIN PANEL ========== */
body.admin-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: rgba(241, 245, 249, 0.7);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}
body.admin-body ::-webkit-scrollbar { width: 5px; height: 5px; }
body.admin-body ::-webkit-scrollbar-track { background: #f1f5f9; }
body.admin-body ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
body.admin-body ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
.admin-sidebar {
    width: 16rem;
    flex-shrink: 0;
    background: #fff;
    color: #334155;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    border-right: 1px solid #e2e8f0;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.admin-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    background: linear-gradient(to top right, #f59e0b, #fbbf24, #fde047);
    display: grid;
    place-items: center;
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.22);
    overflow: hidden;
    flex-shrink: 0;
}
.admin-brand-mark i { transform: rotate(-12deg); }
.admin-brand-mark.has-logo {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 0.2rem;
}
.admin-brand-mark.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.admin-brand-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}
.admin-brand-sub {
    font-size: 0.68rem;
    color: #d97706;
    font-weight: 650;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.admin-brand-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #10b981;
    animation: admin-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes admin-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.admin-nav {
    flex: 1;
    overflow: auto;
    padding: 0.75rem 0.7rem 0.9rem;
}
.admin-nav-section {
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.7rem 0.7rem 0.3rem;
}
.admin-nav-section:first-child { padding-top: 0.2rem; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.55rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 550;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-nav-link i {
    width: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
}
.admin-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.admin-nav-link:hover i { color: #64748b; }
.admin-nav-link.is-active {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    font-weight: 700;
    border-color: rgba(252, 211, 77, 0.45);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.admin-nav-link.is-active i { color: #d97706; }
.admin-nav-danger { color: #e11d48; font-weight: 650; }
.admin-nav-danger i { color: #e11d48; }
.admin-nav-danger:hover {
    background: #fff1f2;
    color: #be123c;
}
.admin-nav-danger:hover i { color: #be123c; }

.card-parts-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow-x: auto;
}
.card-parts-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-parts-link i { color: #94a3b8; font-size: 0.7rem; }
.card-parts-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: transparent;
}
.card-parts-link.is-active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(252, 211, 77, 0.5);
    color: #78350f;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.card-parts-link.is-active i { color: #d97706; }
.card-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 720px) {
    .card-hub-grid { grid-template-columns: repeat(3, 1fr); }
}
.card-hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hub-card:hover {
    border-color: #fcd34d;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.card-hub-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.card-hub-card p { margin: 0; font-size: 0.75rem; color: #64748b; line-height: 1.35; }
.card-hub-card .hub-meta { font-size: 0.7rem; color: #94a3b8; margin-top: auto; }

.admin-sidebar-foot {
    padding: 0.7rem 0.7rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(248, 250, 252, 0.7);
}
.admin-sidebar-foot .admin-nav-link {
    font-size: 0.72rem;
    font-weight: 650;
    padding: 0.4rem 0.7rem;
}
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}
.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.admin-menu-btn {
    display: none;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 0.72rem;
}
.admin-topbar-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}
.admin-topbar-crumb {
    font-size: 0.68rem;
    font-weight: 550;
    color: #94a3b8;
    margin-top: 0.05rem;
}
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.admin-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background 0.15s ease;
}
.admin-topbar-cta:hover { background: #fbbf24; }
.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.65rem 0.2rem 0.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
}
.admin-user-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: linear-gradient(to top right, #f59e0b, #facc15);
    color: #0f172a;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.admin-user-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}
.admin-user-email {
    font-size: 0.58rem;
    font-weight: 550;
    color: #94a3b8;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}
.admin-content {
    padding: 1rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.admin-content > h1.font-gamer {
    display: none;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.1rem;
}
@media (min-width: 640px) {
    .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .admin-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.light-card,
.admin-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-stat-card {
    padding: 1.15rem 1.2rem;
    position: relative;
    overflow: hidden;
}
.admin-stat-card:hover,
.light-card:hover {
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
.admin-stat-card.is-span-wide {
    grid-column: span 1;
}
@media (min-width: 640px) {
    .admin-stat-card.is-span-wide { grid-column: span 2; }
}
@media (min-width: 1280px) {
    .admin-stat-card.is-span-wide { grid-column: span 2; }
}
.admin-stat-card.is-amber {
    border-color: rgba(252, 211, 77, 0.8);
    background: linear-gradient(to bottom, rgba(255, 251, 235, 0.55), #fff);
}
.admin-stat-card.is-rose {
    border-color: #fecdd3;
    background: linear-gradient(to bottom, rgba(255, 241, 242, 0.45), #fff);
}
.admin-stat-card.is-profit {
    border-color: #a7f3d0;
    background: linear-gradient(to bottom, rgba(236, 253, 245, 0.5), #fff);
}
.admin-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}
.admin-stat-card .label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.admin-stat-card .label i { font-size: 0.85rem; }
.admin-stat-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
}
.admin-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}
.admin-stat-card .value {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.admin-stat-card.is-amber .value { color: #d97706; }
.admin-stat-card.is-rose .value { color: #e11d48; }
.admin-stat-card.is-profit .value { color: #059669; }
.admin-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 750;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.admin-stat-link {
    font-size: 0.72rem;
    font-weight: 750;
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.admin-stat-link:hover { color: #0369a1; }

.admin-dash-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}
@media (min-width: 1024px) {
    .admin-dash-charts { grid-template-columns: 2fr 1fr; }
}
.admin-dash-panel {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
}
.admin-dash-panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
@media (min-width: 640px) {
    .admin-dash-panel-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-dash-panel h3 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.admin-dash-panel p {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-chart-wrap {
    position: relative;
    width: 100%;
    height: 17rem;
}
.admin-chart-wrap.is-donut { height: 14rem; }
.admin-dash-donut-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.admin-dash-donut-foot .k {
    font-size: 0.68rem;
    font-weight: 650;
    color: #94a3b8;
}
.admin-dash-donut-foot .v {
    font-size: 0.85rem;
    font-weight: 750;
}
.admin-dash-note {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.admin-dash-note-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    color: #d97706;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.admin-dash-note p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 550;
    color: #475569;
    line-height: 1.45;
}

/* Catálogo de raspadinhas (cards.php) */
.admin-cards-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (min-width: 640px) {
    .admin-cards-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-cards-hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.admin-cards-hero-title {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.admin-cards-hero-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(253, 230, 138, 0.85);
}
.admin-cards-hero-desc {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.admin-cards-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}
.admin-cards-btn-secondary,
.admin-cards-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-cards-btn-secondary {
    color: #334155;
    background: #f1f5f9;
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.admin-cards-btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
.admin-cards-btn-primary {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}
.admin-cards-btn-primary:hover { background: #1d4ed8; }

.admin-cards-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.7rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (min-width: 768px) {
    .admin-cards-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-cards-search {
    position: relative;
    width: 100%;
    max-width: 24rem;
}
.admin-cards-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.72rem;
}
.admin-cards-search input {
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 2.2rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 550;
    color: #0f172a;
    outline: none;
}
.admin-cards-search input:focus {
    background: #fff;
    border-color: #fbbf24;
}
.admin-cards-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.admin-cards-filters button {
    padding: 0.4rem 0.75rem;
    border-radius: 0.55rem;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 550;
    cursor: pointer;
}
.admin-cards-filters button:hover { background: #f1f5f9; }
.admin-cards-filters button.is-active {
    background: #0f172a;
    color: #fff;
    font-weight: 750;
}

.admin-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}
@media (min-width: 768px) {
    .admin-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .admin-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .admin-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.scratch-card-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.03), 0 2px 6px -2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.scratch-card-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.08), 0 6px 12px -3px rgba(15, 23, 42, 0.03);
    border-color: #cbd5e1;
}
.scratch-card-box.hidden { display: none !important; }

.ticket-texture {
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.75s ease;
    pointer-events: none;
}
.scratch-card-box:hover .shine-effect::after {
    transform: rotate(30deg) translateY(100%);
}

.scratch-card-banner {
    position: relative;
    min-height: 7.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom right, #fbbf24, #f59e0b, #eab308);
    border-bottom: 1px solid rgba(252, 211, 77, 0.55);
}
.scratch-card-banner.is-inactive {
    background: linear-gradient(to bottom right, #94a3b8, #64748b, #475569);
    border-bottom-color: rgba(148, 163, 184, 0.5);
}
.scratch-card-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}
.scratch-card-id {
    font-size: 0.62rem;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.15rem 0.55rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.scratch-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}
.scratch-badge-active,
.scratch-badge-off,
.scratch-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.scratch-badge-active {
    background: #10b981;
    color: #fff;
}
.scratch-badge-active .dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #fff;
    animation: admin-pulse-dot 1.6s ease-in-out infinite;
}
.scratch-badge-off {
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
}
.scratch-badge-featured {
    background: rgba(15, 23, 42, 0.8);
    color: #fcd34d;
}
.scratch-badge-featured i { color: #fbbf24; font-size: 0.55rem; }
.scratch-card-watermark {
    position: absolute;
    right: -0.7rem;
    bottom: -1.1rem;
    font-size: 5.5rem;
    color: rgba(0, 0, 0, 0.1);
    transform: rotate(-12deg);
    pointer-events: none;
    transition: transform 0.3s ease;
}
.scratch-card-box:hover .scratch-card-watermark {
    transform: rotate(0deg) scale(1.08);
}
.scratch-card-banner-foot {
    position: relative;
    z-index: 2;
    margin-top: 0.7rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}
.scratch-card-price-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 750;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.2;
}
.scratch-card-price {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.scratch-card-banner.is-inactive .scratch-card-price,
.scratch-card-banner.is-inactive .scratch-card-price-label {
    color: #f8fafc;
}
.scratch-card-price-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.scratch-card-price-icon i {
    color: #d97706;
    font-size: 1rem;
    transform: rotate(-12deg);
}

.scratch-card-body {
    padding: 1.15rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.scratch-card-name {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.15s ease;
}
.scratch-card-box:hover .scratch-card-name { color: #d97706; }
.scratch-card-slug {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #94a3b8;
}
.scratch-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}
.scratch-card-btn-hub,
.scratch-card-btn-prizes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.15s ease;
}
.scratch-card-btn-hub {
    background: #0f172a;
    color: #fff;
}
.scratch-card-btn-hub:hover { background: #1e293b; }
.scratch-card-btn-hub i { color: #fbbf24; font-size: 0.68rem; }
.scratch-card-btn-prizes {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}
.scratch-card-btn-prizes:hover { background: #e0e7ff; }
.scratch-card-btn-prizes i { color: #4f46e5; font-size: 0.68rem; }

.scratch-card-tools {
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.scratch-card-rules {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 650;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid rgba(253, 230, 138, 0.55);
    text-decoration: none;
}
.scratch-card-rules:hover { background: #fef3c7; color: #92400e; }
.scratch-card-rules i { font-size: 0.62rem; color: #d97706; }
.scratch-card-icons {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.scratch-card-icons a {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    color: #64748b;
    text-decoration: none;
}
.scratch-card-icons a:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.scratch-card-icons a.is-danger { color: #f43f5e; }
.scratch-card-icons a.is-danger:hover {
    background: #fff1f2;
    color: #be123c;
}

.admin-sidebar-backdrop {
    display: none;
}
body.admin-body .table-admin {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}
body.admin-body .table-admin th {
    background: #f8fafc;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
body.admin-body .bg-white.border.rounded-xl {
    border-radius: 1rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

@media (max-width: 900px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(16rem, 86vw);
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
    }
    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-menu-btn { display: inline-grid; place-items: center; }
    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 40;
    }
    .admin-sidebar-backdrop[hidden] { display: none !important; }
    .admin-user-meta { display: none; }
    .admin-topbar-cta-label { display: none; }
    .admin-topbar { padding: 0.75rem 1rem; }
    .admin-content { padding: 1rem 0.85rem 1.5rem; gap: 1rem; }
}

.asset-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
}
.asset-pick {
    position: relative;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.375rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 4.35rem;
    transition: all 0.15s ease;
}
.asset-pick:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.asset-pick input { position: absolute; opacity: 0; pointer-events: none; }
.asset-pick img {
    max-height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    background: transparent;
}
.asset-pick span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #475569;
    word-break: break-all;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.asset-pick.is-selected {
    border-color: #eab308;
    background: #fffbe1;
    box-shadow: 0 2px 8px -1px rgba(234, 179, 8, 0.25);
}
.asset-pick-static { cursor: default; }
.asset-pick-del-form {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 2;
    margin: 0;
}
.asset-pick-del {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 3;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 999px;
    background: #f43f5e;
    color: #fff;
    font-size: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.asset-pick-del:hover { background: #be123c; }
.admin-upload-btn.is-uploading { opacity: 0.75; pointer-events: none; }
.admin-upload-btn .upload-status { font-weight: 600; color: #fbbf24; }
.asset-pick-badge {
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.asset-pick.is-protected {
    opacity: 0.85;
}
.asset-library .asset-pick {
    min-height: 5rem;
}
.asset-pick-custom {
    justify-content: center;
    min-height: 4.35rem;
}
.asset-pick-custom > i {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.asset-pick-custom span { font-weight: 700; color: #334155; }

.admin-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 0.55rem;
    border: 0;
    background: #0f172a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.admin-upload-btn:hover { background: #1e293b; }
.admin-upload-btn i { color: #fbbf24; font-size: 0.62rem; }
.admin-upload-btn input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.admin-upload-btn {
    position: relative;
}
.admin-visual-upload-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.admin-visual-upload-row .form-input-custom,
.admin-visual-upload-row input.input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.72rem !important;
}

.admin-form-page-head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .admin-form-page-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-form-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 750;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 0.1rem;
}
.admin-form-back:hover { color: #1e40af; }
.admin-form-back i { font-size: 0.58rem; }
.admin-form-page-title {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.admin-form-page-desc {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 550;
}
.admin-form-assets-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.7rem;
    font-weight: 750;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    text-decoration: none;
    white-space: nowrap;
}
.admin-form-assets-link:hover {
    background: #e0e7ff;
    color: #3730a3;
}
.admin-card-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.1rem 1.15rem;
    width: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.admin-card-form-section-title {
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-card-form-section-title i { color: #f59e0b; }
.admin-card-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0.7rem;
}
@media (min-width: 768px) {
    .admin-card-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-card-form-grid .is-span-2 { grid-column: span 1; }
.admin-card-form-grid .is-span-3,
.admin-card-form-grid .is-span-2.is-full {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .admin-card-form-grid .is-span-2 { grid-column: span 2; }
    .admin-card-form-grid .is-span-3 { grid-column: 1 / -1; }
}
.admin-card-form label.field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    color: #334155;
    margin-bottom: 0.15rem;
}
.admin-card-form .form-input-custom,
.admin-card-form input.input,
.admin-card-form select.input,
.admin-card-form textarea.input {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.15s ease;
}
.admin-card-form .form-input-custom:focus,
.admin-card-form input.input:focus,
.admin-card-form select.input:focus,
.admin-card-form textarea.input:focus {
    outline: none;
    background: #fff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.admin-featured-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    height: 2.15rem;
    padding: 0 0.65rem;
    border-radius: 0.55rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 750;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s ease;
}
.admin-featured-check:hover { background: #f1f5f9; }
.admin-featured-check input {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #f59e0b;
}
.admin-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}
@media (min-width: 768px) {
    .admin-visual-grid { grid-template-columns: 1fr 1fr; }
}
.admin-visual-grid .is-span-2 { grid-column: 1 / -1; }
.admin-visual-block {
    padding: 0.7rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
}
.admin-visual-block > .field-label {
    margin-bottom: 0.4rem;
}
.admin-visual-hint {
    margin: 0.4rem 0 0;
    font-size: 0.62rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-card-form-foot {
    padding-top: 0.7rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}
.admin-card-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 0.55rem;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(245, 158, 11, 0.2);
    transition: background 0.15s ease;
}
.admin-card-form-submit:hover { background: #fbbf24; }
.admin-card-form-cancel {
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
    text-decoration: none;
    padding: 0.45rem 0.7rem;
}
.admin-card-form-cancel:hover { color: #0f172a; }

.admin-upload-btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    padding: 0.5rem 0.75rem;
}

.admin-lib-hero {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (min-width: 640px) {
    .admin-lib-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-lib-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.7rem;
    font-weight: 750;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    text-decoration: none;
}
.admin-lib-back-link:hover {
    background: #dbeafe;
    color: #1e40af;
}
.admin-lib-back-link i { font-size: 0.58rem; }
.admin-lib-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}
.admin-lib-form-hint {
    font-size: 0.62rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-lib-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
}
.admin-lib-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 750;
    color: #0f172a;
    cursor: pointer;
}
.admin-lib-flag input {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #f59e0b;
}
.admin-lib-flag .is-lose { color: #e11d48; }
.admin-lib-flag .is-active { color: #047857; }

.admin-lib-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.admin-lib-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid #e2e8f0;
}
.admin-lib-table-head h3 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-lib-table-head span {
    font-size: 0.68rem;
    font-weight: 650;
    color: #64748b;
}
.admin-lib-table-scroll { overflow-x: auto; }
.admin-lib-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.75rem;
}
.admin-lib-table thead th {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.62rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}
.admin-lib-table thead th.is-media { width: 3rem; text-align: center; }
.admin-lib-table thead th.is-actions { text-align: right; }
.admin-lib-table tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 550;
    color: #334155;
    vertical-align: middle;
}
.admin-lib-table tbody tr:hover { background: rgba(248, 250, 252, 0.7); }
.admin-lib-table tbody tr:last-child td { border-bottom: 0; }
.admin-lib-table td.is-media { text-align: center; }
.admin-lib-table td.is-name { font-weight: 750; color: #0f172a; }
.admin-lib-table td.is-value { font-weight: 700; color: #059669; }
.admin-lib-table td.is-value-mute { font-weight: 650; color: #64748b; }
.admin-lib-table td.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}
.admin-lib-table td.is-actions { text-align: right; white-space: nowrap; }
.admin-lib-thumb {
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
    border-radius: 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.admin-lib-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.admin-lib-thumb i { font-size: 0.85rem; color: #64748b; }
.admin-lib-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 0.4rem;
    font-size: 0.62rem;
    font-weight: 750;
    border: 1px solid transparent;
}
.admin-lib-badge.is-prize {
    background: #eef2ff;
    color: #4338ca;
    border-color: rgba(199, 210, 254, 0.7);
}
.admin-lib-badge.is-lose {
    background: #fff1f2;
    color: #be123c;
    border-color: rgba(254, 205, 211, 0.7);
}
.admin-lib-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 750;
    border: 1px solid transparent;
}
.admin-lib-status.is-on {
    color: #047857;
    background: #ecfdf5;
    border-color: rgba(167, 243, 208, 0.7);
}
.admin-lib-status.is-off {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.admin-lib-status .dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #10b981;
}
.admin-lib-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}
.admin-lib-actions a {
    color: #2563eb;
    font-weight: 750;
    text-decoration: none;
}
.admin-lib-actions a:hover { text-decoration: underline; }
.admin-lib-actions a.is-danger { color: #e11d48; }
.admin-lib-actions form { display: inline; margin: 0; }
.admin-lib-actions button {
    border: 0;
    background: none;
    padding: 0;
    color: #64748b;
    font-weight: 750;
    font-size: inherit;
    cursor: pointer;
}
.admin-lib-actions button:hover { text-decoration: underline; color: #0f172a; }
.admin-lib-actions button.is-danger,
.admin-lib-actions form:last-child button {
    color: #e11d48;
}
.admin-lib-actions button.is-danger:hover,
.admin-lib-actions form:last-child button:hover { color: #be123c; }

.admin-lib-thumb.is-wide {
    width: 5.5rem;
    height: 2.5rem;
    border-radius: 0.4rem;
}
.admin-lib-thumb.is-round {
    border-radius: 999px;
}

.admin-inline-adjust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 14rem;
}
.admin-inline-adjust .input {
    width: auto;
    min-width: 4.5rem;
    flex: 1;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
}
.admin-inline-adjust button {
    padding: 0.35rem 0.55rem;
    border-radius: 0.45rem;
    border: 0;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
}
.admin-inline-adjust button:hover { background: #fbbf24; }

.admin-redeem-search .admin-visual-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.admin-redeem-search .admin-visual-upload-row .input { flex: 1; min-width: 10rem; }
.admin-lib-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 1.5rem 0.75rem !important;
}

.admin-page-hero {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (min-width: 640px) {
    .admin-page-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.admin-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.admin-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-chip-link.is-emerald {
    color: #047857;
    background: #ecfdf5;
    border-color: rgba(167, 243, 208, 0.8);
}
.admin-chip-link.is-emerald:hover { background: #d1fae5; }
.admin-chip-link.is-slate {
    color: #334155;
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.admin-chip-link.is-slate:hover { background: #e2e8f0; }
.admin-chip-link.is-blue {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #dbeafe;
}
.admin-chip-link.is-blue:hover { background: #dbeafe; }
.admin-chip-link.is-indigo {
    color: #4338ca;
    background: #eef2ff;
    border-color: #e0e7ff;
}
.admin-chip-link.is-indigo:hover { background: #e0e7ff; }
.admin-chip-link.is-rose {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3;
    cursor: pointer;
    font-family: inherit;
}
.admin-chip-link.is-rose:hover { background: #ffe4e6; }
.admin-chip-link i { font-size: 0.58rem; }

.admin-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
.admin-pager-meta {
    font-size: 0.68rem;
    font-weight: 650;
    color: #64748b;
}
.admin-pager-links {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.admin-pager-page {
    font-size: 0.7rem;
    font-weight: 750;
    color: #334155;
    min-width: 5.5rem;
    text-align: center;
}
.admin-pager-btn {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.45rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.65rem;
}
.admin-pager-btn:hover { background: #f1f5f9; }
.admin-pager-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.admin-fin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    width: 100%;
}
@media (min-width: 640px) {
    .admin-fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .admin-fin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-fin-card {
    padding: 1rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}
.admin-fin-card .fin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    gap: 0.5rem;
}
.admin-fin-card .fin-label {
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.admin-fin-card .fin-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
}
.admin-fin-card .fin-value {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}
.admin-fin-card .fin-hint {
    margin: 0.3rem 0 0;
    font-size: 0.68rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-fin-card.is-amber {
    border-color: rgba(253, 230, 138, 0.85);
    background: linear-gradient(to bottom, rgba(255, 251, 235, 0.45), #fff);
}
.admin-fin-card.is-amber .fin-label { color: #78350f; }
.admin-fin-card.is-amber .fin-value { color: #d97706; }
.admin-fin-card.is-amber .fin-hint { color: rgba(146, 64, 14, 0.75); }
.admin-fin-card.is-amber .fin-icon { background: #fef3c7; color: #b45309; }
.admin-fin-card.is-rose {
    border-color: #fecdd3;
    background: linear-gradient(to bottom, rgba(255, 241, 242, 0.35), #fff);
}
.admin-fin-card.is-rose .fin-label { color: #be123c; }
.admin-fin-card.is-rose .fin-value { color: #e11d48; }
.admin-fin-card.is-rose .fin-hint { color: rgba(190, 18, 60, 0.75); }
.admin-fin-card.is-rose .fin-icon { background: #ffe4e6; color: #be123c; }
.admin-fin-card.is-profit {
    border-color: #a7f3d0;
    background: linear-gradient(to bottom, rgba(236, 253, 245, 0.45), #fff);
}
.admin-fin-card.is-profit .fin-label { color: #047857; }
.admin-fin-card.is-profit .fin-value { color: #059669; }
.admin-fin-card.is-profit .fin-hint { color: rgba(4, 120, 87, 0.75); }
.admin-fin-card.is-profit .fin-icon { background: #d1fae5; color: #047857; }
.admin-fin-card.is-dark {
    background: #0f172a;
    border-color: #1e293b;
    color: #fff;
}
.admin-fin-card.is-dark .fin-label { color: #cbd5e1; }
.admin-fin-card.is-dark .fin-value { color: #fbbf24; }
.admin-fin-card.is-dark .fin-hint { color: #94a3b8; }
.admin-fin-card.is-dark .fin-icon { background: #1e293b; color: #fbbf24; }
.admin-fin-card .fin-icon.is-indigo { background: #eef2ff; color: #4f46e5; }
.admin-fin-card .fin-icon.is-emerald { background: #ecfdf5; color: #059669; }
.admin-fin-card .fin-icon.is-blue { background: #eff6ff; color: #2563eb; }

/* —— Card prizes editor —— */
.admin-prize-head { margin-bottom: 0.15rem; }
.admin-prize-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 750;
    color: #2563eb;
    text-decoration: none;
}
.admin-prize-back:hover { color: #1e40af; }
.admin-prize-back i { font-size: 0.58rem; }
.admin-prize-head .admin-form-page-title { margin-top: 0.15rem; }

.admin-prize-panel {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.admin-prize-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}
.admin-prize-panel-head h2 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.admin-prize-panel-head h2 i { color: #f59e0b; }
.admin-prize-panel-head > a {
    font-size: 0.72rem;
    font-weight: 750;
    color: #4f46e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.admin-prize-panel-head > a:hover { color: #3730a3; }
.admin-prize-panel-head > a i { font-size: 0.58rem; }

.admin-prize-sum {
    font-size: 0.68rem;
    font-weight: 750;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fef3c7;
    color: #92400e;
}
.admin-prize-sum.is-warn {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}
.admin-prize-sum.is-ok {
    border-color: #fde68a;
    background: #fef3c7;
    color: #92400e;
}

.admin-prize-lib-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-height: 10rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}
@media (min-width: 640px) {
    .admin-prize-lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-prize-lib-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: rgba(248, 250, 252, 0.6);
    font-size: 0.72rem;
    font-weight: 650;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-prize-lib-item:hover {
    background: #fff;
    border-color: #fcd34d;
}
.admin-prize-lib-item.is-linked {
    opacity: 0.55;
    cursor: default;
}
.admin-prize-lib-item input[type="checkbox"] {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #f59e0b;
    flex-shrink: 0;
}
.admin-prize-lib-item img,
.admin-prize-lib-ph {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    border-radius: 0.3rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.1rem;
    flex-shrink: 0;
}
.admin-prize-lib-ph {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 0.65rem;
}
.admin-prize-lib-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
    color: #0f172a;
}
.admin-prize-lib-value {
    font-size: 0.68rem;
    font-weight: 750;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid rgba(167, 243, 208, 0.65);
    padding: 0.1rem 0.45rem;
    border-radius: 0.35rem;
    white-space: nowrap;
}
.admin-prize-lib-value.is-mute {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.admin-prize-lib-tag {
    font-size: 0.58rem;
    font-weight: 750;
    color: #059669;
}

.admin-prize-btn-dark {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 0;
    border-radius: 0.55rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.admin-prize-btn-dark:hover { background: #1e293b; }
.admin-prize-btn-dark i { color: #fbbf24; font-size: 0.7rem; }

.admin-prize-table-wrap { overflow-x: auto; }
.admin-prize-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.72rem;
}
.admin-prize-table thead th {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.58rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    white-space: nowrap;
}
.admin-prize-table thead th.is-photo { width: 13rem; }
.admin-prize-table thead th.is-icon { width: 5.5rem; }
.admin-prize-table thead th.is-value { width: 5.5rem; }
.admin-prize-table thead th.is-prob { width: 4.5rem; }
.admin-prize-table thead th.is-stock { width: 4.5rem; }
.admin-prize-table thead th.is-lose { width: 3.5rem; text-align: center; }
.admin-prize-table thead th.is-del { width: 2.25rem; }
.admin-prize-table tbody td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.admin-prize-table tbody tr:hover { background: rgba(248, 250, 252, 0.65); }
.admin-prize-table td.is-lose,
.admin-prize-table td.is-del { text-align: center; vertical-align: middle; }
.admin-prize-table .form-input-custom,
.admin-prize-table input.input {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 550;
    color: #0f172a;
}
.admin-prize-table .form-input-custom:focus,
.admin-prize-table input.input:focus {
    outline: none;
    background: #fff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.admin-prize-table .form-input-custom.is-name { font-weight: 750; }
.admin-prize-table .form-input-custom.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
}
.admin-prize-table .form-input-custom.is-money { font-weight: 750; color: #059669; }
.admin-prize-table .form-input-custom.is-money.is-mute { color: #64748b; }
.admin-prize-table .form-input-custom.is-prob {
    font-weight: 750;
    color: #b45309;
    background: rgba(255, 251, 235, 0.55);
    border-color: #fde68a;
}
.admin-prize-bib {
    margin-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 650;
    color: #6366f1;
}
.admin-prize-empty td {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 1.25rem 0.75rem !important;
}
.admin-prize-table td.is-lose input[type="checkbox"] {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #f59e0b;
}

.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-input-btn {
    width: 100%;
    padding: 0.3rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    pointer-events: none;
}
.file-input-btn i { font-size: 0.58rem; color: #64748b; }
.file-input-btn .file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 10rem;
}
.file-input-btn.is-ready {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.file-input-btn.is-ready i { color: #059669; }

.admin-prize-del {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
    border: 0;
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}
.admin-prize-del:hover {
    background: #f43f5e;
    color: #fff;
}

.admin-prize-panel-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.admin-prize-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.admin-prize-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}
.admin-prize-btn-add:hover { background: #dbeafe; }
.admin-prize-btn-add i { font-size: 0.58rem; }
.admin-prize-hub-link {
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
    text-decoration: none;
}
.admin-prize-hub-link:hover { color: #0f172a; }
.admin-prize-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    border: 0;
    border-radius: 0.55rem;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.22);
}
.admin-prize-btn-save:hover { background: #fbbf24; }
.admin-prize-btn-save i { font-size: 0.7rem; }

/* —— Stories admin —— */
.admin-story-form {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.admin-story-form-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}
.admin-story-form-head h2 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.admin-story-form-head h2 i { color: #f59e0b; }
.admin-story-form-head span {
    font-size: 0.62rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .admin-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-story-grid .is-span-2 { grid-column: span 1; }
.admin-story-grid .is-span-3 { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .admin-story-grid .is-span-2 { grid-column: span 2; }
}
.admin-story-form .field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    color: #334155;
    margin-bottom: 0.2rem;
}
.admin-story-form .form-input-custom,
.admin-story-form input.input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 550;
    color: #0f172a;
}
.admin-story-form .form-input-custom:focus,
.admin-story-form input.input:focus {
    outline: none;
    background: #fff;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.admin-story-form .form-input-custom.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}

.admin-story-media {
    padding: 0.75rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
}
.admin-story-media-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 0.45rem;
}
.admin-story-media-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    align-items: center;
}
@media (min-width: 640px) {
    .admin-story-media-row { grid-template-columns: 2fr 1fr; }
}
.admin-story-media-hint {
    margin: 0.4rem 0 0;
    font-size: 0.68rem;
    font-weight: 550;
    color: #94a3b8;
}
.admin-story-media-preview {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 0.5rem;
}
.admin-story-media-preview.is-round { border-radius: 999px; border-color: #fbbf24; border-width: 2px; }
.admin-story-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-input-wrapper.is-dark .file-input-btn-dark {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 0.55rem;
    border: 0;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.file-input-wrapper.is-dark .file-input-btn-dark i { color: #fbbf24; font-size: 0.7rem; }
.file-input-wrapper.is-dark .file-input-btn-dark .file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 9rem;
}
.file-input-wrapper.is-dark .file-input-btn-dark.is-ready {
    background: #059669;
}
.file-input-wrapper.is-dark .file-input-btn-dark.is-ready i { color: #fff; }

.admin-story-active-wrap {
    display: flex;
    align-items: flex-end;
}
.admin-story-active {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    height: 2.125rem;
    padding: 0 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 750;
    color: #047857;
    cursor: pointer;
    transition: background 0.15s ease;
}
.admin-story-active:hover { background: #f1f5f9; }
.admin-story-active input {
    width: 0.85rem;
    height: 0.85rem;
    accent-color: #f59e0b;
}

.admin-story-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid #f1f5f9;
}

.admin-story-table { width: 100%; }
.admin-story-thumb {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid #fbbf24;
    background: #f1f5f9;
    padding: 0.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.admin-banner-thumb {
    width: 5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    padding: 0.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.35rem;
}
.admin-banner-media-preview {
    width: 100%;
    max-width: 18rem;
    height: 5.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 0.5rem;
}
.admin-banner-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— Landing / Hero admin —— */
.admin-landing-form {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.admin-landing-section-title {
    margin: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.admin-landing-section-title i { color: #f59e0b; }
.admin-landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .admin-landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-landing-grid .is-span-2 { grid-column: 1 / -1; }
.admin-landing-form .field-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    color: #334155;
    margin-bottom: 0.2rem;
}
.admin-landing-form .form-input-custom,
.admin-landing-form input.input,
.admin-landing-form textarea.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 550;
    color: #0f172a;
    resize: vertical;
}
.admin-landing-form .form-input-custom:focus,
.admin-landing-form input.input:focus,
.admin-landing-form textarea.input:focus {
    outline: none;
    background: #fff;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}
.admin-landing-form .form-input-custom.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
}

.admin-landing-upload {
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.85);
}
.admin-landing-upload-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.admin-landing-upload-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
}
@media (min-width: 640px) {
    .admin-landing-upload-row { grid-template-columns: 2fr 1fr; }
    .admin-landing-upload-row.is-logo {
        grid-template-columns: 1fr auto;
    }
}
.admin-landing-preview {
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-landing-preview.is-logo {
    width: 3.5rem;
    height: 3rem;
    padding: 0.35rem;
    flex-shrink: 0;
}
.admin-landing-preview.is-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.admin-landing-preview.is-bg {
    height: 5rem;
}
.admin-landing-preview.is-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-landing-preview.is-visual {
    height: 6rem;
    padding: 0.35rem;
}
.admin-landing-preview.is-visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.admin-landing-preview.is-nav-deposit {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.15rem;
    background: #0f172a;
}
.admin-landing-preview.is-nav-deposit img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.admin-landing-form-foot {
    display: flex;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

body.admin-body .table-admin {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    border-collapse: collapse;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    font-size: 0.75rem;
}
body.admin-body .table-admin th {
    background: #f8fafc;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 750;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
body.admin-body .table-admin td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
body.admin-body .table-admin tr:last-child td { border-bottom: 0; }
body.admin-body .table-admin tbody tr:hover { background: rgba(248, 250, 252, 0.7); }

.admin-image-field { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-image-field-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.admin-image-preview {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.7rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-image-field-controls { flex: 1; min-width: 0; }
.badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.65rem; font-weight: 700; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-wait { background: #fef9c3; color: #854d0e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.quick-amounts button {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 0.75rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.quick-amounts button:hover { background: #dbeafe; }

.profile-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Unbounded', system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #bfdbfe;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.profile-avatar.has-photo {
    background: #e2e8f0;
}
.profile-avatar.has-photo img,
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-avatar-lg {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.15rem;
    cursor: default;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.profile-photo-wrap {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
}
.profile-photo-edit {
    position: absolute;
    right: -0.15rem;
    bottom: -0.15rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fbbf24;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.profile-photo-edit:hover { background: #1e293b; }
.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}
.profile-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 750;
    cursor: pointer;
}
.profile-photo-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.profile-photo-btn.is-mute {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}
.profile-pass-wrap {
    position: relative;
}
.profile-pass-wrap .input {
    padding-right: 2.75rem;
}
.profile-pass-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 0.45rem;
}
.profile-pass-toggle:hover { color: #475569; background: #f1f5f9; }
.profile-menu { position: relative; }
.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: 11.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    z-index: 60;
    overflow: hidden;
}
.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}
.profile-dropdown-item:hover { background: #f8fafc; }
.profile-dropdown-item i { width: 1rem; text-align: center; color: #64748b; }
.profile-dropdown-danger { color: #e11d48; }
.profile-dropdown-danger i { color: #e11d48; }

/* Capas de raspadinha */
.section-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.scratch-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}
.scratch-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.scratch-cover-card {
    display: block;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 1.1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.scratch-cover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}
.scratch-cover-card-wide {
    display: grid;
    grid-template-columns: 9rem 1fr;
}
.scratch-cover-media {
    position: relative;
    width: 100%;
    background: linear-gradient(160deg, #1e3a8a, #0ea5e9);
    overflow: hidden;
    isolation: isolate;
}
.scratch-cover-media img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    display: block;
}
.scratch-cover-card-wide .scratch-cover-media {
    min-height: 100%;
}
.scratch-cover-card-wide .scratch-cover-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.scratch-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.scratch-ov {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    pointer-events: none;
    max-width: calc(50% - 0.4rem);
}
.scratch-ov-tl { top: 0.55rem; left: 0.55rem; }
.scratch-ov-tr { top: 0.55rem; right: 0.55rem; justify-content: flex-end; }
.scratch-ov-bl { bottom: 0.55rem; left: 0.55rem; }
.scratch-ov-br { bottom: 0.55rem; right: 0.55rem; }

.scratch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.scratch-badge-top {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}
.scratch-ov-chip {
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.scratch-ov-chip i { font-size: 0.55rem; color: #93c5fd; }
.scratch-ov-price {
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-ov-chip {
    font-size: 0.52rem;
    padding: 0.22rem 0.4rem;
}
.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-ov-price {
    font-size: 0.62rem;
    padding: 0.28rem 0.48rem;
}
.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-badge-top {
    font-size: 0.5rem;
    padding: 0.22rem 0.4rem;
}
.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-cover-body {
    padding: 0.55rem 0.6rem 0.65rem;
}
.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-cover-title {
    font-size: 0.72rem;
}
.scratch-cover-card:not(.scratch-cover-card-wide) .scratch-cover-desc {
    font-size: 0.62rem;
    -webkit-line-clamp: 2;
}
.scratch-cover-body {
    position: relative;
    z-index: 1;
    padding: 0.8rem 0.85rem 0.9rem;
    background: #fff;
}
.scratch-cover-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.scratch-cover-desc {
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.scratch-cover-cta {
    margin-top: 0.65rem;
    display: inline-flex;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
}
.scratch-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.scratch-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scratch-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
}

.scratch-detail-hero {
    position: relative;
    border-radius: 1.15rem;
    overflow: hidden;
    background: #1e3a8a;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}
.scratch-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.scratch-detail-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 0.9rem;
}
.scratch-detail-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}
.scratch-detail-desc {
    margin: 0.4rem 0 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prize-strip {
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f1f5f9;
}
.prize-strip-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}
.prize-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    -webkit-overflow-scrolling: touch;
}
.prize-tile {
    flex: 0 0 auto;
    width: 3.4rem;
    text-align: center;
}
.prize-tile-art {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.85rem;
    background: linear-gradient(160deg, #f8fafc, #eff6ff);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem;
}
.prize-tile-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.prize-tile-art i {
    font-size: 1.05rem;
    color: #2563eb;
}
.prize-tile-value {
    display: block;
    margin-top: 0.28rem;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}
.scratch-game-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4.25rem);
    padding: 0;
    gap: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.scratch-game-page.is-booting {
    opacity: 0;
    pointer-events: none;
}

/* Loading global estilo app mobile */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 28, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.app-loader[hidden]:not(.is-on) {
    display: none !important;
}
.app-loader.is-on {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.app-loader:not(.is-on) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
html.app-loading,
html.app-loading body {
    overflow: hidden !important;
}
.app-loader-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-width: 4.5rem;
    min-height: 4.5rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.app-loader-ring {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
}
.app-loader-ring i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 3px solid transparent;
    animation: app-loader-spin 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}
.app-loader-ring i:nth-child(1) {
    border-top-color: #2563eb;
    animation-delay: 0s;
}
.app-loader-ring i:nth-child(2) {
    inset: 3px;
    border-top-color: #38bdf8;
    animation-delay: -0.12s;
    opacity: 0.9;
}
.app-loader-ring i:nth-child(3) {
    inset: 6px;
    border-top-color: #f5c518;
    animation-delay: -0.24s;
    opacity: 0.95;
}
@keyframes app-loader-spin {
    to { transform: rotate(360deg); }
}

/* legado raspadinha → usa o mesmo overlay via JS; mantém hide se HTML antigo */
.scratch-boot-loader {
    display: none !important;
}
.scratch-game-page.has-stage-bg {
    background: transparent;
    min-height: calc(100vh - 4.25rem);
    flex: 1;
}
.app-shell:has(.scratch-game-page.has-stage-bg) .app-content {
    background: transparent;
}
.scratch-game-page.has-stage-bg .scratch-board-square {
    background: transparent;
}
.scratch-game-page.has-stage-bg .scratch-prize-preview-label {
    color: #e2e8f0;
}
.scratch-game-page.has-stage-bg .scratch-prize-preview-label i {
    color: #93c5fd;
}
/* trava arrastar / selecionar imagens do jogo */
.scratch-game-page img,
.scratch-result-modal img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}
.scratch-game-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem 0.5rem;
    overflow: auto;
}
.scratch-board-square {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    flex: none;
    padding: 0.45rem;
    display: block;
    margin: 0;
    border-radius: 0.45rem;
    border: 0;
    background: #fff;
}
.scratch-ticket {
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    padding-top: 2.4rem;
}
.scratch-ticket-header {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 0;
    z-index: 5;
    width: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: none;
    overflow: visible;
    margin: 0;
    pointer-events: none;
    margin-top: -10px;
}
.scratch-ticket-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 5.2rem;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}
.scratch-ticket-logo-fallback {
    width: 100%;
    padding: 0.55rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    background: transparent;
}
.scratch-ticket-logo-fallback span {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.scratch-ticket-logo-fallback small {
    font-size: 0.66rem;
    font-weight: 600;
    color: #475569;
}
.scratch-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1374 / 1145;
    background-color: transparent;
    background-image: var(--scratch-frame-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}
.scratch-frame-slot {
    position: absolute;
    /* miolo da borda.png — preenche tudo, sem faixa preta */
    left: 6%;
    right: 6.05%;
    top: 7.45%;
    bottom: 10.05%;
    display: block;
    z-index: 1;
    overflow: hidden;
    border-radius: 0.35rem;
}
.scratch-ticket .scratch-board {
    border: 0;
    border-radius: 0.35rem;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    background: #fff;
    padding: 0.45rem;
}
.scratch-board-square.is-ready {
    display: block;
}
.scratch-board-square .scratch-grid {
    height: 100%;
    width: 100%;
}
.scratch-frame.is-shake,
.scratch-board-square.is-shake {
    animation: scratch-shake 0.4s ease;
}

/* Base inferior (substitui bottom bar) */
.scratch-game-dock {
    position: sticky;
    bottom: 0;
    z-index: 35;
    margin-top: auto;
    background: transparent;
    backdrop-filter: none;
    border-top: 0;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.scratch-game-dock-inner {
    position: relative;
    width: min(100%, 26rem);
    margin: 0 auto;
    aspect-ratio: 2124 / 740;
    background: url('/assets/img/modal/botton-bar.png') center / contain no-repeat;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.18));
}
.scratch-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.btn-scratch-cyan,
.btn-scratch-indigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: clamp(0.5rem, 2.4vw, 0.62rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.4rem;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
    transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-scratch-cyan {
    background: transparent;
}
.btn-scratch-indigo {
    background: transparent;
}
.btn-scratch-cyan:hover,
.btn-scratch-indigo:hover { filter: brightness(1.08); }
.btn-scratch-cyan:active,
.btn-scratch-indigo:active { transform: scale(0.97); }
.btn-scratch-cyan:disabled,
.btn-scratch-indigo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.scratch-stats-bar {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 56%;
    height: 34%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(0.55rem, 2.4vw, 0.68rem);
    font-weight: 700;
    color: #1e293b;
    box-shadow: none;
    gap: 0;
    box-sizing: border-box;
}
.scratch-stats-bar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0 0.35rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    box-sizing: border-box;
}
.scratch-stats-bar .scratch-stat-icon {
    width: clamp(1.05rem, 5vw, 1.35rem);
    height: clamp(1.05rem, 5vw, 1.35rem);
    object-fit: contain;
    flex-shrink: 0;
}
.scratch-stats-bar strong {
    color: #0f172a;
    font-weight: 800;
    margin-left: 0.08em;
}
.scratch-stats-bar .text-blue { color: #1d4ed8 !important; }
.scratch-stats-bar .text-indigo { color: #4338ca !important; }

.scratch-win-toast {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.scratch-win-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scratch-win-toast[hidden] { display: none !important; }
.scratch-win-toast-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 22rem);
    padding: 0.7rem 0.85rem;
    border-radius: 0.95rem;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(96, 165, 250, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
}
.scratch-win-toast-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    flex-shrink: 0;
}
.scratch-win-toast-icon i { font-size: 0.95rem; color: #fff; }
.scratch-win-toast-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}
.scratch-win-toast-text strong {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scratch-win-toast-text small {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    color: #93c5fd;
}
.scratch-win-toast-go {
    color: #93c5fd;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.scratch-result-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.scratch-result-modal.hidden { display: none !important; }
.scratch-result-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.scratch-result-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(72vw, 23rem, 68vh);
    aspect-ratio: 1 / 1;
    max-height: none;
    background-color: transparent;
    background-image: url('/assets/img/modal/modal-lose.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.3));
    padding: 0;
    animation: scratch-result-in 0.32s ease;
    display: block;
    box-sizing: border-box;
}
.scratch-result-modal-dialog.is-win-frame {
    background-image: url('/assets/img/modal/modal-win.png');
}
.scratch-result-modal-dialog.is-lose-frame {
    background-image: url('/assets/img/modal/modal-lose.png');
}
.scratch-result-modal-body {
    position: absolute;
    left: 15%;
    right: 15%;
    top: 56%;
    bottom: 8%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 700;
    color: #0f172a;
}
.scratch-result-modal-body.is-win { color: #1d4ed8; }
.scratch-result-modal-body.is-lose { color: #1e293b; }
/* personagem já está na PNG — some o X */
.scratch-result-modal-body.is-lose .scratch-result-art {
    display: none !important;
}
.scratch-result-modal-body.is-win .scratch-result-art {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.65rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease;
    margin-top: 21px;
}
.scratch-result-modal-body.is-win .scratch-result-art:hover {
    transform: scale(1.06);
}
.scratch-result-modal-btn {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 6%;
    width: auto;
    max-width: none;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.58rem 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}
.scratch-result-art {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}
.scratch-result-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.scratch-result-art i { font-size: 1.15rem; color: #64748b; }
.scratch-result-title {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1.2;
    font-size: 0.7rem;
    font-weight: 800;
    color: #1e293b;
    text-wrap: balance;
}
/* "Ganhou!" já vem na PNG */
.scratch-result-modal-body.is-win .scratch-result-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.scratch-result-sub {
    margin: 0;
    width: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #475569;
    text-wrap: balance;
}
.scratch-result-modal-body.is-win .scratch-result-sub {
    color: #1e3a8a;
    font-weight: 750;
}
.scratch-result-link {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 750;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.scratch-result-code-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}
.scratch-result-code-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.28rem 0.5rem;
    color: #334155;
}
.scratch-copy-btn {
    border: 0;
    border-radius: 999px;
    background: #334155;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

@keyframes scratch-result-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.scratch-prize-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.scratch-prize-preview-label {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
}
.scratch-prize-preview-label i { color: #2563eb; margin-right: 0.2rem; }
.scratch-prize-preview-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}
.scratch-prize-chip {
    flex: 0 0 auto;
    width: 5.6rem;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 0.85rem;
    padding: 0.55rem 0.4rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
    box-shadow: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.scratch-prize-chip:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 14px rgba(14, 165, 233, 0.28));
}
.scratch-prize-chip:active {
    transform: scale(0.97);
}
.scratch-prize-chip-art {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
}
.scratch-prize-chip-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.scratch-prize-chip-art i { color: #2563eb; }
.scratch-prize-chip-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.scratch-prize-chip-value {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    color: #2563eb;
}

.prize-inspect {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.prize-inspect.hidden { display: none !important; }
.prize-inspect-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
    animation: prize-inspect-fade 0.22s ease;
}
.prize-inspect-card {
    position: relative;
    z-index: 1;
    width: min(100%, 17.5rem);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.35rem;
    padding: 1.35rem 1.1rem 1.15rem;
    text-align: center;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.35);
    animation: prize-inspect-pop 0.34s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.prize-inspect.is-closing .prize-inspect-card {
    animation: prize-inspect-out 0.2s ease forwards;
}
.prize-inspect.is-closing .prize-inspect-backdrop {
    animation: prize-inspect-fade-out 0.2s ease forwards;
}
.prize-inspect-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.prize-inspect-art {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0.35rem auto 0.85rem;
    border-radius: 1.25rem;
    background: transparent;
    border: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    animation: prize-inspect-spin-in 0.45s ease;
}
.prize-inspect-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
}
.prize-inspect-art i {
    font-size: 2.6rem;
    color: #2563eb;
}
.prize-inspect-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    text-wrap: balance;
}
.prize-inspect-value {
    margin-top: 0.35rem;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1d4ed8;
}
.prize-inspect-hint {
    margin: 0.55rem 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}
@keyframes prize-inspect-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes prize-inspect-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes prize-inspect-pop {
    from { opacity: 0; transform: scale(0.72) translateY(18px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes prize-inspect-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.88) translateY(10px); }
}
@keyframes prize-inspect-spin-in {
    from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.scratch-confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
}
.scratch-confetti-canvas.is-on { opacity: 1; }
.scratch-game-page { position: relative; }

.scratch-board-square.is-shake {
    animation: scratch-shake 0.4s ease;
}
@keyframes scratch-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.btn-scratch-indigo.is-pulse {
    animation: scratch-btn-pulse 0.7s ease;
}
@keyframes scratch-btn-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.btn-scratch-indigo.is-loading {
    opacity: 1 !important;
    cursor: wait;
    pointer-events: none;
    filter: brightness(0.95);
}
.btn-scratch-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: btn-scratch-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes btn-scratch-spin {
    to { transform: rotate(360deg); }
}

.scratch-stats-bar i {
    display: none;
}

.scratch-game-page .scratch-board {
    flex: 0 0 auto;
    min-height: 0;
}
.scratch-game-page .scratch-actions {
    position: absolute;
    left: 11%;
    right: 11%;
    top: 10%;
    height: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.scratch-detail-hint {
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    color: #334155;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.7rem;
    padding: 0.45rem 0.65rem;
}
.scratch-detail-hint i { color: #2563eb; margin-right: 0.25rem; }

.scratch-game-status {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    padding: 0.5rem 0.65rem;
}

.scratch-board {
    position: relative;
    width: 100%;
    border: 2px solid #93c5fd;
    border-radius: 1.1rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
    padding: 0.55rem;
}
.scratch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
}
.scratch-game-page .scratch-cell {
    aspect-ratio: auto;
    min-height: 0;
    height: 100%;
}
.scratch-cell {
    aspect-ratio: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.45rem 0.35rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.scratch-cell-top {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.scratch-cell-badge { display: none !important; }
.scratch-cell-value {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
}
.scratch-cell-art {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.scratch-cell-art img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}
.scratch-cell-art i {
    font-size: 1.05rem;
    color: #64748b;
}
.scratch-cell-name {
    font-size: 0.55rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.scratch-cell.is-winner {
    animation: scratch-winner-pulse 1.1s ease-in-out infinite;
    border-color: #94a3b8 !important;
    background: #f8fafc;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
    z-index: 2;
}
@keyframes scratch-winner-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Neutraliza raridades no grid do jogo */
.scratch-game-page .rarity-legendary,
.scratch-game-page .rarity-epic,
.scratch-game-page .rarity-rare,
.scratch-game-page .rarity-common {
    border-color: #e2e8f0 !important;
    background: #fff !important;
}
.scratch-game-page .scratch-cell.is-winner.rarity-legendary,
.scratch-game-page .scratch-cell.is-winner.rarity-epic,
.scratch-game-page .scratch-cell.is-winner.rarity-rare,
.scratch-game-page .scratch-cell.is-winner.rarity-common {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

body.scratch-modal-open { overflow: hidden; }

.scratch-audio-toggle {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 40;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.92);
    color: #475569;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.scratch-audio-toggle.is-muted { color: #94a3b8; }
.scratch-game-stage { position: relative; }

/* Baú flutuante → inventário */
.scratch-inventory-chest {
    position: absolute;
    left: 0.35rem;
    top: 0.55rem;
    z-index: 38;
    width: 5.2rem;
    height: 5.2rem;
    display: grid;
    place-items: center;
    text-decoration: none;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.35));
    animation: scratch-chest-float 2.8s ease-in-out infinite;
    transition: filter 0.15s ease;
}
.scratch-inventory-chest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.scratch-inventory-chest:hover {
    filter: drop-shadow(0 10px 20px rgba(14, 165, 233, 0.45));
}
.scratch-inventory-chest:active {
    animation: none;
    transform: scale(0.94);
}
.scratch-inventory-chest.hidden {
    display: none !important;
}
.scratch-chest-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.45);
    border: 2px solid #fff;
    z-index: 2;
    animation: scratch-chest-badge-pop 0.45s ease;
}
.scratch-chest-badge.hidden { display: none !important; }
@keyframes scratch-chest-badge-pop {
    0% { transform: scale(0.4); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes scratch-chest-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-0.55rem) rotate(2deg); }
}
@media (max-width: 380px) {
    .scratch-inventory-chest {
        width: 4.4rem;
        height: 4.4rem;
    }
}

.rarity-legendary {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), #fff);
}
.rarity-epic {
    border-color: #8b5cf6 !important;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.95), #fff);
}
.rarity-rare {
    border-color: #0284c7 !important;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), #fff);
}
.rarity-common {
    border-color: #94a3b8 !important;
}
.badge-legendary { background: #f59e0b; color: #fff; }
.badge-epic { background: #8b5cf6; color: #fff; }
.badge-rare { background: #0284c7; color: #fff; }
.badge-common { background: #64748b; color: #fff; }

.scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    border-radius: 1rem;
    transition: opacity 0.35s ease;
}
.scratch-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.prize-reveal-art {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.prize-reveal-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stories rail */
.stories-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stories-rail::-webkit-scrollbar { display: none; }
.story-bubble {
    flex: 0 0 auto;
    width: 4.4rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: center;
}
.story-ring {
    display: block;
    width: 3.85rem;
    height: 3.85rem;
    margin: 0 auto;
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #8b5cf6);
}
.story-bubble.is-seen .story-ring {
    background: #cbd5e1;
}
.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
    background: #e2e8f0;
}
.story-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Banner slider */
.banner-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #1e3a8a;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}
.banner-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}
.banner-slide {
    flex: 0 0 100%;
    display: block;
    min-width: 100%;
}
.banner-slide img {
    width: 100%;
    aspect-ratio: 20 / 9;
    object-fit: cover;
    display: block;
}
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.55rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    z-index: 2;
}
.banner-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}
.banner-dot.is-active {
    width: 1rem;
    background: #fff;
}

/* Story viewer */
.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.story-viewer.hidden { display: none; }
.story-viewer-inner {
    position: relative;
    width: min(100%, 420px);
    height: min(100%, 760px);
    background: #0f172a;
    overflow: hidden;
}
.story-progress {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    z-index: 5;
    display: flex;
    gap: 0.25rem;
}
.story-progress-seg {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
}
.story-viewer-head {
    position: absolute;
    top: 1.1rem;
    left: 0.7rem;
    right: 0.7rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.story-viewer-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.story-viewer-user img {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1.5px solid #fff;
}
.story-viewer-user span {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.story-viewer-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15,23,42,0.35);
    color: #fff;
    cursor: pointer;
}
.story-viewer-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.story-viewer-cta {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1.15rem;
    z-index: 5;
    text-align: center;
    background: #fff;
    color: #0f172a;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
}
.story-hit {
    position: absolute;
    top: 3.5rem;
    bottom: 4.5rem;
    width: 40%;
    border: 0;
    background: transparent;
    z-index: 4;
    cursor: pointer;
}
.story-hit-prev { left: 0; }
.story-hit-next { right: 0; }

.story-hearts-layer {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}
.story-float-heart {
    position: absolute;
    color: #fb7185;
    font-size: clamp(1.1rem, 4vw, 1.85rem);
    transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(var(--rot, 0deg));
    animation: story-heart-float 1.35s ease-out forwards;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    pointer-events: none;
    will-change: transform, opacity;
}
.story-float-heart:nth-child(odd) { color: #f43f5e; }
.story-float-heart:nth-child(3n) { color: #fda4af; }
.story-float-heart:nth-child(4n) { color: #e11d48; }
@keyframes story-heart-float {
    0% {
        opacity: 0;
        transform: translate(-50%, 10%) scale(0.25) rotate(var(--rot, 0deg));
    }
    12% {
        opacity: 1;
        transform: translate(calc(-50% + var(--drift, 0px) * 0.15), -8%) scale(var(--scale, 1)) rotate(var(--rot, 0deg));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--drift, 0px)), calc(-100% - var(--rise, 140px))) scale(calc(var(--scale, 1) * 1.2)) rotate(var(--rot, 0deg));
    }
}

.story-heart-btn {
    position: absolute;
    left: 0.85rem;
    bottom: 4.6rem;
    z-index: 7;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0.35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.story-heart-btn i {
    font-size: 1.65rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.story-heart-btn.is-liked i,
.story-heart-btn.is-liked {
    color: #fb7185;
}
.story-heart-btn.is-pop i {
    animation: story-heart-pop 0.28s ease;
}
.story-heart-btn span {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
}
@keyframes story-heart-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Inventário — modal QR */
.redeem-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.redeem-modal.hidden { display: none; }
.redeem-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.redeem-modal-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.25rem 1.1rem 1.75rem;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
.redeem-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    border: 0;
    background: #f1f5f9;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
}
.redeem-qr {
    width: 200px;
    height: 200px;
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.redeem-qr img, .redeem-qr canvas {
    max-width: 100%;
    height: auto;
}

/* App funcionário loja */
.staff-app {
    max-width: 28rem;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    padding-bottom: 4.5rem;
}
.staff-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.staff-topbar-title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
}
.staff-topbar-user {
    font-size: 0.7rem;
    color: #64748b;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-main {
    flex: 1;
    padding: 1rem;
}
.staff-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 28rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    z-index: 30;
}
.staff-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.2rem;
    font-size: 0.62rem;
    font-weight: 650;
    color: #94a3b8;
    text-decoration: none;
}
.staff-nav-link i { font-size: 1rem; }
.staff-nav-link.is-active { color: #2563eb; }
.staff-hero { margin-bottom: 1rem; }
.staff-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.staff-action-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 0.85rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.staff-action-card i {
    font-size: 1.35rem;
    color: #2563eb;
    margin-bottom: 0.25rem;
}
.staff-action-card span {
    font-weight: 750;
    font-size: 0.85rem;
}
.staff-action-card small {
    font-size: 0.68rem;
    color: #94a3b8;
}
.staff-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.85rem 0.9rem;
}
.staff-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.9rem;
    border: 1px dashed #e2e8f0;
}
.staff-scanner {
    width: 100%;
    min-height: 12rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #0f172a;
}
.staff-scanner video { width: 100% !important; border-radius: 0.9rem; }

/* ========== AUTH (modal tela cheia — claro + azul) ========== */
body.auth-body {
    background: #f8fafc;
    color: #0f172a;
}
body.auth-body.auth-modal-open { overflow: hidden; }
.auth-shell .app-content.auth-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}
.auth-fullscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    position: relative;
}
.auth-fullscreen-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 5;
}
.auth-fullscreen-logo {
    display: inline-flex;
    align-items: center;
    max-width: min(70%, 12rem);
}
.auth-fullscreen-logo img {
    height: 2.35rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.auth-sheet-close {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-sheet-close:hover { background: #e2e8f0; color: #0f172a; }
.auth-fullscreen-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.auth-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.auth-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
    padding: 0.65rem 0.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab i { font-size: 0.72rem; }
.auth-tab:hover { color: #1e293b; }
.auth-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.auth-panel { display: none; position: relative; z-index: 1; }
.auth-panel.is-open { display: block; animation: auth-fade 0.22s ease; }
@keyframes auth-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.auth-head { text-align: center; margin-bottom: 1rem; }
.auth-desktop-admin-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
}
.auth-head h1 {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}
.auth-head p {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}
.auth-alert {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 0.78rem;
    text-align: center;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}
.auth-input-wrap {
    position: relative;
    display: block;
}
.auth-input-wrap > i:first-child {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}
.auth-input-wrap input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    padding: 0.72rem 0.9rem 0.72rem 2.45rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input-wrap input::placeholder { color: #94a3b8; }
.auth-input-wrap input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.auth-eye {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
}
.auth-eye:hover { color: #475569; }
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 380px) {
    .auth-grid-2 { grid-template-columns: 1fr 1fr; }
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.auth-check-top { align-items: flex-start; }
.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.auth-check a { color: #2563eb; font-weight: 700; text-decoration: none; }
.auth-check a:hover { text-decoration: underline; }
.auth-btn {
    border: 0;
    border-radius: 0.85rem;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-weight: 750;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
    width: 100%;
}
.auth-btn:active { transform: scale(0.99); }
.auth-btn-primary,
.auth-btn-gold {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    border: 0;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.auth-btn-primary:hover,
.auth-btn-gold:hover { filter: brightness(1.05); }
.auth-secure {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.68rem;
    color: #64748b;
}
.auth-secure .fa-lock { color: #10b981; }
.auth-secure .fa-pix { color: #14b8a6; }
.auth-legal {
    text-align: center;
    margin: 0.65rem 0 0;
    font-size: 0.65rem;
    color: #94a3b8;
}
.font-display { font-family: 'Unbounded', system-ui, sans-serif; }

/* Balão de notificação */
.app-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: min(92vw, 22rem);
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    animation: app-toast-in 0.28s ease;
}
.app-toast.is-error {
    background: #fff1f2;
    color: #be123c;
    box-shadow: 0 14px 36px rgba(190, 18, 60, 0.18), 0 0 0 1px rgba(251, 113, 133, 0.35);
}
.app-toast.is-ok {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16), 0 0 0 1px rgba(147, 197, 253, 0.55);
}
.app-toast-icon {
    flex-shrink: 0;
    font-size: 1rem;
}
.app-toast.is-error .app-toast-icon { color: #e11d48; }
.app-toast.is-ok .app-toast-icon { color: #2563eb; }
.app-toast-msg { flex: 1; min-width: 0; }
.app-toast-close {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
}
.app-toast-close:hover { opacity: 1; background: rgba(15, 23, 42, 0.1); }
@keyframes app-toast-in {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal Termos de Uso */
.auth-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.auth-terms-modal[hidden] { display: none !important; }
.auth-terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.auth-terms-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: min(82vh, 36rem);
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    animation: auth-terms-up 0.25s ease;
}
@keyframes auth-terms-up {
    from { transform: translateY(18px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
}
.auth-terms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.auth-terms-head h2 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 750;
    color: #0f172a;
}
.auth-terms-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-terms-close:hover { background: #e2e8f0; color: #0f172a; }
.auth-terms-body {
    padding: 0.9rem 1.1rem 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #475569;
}
.auth-terms-body h3 {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}
.auth-terms-body h3:first-child { margin-top: 0; }
.auth-terms-body p { margin: 0 0 0.55rem; }
.auth-terms-body ul {
    margin: 0 0 0.55rem;
    padding-left: 1.1rem;
}
.auth-terms-body li { margin-bottom: 0.25rem; }
.auth-terms-foot {
    padding: 0.75rem 1.1rem 1.1rem;
    border-top: 1px solid #e2e8f0;
}
.auth-terms-foot .auth-btn { width: 100%; }
/* PWA install */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 750;
    text-decoration: none;
}
.pwa-install-btn.is-hidden,
.pwa-install-btn[hidden] {
    display: none !important;
}
.pwa-install-btn.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

/* Gate estilo Play Store — Android no navegador */
html.pwa-gate-pending body {
    overflow: hidden !important;
}
html.pwa-gate-pending body > *:not(#pwa-store-gate):not(script):not(style):not(link) {
    visibility: hidden !important;
}
body.pwa-gate-lock {
    overflow: hidden !important;
}
body.pwa-gate-lock > *:not(#pwa-store-gate):not(.wa-float) {
    pointer-events: none !important;
    user-select: none;
}
.pwa-store-gate {
    position: fixed !important;
    inset: 0;
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    background: #fff;
    color: #202124;
    padding: 0;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pwa-store-gate.is-page {
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh;
}
.pwa-store-gate.is-useapp,
.pwa-store-gate.is-desktop {
    position: fixed !important;
    z-index: 9999 !important;
}
.pwa-store-gate[hidden] { display: none !important; }
.ps-page {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.15rem 1rem 2rem;
    box-sizing: border-box;
    background: #fff;
}
.ps-page[hidden] { display: none !important; }
.ps-desktop,
.ps-useapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    justify-content: flex-start;
}
.ps-desktop .ps-icon,
.ps-useapp .ps-icon {
    margin-bottom: 1rem;
}
.ps-desktop-lead {
    margin: 0.85rem 0 0;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #202124;
    max-width: 20rem;
}
.ps-desktop-sub {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    color: #5f6368;
    max-width: 20rem;
    line-height: 1.4;
}
.ps-desktop-tip {
    margin: 1.5rem 0 0;
    font-size: 0.8rem;
    color: #80868b;
    max-width: 18rem;
}
.ps-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 0.75rem;
    background: #0a1630;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 22, 48, 0.25);
}
.ps-admin-link:hover { filter: brightness(1.08); }
.ps-open.is-block {
    width: 100%;
    max-width: 20rem;
    margin-top: 1.35rem;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    background: #01875f;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}
.ps-sec-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none;
}
.ps-header {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.ps-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.1rem;
    object-fit: cover;
    background: #0a1a3a;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.ps-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    color: #202124;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.ps-verified {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #5f6368;
}
.ps-install {
    width: 100%;
    margin-top: 1.15rem;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.7rem 1rem 0.65rem;
    background: #01875f;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.ps-install-main {
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ps-install-main .fa-bolt { color: #facc15; }
.ps-install-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.95;
}
.ps-install.is-ready {
    animation: pwa-pulse 1.4s ease-in-out infinite;
}
@keyframes pwa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(1, 135, 95, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(1, 135, 95, 0); }
}
.ps-install.is-busy,
.ps-install:disabled {
    opacity: 0.75;
    pointer-events: none;
}
.ps-open {
    width: 100%;
    margin-top: 0.55rem;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.85rem 1rem;
    background: #e8f5e9;
    color: #01875f;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}
.ps-progress {
    margin-top: 0.85rem;
}
.ps-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: #e8eaed;
    overflow: hidden;
}
.ps-bar > i {
    display: block;
    height: 100%;
    width: 12%;
    background: #01875f;
    border-radius: 999px;
    transition: width 0.35s ease;
}
.ps-progress p {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: #5f6368;
    text-align: center;
}
.ps-hint {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
}
.ps-secondary {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin: 1rem 0 1.15rem;
}
.ps-sec-btn {
    border: 0;
    background: transparent;
    color: #01875f;
    font-size: 0.78rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.25rem;
}
.ps-shots {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    margin-bottom: 1.15rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.ps-shots img {
    height: 11.5rem;
    width: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    scroll-snap-align: start;
    background: #f1f5f9;
    flex-shrink: 0;
}
.ps-about h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ps-about h2 .fa-chevron-right {
    font-size: 0.75rem;
    color: #5f6368;
}
.ps-tag {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.4rem;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 0.68rem;
    font-weight: 600;
}
.ps-about-body {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #3c4043;
    white-space: pre-wrap;
}
.admin-pwa-shots-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.admin-pwa-shots-preview img {
    height: 5.5rem;
    width: auto;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}

/* WhatsApp flutuante (landing + auth + dashboard) */
.wa-float {
    position: fixed;
    z-index: 210;
    bottom: 1.25rem;
    right: 1rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff !important;
    font-size: 1.65rem;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease, filter 0.15s ease;
    pointer-events: auto !important;
    overflow: visible;
}
.wa-float > i { position: relative; z-index: 1; }
.wa-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25d366;
    z-index: 0;
    animation: wa-pulse 1.8s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
.wa-float:hover {
    filter: brightness(1.06);
    transform: scale(1.06);
    color: #fff !important;
}
.wa-float--nav { bottom: 5.25rem; }
@media (min-width: 768px) {
    .wa-float {
        right: max(1rem, calc(50% - 210px + 0.85rem));
    }
}
