/* ===================================
   Spinlytics - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #6366f1;
    --accent-color: #ec4899;
    --gold-color: #fbbf24;
    --dark-color: #1f2937;
    --gray-color: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #6366f1);
    --gradient-accent: linear-gradient(135deg, #fbbf24, #ec4899, #8b5cf6);
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 64px;
    
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    color: var(--gray-color);
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Pre-Header */
.pre-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

/* Minimal pre-header for international users (only language switcher) */
.pre-header-minimal {
    padding: 8px 0;
}

.pre-header-minimal .pre-header-content {
    justify-content: flex-end;
}

.pre-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ADM Badge - Similar to screenshot */
.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.adm-icon {
    font-size: 14px;
}

.adm-text {
    color: #60a5fa;
    letter-spacing: 0.5px;
}

/* Age Badge - Circular like screenshot */
.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.7rem;
}

.age-icon {
    line-height: 1;
}

/* Warning text */
.warning-text {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-left: 8px;
}

.warning-text a {
    color: #60a5fa;
}

.warning-text a:hover {
    color: #93c5fd;
}

.pre-header-text {
    color: #d1d5db;
    font-weight: 500;
}

.pre-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Language Selector in Pre-Header */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-label {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 5px;
}

.lang-separator {
    color: #4b5563;
    margin: 0 5px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
}

.lang-btn .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 0.85rem;
}

.lang-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--white);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.lang-btn.active .lang-text {
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    z-index: 999;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-brand h2 {
    font-size: 1.8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-link.btn-primary {
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--white) !important;
}

.nav-link.btn-primary::after {
    display: none !important;
}

.nav-link.btn-primary:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

.nav-link.btn-primary:active,
.nav-link.btn-primary:focus {
    color: var(--white) !important;
    outline: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899, transparent);
    top: 40%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #fbbf24, transparent);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gray-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hero-badges {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ai {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: var(--white);
}

.badge-italy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.badge-realtime {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.badge-adm {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gdpr {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-md);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.9rem;
}
}

/* Games Section */
.games-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.game-provider-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.provider-logo h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.provider-games p {
    color: var(--gray-color);
    line-height: 1.9;
    font-size: 1.05rem;
}

.games-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-content {
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    line-height: 1.9;
    margin-bottom: var(--spacing-md);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: var(--spacing-md);
}

.footer-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gold-color);
}

.footer-column a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-compliance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: var(--spacing-md);
}

.compliance-box h4 {
    color: var(--gold-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.compliance-box p {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pre-header {
        padding: 6px 0;
        font-size: 0.65rem;
    }
    
    .pre-header-content {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .pre-header-left {
        width: auto;
        justify-content: flex-start;
        text-align: left;
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    /* MINIMAL BADGES on mobile */
    .adm-badge {
        padding: 3px 6px;
        font-size: 0.6rem;
        border-radius: 4px;
    }
    
    .adm-icon {
        font-size: 11px;
    }
    
    .age-badge {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    /* HIDE warning text on mobile - too long */
    .warning-text {
        display: none;
    }
    
    .pre-header-right {
        width: auto;
        justify-content: flex-end;
    }
    
    .lang-text {
        display: inline;
        font-size: 0.7rem;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--dark-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-compliance {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DROPDOWN MENU STYLES
   ============================================ */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-text strong {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.dropdown-text small {
    font-size: 0.8rem;
    color: #64748b;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .nav-link-dropdown {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-item {
        margin: 4px 0;
    }
}

/* ============================================
   IMPROVED NAVIGATION DESIGN
   ============================================ */

/* Subtle login link */
.nav-link-subtle {
    opacity: 0.7;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-link-subtle:hover {
    opacity: 1;
}

/* Account dropdown */
.nav-dropdown-account {
    margin-left: auto;
}

.nav-link-account {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-icon {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    transition: transform 0.3s;
}

.nav-link-account:hover .account-icon {
    transform: scale(1.1);
}

.dropdown-menu-account {
    right: 0;
    left: auto;
}

/* ============================================
   AUTH MODAL POPUP
   ============================================ */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: #1e293b;
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.auth-modal-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-modal-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.auth-modal-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.auth-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-modal-btn-secondary {
    background: white;
    color: #1e293b;
    border-color: #e2e8f0;
}

.auth-modal-btn-secondary:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-2px);
}

.auth-btn-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.auth-btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.auth-btn-content strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-btn-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.auth-modal-divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e8f0;
}

.auth-modal-divider::before {
    left: 0;
}

.auth-modal-divider::after {
    right: 0;
}

.auth-modal-divider span {
    background: white;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-modal-footer p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Mobile Auth Modal */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 20px;
    }
    
    .auth-modal-title {
        font-size: 1.5rem;
    }
    
    .auth-modal-btn {
        padding: 16px 20px;
    }
    
    .auth-btn-icon {
        font-size: 1.8rem;
    }
}

/* ===================================
   Top Casinos Carousel Section
   =================================== */

.top-casinos-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.top-casinos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.casinos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.casinos-header .section-title {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.flag-badge {
    font-size: 1.5rem;
}

.view-all-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.view-all-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.link-count {
    font-weight: 700;
}

.casinos-carousel {
    position: relative;
    z-index: 1;
}

.casinos-track {
    display: flex;
    gap: 16px;
    overflow-x: visible; /* Cambio da auto a visible */
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center; /* Centra i box */
    flex-wrap: wrap; /* Permette wrap su mobile */
}

.casinos-track::-webkit-scrollbar {
    display: none;
}

.casino-slide {
    width: 220px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    height: 360px;
}

.casino-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.casino-slide-left {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.casino-slide-logo {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.casino-slide-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.casino-slide-info {
    flex: 1;
}

.casino-slide-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 3px;
}

.casino-slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.casino-slide-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.casino-slide-bonus {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.75rem;
    color: #0c4a6e;
    font-weight: 600;
    line-height: 1.4;
}

.casino-slide-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    color: #6b7280;
}

.casino-slide-feature {
    display: flex;
    align-items: center;
    gap: 4px;
}

.casino-slide-feature::before {
    content: '✓';
    color: #10b981;
    font-weight: 900;
    font-size: 0.75rem;
}

.casino-slide-right {
    display: flex;
    flex-direction: column;
}

.casino-slide-cta {
    display: block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.casino-slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.carousel-btn {
    display: none; /* Nascondo i bottoni carousel */
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

@media (max-width: 768px) {
    .casinos-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carousel-btn {
        display: none;
    }
    
    /* Trasformo i box in lista compatta mobile */
    .casinos-track {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }
    
    .casino-slide {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        height: auto;
        min-height: auto;
        padding: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .casino-slide-left {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .casino-slide-logo {
        width: 50px;
        height: 50px;
    }
    
    .casino-slide-info {
        text-align: center;
    }
    
    .casino-slide-name {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .casino-slide-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    .casino-slide-center {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    
    .casino-slide-bonus {
        display: block !important;
        font-size: 0.7rem;
        padding: 6px 8px;
        text-align: center;
        line-height: 1.3;
    }
    
    .casino-slide-features {
        display: none;
    }
    
    .casino-slide-right {
        flex: 0 0 auto;
    }
    
    .casino-slide-cta {
        padding: 10px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* ===== BRAND LOGO STYLES ===== */

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.brand-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.lang-flag {
    position: absolute;
    top: -5px;
    right: -14px;
    font-size: 0.8rem;
}

/* Responsive logo */
@media (max-width: 768px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .brand-link {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 36px;
        height: 36px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

