/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-card: #151d28;
    --accent-green: #28a745;
    --accent-gold: #daa300;
    --accent-blue: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --gradient-green: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    --gradient-gold: linear-gradient(135deg, #daa300 0%, #b8860b 100%);
    --gradient-dark: linear-gradient(135deg, #0f1520 0%, #1a2332 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.top_menu {
    background: var(--gradient-dark) !important;
    border-bottom: 2px solid var(--accent-green);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.3em;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.nav-divider {
    color: var(--text-muted);
    margin: 0 8px;
    font-weight: 300;
}

.top_menu ul li a {
    color: var(--text-primary);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top_menu ul li a:hover {
    color: var(--accent-green);
}

.signin_btn {
    background: rgba(40, 167, 69, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.signin_btn:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: var(--accent-green);
}

.affiliate {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

/* ===== HEADER ===== */
.header {
    padding: 30px 0 20px;
    text-align: center;
}

.main-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.2em;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.2;
}

.main-title span {
    color: var(--accent-gold);
}

.sub-title {
    color: var(--text-secondary);
    font-size: 1em;
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===== VIDEO SECTION ===== */
.video_section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: #000;
    margin: 20px 0;
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(10, 14, 23, 0.2) 0%, 
        rgba(10, 14, 23, 0.5) 50%,
        rgba(10, 14, 23, 0.85) 100%);
    z-index: 1;
}

.video_section:hover .video-thumb {
    opacity: 0.8;
    transform: scale(1.03);
}

/* ===== PERFECT CENTER PLAY BUTTON ===== */
.video_player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

.play-btn-outer {
    width: 100px;
    height: 100px;
    /* Reverted back to a red gradient */
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Red glowing shadows */
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.5), 
                0 0 80px rgba(229, 9, 20, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: play-pulse-red 2s infinite;
}

@keyframes play-pulse-red {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(229, 9, 20, 0.5), 
                    0 0 80px rgba(229, 9, 20, 0.2);
    }
    50% { 
        box-shadow: 0 0 60px rgba(229, 9, 20, 0.7), 
                    0 0 100px rgba(229, 9, 20, 0.4);
    }
}

.play-btn-outer:hover {
    transform: scale(1.15);
    box-shadow: 0 0 60px rgba(229, 9, 20, 0.8), 
                0 0 120px rgba(229, 9, 20, 0.4);
}

.play-btn-inner {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-btn-inner i {
    font-size: 32px;
    color: #fff;
    margin-left: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== LOADING ===== */
.spinner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(40, 167, 69, 0.2);
    border-top-color: var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== CONTROLS ===== */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0;
    opacity: 0;
    transition: all 0.4s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.video_section:hover .controls {
    opacity: 1;
}

.controlContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#leftControls, #rightControls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.controlBtn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 0.9em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.controlBtn:hover {
    background: var(--accent-green);
    transform: scale(1.1);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(40, 167, 69, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.live-badge__icon {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: live-pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ===== CTA SECTION LIVE BUTTON ===== */
.cta-section {
    margin: 30px 0;
}

.btn-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Gap between the left-side dot and your text */
    background: var(--gradient-green);
    color: #fff !important;
    border: none;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    
    /* Breathing Glow Animation */
    animation: green-glow 2.5s infinite ease-in-out;
}

/* Flashing LIVE Dot Indicator (Locked to the Left Side) */
.btn-live::after {
    content: '';
    order: -1; /* Forces the dot to render BEFORE the text content */
    width: 10px;
    height: 10px;
    background-color: #ffffff; /* Clean white dot */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ffffff;
    animation: dot-blink 1.5s infinite ease-in-out;
}

/* Button Glow Keyframes */
@keyframes green-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.4), 
                    0 10px 30px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(40, 167, 69, 0.7), 
                    0 10px 40px rgba(40, 167, 69, 0.5);
        transform: scale(1.02);
    }
}

/* Dot Blinking Keyframes */
@keyframes dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Hover Adjustments */
.btn-live:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.7);
    text-decoration: none;
    color: #fff;
}

.btn-live:active {
    transform: translateY(-1px) scale(1);
}

.cta-subtext {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 15px;
    letter-spacing: 1px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 40px 0;
}

