#landing {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
}
#landing.hidden { display: none; }
.landing-inner { width: 100%; max-width: 500px; position: relative; z-index: 2; }
.landing-header { text-align: center; margin-bottom: 36px; }
.landing-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(201,162,39,0.12); border: 2px solid rgba(201,162,39,0.4);
    margin-bottom: 20px;
}
.landing-title {
    font-size: clamp(28px, 10vw, 46px); font-weight: 900; margin: 0 0 10px;
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(135deg, #c9a227 0%, #e8d8ff 35%, #a855f7 65%, #e8d8ff 85%, #c9a227 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerTitle 5s ease-in-out infinite;
}
@keyframes shimmerTitle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.landing-subtitle {
    font-size: clamp(13px, 3.5vw, 15px); color: #9370cc; line-height: 1.5; margin: 0;
    font-weight: 300;
}

.landing-card {
    background: rgba(12,5,28,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: clamp(16px, 4vw, 24px);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 0 80px rgba(124,58,237,0.15);
    position: relative;
    overflow: hidden;
}
.landing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.8), transparent);
}
.landing-card-glow {
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(124,58,237,0.12);
    filter: blur(60px);
    pointer-events: none;
}
.landing-card-inner { position: relative; }

.landing-form-header { text-align: center; margin-bottom: 24px; }
.landing-form-header h2 { font-size: 20px; font-weight: 700; color: #e8d8ff; font-family: 'Quicksand', sans-serif; }
.landing-form-header p { font-size: 14px; color: #9370cc; margin-top: 4px; }

.landing-row { display: flex; gap: 12px; margin-bottom: 14px; }
.landing-row .field { flex: 1; }
.landing-row .field label {
    display: block; font-size: 11px; font-weight: 600; color: #9370cc;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.landing-row .field input,
.landing-row .field select {
    width: 100%; padding: 12px 14px;
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 12px;
    font-size: 15px; font-family: 'Quicksand', sans-serif;
    color: #e8d8ff; background: rgba(8,3,20,0.7);
    outline: none; transition: 0.2s;
}
.landing-row .field input:focus,
.landing-row .field select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.landing-row .field input::placeholder { color: #6b5390; }
.landing-row .field select option { background: #0c051c; color: #e8d8ff; }

.landing-btn {
    width: 100%; padding: 16px;
    border: 1px solid rgba(124,58,237,0.4); border-radius: 40px;
    font-size: 17px; font-weight: 700;
    color: #c4a8ff;
    font-family: 'Quicksand', sans-serif;
    transition: 0.3s;
    margin-top: 8px;
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(12,5,28,0.6);
}
.landing-btn.enabled {
    opacity: 1;
    cursor: pointer;
    background: rgba(124,58,237,0.2);
    border-color: #a855f7;
    color: #e8d8ff;
    box-shadow: 0 0 24px rgba(124,58,237,0.2);
}
.landing-btn.enabled:hover {
    transform: translateY(-2px);
    background: rgba(124,58,237,0.3);
    box-shadow: 0 0 32px rgba(124,58,237,0.35);
}

@media (max-width: 500px) {
    .landing-row { flex-direction: column; gap: 10px; }
}

/* ========== LOGIN BUTTON TOP-RIGHT ========== */
.login-btn-top {
    position: fixed; top: 20px; right: 24px; z-index: 2001;
    padding: 10px 22px;
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 40px;
    background: rgba(12,5,28,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #9370cc;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}
.login-btn-top:hover {
    border-color: #a855f7;
    color: #e8d8ff;
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
}
.login-btn-top.logged-in {
    border-color: rgba(201,162,39,0.5);
    color: #c9a227;
    background: rgba(201,162,39,0.08);
}
.login-btn-top.logged-in:hover {
    border-color: #c9a227;
    box-shadow: 0 0 20px rgba(201,162,39,0.2);
    color: #fbbf24;
}

/* ========== LANDING BUTTON PREMIUM STATE ========== */
.landing-btn.premium {
    background: linear-gradient(135deg, #c9a227, #e8a317, #c9a227);
    background-size: 200% 200%;
    animation: premiumGlow 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(201,162,39,0.3), inset 0 0 20px rgba(255,215,0,0.05);
    position: relative;
}
.landing-btn.premium::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: 42px;
    background: linear-gradient(135deg, #c9a227, #ffd700, #c9a227, #ffd700);
    background-size: 300% 300%;
    z-index: -1;
    animation: premiumBorderGlow 3s ease-in-out infinite;
}
.landing-btn.premium::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 42px;
    background: linear-gradient(135deg, transparent, rgba(255,215,0,0.3), transparent);
    z-index: -1;
    animation: premiumBorderGlow 2s ease-in-out infinite reverse;
}
@keyframes premiumGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes premiumBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.landing-links {
    display: flex; justify-content: center;
    align-items: center; margin-top: 16px;
}
.landing-links a {
    font-size: 13px; text-decoration: none; transition: color 0.2s;
}
.landing-records {
    color: #6b5390;
}
.landing-records:hover {
    color: #c9a227;
}

.guest-note {
    text-align: center;
    font-size: 12px;
    color: #f59e0b;
    margin: 6px 0 0;
    font-style: italic;
}
