/* --- VARIABEL & GLOBAL --- */
:root {
    --bg-primary: #0c0c0c;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --color-gold: #d4af37;
    --color-magenta: #ff006e;
    --color-purple: #8338ec;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --font-headline: 'Bebas Neue', cursive;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --logo-url: url('https://ik.imagekit.io/feug8fcfm/JOKI55/Gemini_Generated_Image_1rbsx11rbsx11rbs-removebg-preview%20(1).png');
    --bg-poster-url: url('https://ik.imagekit.io/feug8fcfm/JOKI55/Gemini_Generated_Image_2a81g02a81g02a81.png');
    --popup-img-url: url('https://ik.imagekit.io/feug8fcfm/JOKI55/poster_Generated_Image_ok0rjbok0rjbok0r.png?updatedAt=1762208941160');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-display: swap;
    /* Level Up: Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to content link for accessibility */
.skip-links {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100;
}

.skip-links:focus-within {
    top: 0;
}

.skip-link {
    display: block;
    background: var(--color-gold);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    outline: 3px solid var(--color-magenta);
    outline-offset: 2px;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;
    height: 150px;
    background-image: var(--logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.preloader-text {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-gold), var(--color-magenta));
    border-radius: 2px;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* --- STICKY HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(12, 12, 12, 0.95);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(-100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.header.visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    width: 120px;
    height: 120px;
    background-image: var(--logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background-color: transparent;
    padding: 0;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.header-nav a:hover::after,
.header-nav a:focus::after {
    width: 100%;
}

.header-nav a:focus {
    outline: 3px solid var(--color-magenta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-magenta));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-poster-url);
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(1.2);
    z-index: -2;
    transform: scale(1.05);
    animation: parallax 30s infinite alternate ease-in-out;
}

@keyframes parallax {
    0% { transform: scale(1.05) translateY(0); }
    100% { transform: scale(1.1) translateY(-10px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(12,12,12,0.2) 0%, rgba(12,12,12,0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-logo {
    width: 300px;
    height: 300px;
    background-image: var(--logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title .magenta {
    color: var(--color-magenta);
}

.hero-subtitle {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: none;
    background: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-gold), #f4e19c);
    color: var(--bg-primary);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5);
    animation: jackpot-glow 2s infinite;
}

@keyframes jackpot-glow {
    0% { box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 5px 35px rgba(212, 175, 55, 0.8), 0 0 25px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5); }
}

.btn-primary:hover, 
.btn-primary:focus {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.7);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--color-magenta);
}

.btn-secondary:hover, 
.btn-secondary:focus {
    background-color: var(--color-magenta);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.05);
}

.btn:focus {
    outline: 3px solid var(--color-magenta);
    outline-offset: 2px;
}

/* --- SECTIONS --- */
.section {
    padding: 100px 0;
}
.section-title {
    font-family: var(--font-headline);
    font-size: 4rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-gold);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-magenta));
    border-radius: 2px;
}

/* --- GAMES SHOWCASE SECTION --- */
.games-showcase {
    background-color: var(--bg-secondary);
    padding: 80px 0;
}

.games-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.swiper {
    width: 100%;
    border-radius: 20px;
    height: calc(100vw * (613/1920));
    max-height: 400px;
    min-height: 250px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
    background-color: #000;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.swiper-slide:hover .game-image {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 20px 20px;
    text-align: center;
}

.game-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.game-jackpot {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: var(--color-gold);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- WINNERS SECTION --- */
.winners {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.winner-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    /* OPTIMIZATION: Isolate layout recalculations */
    contain: content;
}

.winner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
}

.winner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--color-gold), #f4e19c);
    color: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.winner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.winner-info {
    padding: 25px;
}

