/* Modern Landing Page - Rugby World Cup Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gold: #d4af37;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* YouTube Background */
#youtube-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    #youtube-player {
        width: 100vw;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    #youtube-player {
        width: 177.78vh;
        height: 100vh;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%);
    backdrop-filter: blur(0.5px);
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-separator {
    color: var(--gray);
}

.btn-register {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-register:hover {
    color: var(--gold);
}

.user-name {
    color: var(--light);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 0;
    font-size: 14px;
}

.btn-secondary:hover {
    color: var(--gold);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

/* Video Player */
.video-player-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.player-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--white);
    line-height: 1.2;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    margin-bottom: 0;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    margin: 30px 0;
}

/* Gold Outlined Buttons - Reference Style */
.btn-watch-live,
.btn-create-account {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--white);
    padding: 14px 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
}

.btn-watch-live:hover,
.btn-create-account:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

/* Description Styling */
.video-description-box {
    margin-top: 0;
    padding: 0;
    text-align: center;
}

.description-text {
    color: var(--white);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.device-text {
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

/* Device Icons - Reference Style */
.device-icons {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 30px 0 40px;
    color: #6b7280;
}

.device-icon {
    transition: color 0.3s ease;
}

.device-icon:hover {
    color: #9ca3af;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    margin-left: 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Video Info */
.video-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light);
    font-size: 14px;
}

.access-message {
    display: flex;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .player-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .hero-section {
        padding: 30px 0;
    }

    .player-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .device-icons {
        gap: 20px;
    }

    .device-icon {
        width: 28px;
        height: 28px;
    }

    .btn-watch-live,
    .btn-create-account {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 18px;
    }

    .player-title {
        font-size: 24px;
    }

    .description-text {
        font-size: 15px;
    }

    .device-text {
        font-size: 13px;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: var(--dark-light);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--white);
}

.modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   SPLIT MODAL DESIGN (NOT USED)
   ============================================ */

.modal-split {
    display: flex !important;
    max-width: 1000px !important;
    width: 95% !important;
    margin: 2% auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    min-height: 600px;
    border-radius: 0 !important;
}

.modal-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    flex: 1;
    padding: 30px 40px;
    background: #ffffff;
    color: #000;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #000 !important;
    margin-bottom: 20px !important;
    line-height: 1.5;
    text-align: left !important;
}

.modal-form-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    text-align: left;
}

.modal-form-section .form-group {
    margin-bottom: 12px;
}

.modal-form-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #ffffff !important;
    color: #000 !important;
    font-size: 14px;
}

.modal-form-section input::placeholder {
    color: #999;
}

.modal-form-section input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1) !important;
}

.modal-form-section .btn-block {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
}

.modal-form-section .btn-primary {
    background: #0066cc !important;
    color: #fff !important;
    border: none;
    box-shadow: none !important;
}

.modal-form-section .btn-primary:hover {
    background: #0052a3 !important;
    transform: translateY(0) !important;
}

.btn-success {
    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-success:hover {
    background: #218838 !important;
    transform: translateY(-1px);
}

.modal-features {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0066cc;
}

.feature-item div {
    flex: 1;
}

.feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: 300;
    color: #666 !important;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #000 !important;
    background: #fff;
}

@media (max-width: 768px) {
    .modal-split {
        flex-direction: column;
        max-width: 95% !important;
        margin: 5% auto !important;
    }

    .modal-left {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .modal-right {
        padding: 20px;
    }

    .modal-title {
        font-size: 14px !important;
    }
}

/* Simple Modal Features List */
.modal-content .modal-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .modal-features h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.modal-content .modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-content .modal-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 14px;
    line-height: 1.6;
}

.modal-content .modal-features li:last-child {
    border-bottom: none;
}



.form-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    text-align: left;
}

.modal-form-section .form-group {
    margin-bottom: 12px;
}

.modal-form-section input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    background: #ffffff !important;
    color: #000 !important;
    font-size: 14px;
}

.modal-form-section input::placeholder {
    color: #999;
}

.modal-form-section input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1) !important;
}

.modal-form-section .btn-block {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
}

.modal-form-section .btn-primary {
    background: #0066cc !important;
    color: #fff !important;
    border: none;
    box-shadow: none !important;
}

.modal-form-section .btn-primary:hover {
    background: #0052a3 !important;
    transform: translateY(0) !important;
}

.btn-success {
    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-success:hover {
    background: #218838 !important;
    transform: translateY(-1px);
}

.modal-features {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0066cc;
}

.feature-item div {
    flex: 1;
}

.feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: 300;
    color: #666 !important;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #000 !important;
    background: #fff;
}

@media (max-width: 768px) {
    .modal-split {
        flex-direction: column;
        max-width: 95% !important;
        margin: 5% auto !important;
    }

    .modal-left {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .modal-right {
        padding: 20px;
    }

    .modal-title {
        font-size: 14px !important;
    }
}

/* Simple Modal Features List */
.modal-content .modal-features {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .modal-features h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.modal-content .modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-content .modal-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 14px;
    line-height: 1.6;
}

.modal-content .modal-features li:last-child {
    border-bottom: none;
}

.modal-content .modal-features strong {
    color: var(--white);
}

/* ============================================
   PayPal Payment Modal
   ============================================ */
#paypal-button-container {
    position: fixed !important;
    top: 5% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3000 !important;
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#paypal-button-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#paypal-button-container h3 {
    color: #000 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

#paypal-button-container .close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 32px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    background: white;
    border: none;
    width: auto;
    height: auto;
    border-radius: 0;
    z-index: 10;
    margin: -10px -10px 10px 10px;
}

#paypal-button-container .close:hover {
    color: #000;
}

@media (max-width: 768px) {
    #paypal-button-container {
        width: 95% !important;
        padding: 30px 20px !important;
        max-height: 95vh !important;
    }

    #paypal-button-container h3 {
        font-size: 20px !important;
    }
}