:root {
    /* Light Theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 24px rgba(99, 102, 241, 0.3);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Theme */
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --accent-color: #818cf8;
        --accent-hover: #6366f1;
        --border-color: #334155;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 12px 24px rgba(129, 140, 248, 0.4);
        --gradient-1: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
        --gradient-2: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
        --gradient-3: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    /*line-height: 1.6;*/
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
    filter: blur(60px);
}

@media (prefers-color-scheme: dark) {
    .bg-gradient {
        background: 
            radial-gradient(circle at 20% 50%, rgba(129, 140, 248, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(245, 114, 181, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(167, 139, 250, 0.2) 0%, transparent 50%);
    }
}

.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: sparkle 3s infinite ease-in-out;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    box-shadow: inherit;
}

.sparkle::before {
    transform: rotate(45deg);
}

.sparkle::after {
    transform: rotate(-45deg);
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Bonuses Section */
.bonuses-section {
    padding: 1.5rem 0 0rem;
    /*min-height: 100vh;*/
}

.video-banner {
    position: relative;
    padding: 1rem 0 3rem;
}

.video-banner::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(244, 114, 182, 0.2));
    filter: blur(40px);
    z-index: 0;
}

.video-link {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-link:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.35);
}

@media (prefers-color-scheme: dark) {
    .video-link {
        border-color: rgba(129, 140, 248, 0.2);
        box-shadow: 0 20px 60px rgba(8, 11, 25, 0.6);
    }
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color)
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.banner-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(244, 114, 182, 0.5));
    z-index: -1;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    flex-wrap: wrap;
}

.section-title .flag-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.4));
}

.section-title .title-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 0.5rem;
}

/* Bonus Card */
.bonus-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem 0.9rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bonus-card:hover::before {
    left: 100%;
}

.bonus-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.bonus-card.first-place {
    background: var(--bg-card);
    border: 2px solid var(--accent-color);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3),
        0 0 60px rgba(99, 102, 241, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
    animation: glowAura 3s ease-in-out infinite, fadeInUp 0.6s ease-out;
}

.bonus-card.first-place:hover {
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.7),
        0 0 60px rgba(99, 102, 241, 0.5),
        0 0 90px rgba(99, 102, 241, 0.3),
        0 12px 24px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-hover);
}

.rank-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    animation: bounce 1s ease-in-out infinite;
}

.bonus-card.first-place .rank-badge {
    background: transparent;
    color: #ff6b35;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    border-radius: 0;
    box-shadow: none;
    text-shadow: 
        0 0 10px #ff6b35,
        0 0 20px #ff6b35,
        0 0 30px #ff9500,
        0 0 40px #ff9500,
        0 0 50px #ffaa00;
    animation: fireGlow 1.5s ease-in-out infinite alternate, bounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ff6b35);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-secondary);
    /*padding: 0.5rem;*/
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.bonus-card:hover .partner-logo {
    transform: scale(1.1) rotate(5deg);
}

.partner-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.partner-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    display: flex;
    align-items: center;
    /*gap: 0.2rem;*/
}

.star-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.star-icon svg {
    width: 100%;
    height: 100%;
}

.star-icon.filled svg path {
    fill: #22c55e;
}

.star-icon.half svg path {
    fill: #22c55e;
    opacity: 0.5;
}

.star-icon.empty svg path {
    fill: #d1d5db;
}

.rating-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    white-space: nowrap;
}

.bonus-card.first-place .rating-value {
    color: #22c55e;
}

.bonus-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0px 12px #fb71866a;
    /*animation: shimmer 2s ease-in-out infinite;*/
    align-self: flex-start;
}

.cta-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-top: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes glowAura {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(99, 102, 241, 0.5),
            0 0 40px rgba(99, 102, 241, 0.3),
            0 0 60px rgba(99, 102, 241, 0.2),
            0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(99, 102, 241, 0.7),
            0 0 60px rgba(99, 102, 241, 0.5),
            0 0 90px rgba(99, 102, 241, 0.3),
            0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fireGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px #ff6b35,
            0 0 20px #ff6b35,
            0 0 30px #ff9500,
            0 0 40px #ff9500,
            0 0 50px #ffaa00;
        filter: drop-shadow(0 0 8px #ff6b35);
    }
    25% {
        text-shadow: 
            0 0 15px #ff6b35,
            0 0 25px #ff6b35,
            0 0 35px #ff9500,
            0 0 45px #ffaa00,
            0 0 55px #ffaa00;
        filter: drop-shadow(0 0 12px #ff6b35);
    }
    50% {
        text-shadow: 
            0 0 12px #ff6b35,
            0 0 22px #ff6b35,
            0 0 32px #ff9500,
            0 0 42px #ff9500,
            0 0 52px #ffaa00;
        filter: drop-shadow(0 0 10px #ff6b35);
    }
    75% {
        text-shadow: 
            0 0 18px #ff6b35,
            0 0 28px #ff6b35,
            0 0 38px #ff9500,
            0 0 48px #ffaa00,
            0 0 58px #ffaa00;
        filter: drop-shadow(0 0 14px #ff6b35);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes gradientMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10%, 10%) rotate(90deg);
    }
    50% {
        transform: translate(-5%, 15%) rotate(180deg);
    }
    75% {
        transform: translate(15%, -5%) rotate(270deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .bonuses-section {
        padding: 2rem 0 3rem;
    }

    .video-wrapper {
        min-height: 340px;
    }

    .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }

    .bonus-card {
        padding: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .bonus-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .video-wrapper {
        min-height: 420px;
    }

    .bonus-card.first-place {
        grid-column: span 1;
    }
}

/* Stagger animation delays for cards */
.bonus-card:nth-child(1) {
    animation-delay: 0.1s;
}

.bonus-card:nth-child(2) {
    animation-delay: 0.2s;
}

.bonus-card:nth-child(3) {
    animation-delay: 0.3s;
}

.bonus-card:nth-child(4) {
    animation-delay: 0.4s;
}

.bonus-card:nth-child(5) {
    animation-delay: 0.5s;
}

.bonus-card:nth-child(6) {
    animation-delay: 0.6s;
}

