/* ==========================================================================
   Farcol — Professional UI Design System
   ========================================================================== */

:root {
    --bg: #07060d;
    --bg-soft: #0d0b16;
    --bg-card: rgba(22, 19, 38, 0.72);
    --bg-elevated: rgba(30, 26, 52, 0.9);
    --bg-input: rgba(0, 0, 0, 0.32);
    --text: #f6f3ff;
    --text-soft: #d8d0ef;
    --muted: #ba8f9c;
    --primary: #f59e0b;
    --primary-2: #fbbf24;
    --primary-deep: #d97706;
    --accent: #8b5cf6;
    --accent-2: #a78bfa;
    --success: #34d399;
    --danger: #f87171;
    --info: #60a5fa;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --display: "Syne", var(--font);
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

/* Atmosphere */
.bg-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.bg-orb-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
}

.bg-orb-2 {
    width: 420px;
    height: 420px;
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
}

.bg-orb-3 {
    width: 480px;
    height: 480px;
    bottom: -160px;
    left: 30%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
}

.coins-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coin-fx {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff6d1, #f59e0b 60%, #b45309);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 -3px 6px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 0.35);
    opacity: 0.35;
    will-change: transform, opacity;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(26, 16, 0, 0.85);
    font-weight: 800;
    font-size: 0.85em;
    line-height: 1;
}

.coin-fx::after {
    content: '$';
}

@keyframes coinFall {
    0% {
        transform: translateY(-120vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.45;
    }

    88% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(120vh) rotate(380deg);
        opacity: 0;
    }
}

@media (max-width: 720px) {
    .coin-fx {
        opacity: 0.28;
    }
}

.site-header,
.container,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 6, 13, 0.72);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 13, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    z-index: -1;
    pointer-events: none;
}

.header-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-footer .brand-name {
    font-size: 1.05rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

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

.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link-admin {
    color: var(--primary-2) !important;
    background: rgba(245, 158, 11, 0.1);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1000;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar--photo {
    padding: 0;
    background: transparent;
}

.user-avatar img,
.user-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-chip {
    font-size: 0.85rem;
    color: var(--primary-2);
    font-weight: 600;
}

.inline {
    display: inline;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Container */
.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.lead {
    color: var(--muted);
    margin: 0 0 1.35rem;
    max-width: 38rem;
    font-size: 1.05rem;
}

.text-gradient {
    background: linear-gradient(120deg, var(--primary-2) 0%, #fff 40%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gold {
    color: var(--primary-2);
}

.text-accent {
    color: var(--accent-2);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.meta {
    color: greenyellow;
    font-size: 0.92rem;
}

/* Hero */
.hero {
    margin-bottom: 2.25rem;
}

.hero-home {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 0 1rem;
}

.hero-compact {
    margin-bottom: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

/* Hero visual ticket */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 0.92;
}

.hero-ticket {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(160deg, #2a2150, #15102a 55%, #1a1435);
    box-shadow: var(--shadow);
}

.hero-ticket-back {
    transform: rotate(-8deg) translate(-8px, 10px) scale(0.94);
    opacity: 0.45;
}

.hero-ticket-mid {
    transform: rotate(5deg) translate(10px, 4px) scale(0.97);
    opacity: 0.7;
}

.hero-ticket-front {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow: hidden;
}

.hero-ticket-shine {
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.12) 48%, transparent 62%);
    animation: shine 5s ease-in-out infinite;
}

@keyframes shine {

    0%,
    100% {
        transform: translateX(-20%);
    }

    50% {
        transform: translateX(20%);
    }
}

.hero-ticket-label {
    position: relative;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--primary-2);
    margin-bottom: 0.85rem;
}

.hero-ticket-grid {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.hero-ticket-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.45rem;
}

.hero-ticket-prize {
    position: relative;
    margin-top: 0.9rem;
    text-align: center;
    font-weight: 700;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Features strip */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 0 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.15rem;
    backdrop-filter: blur(12px);
    transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.35);
}

.feature-icon {
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-2);
    margin-bottom: 0.65rem;
    letter-spacing: 0.04em;
}

.feature-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Sections */
.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header.center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.4rem;
}

.section-sub {
    color: var(--muted);
    margin: 0.25rem 0 0;
    max-width: 32rem;
}

.section-games {
    margin-bottom: 3.5rem;
}

/* How it works */
.how-it-works {
    margin-top: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 800;
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary-2);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 1rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* Cards & grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.card {
    background: linear-gradient(165deg, rgba(34, 29, 58, 0.88), rgba(18, 15, 32, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.card-game {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

.card-game-ticket-bg {
    position: absolute;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* top 90% → mid 35% → bottom 0% */
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.20) 75%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.20) 75%,
            rgba(0, 0, 0, 0) 100%);
}

.card-game-content {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.card-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-game:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: var(--shadow), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.card-game.is-sold-out {
    opacity: 0.85;
}

.card-game.is-sold-out:hover {
    border-color: var(--border);
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*.game-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.22);
}*/
.game-card-body h2 {
    font-size: 1.3rem;
    margin: 0 0 0.35rem;
}

.game-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.game-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.game-stat .lbl,
.stat-pill .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.price {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary-2);
    font-family: var(--display);
}

