/* 4kvision Premium IPTV - CSS Framework Extensions */

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0E14;
}

::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* --- Base & Resets --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0B0E14;
    overflow-x: hidden;
}

/* --- Utilities --- */
.text-balance {
    text-wrap: balance;
}

/* --- Animations & Keyframes --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Subtle floating for Hero Cards */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Pulse Glow */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0) 100%);
    z-index: -1;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 1;
}

/* --- Component Specifics --- */

/* Pricing Toggle Switch styling */
input:checked~.dot {
    transform: translateX(100%);
    background-color: #10B981;
}

/* FAQ Details marker removal */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary svg {
    transform: rotate(180deg);
}

/* Gradient text utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ffffff, #9CA3AF);
}

.text-gradient-primary {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #10B981, #059669);
}

/* Hero Background Glow */
.bg-hero-glow {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1) 0%, rgba(11, 14, 20, 1) 50%);
}

/* Infinite Marquee */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

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

.animate-marquee {
    animation: marquee 25s linear infinite;
    display: flex;
    width: max-content;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* --- Luxury Dark Pricing & Toggle Styles --- */
:root {
    --brand-emerald: #10B981;
    --brand-emerald-dark: #059669;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Luxury Toggle Button */
.plan-toggle-container {
    display: inline-flex;
    padding: 6px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.plan-toggle-btn {
    padding: 12px 36px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: #9CA3AF;
}

.plan-toggle-btn.active {
    background: var(--brand-emerald);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.plan-toggle-btn:not(.active):hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Luxury Dark Pricing Cards */
.pricing-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible;
    color: #E5E7EB;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-12px);
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(16, 185, 129, 0.1);
}

.card-header-green {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.pricing-card ul li {
    color: #9CA3AF;
}

.pricing-card:hover ul li {
    color: #D1D5DB;
}

.btn-emerald {
    background: var(--brand-emerald);
    color: white;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    text-align: center;
    border-radius: 1rem;
    display: block;
    width: 100%;
    padding: 1.15rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-emerald:hover {
    background: #0fb17a;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.card-feature-icon {
    color: var(--brand-emerald);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
}

/* Animation Utilities */
.plan-container {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-container.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.stagger-in {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky CTA mobile */
@media (max-width: 768px) {
    .sticky-cta-mobile {
        position: fixed;
        bottom: 24px;
        left: 20px;
        right: 20px;
        z-index: 50;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }
}

.premium-glow {
    border-color: rgba(16, 185, 129, 0.3);
}

.premium-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%);
    pointer-events: none;
}