/* ==========================================================================
   FAMECLOCK LOTTERY - CREATORS / BLOG / ARTICLE ALIGNED MARBLE GLASS UI
   ========================================================================== */

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

:root {
    --lottery-accent: #60a5fa !important;
    --lottery-accent-strong: #3b82f6;
    --lottery-accent-glow: rgba(96, 165, 250, 0.18);
    --lottery-gold: #d97706;
    --lottery-success: #16a34a;
    --lottery-danger: #e11d48;
    --text-main: #1e293b !important;
    --text-muted: #64748b !important;

    --glass-bg: rgba(255, 255, 255, 0.52);
    --glass-border: rgba(255, 255, 255, 0.88);
    --glass-shadow: 0 18px 36px rgba(96, 165, 250, 0.10), inset 0 0 16px rgba(255, 255, 255, 0.62);
}

body.lottery-page {
    background: linear-gradient(-45deg, #ffffff, #eef3f7, #ffffff, #e0eaef, #ffffff);
    background-size: 400% 400%;
    animation: MarbleFlow 15s ease infinite;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.lottery-page::before,
body.lottery-page::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

body.lottery-page::before {
    top: 92px;
    left: -150px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.10) 0%, rgba(96, 165, 250, 0) 72%);
}

body.lottery-page::after {
    right: -120px;
    bottom: 85px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 74%);
}

@keyframes MarbleFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#sciFiBg,
.cyber-grid,
.soft-vignette,
canvas {
    display: none !important;
}

.lottery-orb {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(42px);
    opacity: 0.35;
}

.lottery-orb--one {
    top: 176px;
    right: 8%;
    width: 160px;
    height: 160px;
    background: rgba(96, 165, 250, 0.18);
}

.lottery-orb--two {
    bottom: 126px;
    left: 10%;
    width: 180px;
    height: 180px;
    background: rgba(59, 130, 246, 0.12);
}

.lottery-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 132px auto 72px;
    display: grid;
    gap: 24px;
}

.lottery-panel {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.lottery-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.22) 38%, rgba(255,255,255,0.08) 100%);
    pointer-events: none;
}

.lottery-hero,
.lottery-action-card,
.lottery-side-stack {
    padding: 34px;
}

.lottery-hero,
.lottery-action-card {
    display: grid;
    gap: 22px;
}

.lottery-hero-top,
.lottery-card-head,
.wallet-card,
.my-stats,
.ticket-control,
.lottery-countdown-bar,
.lottery-hero-grid,
.timer-row,
.rules-mini,
.lottery-side-stat-grid {
    position: relative;
    z-index: 1;
}