.stock {
    color: var(--success);
    font-weight: 700;
    font-size: 1.05rem;
}

.stock.empty {
    color: var(--danger);
}

/* Casino section */
.card-casino {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    background:
        linear-gradient(165deg, rgba(34, 29, 58, 0.88), rgba(18, 15, 32, 0.92)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 55%);
}

.card-casino::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-casino:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: var(--shadow), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.card-casino-body {
    position: relative;
    z-index: 2;
}

.game-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 0.75rem;
}

.card-casino-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.casino-pill {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.72rem 1.15rem;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-elevated);
    transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(1.08);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
    color: #1a1000;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-2), #6d28d9);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-strong);
    color: var(--text-soft);
}

.btn-sm {
    padding: 0.42rem 0.85rem;
    font-size: 0.84rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-row.center {
    justify-content: center;
}

/* Forms */
.form-card {
    max-width: 440px;
    margin: 0 auto;
}

.auth-shell {
    min-height: calc(100vh - var(--header-h) - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-header .lead {
    margin-left: auto;
    margin-right: auto;
}

.auth-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

label {
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(155, 143, 186, 0.65);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 1.35rem;
}

.form-footer {
    margin-top: 1.15rem;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.form-footer a {
    color: var(--primary-2);
    font-weight: 700;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0.25rem 0 0.5rem;
}

.checkbox-row input {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.checkbox-card {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin: 0.75rem 0 1rem;
}

.checkbox-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.75rem 0;
    height: 0;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin: -0.35rem 0 1rem;
}

.section-intro {
    margin: -0.25rem 0 1rem;
}

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.32);
    color: var(--success);
}

.alert-success .alert-icon {
    background: rgba(52, 211, 153, 0.2);
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.32);
    color: #fecaca;
}

.alert-error .alert-icon {
    background: rgba(248, 113, 113, 0.2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
}

.badge-sold {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
}

.badge-scratched {
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
}

.badge-claimed {
    background: rgba(245, 158, 11, 0.14);
    color: var(--primary-2);
}

.badge-live {
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
}

.badge-sold-out {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

.badge-status-pending,
.badge-status-requested {
    background: rgba(245, 158, 11, 0.14);
    color: var(--primary-2);
}

.badge-status-approved,
.badge-status-paid {
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
}

.badge-status-rejected {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

/* Tickets */
.ticket-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.ticket-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.3);
}

.ticket-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    animation: pulse 1.8s ease infinite;
}

.ticket-game {
    font-size: 1.15rem;
    font-family: var(--display);
}

.ticket-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    width: fit-content;
}

.ticket-result {
    font-weight: 700;
    font-size: 0.95rem;
}

.ticket-result.is-win {
    color: var(--success);
}

.ticket-result.is-lose {
    color: var(--muted);
}

.ticket-result.pending {
    color: var(--accent-2);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-state.compact {
    padding: 1.25rem 0.5rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.22);
    margin-bottom: 0.5rem;
}

.empty-state .btn {
    margin-top: 0.75rem;
    width: auto;
    min-width: 160px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary-2);
}

/* Stats / pills */
.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.stat-pill {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-pill strong {
    font-size: 1.1rem;
    font-family: var(--display);
}

.card-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.card-header-row h2 {
    margin: 0;
}

.info-callout {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.info-callout.success {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.25);
}

/* Purchase */
.purchase-card h2 {
    margin-bottom: 1rem;
}

.qty-row {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

.qty-row .form-group {
    flex: 1;
    margin: 0;
}

.purchase-form .btn {
    flex-shrink: 0;
}

/* =========================================================
   Lottery ticket card v2 — dynamic overlays on ticket-card.webp
   ========================================================= */
.scratch-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 960px) {
    .scratch-layout {
        grid-template-columns: minmax(280px, 440px) 1fr;
        align-items: start;
        gap: 2rem;
    }
}

.scratch-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lottery-ticket {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.35),
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(124, 58, 237, 0.18);
    background: #050505;
    user-select: none;
    -webkit-user-select: none;
}