.winner-name {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.winner-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.winner-game {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- STATS SECTION --- */
.stats {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-item {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
}
.stat-item .stat-number {
    font-family: var(--font-headline);
    font-size: 4rem;
    font-weight: 400;
    color: var(--color-magenta);
    display: block;
    margin-bottom: 10px;
}
.stat-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    /* OPTIMIZATION: Isolate layout recalculations */
    contain: content;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}
.feature-icon {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.feature-card h3 {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}
.feature-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(45deg, var(--color-magenta), var(--color-purple));
    padding: 80px 0;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cta-section h2 {
    font-family: var(--font-headline);
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.btn-cta-large {
    padding: 22px 55px;
    font-size: 1.4rem;
    background: linear-gradient(45deg, var(--color-gold), #f4e19c);
    color: var(--bg-primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    animation: jackpot-glow 2s infinite;
    position: relative;
    z-index: 1;
    border: none;
    background: none;
    cursor: pointer;
}
.btn-cta-large:hover, 
.btn-cta-large:focus {
    transform: translateY(-5px) scale(1.05);
}

/* --- PROVIDERS SECTION --- */
.providers {
    background-color: var(--bg-secondary);
}
.providers-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.provider-logo {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.provider-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}
.provider-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: var(--transition);
}
.provider-logo:hover::before {
    left: 100%;
}
.provider-logo:hover, 
.provider-logo:focus {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.05);
}
.provider-logo:hover img {
    filter: grayscale(0%);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--bg-primary);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    font-family: var(--font-headline);
}
.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-secondary);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-info h4 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-primary);
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
    width: 150px;
    height: 150px;
    background-image: var(--logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background-color: transparent;
    padding: 0;
}
.footer-logo:hover {
    transform: scale(1.1);
}

.social-share {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.social-share h3 {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-family: var(--font-headline);
    font-size: 1.5rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.telegram {
    background: #0088cc;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- FLOATING BUTTONS --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1000;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: none;
    /* OPTIMIZATION: Hint browser for animation */
    will-change: transform;
}
.live-chat-btn {
    right: 30px;
    background: var(--color-magenta);
    animation: pulse 2s infinite;
}
.live-chat-btn:hover, 
.live-chat-btn:focus { 
    transform: scale(1.1);
    animation: none;
}
.scroll-top-btn {
    right: 105px;
    background: var(--color-gold);
    color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
}
.scroll-top-btn.show { 
    opacity: 1; 
    visibility: visible;
}
.scroll-top-btn:hover, 
.scroll-top-btn:focus { 
    transform: scale(1.1);
}

/* --- POPUP STYLES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-gold);
    display: flex;
    flex-direction: column;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 110, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: none;
    background: none;
}

.popup-close:hover, 
.popup-close:focus {
    background: var(--color-magenta);
    transform: rotate(90deg);
}

.popup-timer {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(90deg, var(--color-gold), #f4e19c);
    color: var(--bg-primary);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62.5%; /* Aspect ratio 16:10 */
    overflow: hidden;
}

.popup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--popup-img-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}

.popup-content {
    padding: 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.popup-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.popup-cta {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--color-magenta), var(--color-purple));
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 0, 110, 0.3);
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.popup-cta:hover, 
.popup-cta:focus {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 110, 0.5);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-left: 4px solid var(--color-gold);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.toast-message {
    font-weight: 600;
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* --- SECURITY WARNING MODAL --- */
.security-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.security-warning.active {
    opacity: 1;
    visibility: visible;
}

.security-modal {
    background: var(--bg-secondary);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.security-warning.active .security-modal {
    transform: scale(1);
}

.security-logo {
    width: 120px;
    height: 120px;
    background-image: var(--logo-url);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.security-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.security-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.security-btn {
    background: linear-gradient(45deg, var(--color-gold), #f4e19c);
    color: var(--bg-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.security-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .cta-group { flex-direction: column; }
    .scroll-top-btn { right: 30px; }
    .section { padding: 70px 0; }
    .section-title, .cta-section h2 { font-size: 3rem; }
    .popup-container {
        max-width: 95%;
        max-height: 85vh;
    }
    .popup-title {
        font-size: 1.5rem;
    }
    .popup-content {
        padding: 20px;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    .hero-subtitle {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    .btn-cta-large {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
    .swiper {
        height: calc(100vw * (613/1920));
        max-height: 300px;
    }
    .providers-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .social-buttons {
        gap: 10px;
    }
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .security-modal {
        padding: 30px 20px;
    }
    .security-title {
        font-size: 2rem;
    }
    .security-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    .section-title, .cta-section h2 {
        font-size: 2.5rem;
    }
    .feature-card, .testimonial-card {
        padding: 25px 20px;
    }
    .popup-container {
        max-width: 100%;
        margin: 10px;
    }
    .popup-title {
        font-size: 1.3rem;
    }
    .popup-description {
        font-size: 0.9rem;
    }
    .popup-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .winners-grid {
        grid-template-columns: 1fr;
    }
    .swiper {
        height: calc(100vw * (613/1920));
        max-height: 250px;
    }
    .social-share h3 {
        font-size: 1.2rem;
    }
    .security-title {
        font-size: 1.8rem;
    }
    .security-logo {
        width: 100px;
        height: 100px;
    }
}

/* Focus styles for better accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--color-magenta);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(255, 0, 110, 0.3);
}

/* Reduced motion for users who prefer less animation */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}