.desc-text {
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Device Icons */
.device-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.device-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 12px;
    font-size: 1.3em;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.device-item span {
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.device-item:hover {
    color: var(--accent-gold);
}

.device-item:hover i {
    background: rgba(218, 163, 0, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(218, 163, 0, 0.2);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: var(--gradient-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(218, 163, 0, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-green);
    border-radius: 16px;
    margin: 0 auto 15px;
    font-size: 1.5em;
    color: #fff;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.feature-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.feature-card p {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 12px 35px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.4s ease;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 163, 0, 0.3);
    text-decoration: none;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
}

.copyright {
    font-size: 0.85em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
    position: relative;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.footer__links a:hover {
    color: #fff;
}

.footer__links a:hover::after {
    width: 100%;
}

/* ===== SIGN IN PANEL ===== */
#singin_panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 998;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 450px;
    background: var(--bg-primary);
    padding: 2rem;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s transform cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    border-left: 1px solid var(--border-color);
}

#singin_panel.open {
    transform: translateX(0);
}

.signin__close {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.signin__close:hover {
    background: rgba(40, 167, 69, 0.3);
    transform: rotate(90deg);
}

.signin__holder {
    width: 100%;
    max-width: 320px;
}

.signin__holder h2 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signin__holder h2 i {
    color: var(--accent-green);
    font-size: 1.2em;
}

.signin__group {
    margin-bottom: 20px;
}

#singin_panel label {
    color: var(--text-secondary);
    font-size: 0.8em;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

#singin_panel input {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 14px;
    height: 48px;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 0.95em;
}

#singin_panel input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(218, 163, 0, 0.15);
}

.btn-signin {
    width: 100%;
    background: var(--gradient-green);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.signin__footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.signin__footer p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 0;
}

.signin__footer a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
}

.label-note {
    float: right;
    font-size: 0.8em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.label-note:hover {
    color: var(--accent-green);
}

.form-alert {
    font-size: 0.85em;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    text-align: center;
    color: var(--accent-green);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: none;
}

.form-alert i {
    margin-right: 5px;
}

input.invalid {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

/* ===== MODALS ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
}

.modal_header_info {
    background: var(--gradient-dark);
    border-bottom: 2px solid var(--accent-green);
    padding: 15px 20px;
}

.modal_header_info .modal-title {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 1px;
}

.modal_header_info .close {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal_header_info .close:hover {
    opacity: 1;
}

.modal-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-img img {
    width: 100%;
    height: auto;
}

.modal-img-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.modal-form-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.modal-body .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    height: 45px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal-body .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: #fff;
    box-shadow: none;
}

.modal-body .form-control::placeholder {
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    background: var(--gradient-green);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-signup {
    width: 100%;
    background: transparent;
    color: var(--accent-green) !important; /* Force text to green initially */
    border: 2px solid var(--accent-green);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: var(--gradient-green);
    color: #ffffff !important; /* Force text to crisp white on hover over the green gradient */
    text-decoration: none;
}

/* Modal Features */
.modal-features {
    padding: 10px 0;
}

.modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.modal-feature-item:hover {
    border-color: rgba(40, 167, 69, 0.3); 
    transform: translateX(5px);
}

.modal-feature-item i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-green); 
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
}

.modal-feature-item h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.modal-feature-item p {
    color: var(--text-muted);
    font-size: 0.85em;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .main-title {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    
    .sub-title {
        font-size: 0.9em;
    }
    
    .play-btn-outer {
        width: 70px;
        height: 70px;
    }
    
    .play-btn-inner {
        width: 55px;
        height: 55px;
    }
    
    .play-btn-inner i {
        font-size: 24px;
    }
    
    .btn-live {
        padding: 12px 35px;
        font-size: 1em;
        letter-spacing: 2px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .device-icons {
        gap: 15px;
    }
    
    .device-item i {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
    
    .controlContent {
        padding: 15px;
    }
    
    .controlBtn {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    
    .footer__links {
        justify-content: center !important;
        margin-top: 15px;
    }
    
    .copyright {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2em;
    }
    
    .navbar-brand i {
        font-size: 1em;
    }
    
    .play-btn-outer {
        width: 55px;
        height: 55px;
    }
    
    .play-btn-inner {
        width: 42px;
        height: 42px;
    }
    
    .play-btn-inner i {
        font-size: 18px;
    }
    
    .btn-live {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    
    .cta-subtext {
        font-size: 0.75em;
    }
    
    .desc-text {
        font-size: 0.95em;
    }
}