.lottery-ticket-art {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Generic overlay box */
.lt-overlay {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
}

/* 1) Top-left PLAY PRICE value */
.lt-price {
    top: 1.6%;
    left: 1.2%;
    width: 14.5%;
    height: 5.8%;
}

.lt-price-amount {
    font-family: "Syne", "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(0.72rem, 3.4vw, 1.05rem);
    color: #fbbf24;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.02em;
}

/* 2) Top-right WIN UP TO value */
.lt-max {
    top: 4.4%;
    left: 74.5%;
    width: 23.5%;
    height: 3.6%;
}

.lt-max-amount {
    font-family: "Syne", "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(0.55rem, 2.4vw, 0.82rem);
    color: #1a1000;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* 3×3 scratch zone over neon grid */
.lottery-ticket-zone {
    position: absolute;
    left: 10.8%;
    top: 31.5%;
    width: 78.4%;
    height: 42.8%;
    z-index: 2;
    touch-action: none;
    border-radius: 3.5%;
    overflow: hidden;
}

.scratch-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2.6%;
    padding: 2.8%;
    z-index: 1;
    box-sizing: border-box;
}

.scratch-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12em;
    border-radius: 10%;
    background: transparent;
    border: none;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.scratch-cell.is-placeholder {
    background: transparent;
}

.scratch-cell.is-revealed {
    background:
        radial-gradient(120% 100% at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
        linear-gradient(160deg, #c9c9d2 0%, #8f8f9a 45%, #b8b8c2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.scratch-cell.win-col.is-revealed {
    box-shadow:
        inset 0 0 0 2px rgba(52, 211, 153, 0.95),
        0 0 14px rgba(52, 211, 153, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    background:
        radial-gradient(120% 100% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
        linear-gradient(160deg, #d7f5e8 0%, #6fbf9a 50%, #a8dcc4 100%);
}

.scratch-cell .cell-icon {
    font-size: clamp(1.05rem, 4.8vw, 1.85rem);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
    line-height: 1;
}

.scratch-cell .cell-prize {
    font-size: clamp(0.55rem, 2.1vw, 0.78rem);
    font-weight: 800;
    color: #1a1a22;
    letter-spacing: 0.01em;
    font-family: var(--font-display, "Syne", sans-serif);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

#scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: crosshair;
    border-radius: 4%;
    transition: opacity 0.25s ease;
}

/* 3+4) Bottom legend columns: icons + win value */
.lt-legend {
    top: 74.2%;
    left: 33.2%;
    width: 56.5%;
    height: 15.8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8%;
    align-items: stretch;
    padding: 0;
}

.lt-legend-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    height: 100%;
    padding-top: 54%;
}

.lt-legend-stack {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08em;
    width: 100%;
    min-height: 0;
}

.lt-legend-icon {
    font-size: clamp(0.7rem, 2.8vw, 1.05rem);
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.lt-legend-win {
    flex: 0 0 auto;
    margin-top: 55%;
    margin-bottom: 2%;
    width: 80%;
    min-height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Syne", "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(0.44rem, 1.7vw, 0.68rem);
    color: #f8fafc;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1;
}

/* HASH inside gray field */
.lottery-ticket-hash {
    position: absolute;
    left: calc(35.8% + 5px);
    right: 6.8%;
    bottom: 3.05%;
    height: 2.5%;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 6;
    pointer-events: none;
    padding: 0 0.4rem;
    box-sizing: border-box;
}

.lottery-ticket-hash .hash-label {
    display: none;
}

.lottery-ticket-hash .hash-value {
    font-size: clamp(0.52rem, 1.65vw, 0.7rem);
    font-weight: 800;
    color: #0a0a0c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
}

.scratch-hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 420px;
    line-height: 1.45;
}

.ticket-side-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem 0 0.25rem;
    border-top: 1px solid var(--border);
}

.ticket-side-meta .side-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.ticket-side-meta .lbl {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-prize {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    font-family: var(--display);
    color: var(--primary-2);
    line-height: 1.2;
}

.result-lose {
    color: var(--muted);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--display);
}

.result-pending {
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.result-pending-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary-2);
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .lottery-ticket {
        max-width: 100%;
        border-radius: 14px;
    }

    .scratch-cell .cell-icon {
        font-size: clamp(1rem, 7vw, 1.45rem);
    }

    .lt-price-amount {
        font-size: clamp(0.65rem, 3.8vw, 0.95rem);
    }
}

/* Symbol legend */
.symbol-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.75rem 0;
}

.symbol-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
}

.symbol-emoji {
    font-size: 1.05rem;
}

.symbol-code {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Tables */
.table-card {
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

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

.table th,
.table td {
    text-align: left;
    padding: 0.85rem 0.65rem;
    border-bottom: 1px solid var(--border);
}

.table th {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.inline-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-actions select {
    width: auto;
    min-width: 120px;
    padding: 0.4rem 0.55rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pagination a,
.pagination span {
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.pagination a:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.pagination .active span {
    background: rgba(245, 158, 11, 0.18);
    color: var(--primary-2);
    border-color: rgba(245, 158, 11, 0.35);
}

/* Status pages */
.status-card {
    text-align: center;
    max-width: 520px;
}

.status-icon-lg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-icon-lg.muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border-color: var(--border);
}

.status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: 1rem 0 1.25rem;
}

.status-card .lead {
    margin-left: auto;
    margin-right: auto;
}

/* Profile */
.profile-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.profile-info-card h2 {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.kyc-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid;
    margin: 1rem 0 1.5rem;
}

.kyc-banner .status-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.kyc-banner strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.15rem;
}

.kyc-meta {
    color: var(--text) !important;
    opacity: 0.85;
    margin: 0;
}

.status-verified {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.32);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.32);
    color: var(--primary-2);
}

.status-rejected {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.32);
    color: var(--danger);
}

