/* Modern Dark Theme for SBK.LOL */
:root {
    --deep-space: #0a0a14;
    --cosmic-purple: #6c2bd9;
    --neon-blue: #4361ee;
    --electric-pink: #ff2a6d;
    --stardust: #f0f0f0;
    --moon-dust: #a0a0b0;
    --meteor: #1a1a2a;
    --comet: #25253a;
    --black-hole: #05050a;
    --supernova: #ffd166;
    --quantum: #06d6a0;
    --nebula: rgba(106, 13, 173, 0.2);
    
    --gradient-space: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--neon-blue) 50%, var(--electric-pink) 100%);
    --gradient-nebula: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--electric-pink) 100%);
    --gradient-stardust: linear-gradient(135deg, var(--stardust) 0%, var(--moon-dust) 100%);
    
    --glow-blue: 0 0 10px rgba(67, 97, 238, 0.6), 0 0 20px rgba(67, 97, 238, 0.4);
    --glow-purple: 0 0 10px rgba(108, 43, 217, 0.6), 0 0 20px rgba(108, 43, 217, 0.4);
    --glow-pink: 0 0 10px rgba(255, 42, 109, 0.6), 0 0 20px rgba(255, 42, 109, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--deep-space);
    color: var(--stardust);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(108, 43, 217, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 42, 109, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(67, 97, 238, 0.03) 0%, transparent 25%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black-hole);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-nebula);
    border-radius: 6px;
    border: 2px solid var(--black-hole);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-space);
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    padding: 0.8rem 1.5rem;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-space);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    color: var(--stardust) !important;
    font-weight: 500;
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 8px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-space);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--neon-blue) !important;
    background: rgba(67, 97, 238, 0.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.98)), var(--gradient-space);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(67, 97, 238, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(255, 42, 109, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(108, 43, 217, 0.1) 0%, transparent 30%);
    animation: rotateSlow 30s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Promo Banner */
.promo-banner {
    animation: cosmicPulse 3s infinite alternate;
    border: 1px solid rgba(67, 97, 238, 0.3);
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-space);
}

@keyframes cosmicPulse {
    0% { 
        box-shadow: var(--glow-blue);
        transform: translateY(0);
    }
    100% { 
        box-shadow: var(--glow-purple);
        transform: translateY(-5px);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    background-color: var(--meteor);
    color: var(--stardust);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-space);
}

.card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35), var(--glow-blue);
    transform: translateY(-8px);
}

.feature-card {
    height: 100%;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border: none;
    font-weight: 600;
    background: var(--gradient-space);
    color: white;
    padding: 1rem 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.8rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.2, 0.95, 0.57, 0.99);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--gradient-space);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--supernova) 0%, #ff9e16 100%);
    color: #000;
}

.btn-success {
    background: linear-gradient(135deg, var(--quantum) 0%, #04a57f 100%);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-outline-primary:hover {
    background: var(--gradient-space);
    color: white;
    border-color: transparent;
}

/* Form Elements */
.form-control {
    border-radius: 12px;
    border: 2px solid var(--comet);
    transition: all 0.3s ease;
    background-color: var(--meteor);
    color: var(--stardust);
    padding: 0.8rem 1.2rem;
}

.form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    background-color: var(--meteor);
    color: var(--stardust);
}

.form-control::placeholder {
    color: var(--moon-dust);
}

.form-select {
    border-radius: 12px;
    border: 2px solid var(--comet);
    background-color: var(--meteor);
    color: var(--stardust);
    padding: 0.8rem 1.2rem;
}

.form-select:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Step Cards */
.step-card {
    padding: 25px;
    position: relative;
    height: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-space);
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(108, 43, 217, 0.4);
}

/* Giveaway Cards */
.giveaway-card {
    transition: all 0.3s ease;
    background: var(--meteor);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.giveaway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-space);
}

.giveaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--glow-purple);
}

.countdown {
    font-size: 1rem;
    font-weight: bold;
    background: var(--gradient-space);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Elements */
.profile-image {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient-space) border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    background-color: var(--meteor);
    color: var(--stardust);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-space);
}

.alert-success::before {
    background: var(--quantum);
}

.alert-warning::before {
    background: var(--supernova);
}

.alert-danger::before {
    background: var(--electric-pink);
}

/* Footer */
footer {
    background-color: rgba(10, 10, 20, 0.95);
    border-top: 1px solid var(--comet);
    backdrop-filter: blur(10px);
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-space);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .promo-banner h3 {
        font-size: 1.3rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-space);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-space) !important;
}

.glass-effect {
    background: rgba(26, 26, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

/* Animation for page load */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Link Tree specific styles */
.link-tree-item {
    display: flex;
    align-items: center;
    background: var(--meteor);
    color: var(--stardust);
    text-decoration: none;
    padding: 18px 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--comet);
    position: relative;
    overflow: hidden;
}

.link-tree-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-space);
    opacity: 0.1;
    transition: all 0.5s ease;
    z-index: 0;
}

.link-tree-item:hover::before {
    left: 0;
}

.link-tree-item:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), var(--glow-blue);
    border-color: var(--neon-blue);
}

.link-icon {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    z-index: 1;
}

/* Custom animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

/* Selection color */
::selection {
    background: rgba(67, 97, 238, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(67, 97, 238, 0.3);
    color: white;
}

/* Particle effect background for special sections */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(67, 97, 238, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 75% 44%, rgba(255, 42, 109, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 50% 70%, rgba(108, 43, 217, 0.1) 0%, transparent 15%);
    z-index: 0;
}