/* === Aviator Ultimate Premium Theme (Mobile Optimized) === */
:root {
    --bg-base: #060114;
    --primary-glow: #e21855;
    --secondary-glow: #4204f0;
    --gold: #FFB300;
    --gold-glow: rgba(255, 179, 0, 0.6);
    --check-green: #00FF57;
    --text-main: #FFFFFF;
}

body {
    margin: 0; padding: 0;
    font-family: 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #090218, #18053a, #0d0117);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Extra padding on small screens if it scrolls */
    padding: 20px 10px;
    box-sizing: border-box;
}

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

/* Background Animated Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrb 10s ease-in-out infinite alternate;
}
.orb-1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    top: -50px; left: -100px;
}
.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary-glow), transparent 70%);
    bottom: -50px; right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(20px) scale(1.05); }
}

/* Premium Card (More compact for phones) */
.premium-card {
    background: linear-gradient(160deg, #1c093a 0%, #110323 100%);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle glass edge */
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15),
                0 0 20px rgba(66, 4, 240, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    width: 100%;
    max-width: 380px; /* Reduced to fit mobile gracefully */
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-sizing: border-box;
}

/* Light Sweep effect over the card */
.premium-card::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.04), transparent);
    transform: skewX(-20deg);
    animation: shineCard 7s infinite;
    pointer-events: none;
}
@keyframes shineCard {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Logo Design - Scaled down */
.logo-wrapper {
    position: relative;
    width: 90px; height: 90px;
    margin: 0 auto 15px auto;
    display: flex; justify-content: center; align-items: center;
}
.logo-pulse-1, .logo-pulse-2 {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pulseRing 3s cubic-bezier(0.215, 0.610, 0.355, 1.000) infinite;
    opacity: 0;
}
.logo-pulse-2 { animation-delay: 1.5s; }

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; box-shadow: 0 0 10px var(--gold-glow); }
    100% { transform: scale(1.6); opacity: 0; box-shadow: 0 0 30px transparent; }
}

.logo-center {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #111, #000);
    z-index: 2;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    box-shadow: 0 0 20px var(--gold-glow), inset 0 2px 8px rgba(255,255,255,0.1);
    border: 2px solid var(--gold);
}
.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 3;
}

/* Timer Area */
.timer-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 42, 95, 0.2);
    box-shadow: inset 0 0 15px rgba(226, 24, 85, 0.1);
}
.timer-label {
    text-align: center;
    font-size: 11px;
    color: #ff9fb4;
    margin-bottom: 3px;
    font-weight: 600;
}
.neon-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow);
    text-align: center;
    letter-spacing: 2px;
}

/* Subtitle Badge */
.subtitle-badge {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 10px;
    border-radius: 30px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge-icon { font-size: 14px; margin-right: 4px; }

/* Features List */
.feature-list {
    list-style: none; padding: 0; margin: 0 0 25px 0;
}
.feature-item {
    display: flex; align-items: center;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--check-green);
    transform: translateX(-15px);
    opacity: 0;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}

.check-circle {
    width: 20px; height: 20px;
    background: rgba(0, 255, 87, 0.2);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-right: 12px;
    color: var(--check-green);
    box-shadow: 0 0 8px rgba(0, 255, 87, 0.3);
    flex-shrink: 0;
}
.check-circle svg { width: 12px; height: 12px; }

.feature-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #E2D1F9;
    line-height: 1.3;
}

/* 3D Glossy Button */
.glossy-btn {
    width: 100%;
    padding: 16px 0;
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #FF1F56 0%, #FF7F00 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 31, 86, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}
.glossy-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: btnShine 4s infinite;
}
.glossy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 31, 86, 0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}
.glossy-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(255, 31, 86, 0.4);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.btn-icon {
    margin-right: 8px;
    font-size: 20px;
}
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
}
.whatsapp-btn:hover {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}
.whatsapp-btn:active {
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}
.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
}
.telegram-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.6), inset 0 2px 0 rgba(255,255,255,0.3);
}
.telegram-btn:active {
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.4);
}

/* FOMO Container & Progress Bar */
.fomo-container {
    margin-top: 20px;
    text-align: center;
}
.fomo-text {
    font-size: 13px;
    color: #B29BDB;
    margin-bottom: 8px;
    font-weight: 600;
}
.highlight-neon {
    font-family: 'Outfit', sans-serif;
    color: #FFD700;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    width: 2.45%; /* 49 out of 2000 is 2.45% */
    background: linear-gradient(90deg, #FF1F56, #FFDF00);
    border-radius: 10px;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 8px #FF1F56;
}

/* Button Loader Customization */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-bottom-color: #FFF;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Even smaller phones */
@media (max-width: 360px) {
    .premium-card { padding: 20px 15px; }
    .neon-timer { font-size: 28px; }
    .glossy-btn { font-size: 16px; padding: 14px 0; }
    .feature-text { font-size: 12.5px; }
}