.status-unverified {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--muted);
}

/* Profile Revamp */
.profile-container {
    max-width: 920px;
    margin: 0 auto 3rem;
}

.profile-header-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #f59e0b);
}

.profile-user-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    padding: 3px;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #38bdf8;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-user-info {
    flex: 1;
    min-width: 240px;
}

.profile-user-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.profile-user-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #94a3b8;
}

.profile-kyc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.kyc-pill-verified {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.kyc-pill-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.kyc-pill-rejected {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.kyc-pill-unverified {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.profile-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color 0.2s ease;
}

.profile-stat-box:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.profile-stat-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.profile-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.profile-stat-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Tabs Navigation */
.profile-nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.profile-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.profile-tab-btn.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.15));
    color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.is-active {
    display: block;
    animation: fadeInTab 0.25s ease forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wallet Revamp */
.wallet-container {
    max-width: 1040px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 868px) {
    .wallet-container {
        grid-template-columns: 1fr;
    }
}

.wallet-virtual-card {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.12);
    overflow: hidden;
}

.wallet-virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.wallet-brand-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wallet-chip-icon {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.wallet-balance-display {
    margin-bottom: 1.5rem;
}

.wallet-balance-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wallet-balance-val {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.wallet-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Preset Amount Chips */
.wallet-preset-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
    margin-bottom: 1.25rem;
}

.wallet-preset-btn {
    flex: 1 1 auto;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.wallet-preset-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

/* Gateway selector cards */
.wallet-gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wallet-gateway-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.wallet-gateway-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.wallet-gateway-card.is-selected {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.1));
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.12);
}

.wallet-gateway-card input[type="radio"] {
    accent-color: #38bdf8;
}

/* Transaction table item styling */
.tx-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

