
:root {
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.glass-card {
    background: linear-gradient(145deg, rgba(15,23,42,.76), rgba(10,18,38,.52));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(22px);
}

.field-panel {
    position: relative;
    border-radius: 1.35rem;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.03));
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px rgba(2,6,23,.24);
    backdrop-filter: blur(16px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field-panel:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
}

.field-panel:focus-within {
    border-color: rgba(129,140,248,.44);
    box-shadow: 0 0 0 4px rgba(129,140,248,.10), 0 18px 38px rgba(30,41,59,.32), inset 0 1px 0 rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
}

.field-label {
    margin-bottom: .7rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.field-dot {
    height: .55rem;
    width: .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(139,92,246,.95));
    box-shadow: 0 0 0 3px rgba(125,211,252,.08), 0 0 18px rgba(59,130,246,.35);
}

.input-premium {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
    padding: .95rem 1rem;
    color: #fff;
    font-size: .98rem;
    line-height: 1.45;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.06), inset 0 -1px 0 rgba(255,255,255,.03);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
    backdrop-filter: blur(12px);
}

.input-premium::placeholder { color: #94a3b8; }
.input-premium:hover {
    border-color: rgba(255,255,255,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
}
.input-premium:focus {
    border-color: rgba(139,92,246,.8);
    box-shadow: 0 0 0 4px rgba(139,92,246,.14), 0 12px 28px rgba(30,41,59,.20), inset 0 1px 0 rgba(255,255,255,.09);
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.09));
    transform: translateY(-1px);
}

textarea.input-premium {
    min-height: 130px;
}

select.input-premium {
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #cbd5e1 50%),
      linear-gradient(135deg, #cbd5e1 50%, transparent 50%);
    background-position:
      calc(100% - 22px) calc(50% - 2px),
      calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 3rem;
}

select.input-premium option { background: #111827; color: white; }

.field-help {
    margin-top: .65rem;
    font-size: .78rem;
    color: #94a3b8;
}

.consent-card {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: .9rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    padding: 1rem 1rem;
    color: #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(2,6,23,.18);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.consent-card:hover,
.consent-card:focus-within {
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
    box-shadow: 0 0 0 4px rgba(99,102,241,.08), 0 16px 30px rgba(2,6,23,.18);
}

.check-premium {
    margin-top: .2rem;
    height: 1.15rem;
    width: 1.15rem;
    accent-color: #8b5cf6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5 55%, #0891b2);
    padding: .85rem 1.2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 16px 40px rgba(79,70,229,.25);
    transition: transform .2s ease, filter .2s ease;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    padding: .75rem 1rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: .2s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,.10); color: #fff; }

.table-premium { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-premium th { padding: .9rem 1rem; text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: #64748b; border-bottom: 1px solid rgba(255,255,255,.08); }
.table-premium td { padding: 1rem; font-size: .875rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.table-premium tbody tr:hover td { background: rgba(255,255,255,.025); }

.draw-orb {
    animation: orbPulse 1.3s ease-in-out infinite;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 80px rgba(124,58,237,.45), inset 0 0 50px rgba(255,255,255,.08);
}

@keyframes orbPulse {
    0%,100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.035); filter: brightness(1.2); }
}

.winner-pop { animation: winnerPop .65s cubic-bezier(.18,.89,.32,1.28) both; }
@keyframes winnerPop {
    from { opacity: 0; transform: translateY(20px) scale(.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.confetti-piece {
    position: fixed;
    top: -20px;
    z-index: 9999;
    width: 10px;
    height: 18px;
    border-radius: 3px;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    to { transform: translate3d(var(--drift), 110vh, 0) rotate(900deg); opacity: .2; }
}
