/* ==========================================================================
   JetWinz Premium Bridge Page Stylesheet (Refined with Background Transitions)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    --bg-darkest: #050609;
    --bg-dark: #0a0b10;
    --bg-card: rgba(10, 11, 16, 0.88);
    
    /* Neon & Gold Glow Palette */
    --gold-primary: #dfa800;
    --gold-light: #ffe680;
    --purple-neon: #8b3dff;
    --purple-glow: rgba(139, 61, 255, 0.35);
    --gold-glow: rgba(223, 168, 0, 0.35);
    
    --gold-gradient: linear-gradient(135deg, #ffe680 0%, #dfa800 50%, #b8860b 100%);
    --gold-text-gradient: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #dfa800 100%);
    --border-glow-gradient: conic-gradient(from 0deg, transparent, var(--gold-primary), var(--purple-neon), var(--gold-light), transparent 60%);
    
    /* Text */
    --text-primary: #f3f4f6;
    --text-secondary: #a1a8b9;
    --text-muted: #6b7280;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.25s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    /* Premium Shifting Background */
    background: linear-gradient(-45deg, #030406, #090615, #140d04, #050609);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 24px 0;
}

/* Shifting Background Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shifting Ambient Color Globs */
.bg-glow {
    position: absolute;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    transition: all 5s ease;
}

.bg-glow-left {
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    top: -5%;
    left: -10%;
    animation: bounceGlowLeft 20s infinite alternate;
}

.bg-glow-right {
    background: radial-gradient(circle, var(--purple-neon) 0%, transparent 70%);
    bottom: -5%;
    right: -10%;
    animation: bounceGlowRight 20s infinite alternate;
}

@keyframes bounceGlowLeft {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes bounceGlowRight {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.15) 1.5px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 1px, transparent 20px);
    background-size: 350px 350px, 200px 200px;
    background-position: 0 0, 45px 45px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

/* Floating Golden Star Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: var(--gold-light);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0.15;
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Floating Particles Speeds and Coordinates */
.p1 { width: 6px; height: 6px; left: 10%; top: 20%; animation: floatParticle 8s infinite ease-in-out; }
.p2 { width: 8px; height: 8px; left: 85%; top: 15%; animation: floatParticle 12s infinite ease-in-out 1.5s; opacity: 0.12; }
.p3 { width: 5px; height: 5px; left: 25%; top: 75%; animation: floatParticle 9s infinite ease-in-out 3s; }
.p4 { width: 10px; height: 10px; left: 75%; top: 80%; animation: floatParticle 14s infinite ease-in-out 0.5s; opacity: 0.08; }
.p5 { width: 7px; height: 7px; left: 50%; top: 40%; animation: floatParticle 11s infinite ease-in-out 2s; }
.p6 { width: 4px; height: 4px; left: 90%; top: 60%; animation: floatParticle 7s infinite ease-in-out 4s; }
.p7 { width: 9px; height: 9px; left: 5%; top: 85%; animation: floatParticle 13s infinite ease-in-out 2.5s; opacity: 0.1; }
.p8 { width: 6px; height: 6px; left: 45%; top: 88%; animation: floatParticle 10s infinite ease-in-out 1s; }

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0.15; }
    50% { transform: translateY(-40px) translateX(20px); opacity: 0.35; }
    100% { transform: translateY(0) translateX(0); opacity: 0.15; }
}

/* Layout Framework */
.page-container {
    width: 100%;
    max-width: 960px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

/* Header Component */
.app-header-floating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    background: rgba(9, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 50px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 20px rgba(139, 61, 255, 0.15);
    transition: var(--transition-smooth);
}

.app-header-floating:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6), 
        0 0 25px rgba(255, 215, 0, 0.15);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-glow-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold-primary);
    animation: flashLight 1.5s infinite alternate;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(223, 168, 0, 0.4);
}

.logo-badge {
    font-size: 10px;
    font-weight: 800;
    background: var(--gold-gradient);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

.pulse-green-dot {
    width: 6px;
    height: 6px;
    background-color: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4caf50;
    animation: pulseGlowGreen 2s infinite;
}

.secure-text {
    font-size: 11px;
    font-weight: 600;
    color: #81c784;
    letter-spacing: 0.5px;
}

/* Card Container with Desktop Split Layout */
.bridge-card-container {
    position: relative;
    border-radius: 24px;
}

.bridge-card-glow-wrapper {
    position: relative;
    padding: 1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(139, 61, 255, 0.2) 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.bridge-card-content {
    background-color: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 23px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .bridge-card-content {
        grid-template-columns: 1.15fr 1fr;
    }
}

.grid-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.visual-column {
    align-items: center;
}

.info-column {
    gap: 24px;
}

/* 3D Tilt Image Wrapper & Glow */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 16px;
    overflow: hidden;
    padding: 2px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Setup 3D transform animations */
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    will-change: transform;
    cursor: pointer;
}

.hero-image-wrapper:hover {
    box-shadow: 
        0 30px 70px rgba(223, 168, 0, 0.65), 
        0 0 50px rgba(139, 61, 255, 0.65);
}

/* Dynamic Silver Sweep Shine across Image */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: imageShineSweep 6s infinite ease-in-out;
    z-index: 3;
    pointer-events: none;
}

