
:root {
    --bg-start: #090d16;
    --bg-end: #1e1b4b;
    --accent: #ff1e56;
    --accent-glow: rgba(255, 30, 86, 0.55);
    --gold: #fbbf24;
    --secondary: #0f172a;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body.landing-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 50% 25%, var(--bg-end) 0%, var(--bg-start) 78%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
}

body.landing-body::before {
    content: "";
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(251, 191, 36, 0.14) 40%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

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

.top-strip {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
}
.brand-logo {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fde047;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: wfBlink 1.2s infinite;
}
@keyframes wfBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.wheel-center-stage {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 16px 20px;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

.promo-pill {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 30, 86, 0.25), rgba(251, 191, 36, 0.25));
    border: 1px solid var(--gold);
    color: #fef08a;
    padding: 5px 15px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wheel-center-stage h1 {
    font-size: clamp(1.55rem, 4.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.wheel-center-stage p.sub {
    font-size: 0.98rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    max-width: 500px;
}

.wheel-box {
    position: relative;
    width: 348px;
    height: 348px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#wfWheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25), 0 25px 60px rgba(0, 0, 0, 0.75);
}
.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 36px solid var(--gold);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.65));
    z-index: 20;
}
.wheel-hub-btn {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e2e8f0);
    border: 5px solid var(--gold);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.75), inset 0 -3px 8px rgba(0,0,0,0.25);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: transform 0.15s ease;
}
.wheel-hub-btn:hover { transform: scale(1.08); }
.wheel-hub-btn:active { transform: scale(0.94); }

.btn-spin-hero {
    background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 16px 34px;
    min-height: 54px;
    border-radius: 16px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 10px 30px var(--accent-glow);
    animation: wfHeroPulse 1.8s infinite;
    width: 100%;
    max-width: 360px;
}
.btn-spin-hero:disabled {
    opacity: 0.75;
    animation: none;
    cursor: wait;
}
@keyframes wfHeroPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px var(--accent-glow); }
    50% { transform: scale(1.035); box-shadow: 0 14px 42px var(--accent-glow); }
}

.confirmed-pill {
    display: none;
    margin-top: 14px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #34d399;
    color: #6ee7b7;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 800;
}

.minimal-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 12px 16px 16px;
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.65);
}
.minimal-footer a {
    color: rgba(226, 232, 240, 0.8);
    margin: 0 8px;
    text-decoration: underline;
}

.wf-confetti {
    position: fixed;
    top: -12px;
    width: 10px;
    height: 16px;
    border-radius: 3px;
    z-index: 9800;
    pointer-events: none;
    animation: wfConfettiFall linear forwards;
}
@keyframes wfConfettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

.wf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.84);
    backdrop-filter: blur(8px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wfFadeIn 0.2s ease;
}
.wf-modal-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    color: #0f172a;
    border-radius: 26px;
    max-width: 430px;
    width: 100%;
    padding: 28px 22px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 3px var(--gold);
    animation: wfPopUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.wf-modal-drag-pill {
    display: none;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 99px;
    margin: 0 auto 12px;
}
.wf-modal-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 5px 13px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.wf-modal-title {
    font-size: 1.42rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.22;
    margin-bottom: 14px;
}
.wf-pulsing-bell-btn {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #ffe4e6 100%);
    border: 4px solid var(--accent);
    margin: 4px auto 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: wfBellRing 1.5s infinite;
}
.wf-bell-emoji { font-size: 2.6rem; line-height: 1; }
.wf-bell-tap-hint {
    font-size: 0.64rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 4px;
    letter-spacing: 0.05em;
}
@keyframes wfBellRing {
    0% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 rgba(255, 30, 86, 0.55); }
    15% { transform: scale(1.07) rotate(-11deg); }
    30% { transform: scale(1.07) rotate(11deg); }
    45% { transform: scale(1.04) rotate(-6deg); }
    60% { transform: scale(1.04) rotate(6deg); }
    70% { box-shadow: 0 0 0 22px rgba(255, 30, 86, 0); }
    100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 rgba(255, 30, 86, 0); }
}
.wf-modal-body {
    font-size: 0.94rem;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.5;
}
.wf-modal-accept {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--accent-glow);
}

.wf-toast {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: #0f172a;
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    max-width: 92vw;
    text-align: center;
}
.wf-toast-success { background: #065f46; border: 1px solid #34d399; }
.wf-toast-warn { background: #92400e; border: 1px solid #fbbf24; }

#wf-browser-pointer {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.78);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 95px 0 0 110px;
    backdrop-filter: blur(2px);
}
.wf-pointer-box {
    background: #fff;
    color: #0f172a;
    padding: 18px 22px;
    border-radius: 16px;
    max-width: 340px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid var(--accent);
    animation: wfBounce 1.2s infinite;
}
.wf-pointer-arrow { font-size: 2.2rem; color: var(--accent); font-weight: 900; line-height: 1; margin-bottom: 6px; }
.wf-pointer-text span { color: var(--accent); font-weight: 800; text-decoration: underline; }

@keyframes wfFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wfPopUp { from { opacity: 0; transform: scale(0.92) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes wfSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes wfBounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, -8px); } }

body.admin-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.55;
}
.container { max-width: 1020px; margin: 0 auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 11px; font-weight: 800; font-size: 0.94rem; cursor: pointer; border: none; }
.btn-primary { background: #e11d48; color: #fff; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; color: #0f172a; }
.form-control { width: 100%; min-height: 44px; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; color: #1e293b; }

@media (max-width: 768px) {
    .wheel-box { width: 312px; height: 312px; margin-bottom: 18px; }
    .form-row-2, .admin-split { grid-template-columns: 1fr; }
    .wf-modal-backdrop { align-items: flex-end; padding: 0; }
    .wf-modal-card { border-radius: 26px 26px 0 0; max-width: 100%; padding: 14px 20px 28px; animation: wfSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
    .wf-modal-drag-pill { display: block; }
    #wf-browser-pointer { padding: 24px 16px; align-items: center; justify-content: center; }
}