.lottery-hero-top,
.lottery-card-head,
.wallet-card,
.lottery-countdown-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lottery-badge,
.lottery-meta-pill,
.lottery-side-kicker,
.lottery-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #60a5fa;
    box-shadow: 0 8px 18px rgba(96, 165, 250, 0.10);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.lottery-meta-pill strong {
    color: #60a5fa !important;
    font-weight: 900;
}
.lottery-kicker,
.lottery-dek,
.rm-item span,
.wc-label,
.ms-lbl,
.cost-info,
#msg-area,
.lottery-countdown-kicker,
.lottery-countdown-label,
.lottery-countdown-note,
.lottery-card-kicker,
.lottery-side-copy,
.login-btn,
.lottery-auth-copy p {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.lottery-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.lottery-copy {
    position: relative;
    z-index: 1;
}

.lottery-kicker,
.lottery-card-kicker,
.lottery-countdown-kicker {
    color: var(--lottery-accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

.lottery-title,
.lottery-card-title,
.win-info h4,
.wc-val,
.ms-val,
.time-val,
.lottery-side-stat strong,
.lottery-drawing {
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.lottery-title {
    margin: 12px 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: 0.03em;
}

.lottery-dek {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.rules-mini {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.rm-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(96, 165, 250, 0.14);
    box-shadow: 0 10px 22px rgba(96, 165, 250, 0.08);
}

.rm-item i {
    color: var(--lottery-accent);
    font-size: 0.95rem;
}

.rm-item span,
.lottery-countdown-label,
.lottery-countdown-note,
.wc-label,
.ms-lbl,
.cost-info,
#msg-area,
.lottery-side-copy,
.lottery-auth-copy p {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.5;
}

.winner-card,
.lottery-info-card,
.lottery-auth-card,
.lottery-stat-box,
.wallet-card,
.lottery-countdown-shell {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(255,255,255,0.74);
    box-shadow: 0 14px 26px rgba(96, 165, 250, 0.08);
}

.winner-card {
    padding: 22px;
    display: grid;
    gap: 16px;
    align-content: start;
}

.win-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(255,255,255,0.92));
    border: 1px solid rgba(217, 119, 6, 0.24);
    color: var(--lottery-gold);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.12);
    font-size: 1.2rem;
}

.win-info {
    display: grid;
    gap: 6px;
}

.win-info h4 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.win-info span {
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lottery-side-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lottery-side-stat,
.lottery-stat-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.lottery-side-stat strong,
.ms-val,
.wc-val {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.lottery-side-stat span,
.ms-lbl {
    display: block;
    margin-top: 8px;
}

.lottery-countdown-shell {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.lottery-countdown-label {
    margin-top: 4px;
    color: var(--text-main);
}

.lottery-countdown-note {
    color: var(--lottery-accent-strong);
}

.timer-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.time-box {
    padding: 18px 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(96, 165, 250, 0.14);
    box-shadow: 0 12px 22px rgba(96, 165, 250, 0.08);
    text-align: center;
}

.time-box--accent {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(255,255,255,0.94));
    border-color: rgba(96, 165, 250, 0.22);
}

.time-val {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.time-box--accent .time-val {
    color: var(--lottery-accent-strong);
}

.time-lbl {
    margin-top: 8px;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lottery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.lottery-side-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.lottery-card-head {
    align-items: flex-start;
}

.lottery-card-title {
    margin: 8px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.14;
}

.wallet-card,
.my-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wallet-card {
    padding: 22px;
    align-items: center;
}

.wallet-card > div:first-child {
    min-width: 0;
}

.wallet-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    justify-self: end;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(255,255,255,0.92));
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--lottery-accent-strong);
    font-size: 1.2rem;
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.12);
}

.wc-val {
    margin-top: 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.my-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-control {
    display: grid;
    gap: 12px;
}

.buy-action-btn,
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease, background 180ms ease, color 180ms ease;
}

.buy-action-btn {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.98), rgba(59, 130, 246, 0.95));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(96, 165, 250, 0.24);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-btn {
    background: rgba(255,255,255,0.92);
    color: var(--lottery-accent-strong);
    box-shadow: 0 10px 22px rgba(96, 165, 250, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.buy-action-btn:hover:not(:disabled),
.login-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 30px rgba(96, 165, 250, 0.16);
}

.buy-action-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.9), rgba(100, 116, 139, 0.92));
    border-color: rgba(148, 163, 184, 0.28);
}

.cost-info span {
    color: var(--lottery-gold);
}

#msg-area {
    min-height: 22px;
}

#msg-area.msg-success {
    color: var(--lottery-success);
}

#msg-area.msg-error {
    color: var(--lottery-danger);
}

.lottery-auth-card,
.lottery-info-card {
    padding: 20px;
}

.lottery-auth-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.lottery-auth-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(255,255,255,0.92));
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: var(--lottery-accent-strong);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.1);
    font-size: 1rem;
}

.lottery-auth-copy {
    min-width: 0;
}

.lottery-auth-copy h3 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lottery-auth-copy p,
.lottery-side-copy {
    margin: 0;
}

.lottery-auth-card .login-btn {
    grid-column: 1 / -1;
}

.lottery-side-stack {
    position: sticky;
    top: 108px;
}

.lottery-info-card {
    display: grid;
    gap: 14px;
}

.lottery-side-copy {
    color: var(--text-muted);
}

.lottery-drawing {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: var(--lottery-accent-strong);
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 12px 22px rgba(96, 165, 250, 0.08);
}

@media (max-width: 1080px) {
    .lottery-hero-grid,
    .lottery-grid {
        grid-template-columns: 1fr;
    }

    .lottery-side-stack {
        position: static;
    }
}

@media (max-width: 720px) {
    .lottery-shell {
        width: min(100% - 20px, 100%);
        margin: 116px auto 56px;
        gap: 18px;
    }

    .lottery-hero,
    .lottery-action-card,
    .lottery-side-stack {
        padding: 22px;
    }

    .timer-row,
    .my-stats,
    .wallet-card,
    .lottery-side-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lottery-auth-card {
        grid-template-columns: 1fr;
    }

    .lottery-title {
        font-size: clamp(1.65rem, 9vw, 2.3rem);
    }
}

