:root {
    /* Colors - Dark Mode Default */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-glass: rgba(20, 20, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #e50914;
    /* Netflix-ish red */
    --accent-gradient: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
    --accent-premium: linear-gradient(135deg, #b20a2c 0%, #ff4b1f 100%);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow-shadow: 0 0 20px rgba(229, 9, 20, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --card-border: rgba(0, 0, 0, 0.05);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --glow-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-premium);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.section-padding {
    padding: 5rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-red);
    background: var(--accent-premium);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.desktop-only {
    display: flex;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 10%, rgba(229, 9, 20, 0.15), transparent 60%);
    animation: pulse-bg 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-bg {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-text .btn-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-container {
    position: relative;
    animation: float-3d 6s ease-in-out infinite;
}

@keyframes float-3d {
    0% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(5deg) rotateX(-5deg) translateY(-20px);
    }

    100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0);
    }
}

.mockup-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: var(--glass-border);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: var(--card-border);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Room Cards */
.room-card {
    background: #000000;
    border-radius: 16px;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-color: #333;
}

.room-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-live {
    background: #FF0000;
    color: white;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.badge-live::before {
    content: '•';
    font-size: 1.2rem;
    line-height: 0;
    margin-top: -2px;
}

.badge-viewers {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
}

.room-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #050505;
}

.room-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-host {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-participants {
    display: flex;
    align-items: center;
}

.participant-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #050505;
    margin-left: -8px;
    object-fit: cover;
    background: #333;
    color: #ccc;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-avatar:first-child {
    margin-left: 0;
}

.btn-room-action {
    background: #D20000;
    color: white;
    width: 100%;
    padding: 0.7rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border: none;
    transition: background 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(210, 0, 0, 0.3);
    text-decoration: none;
    display: block;
}

.btn-room-action:hover {
    background: #ff0f1f;
    box-shadow: 0 6px 20px rgba(255, 15, 31, 0.4);
    color: white;
}

/* Stats */
.stats {
    background: var(--bg-secondary);
    margin: 5rem 0;
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: var(--card-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.premium {
    background: linear-gradient(145deg, var(--bg-secondary), #151515);
    border: 1px solid rgba(229, 9, 20, 0.4);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    display: block;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.features-list {
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.features-list li i {
    color: var(--accent-red);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
}

.auth-card {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-red);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text .btn-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Infinite Marquee */
.marquee-section {
    background: var(--bg-primary);
    padding: 3rem 0;
    overflow: hidden;
    border-bottom: var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
    align-items: center;
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.partner-logo {
    height: 35px;
    width: auto;
    opacity: 0.4;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
    cursor: pointer;
}

[data-theme="light"] .partner-logo {
    filter: grayscale(100%) brightness(0.2);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Premium Button Enhancements */
.btn-premium-glow {
    background: linear-gradient(92deg, #ff0f1f 0%, #aa0612 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.btn-premium-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.6), 0 0 15px rgba(255, 75, 31, 0.4);
    filter: brightness(1.1);
}

.btn-premium-glow:active {
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions button {
    min-width: 120px;
}

/* Hidden Rooms Utility */
.hidden-room {
    display: none !important;
}