.tx-type-deposit {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.tx-type-purchase {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.tx-type-win {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.tx-type-withdrawal {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
    text-transform: uppercase;
}

.tx-status-completed {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.tx-status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tx-status-failed {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: rgba(7, 6, 13, 0.85);
    margin-top: auto;
}

.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.75rem 0 1.75rem;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 2rem;
}

.footer-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.9rem 0 0;
    max-width: 28rem;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col h4 {
    font-family: var(--font);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--primary-2);
}

.footer-pill {
    display: inline-flex;
    width: fit-content;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.footer-bottom {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.15rem 0 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-legal {
    opacity: 0.8;
}

/* Admin (preserved + polished) */
.admin-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .admin-layout-wrapper {
        grid-template-columns: 240px 1fr;
        align-items: start;
    }
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: rgba(21, 19, 34, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.65rem;
    backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
    .admin-sidebar-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        position: sticky;
        top: 90px;
    }
}

.admin-sidebar-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 991px) {
    .admin-sidebar-nav a {
        width: auto;
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }
}

.admin-sidebar-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-nav a.active {
    color: #1a1000;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.admin-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
    margin-left: auto;
}

.badge-alert {
    background: var(--danger);
    color: white;
}

.admin-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.metric-card-premium {
    background: rgba(21, 19, 34, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.metric-card-premium:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-title {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-revenue .metric-icon-wrapper {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}

.metric-users .metric-icon-wrapper {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent);
}

.metric-sold .metric-icon-wrapper {
    background: rgba(245, 158, 11, 0.12);
    color: var(--primary-2);
}

.metric-unsold .metric-icon-wrapper {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}

.metric-kyc .metric-icon-wrapper {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

.metric-withdrawals .metric-icon-wrapper {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

/* ── Dashboard grid variants ──────────────────────────────────────────────── */
.metrics-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.metrics-grid-2-wide {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Previous month comparison info inside premium metric cards ───────────── */
.metric-prev-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.metric-prev-info strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* ── Delta trend badge ────────────────────────────────────────────────────── */
.metric-delta {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    align-self: flex-start;
}

.delta-up {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.delta-down {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* ── Alert Banner ─────────────────────────────────────────────────────────── */
.dash-alert-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dash-alert-banner.dash-alert-ok {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}

.dash-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.dash-alert-pill:hover {
    opacity: 0.8;
}

.dash-alert-kyc {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.dash-alert-withdrawal {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

/* ── Section labels ───────────────────────────────────────────────────────── */
.dash-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.38);
    margin: 1.75rem 0 0.65rem;
}

/* ── Chart period tab buttons ─────────────────────────────────────────────── */
.dash-chart-tabs {
    display: flex;
    gap: 0.35rem;
}

.dash-tab-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.dash-tab-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dash-tab-btn.active {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

/* ── Last updated ─────────────────────────────────────────────────────────── */
.dash-last-updated {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* ── Responsive breakpoints ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .metrics-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid-2-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .metrics-grid-4 {
        grid-template-columns: 1fr;
    }
}

.admin-dashboard-tables,
.admin-two-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {

    .admin-dashboard-tables,
    .admin-two-col {
        flex-direction: row;
        align-items: start;
    }
}

.card-table-dashboard {
    flex: 1;
    overflow-x: auto;
}

.games-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card-premium {
    position: relative;
    background: rgba(21, 19, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.25s var(--ease);
    overflow: hidden;
}

.game-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--game-color, var(--primary));
    opacity: 0.8;
}

.game-card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--game-color, rgba(245, 158, 11, 0.5));
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.5rem;
}

.game-card-title {
    font-size: 1.35rem;
    font-family: var(--display);
    font-weight: 700;
    margin: 0;
}

.game-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.game-card-badge.active {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}

.game-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.85rem;
    border-radius: 10px;
}

.game-card-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.game-card-stat .lbl {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.game-card-stat .val {
    font-weight: 700;
    font-size: 1rem;
}

.kyc-pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.kyc-user-card {
    background: rgba(21, 19, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kyc-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kyc-user-info strong {
    font-size: 1.15rem;
}

.kyc-user-info span {
    font-size: 0.85rem;
    color: var(--muted);
}

.kyc-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.kyc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kyc-meta-row .lbl {
    color: var(--muted);
}

.kyc-meta-row .val {
    font-weight: 600;
}

.batch-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.35rem;
}

.batch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 99px;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-home {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card-stack {
        width: min(280px, 100%);
    }

    .features-strip {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 6, 13, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 0.35rem;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s var(--ease), opacity 0.25s ease;
        overflow-y: auto;
        z-index: 60;
    }

    .nav.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.85rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav .btn,
    .nav form {
        width: 100%;
    }

    .nav .btn {
        justify-content: center;
    }

    .nav-user {
        padding: 0.5rem 0.25rem;
    }

    .features-strip {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .qty-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-row .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .container {
        padding-top: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Winners Page */
.winners-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.wstat-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.wstat-icon {
    font-size: 2.25rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 12px;
}

.wstat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-base);
    line-height: 1.2;
}

.wstat-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

.winners-table {
    margin: 0;
    width: 100%;
}

.winners-table th {
    background: var(--surface-2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
}

.winners-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.winner-row:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.winner-rank {
    font-weight: 700;
    text-align: center;
    width: 60px;
}

.rank-medal {
    font-size: 1.5rem;
}

.rank-num {
    color: var(--muted);
}

.winner-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.winner-avatar {
    width: 32px;
    height: 32px;
    background: var(--surface-3);
    color: var(--text-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.winner-avatar--photo {
    padding: 0;
    background: transparent;
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile avatar uploader */
.avatar-upload-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    color: #1a1000;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 2px solid rgba(251, 191, 36, 0.35);
}

.avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-preview-initial {
    line-height: 1;
}

.avatar-upload-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.avatar-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.avatar-upload-meta label {
    cursor: pointer;
    display: inline-flex;
    width: fit-content;
}

.winner-name {
    font-weight: 600;
}

.winner-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.prize-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-display);
}

.prize-mega {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.prize-big {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.prize-small {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-base);
    border: 1px solid var(--border);
}

.hash-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hash-code {
    background: var(--surface-2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-copy-hash {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-hash:hover {
    color: var(--text-base);
    background: var(--surface-3);
}

.date-cell {
    display: flex;
    flex-direction: column;
}

.date-main {
    font-weight: 500;
    font-size: 0.9rem;
}

.date-time {
    font-size: 0.75rem;
}

/* Profile Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: #14101f;
    background: linear-gradient(180deg, #1a1528 0%, #120e1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.3);
    z-index: 200;
    padding: 0.45rem 0;
    margin-top: 0;
}

/* Invisible bridge so mouse can travel from button → menu without losing hover */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.65rem 1.25rem;
    color: #e8e4f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
}

.dropdown-toggle .arrow {
    display: inline-block;
    font-size: 0.6em;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown.is-open .nav-dropdown-menu {
    animation: fadeIn 0.2s ease;
}

.dropdown-item.is-active {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

/* User-chip dropdown trigger */
.nav-user-dropdown .dropdown-toggle {
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-user-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.nav-user-dropdown.is-open .dropdown-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-user-dropdown .nav-dropdown-menu {
    min-width: 200px;
    right: 0;
}

.nav-user-dropdown .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1000;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    overflow: hidden;
    flex-shrink: 0;
}

.nav-user-dropdown .user-avatar--photo {
    padding: 0;
    background: transparent;
}

.nav-user-dropdown .user-avatar img,
.nav-user-dropdown .user-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-user-dropdown .user-chip {
    font-size: 0.85rem;
    color: var(--primary-2);
    font-weight: 600;
    white-space: nowrap;
}

.nav-user-dropdown .arrow {
    color: var(--muted);
    font-size: 0.65rem;
}

@media (max-width: 720px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(20, 16, 32, 0.95);
        padding: 0.35rem 0;
        margin-top: 0.35rem;
        display: none;
        min-width: auto;
        right: auto;
        border-radius: 10px;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .dropdown-toggle .arrow {
        display: inline;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    /* On mobile, disable hover-only opens */
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown-menu:hover {
        display: none;
    }

    .nav-dropdown.is-open:hover .nav-dropdown-menu,
    .nav-dropdown.is-open .nav-dropdown-menu:hover {
        display: block;
    }

    .nav-user-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-user-dropdown .nav-dropdown-menu {
        right: auto;
        left: 0;
    }
}




/* Ambient play/pause — discreet bottom-left 90x90 */
.ambient-toggle {
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(8, 8, 14, 0.28);
    color: rgba(251, 191, 36, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    padding: 0;
    margin: 0;
}

.ambient-toggle:hover,
.ambient-toggle:focus-visible {
    opacity: 0.75;
    outline: none;
    color: rgba(251, 191, 36, 0.9);
    background: rgba(12, 10, 20, 0.4);
    border-color: rgba(251, 191, 36, 0.22);
}

.ambient-toggle.is-playing {
    opacity: 0.4;
    color: rgba(110, 231, 183, 0.65);
    border-color: rgba(110, 231, 183, 0.18);
}

.ambient-toggle .ambient-icon {
    display: flex;
    line-height: 0;
    opacity: 0.95;
}

@media (max-width: 480px) {
    .ambient-toggle {
        left: 10px;
        bottom: 10px;
        opacity: 0.4;
    }
}

/* Game card dual actions: Play + View */
.game-card-actions {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.game-card-actions .game-card-play {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.game-card-actions .game-card-view {
    flex: 0 0 auto;
    min-width: 3.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.game-card-actions .btn-block {
    width: 100%;
}

/* Game detail ticket preview */
.game-ticket-preview {
    margin: 0 0 1.15rem;
}

.game-ticket-preview-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.game-ticket-preview-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.2);
}

.game-ticket-preview-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fbbf24;
    backdrop-filter: blur(6px);
}

.game-ticket-preview-caption {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .game-ticket-preview-img {
        max-height: 380px;
    }
}

/* ==========================================================================
   FARCOL HOME IMPROVEMENTS STYLES
   ========================================================================== */

/* 1. Live Winners Ticker Bar */
.winners-ticker-wrap {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-top: 1px solid rgba(243, 186, 47, 0.25);
    border-bottom: 1px solid rgba(243, 186, 47, 0.25);
    padding: 0.6rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.winners-ticker-badge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(90deg, #f3ba2f, #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.1rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}

.winners-ticker-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    animation: tickerScroll 25s linear infinite;
    padding-left: 140px;
}

.winners-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
}

.ticker-user {
    font-weight: 700;
    color: #f8fafc;
}

.ticker-game {
    color: #94a3b8;
}

.ticker-prize {
    font-weight: 800;
    color: #10b981;
}

.ticker-time {
    font-size: 0.72rem;
    color: #64748b;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 2. Hero Interactive Scratch Demo */
.hero-scratch-demo-card {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(243, 186, 47, 0.5);
    background: radial-gradient(circle at 50% 30%, #1e293b, #0f172a);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(243, 186, 47, 0.15);
}

.hero-demo-underlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 50% 40%, rgba(243, 186, 47, 0.15), rgba(15, 23, 42, 0.95));
}

.demo-prize-icon {
    font-size: 3.5rem;
    animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.demo-prize-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.demo-prize-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #f3ba2f;
    text-shadow: 0 0 15px rgba(243, 186, 47, 0.5);
    margin: 0.2rem 0;
}

.hero-demo-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: grab;
    touch-action: none;
}

.hero-demo-canvas:active {
    cursor: grabbing;
}

.hero-demo-result {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-demo-result.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Confetti particles */
.demo-confetti-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.confetti-particle {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0.9;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* 3. Platform Stats Strip */
.home-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.stat-card-home {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card-home:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 186, 47, 0.4);
}

.stat-home-icon {
    font-size: 2.2rem;
    background: rgba(243, 186, 47, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(243, 186, 47, 0.2);
}

.stat-home-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.stat-home-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* 4. Game Filter Tabs */
.catalog-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.game-filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.game-filter-tab.is-active {
    background: var(--primary, #f3ba2f);
    color: #0f172a;
    border-color: var(--primary, #f3ba2f);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(243, 186, 47, 0.3);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 5. Quick Seed Verifier Section */
.seed-verifier-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(243, 186, 47, 0.25);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin: 3.5rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.seed-verifier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 850px) {
    .seed-verifier-grid {
        grid-template-columns: 1fr;
    }
}

.seed-verifier-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.seed-verifier-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #f8fafc;
    font-family: monospace;
    font-size: 0.88rem;
}

.seed-verifier-input:focus {
    outline: none;
    border-color: #f3ba2f;
    box-shadow: 0 0 0 3px rgba(243, 186, 47, 0.2);
}

.seed-result-box {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.seed-result-box.is-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.seed-result-box.is-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.seed-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
}

.seed-badge-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.seed-hash-code {
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    word-break: break-all;
}

.seed-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seed-detail-item .lbl {
    font-size: 0.7rem;
    color: #64748b;
    display: block;
}

.seed-detail-item .val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.seed-footer-note {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0.5rem 0 0;
}

/* 6. FAQ Accordion Section */
.faq-section {
    margin: 4rem 0 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 840px;
    margin: 2rem auto 0;
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item.is-open {
    border-color: rgba(243, 186, 47, 0.4);
    background: rgba(30, 41, 59, 0.7);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq-chevron {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: #f3ba2f;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}



/* ==========================================================================
   MY TICKETS INVENTORY OVERHAUL (v3)
   ========================================================================== */
.tickets-inventory-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.ticket-inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ticket-stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ticket-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ticket-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.ticket-stat-card.stat-unscratched .ticket-stat-icon {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.ticket-stat-card.stat-winners .ticket-stat-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.ticket-stat-card.stat-prizes .ticket-stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.ticket-stat-info {
    display: flex;
    flex-direction: column;
}

.ticket-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 600;
}

.ticket-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
    margin-top: 0.15rem;
}

/* Inventory Controls Bar */
.ticket-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.ticket-filter-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.ticket-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ticket-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.ticket-tab-btn.is-active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.ticket-tab-btn .tab-badge {
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.ticket-search-box {
    position: relative;
    min-width: 220px;
}

.ticket-search-box input {
    width: 100%;
    padding: 0.45rem 0.85rem 0.45rem 2.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.ticket-search-box input:focus {
    border-color: #38bdf8;
}

.ticket-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Ticket Grid & V3 Cards */
.ticket-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.ticket-card-v3 {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card-v3:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
}

.ticket-card-v3.is-unscratched {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.ticket-card-v3.is-unscratched:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 16px 36px rgba(168, 85, 247, 0.25);
}

.ticket-card-v3.is-winner {
    border-color: rgba(52, 211, 153, 0.4);
}

.ticket-card-v3.is-winner:hover {
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 16px 36px rgba(52, 211, 153, 0.25);
}

/* Card Header Banner */
.ticket-card-banner {
    height: 110px;
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.45;
    filter: blur(6px) brightness(1.1);
    transform: scale(1.15);
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.ticket-card-v3:hover .ticket-card-banner img {
    transform: scale(1.20);
    opacity: 0.50;
    filter: blur(4px) brightness(1.15);
}

.ticket-banner-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.98) 100%);
    pointer-events: none;
}

.ticket-status-pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.pill-sold {
    background: rgba(168, 85, 247, 0.85);
    color: #fff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    animation: pillPulse 2s infinite;
}

@keyframes pillPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(168, 85, 247, 0.8);
    }
}

.pill-win {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.pill-lose {
    background: rgba(71, 85, 105, 0.8);
    color: #cbd5e1;
}

.ticket-price-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

/* Card Body */
.ticket-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.ticket-game-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    line-height: 1.3;
}

.ticket-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
}

.ticket-code-str {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

.ticket-copy-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.ticket-copy-btn:hover {
    color: #38bdf8;
}

/* Result Banner */
.ticket-result-box {
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
}

.result-box-unscratched {
    background: rgba(168, 85, 247, 0.1);
    border: 1px dashed rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.result-box-win {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.result-box-lose {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
}

.ticket-action-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-scratch-pulse {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: #fff;
    border: 1px solid #a855f7;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}

.btn-scratch-pulse:hover {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6);
}

.btn-ticket-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ticket-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* === HOME MOBILE FIX v1 === */

/* Ticker: desktop keep absolute badge; mobile use flex so it never collides */
.winners-ticker-wrap {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.winners-ticker-badge {
    white-space: nowrap;
    max-width: 42%;
}

.winners-ticker-badge .ticker-badge-ico {
    flex-shrink: 0;
}

.winners-ticker-badge .ticker-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.winners-ticker-track {
    box-sizing: border-box;
}

/* Do NOT set overflow-x on body/main globally — it clips admin dashboard.
   Ticker overflow is handled on .winners-ticker-wrap only. */

/* Stats / features / section headers */
@media (max-width: 960px) {
    .home-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .stat-card-home {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .stat-home-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .stat-home-value {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .stat-home-lbl {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-scratch-demo-card {
        width: min(280px, 88vw) !important;
        height: min(340px, 70vw) !important;
        max-width: 100%;
    }

    .hero-demo-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        min-width: min(100%, 10rem);
        justify-content: center;
    }

    .features-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    /* WINNERS ticker — the main fix */
    .winners-ticker-wrap {
        display: flex;
        align-items: stretch;
        padding: 0;
        min-height: 2.6rem;
    }

    .winners-ticker-badge {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        flex: 0 0 auto;
        max-width: none;
        padding: 0 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.35);
        border-radius: 0;
    }

    .winners-ticker-track {
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 0.65rem !important;
        padding-right: 0.5rem;
        gap: 1rem;
        animation-duration: 32s;
    }

    .ticker-item {
        font-size: 0.75rem;
        padding: 0.28rem 0.65rem;
        gap: 0.35rem;
        max-width: 85vw;
    }

    .ticker-time {
        display: none; /* free horizontal space on small screens */
    }

    .ticker-game {
        max-width: 7.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hero */
    .hero-home {
        padding: 0.75rem 0 0.5rem;
        gap: 1.25rem;
    }

    .hero-home h1 {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        line-height: 1.15;
    }

    .hero-home .lead {
        font-size: 0.92rem;
    }

    .hero-trust {
        gap: 0.5rem;
    }

    .trust-item {
        font-size: 0.78rem;
    }

    /* Stats: 2 cols still ok; very small → 1 */
    .home-stats-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    /* Features */
    .features-strip {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1rem;
    }

    /* Filter tabs: horizontal scroll instead of ugly wrap pile */
    .catalog-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }

    .catalog-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .game-filter-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 0.45rem 0.8rem;
    }

    /* Game grids */
    .games-grid,
    .games-grid-featured,
    .grid.games-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .card-game,
    .card-casino {
        max-width: 100%;
    }

    .game-card-actions {
        flex-wrap: nowrap;
    }

    .game-card-actions .btn {
        font-size: 0.82rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Seed verifier */
    .seed-verifier-section {
        padding: 1.35rem 1rem;
        margin: 2rem 0;
        border-radius: 16px;
    }

    .seed-verifier-form {
        flex-direction: column;
        gap: 0.55rem;
    }

    .seed-verifier-form .btn {
        width: 100%;
    }

    .seed-verifier-input {
        width: 100%;
        min-width: 0;
        font-size: 0.8rem;
    }

    /* How it works */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    /* Container padding on small screens */
    main.container {
        width: min(1180px, calc(100% - 1.25rem));
        padding-left: 0;
        padding-right: 0;
    }

    /* Header brand text truncation */
    .brand-tag {
        display: none;
    }

    .brand-name {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Ambient button less intrusive */
    .ambient-toggle {
        width: 28px;
        height: 28px;
        opacity: 0.35;
    }

    /* Dock / floating UI from other games shouldn't affect home, but safe */
    .bj-dock {
        width: calc(100% - 1rem);
        max-width: 100%;
        left: 50%;
        border-radius: 14px;
        padding: 0.55rem;
    }
}

@media (max-width: 480px) {
    .winners-ticker-badge .ticker-badge-text {
        /* keep short word visible; if still tight hide text keep trophy */
        font-size: 0.62rem;
    }

    .home-stats-strip {
        grid-template-columns: 1fr;
    }

    .stat-card-home {
        padding: 0.85rem 0.95rem;
    }

    .stat-home-value {
        font-size: 1.15rem;
    }

    .ticker-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .ticker-game {
        max-width: 5.5rem;
    }

    .hero-scratch-demo-card {
        width: min(260px, 92vw) !important;
        height: min(310px, 78vw) !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Section titles */
    .section-header h2 {
        font-size: 1.25rem;
    }

    .section-sub {
        font-size: 0.88rem;
    }
}

/* Prefer reduced motion: stop marquee animation */
@media (prefers-reduced-motion: reduce) {
    .winners-ticker-track {
        animation: none;
        overflow-x: auto;
        justify-content: flex-start;
    }
}


/* === HOME MOBILE FIX v1b === */
@media (max-width: 720px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }
    /* Ticker stays inside layout — avoid 100vw which causes right-side clipping */
    .winners-ticker-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
    }
}

@media (max-width: 380px) {
    .winners-ticker-badge .ticker-badge-text {
        display: none;
    }
    .winners-ticker-badge {
        padding: 0 0.55rem;
    }
}

/* === ADMIN DASHBOARD OVERFLOW FIX === */
.admin-layout-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-main-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
}

.admin-main-content > .card,
.admin-main-content .metrics-grid,
.admin-main-content .admin-dashboard-tables {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 4-col KPI grid: never force overflow on mid-width screens */
.metrics-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.metrics-grid-2-wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.metric-card-premium {
    min-width: 0;
    overflow: hidden;
}

.metric-info {
    min-width: 0;
    flex: 1 1 auto;
}

.metric-value {
    font-size: clamp(1.15rem, 2.2vw, 1.8rem);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.metric-icon-wrapper {
    flex-shrink: 0;
}

.metric-prev-info {
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
}

.metric-prev-info span {
    min-width: 0;
}

/* Chart container must not spill */
#dashboardChart {
    max-width: 100% !important;
}

.admin-main-content .card {
    overflow-x: auto;
}

@media (max-width: 1100px) {
    .metrics-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .metrics-grid-2-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .metrics-grid-4,
    .metrics-grid-2-wide,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