@media (max-width: 480px) {
    .lottery-badge,
    .lottery-meta-pill,
    .lottery-side-kicker,
    .lottery-inline-pill {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.7rem;
    }

    .timer-row,
    .wallet-card,
    .my-stats,
    .lottery-side-stat-grid {
        grid-template-columns: 1fr;
    }

    .buy-action-btn,
    .login-btn {
        min-height: 50px;
        width: 100%;
    }

    .lottery-drawing {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   LOTTERY EXECUTIVE WOW PASS
   Premium flagship spotlight draw / enterprise authority alignment
   ========================================================================== */

:root {
    --lottery-premium-shadow: 0 30px 70px rgba(15, 23, 42, 0.10), 0 10px 24px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.92), inset 0 0 0 1px rgba(15, 23, 42, 0.04);
    --lottery-premium-shadow-hover: 0 38px 88px rgba(15, 23, 42, 0.14), 0 16px 34px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.96), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    --lottery-copy: #475569;
    --lottery-copy-strong: #334155;
    --lottery-focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

body.lottery-page {
    background:
        radial-gradient(circle at 50% -8%, rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0) 28%),
        radial-gradient(circle at 100% 100%, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0) 24%),
        linear-gradient(180deg, #f8fbfd 0%, #eef4f7 44%, #ffffff 100%) !important;
    background-size: auto !important;
    animation: none !important;
    line-height: 1.65;
}

body.lottery-page::before {
    top: 110px;
    left: -120px;
    width: 320px;
    height: 320px;
    filter: blur(18px);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.10) 0%, rgba(96, 165, 250, 0) 72%);
}

body.lottery-page::after {
    right: -110px;
    bottom: 80px;
    width: 300px;
    height: 300px;
    filter: blur(18px);
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0) 72%);
}

.lottery-orb {
    opacity: 0.72 !important;
    filter: blur(18px) !important;
}

.lottery-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 148px auto 88px;
    gap: 26px;
}

.lottery-panel,
.winner-card,
.lottery-info-card,
.lottery-auth-card,
.lottery-stat-box,
.wallet-card,
.lottery-countdown-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.76)) !important;
    border: 1px solid rgba(255,255,255,0.94) !important;
    box-shadow: var(--lottery-premium-shadow) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.lottery-panel::before {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), rgba(255,255,255,0) 38%),
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04)) !important;
}

.lottery-hero,
.lottery-action-card,
.lottery-side-stack {
    padding: 34px;
}

.lottery-hero {
    gap: 26px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0) 42%),
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.80)) !important;
    box-shadow: var(--lottery-premium-shadow-hover) !important;
}

.lottery-hero::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    top: 0;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(96,165,250,0.40), rgba(255,255,255,0));
    pointer-events: none;
}

.lottery-badge,
.lottery-meta-pill,
.lottery-side-kicker,
.lottery-inline-pill,
.rm-item span,
.wc-label,
.ms-lbl,
.cost-info,
.lottery-countdown-kicker,
.lottery-countdown-label,
.lottery-countdown-note,
.lottery-card-kicker {
    letter-spacing: 0.12em !important;
}

.lottery-badge,
.lottery-meta-pill,
.lottery-side-kicker,
.lottery-inline-pill {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.90)) !important;
    border-color: rgba(96, 165, 250, 0.20) !important;
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.10) !important;
    color: var(--lottery-accent-strong) !important;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
}

.lottery-kicker,
.lottery-card-kicker,
.lottery-countdown-kicker {
    color: var(--lottery-accent-strong);
    font-family: 'Inter', 'Roboto', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.24;
    text-transform: uppercase;
}

.lottery-title,
.lottery-card-title,
.win-info h4,
.wc-val,
.ms-val,
.time-val,
.lottery-side-stat strong,
.lottery-drawing {
    font-family: 'Inter', 'Roboto', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.92);
}

.lottery-title {
    margin: 14px 0 16px;
    max-width: 13ch;
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    line-height: 1.02;
}

.lottery-card-title {
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.18;
}

.lottery-dek,
.lottery-side-copy,
.lottery-auth-copy p,
.lottery-countdown-note,
#msg-area,
.cost-info {
    font-family: 'Inter', 'Roboto', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    color: var(--lottery-copy) !important;
}

.lottery-dek,
.lottery-side-copy,
.lottery-auth-copy p {
    font-size: 0.98rem !important;
    font-weight: 500 !important;
    line-height: 1.72 !important;
}

.lottery-dek {
    max-width: 760px;
    color: var(--lottery-copy-strong) !important;
}