@keyframes imageShineSweep {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.turning-glow-ring {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--border-glow-gradient);
    animation: rotateGlowRing 5s linear infinite;
    z-index: 1;
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Accelerated Spin and Brightness Boost on Hover */
.hero-image-wrapper:hover .turning-glow-ring {
    animation-duration: 2s;
    filter: brightness(1.4) drop-shadow(0 0 12px var(--gold-primary));
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    z-index: 2;
    display: block;
}

.image-overlay-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Extra Visuals: Game Categories Grid */
.game-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.category-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.25);
    transform: translateY(-2.5px);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.4),
        0 0 10px rgba(255, 215, 0, 0.05);
}

.cat-icon {
    font-size: 20px;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Info Column & Hero Content */
.hero-text-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-invite-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 22px;
    }
}

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

.redirect-timer {
    font-size: 14px;
    color: var(--text-secondary);
}

#countdown {
    color: var(--gold-light);
    font-weight: 700;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Promo Banner */
.compact-promo-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    display: flex;
    padding: 16px 8px;
    justify-content: space-around;
    align-items: center;
}

.promo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.promo-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.promo-txt {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.promo-cell-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 215, 0, 0.2);
}

/* Premium Pulsating Glowing CTA Button */
.cta-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.premium-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Active Pulsing Glow animation */
    animation: buttonPulseGlow 3s infinite ease-in-out;
    transition: var(--transition-fast);
}

/* Pulsating button glow animation keyframe */
@keyframes buttonPulseGlow {
    0% {
        box-shadow: 
            0 4px 15px rgba(223, 168, 0, 0.4), 
            0 0 10px rgba(139, 61, 255, 0.25);
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(223, 168, 0, 0.8), 
            0 0 25px rgba(139, 61, 255, 0.6),
            inset 0 0 10px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(223, 168, 0, 0.4), 
            0 0 10px rgba(139, 61, 255, 0.25);
    }
}

.premium-cta-btn:hover {
    transform: translateY(-2.5px);
    animation-play-state: paused; /* Pause pulsing keyframes on hover */
    letter-spacing: 1.2px; /* Expanding tracking text */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9); /* Glowing font overlay */
    filter: brightness(1.08);
    box-shadow: 
        0 15px 35px rgba(223, 168, 0, 0.95), 
        0 0 35px rgba(139, 61, 255, 0.8),
        inset 0 0 12px rgba(255, 255, 255, 0.5);
}

.premium-cta-btn:active {
    transform: translateY(0.5px);
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shineFlow 4s infinite ease-in-out;
}

.arrow-icon-svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.premium-cta-btn:hover .arrow-icon-svg {
    transform: translateX(4px);
}

.cta-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* Game Providers Section */
.providers-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mini-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.25);
    color: var(--text-primary);
}

.mini-badge-icon {
    font-weight: 700;
    color: var(--gold-primary);
}

/* Footer & Legal Disclosures */
.app-footer-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 12px 0 24px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-link:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(223, 168, 0, 0.4);
}

.legal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.license-declaration {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.lic-separator {
    color: var(--text-muted);
}

.copyright-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* Winner Toaster Popups */
.winner-toaster {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(9, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    z-index: 999;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.35s ease;
}

.winner-toaster.show {
    transform: translateY(0);
    opacity: 1;
}

.winner-toaster.hidden {
    display: none;
}

.toaster-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.toaster-content {
    flex: 1;
}

.toaster-player {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-name {
    color: var(--text-primary);
    font-weight: 600;
}

.toaster-amount {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #4caf50;
    line-height: 1.1;
}

.toaster-game {
    font-size: 11px;
    color: var(--text-muted);
}

.toaster-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    line-height: 1;
}

/* Animations Keyframes */
@keyframes rotateGlowRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes flashLight {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes pulseGlowGreen {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes shineFlow {
    0% { left: -100%; }
    15% { left: 130%; }
    100% { left: 130%; }
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .page-container {
        padding: 10px;
        gap: 15px;
    }

    .app-header-floating {
        padding: 10px 18px;
    }

    .bridge-card-content {
        padding: 24px 20px;
        gap: 24px;
    }

    .game-categories-grid {
        margin-top: 16px;
    }

    .winner-toaster {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}
