/* Root Variables - Neon Dark Theme (Default) */
:root {
    --primary-color: #3b82f6;
    /* Bright Blue */
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    /* Purple */
    --accent-color: #10b981;
    /* Emerald Green */

    /* Backgrounds */
    --bg-main: #0a0a0a;
    --bg-secondary: #050505;
    --bg-card: #111111;
    --bg-blur: rgba(10, 10, 10, 0.85);

    /* Text */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --heading-color: #ffffff;

    /* Borders & Effects */
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --nav-border: rgba(255, 255, 255, 0.1);

    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;

    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-blur: rgba(255, 255, 255, 0.9);

    /* Text */
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --heading-color: #111827;

    /* Borders & Effects */
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
    --nav-border: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Clash Display', sans-serif;

}

/* Custom Semantic Background Classes */
.bg-theme-main {
    background-color: var(--bg-main) !important;
}

.bg-theme-secondary {
    background-color: var(--bg-secondary) !important;
}

.bg-theme-card {
    background-color: var(--bg-card) !important;
}

/* Utilities */
.text-gradient-primary {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-darker {
    background-color: var(--bg-secondary) !important;
}

.text-light-50 {
    color: var(--text-muted);
    opacity: 0.8;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    background: var(--bg-blur);
    /* Default state */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nav-border);
}

.navbar-scrolled {
    background: var(--bg-main) !important;
    /* Solid background on scroll */
    backdrop-filter: blur(10px);
}

/* Light Theme overrides for NavBar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand span {
    color: var(--heading-color) !important;
}

.nav-link {
    color: var(--text-main) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: rotate(15deg);
}

.gradient-icon {
    font-size: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.overlay {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: brightness(0.6);
}

.hero-text-shadow,
.hero-text-shadow h1,
.hero-text-shadow p {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
    color: #ffffff !important;
}

.z-index-2 {
    z-index: 2;
}

.shadow-primary {
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.6);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Cards & Categories */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    background: #161616;
    border-color: rgba(59, 130, 246, 0.3);
}

.category-card .icon-box {
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
}

.category-card:hover .icon-box {
    transform: scale(1.1);
}

/* Pricing Redesign */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    z-index: 1;
}

.pricing-card.featured {
    border: 1px solid var(--primary-color);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: scale(1.02);
    z-index: 10;
    margin-top: 15px;
    /* Ensure space for top badge if parent clips */
}



/* Badge Wrapper Positioning */
.pricing-badge-wrapper {
    z-index: 20;
    width: 100%;
    /* Ensure centering context works if needed, though absolute handles it */
    pointer-events: none;
    /* Let clicks pass through */
}

/* Badge Styling */
.pricing-badge-wrapper .badge {
    border: 4px solid var(--bg-main);
    /* Cutout effect matching body bg */
    pointer-events: auto;
}

/* Adjust border match for light theme */
[data-theme="light"] .pricing-badge-wrapper .badge {
    border-color: var(--bg-main);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    z-index: 15;
}

.pricing-card.featured {
    border: 1px solid var(--primary-color);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    font-size: 1.1em;
}

[data-theme="light"] .pricing-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Animations */
.hover-slide-up {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hover-slide-up:hover {
    transform: translateY(-3px);
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.card-header-clean h4 {
    color: var(--heading-color);
}

.amount {
    color: var(--heading-color);
}

/* Steps */
.step-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.step-card:hover {
    background: #1a1a1a;
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Accordion (FAQ) */
.accordion-item {
    background: transparent;
}

.accordion-button {
    color: var(--text-light);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: transparent;
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) drop-shadow(0 0 5px var(--primary-color));
}

/* Contact CTA */
.bg-gradient-brand {
    background: var(--gradient-brand);
}

/* Footer */
.footer-glow {
    position: relative;
}

.footer-glow::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    pointer-events: none;
}

.hover-text-primary:hover {
    color: var(--primary-color) !important;
}

/* Image Effects */
.glow-effect {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .transform-scale {
        transform: scale(1);
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .pricing-card:hover.transform-scale {
        transform: scale(1);
    }

    .display-3 {
        font-size: 2.5rem;
    }
}

/* Live TV Section Styles */
.live-tv-section {
    position: relative;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.channel-list-wrapper {
    /* Fixed width sidebar on desktop */
    min-width: 350px;
    max-width: 400px;
}

@media (max-width: 991px) {
    .channel-list-wrapper {
        min-width: 100%;
        max-width: 100%;
    }
}

.channel-name-text {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle dark mode bg */
    color: var(--text-main);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Light Theme Overrides for Live TV */
[data-theme="light"] .channel-name-text {
    color: var(--heading-color);
}

[data-theme="light"] .search-input {
    background-color: #f3f4f6;
    border-color: #e5e7eb !important;
    color: #1f2937;
}

[data-theme="light"] .search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color) !important;
}

/* Ensure active channel text is always primary color */
.channel-item.active .channel-name-text {
    color: var(--primary-color) !important;
}

.player-container {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: #000;
    /* Ensure black background */
}

/* Force Video.js to fill the container */
.video-js {
    width: 100% !important;
    height: 100% !important;
    background-color: #000;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allow clicks to pass through to controls */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 20%);
    z-index: 10;
}

.player-overlay .d-flex {
    /* Since we changed to top alignment for title, let's adjust content */
    height: 100%;
    align-items: flex-start !important;
    /* Move content to top */
    padding-top: 1rem;
}

/* Move live indicator to top right */
.live-indicator {
    margin-left: auto;
}

/* Video.js Theme Overrides */
.video-js .vjs-nav-control,
.video-js .vjs-control-bar {
    z-index: 20 !important;
}

.video-js .vjs-big-play-button {
    background-color: rgba(59, 130, 246, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 2em !important;
    height: 2em !important;
    line-height: 2em !important;
    margin-left: -1em !important;
    margin-top: -1em !important;
    transition: all 0.3s ease;
    z-index: 20 !important;
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--primary-color) !important;
    transform: scale(1.1);
}

.video-js .vjs-control-bar {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

/* Channel List Styles */
.channel-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.channel-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.channel-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.channel-item.active .channel-name {
    color: var(--primary-color);
}

.cursor-pointer {
    cursor: pointer;
}

/* Scrollbar Customization */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.animate-pulse {
    animation: pulse-red 2s infinite;
}

.shadow-custom {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}