.lottery-hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.rules-mini {
    gap: 12px;
    margin-top: 26px;
}

.rm-item {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.90)) !important;
    border-color: rgba(226, 232, 240, 0.92) !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04) !important;
}

.rm-item span,
.wc-label,
.ms-lbl,
.cost-info,
.lottery-countdown-label,
.lottery-countdown-note,
.lottery-side-copy,
.lottery-auth-copy p {
    color: var(--lottery-copy) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

.wallet-card,
.lottery-countdown-shell,
.winner-card,
.lottery-info-card,
.lottery-auth-card,
.lottery-stat-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.88)) !important;
}

.wallet-card {
    padding: 22px;
    border-radius: 24px;
}

.wallet-icon,
.lottery-auth-icon,
.win-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.90)) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06) !important;
}

.wallet-icon,
.lottery-auth-icon {
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: var(--lottery-accent-strong);
}

.win-avatar {
    border: 1px solid rgba(217, 119, 6, 0.20);
    color: var(--lottery-gold);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.12) !important;
}

.wc-val {
    margin-top: 8px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.my-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lottery-stat-box,
.lottery-side-stat {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92)) !important;
    border-color: rgba(226, 232, 240, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 10px 20px rgba(15, 23, 42, 0.04) !important;
}

.ms-val,
.time-val,
.lottery-side-stat strong {
    font-size: 1.18rem !important;
}

.ticket-control {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.buy-action-btn,
.login-btn {
    min-height: 56px;
    border-radius: 18px;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease !important;
}

.buy-action-btn {
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22) !important;
}

.login-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92)) !important;
    color: var(--lottery-accent-strong) !important;
    border-color: rgba(226,232,240,0.92) !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04) !important;
}

.buy-action-btn:hover:not(:disabled),
.login-btn:hover {
    transform: translateY(-2px);
}

.buy-action-btn:hover:not(:disabled) {
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.26) !important;
}

.login-btn:hover {
    border-color: rgba(96,165,250,0.24) !important;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07) !important;
}

.buy-action-btn:disabled {
    opacity: 0.6;
    box-shadow: none !important;
}

.cost-info {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92)) !important;
    border: 1px solid rgba(226,232,240,0.92);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.cost-info span {
    color: #0f172a;
    font-weight: 800;
}

#msg-area {
    min-height: 20px;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

.winner-card,
.lottery-info-card,
.lottery-auth-card,
.lottery-countdown-shell {
    padding: 22px;
    border-radius: 24px;
}

.win-info h4 {
    font-size: 1.08rem !important;
    line-height: 1.34;
}

.win-info span {
    color: var(--lottery-copy-soft, #64748b) !important;
    font-family: 'Inter', 'Roboto', sans-serif !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase;
}

.lottery-side-stat-grid {
    gap: 12px;
}

.lottery-drawing {
    font-size: 1.04rem !important;
    line-height: 1.24;
}

.lottery-countdown-shell {
    background:
        radial-gradient(circle at top right, rgba(96,165,250,0.12), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.90)) !important;
}

.lottery-countdown-label {
    color: #0f172a !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.08em !important;
}

.lottery-countdown-note {
    font-size: 0.86rem !important;
}

.time-val {
    font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
}

.buy-action-btn:focus-visible,
.login-btn:focus-visible {
    outline: none;
    border-color: rgba(59, 130, 246, 0.42) !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.92), var(--lottery-focus-ring), 0 18px 34px rgba(15, 23, 42, 0.10) !important;
}

@media (prefers-reduced-motion: reduce) {
    body.lottery-page {
        animation: none !important;
    }

    body.lottery-page::before,
    body.lottery-page::after,
    .lottery-orb {
        display: none !important;
    }

    .buy-action-btn,
    .login-btn,
    .winner-card,
    .lottery-info-card,
    .lottery-auth-card {
        transition: none !important;
    }
}

@media (max-width: 1080px) {
    .lottery-shell {
        width: min(100% - 28px, 100%);
        margin-top: 132px;
        margin-bottom: 72px;
    }

    .lottery-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .lottery-shell {
        width: min(100% - 20px, 100%);
        margin-top: 118px;
        margin-bottom: 56px;
    }

    .lottery-panel,
    .winner-card,
    .lottery-info-card,
    .lottery-auth-card,
    .lottery-stat-box,
    .wallet-card,
    .lottery-countdown-shell {
        border-radius: 24px !important;
    }

    .lottery-hero,
    .lottery-action-card,
    .lottery-side-stack {
        padding: 24px;
    }

    .lottery-title {
        font-size: clamp(1.95rem, 8vw, 3rem);
    }

    .lottery-dek,
    .lottery-side-copy,
    .lottery-auth-copy p,
    .lottery-countdown-note,
    #msg-area,
    .cost-info {
        font-size: 0.95rem !important;
        line-height: 1.68 !important;
    }

    .my-stats,
    .lottery-side-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LOTTERY REFINEMENT PASS 2
   Countdown + buy console deeper polish
   ========================================================================== */

.lottery-countdown-shell{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.lottery-countdown-shell::after{
    content:"";
    position:absolute;
    left:24px;
    right:24px;
    top:0;
    height:2px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg, rgba(255,255,255,0), rgba(96,165,250,.42), rgba(255,255,255,0));
    pointer-events:none;
}

.lottery-countdown-shell > *{
    position:relative;
    z-index:1;
}

.lottery-countdown-bar{
    align-items:flex-end;
}

.lottery-countdown-label{
    color:var(--text-main);
    font-size:.84rem;
    font-weight:900;
    letter-spacing:.12em;
}

.lottery-countdown-note{
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    border:1px solid rgba(226,232,240,.92);
    box-shadow:0 10px 18px rgba(15,23,42,.04);
    font-size:.82rem;
    font-weight:700;
}

.timer-row{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.time-box{
    position:relative;
    overflow:hidden;
    min-height:136px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    border:1px solid rgba(226,232,240,.92);
    box-shadow:0 14px 24px rgba(15,23,42,.05);
}

.time-box::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right, rgba(96,165,250,.08), rgba(255,255,255,0) 36%),
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
    pointer-events:none;
}

.time-box > *{
    position:relative;
    z-index:1;
}

.time-box--accent{
    background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.88));
    border-color:rgba(96,165,250,.20);
    box-shadow:0 18px 30px rgba(59,130,246,.12);
}

.time-val{
    font-size:clamp(2rem, 3.4vw, 2.7rem);
    font-weight:900;
    line-height:1;
    letter-spacing:-.03em !important;
}

.time-lbl{
    margin-top:10px;
    font-size:.74rem;
    font-weight:900;
    line-height:1.35;
}

.lottery-action-card{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.lottery-action-card::after{
    content:"";
    position:absolute;
    left:26px;
    right:26px;
    top:0;
    height:2px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg, rgba(255,255,255,0), rgba(96,165,250,.34), rgba(255,255,255,0));
    pointer-events:none;
}

.lottery-action-card > *{
    position:relative;
    z-index:1;
}

.wallet-card{
    align-items:center;
    min-height:120px;
}

.wc-label{
    line-height:1.44;
}

.wc-val{
    letter-spacing:-.02em !important;
}

.my-stats{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.lottery-stat-box{
    min-height:118px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.ms-val{
    letter-spacing:-.02em !important;
}

.ms-lbl{
    line-height:1.48;
}

.ticket-control{
    padding:18px;
    border-radius:22px;
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    border:1px solid rgba(226,232,240,.92);
    box-shadow:0 14px 26px rgba(15,23,42,.05);
}

.buy-action-btn,
.login-btn{
    position:relative;
    overflow:hidden;
}

.buy-action-btn::before,
.login-btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
    pointer-events:none;
}

.buy-action-btn{
    min-height:58px;
    font-size:.86rem;
    font-weight:900;
    letter-spacing:.14em;
    box-shadow:0 18px 30px rgba(59,130,246,.18);
}

.buy-action-btn:hover:not(:disabled){
    box-shadow:0 24px 38px rgba(59,130,246,.24);
}

.login-btn{
    min-height:54px;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
}

.cost-info{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    font-size:.82rem;
}

.cost-info span{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:0 10px;
    border-radius:999px;
    background:linear-gradient(180deg, rgba(255,248,235,.98), rgba(255,243,214,.92));
    border:1px solid rgba(251,191,36,.24);
    box-shadow:0 8px 16px rgba(217,119,6,.08);
}

#msg-area{
    min-height:24px;
    font-size:.84rem;
    font-weight:700;
}

@media (max-width:720px){
    .timer-row{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .time-box{
        min-height:122px;
    }

    .ticket-control{
        padding:16px;
        border-radius:20px;
    }
}

@media (max-width:480px){
    .timer-row,
    .my-stats{
        grid-template-columns:1fr;
    }

    .buy-action-btn,
    .login-btn{
        width:100%;
    }

    .time-box{
        min-height:112px;
        border-radius:20px;
    }
}
/* ==========================================================================
   LOTTERY REFINEMENT PASS 3
   Winner / side stack deeper polish
   ========================================================================== */

.winner-card{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.winner-card::after{
    content:"";
    position:absolute;
    left:22px;
    right:22px;
    top:0;
    height:2px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg, rgba(255,255,255,0), rgba(251,191,36,.42), rgba(255,255,255,0));
    pointer-events:none;
}

.winner-card > *{
    position:relative;
    z-index:1;
}

.win-avatar{
    width:66px;
    height:66px;
    border-radius:22px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 18px 30px rgba(217,119,6,.14);
}

.win-info{
    gap:8px;
}

.win-info h4{
    font-size:1.24rem;
    line-height:1.14;
    letter-spacing:.01em !important;
}

.win-info span{
    font-size:.76rem;
    line-height:1.5;
}

.lottery-side-stat-grid{
    gap:14px;
}

.lottery-side-stat{
    min-height:102px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    border:1px solid rgba(226,232,240,.92);
    box-shadow:0 12px 22px rgba(15,23,42,.05);
}

.lottery-side-stat strong{
    font-size:1.36rem;
    line-height:1.04;
    letter-spacing:-.02em !important;
}

.lottery-side-stat span{
    margin-top:8px;
    line-height:1.5;
}

.lottery-side-stack{
    gap:18px;
}

.lottery-auth-card,
.lottery-info-card{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.lottery-auth-card::after,
.lottery-info-card::after{
    content:"";
    position:absolute;
    left:20px;
    right:20px;
    top:0;
    height:2px;
    border-radius:0 0 999px 999px;
    background:linear-gradient(90deg, rgba(255,255,255,0), rgba(96,165,250,.28), rgba(255,255,255,0));
    pointer-events:none;
}

.lottery-auth-card > *,
.lottery-info-card > *{
    position:relative;
    z-index:1;
}

.lottery-auth-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.80),
        0 14px 24px rgba(59,130,246,.10);
}

.lottery-auth-copy h3{
    line-height:1.26;
    letter-spacing:.04em !important;
}

.lottery-auth-copy p,
.lottery-side-copy{
    font-size:.94rem;
    line-height:1.68;
}

.lottery-auth-card .login-btn{
    margin-top:2px;
}

.lottery-info-card{
    gap:16px;
}

.lottery-drawing{
    min-height:96px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px 20px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.90));
    border:1px solid rgba(96,165,250,.20);
    box-shadow:0 16px 28px rgba(59,130,246,.10);
    text-align:center;
    font-size:1.34rem;
    line-height:1.14;
    letter-spacing:.02em !important;
}

@media (max-width:720px){
    .winner-card,
    .lottery-auth-card,
    .lottery-info-card{
        border-radius:22px;
    }

    .lottery-drawing{
        min-height:88px;
        border-radius:22px;
    }
}

@media (max-width:480px){
    .win-avatar{
        width:60px;
        height:60px;
        border-radius:20px;
    }

    .lottery-side-stat{
        min-height:94px;
    }

    .lottery-drawing{
        min-height:82px;
        font-size:1.08rem;
    }
}

/* ==========================================================================
   LOTTERY FINAL NORMALIZATION
   Keeps latest lottery passes stable after refinement-pass-1 removal
   ========================================================================== */

.lottery-shell,
.lottery-hero,
.lottery-hero-top,
.lottery-hero-grid,
.lottery-copy,
.rules-mini,
.winner-card,
.win-info,
.lottery-side-stat-grid,
.lottery-countdown-shell,
.lottery-countdown-bar,
.timer-row,
.time-box,
.lottery-grid,
.lottery-action-card,
.wallet-card,
.my-stats,
.ticket-control,
.lottery-side-stack,
.lottery-auth-card,
.lottery-info-card{
    min-width:0;
}

.buy-action-btn,
.login-btn,
.lottery-badge,
.lottery-meta-pill,
.lottery-side-kicker,
.lottery-inline-pill{
    box-sizing:border-box;
    max-width:100%;
    text-decoration:none;
}

.lottery-title,
.lottery-card-title,
.win-info h4,
.lottery-drawing,
.time-val{
    overflow-wrap:anywhere;
}

@media (max-width:720px){
    .lottery-countdown-note,
    .cost-info{
        width:100%;
    }
}

@media (max-width:480px){
    .buy-action-btn,
    .login-btn{
        width:100%;
        justify-content:center;
    }
}
