@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-base: #07090e;
    --bg-surface: #0e131f;
    --bg-card: #141c2e;
    --bg-card-hover: #1c2740;
    --bg-glass: rgba(14, 19, 31, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Brand Accents */
    --brand-red: #ff0033;
    --brand-red-glow: rgba(255, 0, 51, 0.4);
    --brand-red-gradient: linear-gradient(135deg, #ff0033 0%, #ff4b4b 100%);
    
    /* Premium VIP Accents */
    --vip-gold: #f59e0b;
    --vip-gold-glow: rgba(245, 158, 11, 0.35);
    --vip-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #fcd34d 100%);
    --vip-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout */
    --navbar-height: 74px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(255, 0, 51, 0.25);
    --shadow-vip-glow: 0 0 30px rgba(245, 158, 11, 0.3);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--brand-red);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ==========================================================================
   Header & Navbar (Glassmorphic)
   ========================================================================== */
.site-navbar {
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
}

.site-navbar.scrolled {
    background: rgba(7, 9, 14, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: var(--brand-red-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px var(--brand-red-glow);
    font-size: 1.15rem;
    transition: var(--transition);
}

.navbar-brand:hover .brand-icon-box {
    transform: scale(1.06) rotate(-4deg);
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 0, 51, 0.15);
    color: #ff4d6d;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 0, 51, 0.3);
}

/* Nav Links */
.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, 
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.nav-premium-link {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 6px 14px !important;
    font-weight: 600;
}

.nav-link.nav-premium-link:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    color: #fff !important;
}

/* Search Input */
.navbar-search-box {
    position: relative;
    max-width: 420px;
    width: 100%;
    flex-grow: 1;
}

.navbar-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: #fff;
    padding: 6px 14px 6px 34px;
    font-size: 0.84rem;
    width: 100%;
    transition: var(--transition);
}

.navbar-search-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 0, 51, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.25);
    outline: none;
    color: #fff;
}

.navbar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Dropdown Menus */
.dropdown-menu-dark {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding: 8px;
}

.dropdown-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--brand-red-gradient);
    color: #fff;
}

/* User Profile Badge */
.user-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.user-status-pill:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.09);
}

.user-status-pill.is-active-sub {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
}

/* ==========================================================================
   Subscription Global Banner
   ========================================================================== */
.sub-status-banner {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #064e3b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.sub-status-banner.banner-warning {
    background: linear-gradient(90deg, #78350f 0%, #b45309 50%, #78350f 100%);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 60px 0 50px;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 0, 51, 0.15), transparent),
                radial-gradient(circle at 10% 30%, rgba(99, 102, 241, 0.12), transparent 40%);
    border-bottom: 1px solid var(--border-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.25);
    border-radius: 999px;
    color: #ff4d6d;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero-title span {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* .hero-title span {
    background: var(--vip-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 30px;
}

/* Featured Hero Showcase Card */
.hero-spotlight-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.hero-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    border-color: rgba(255, 0, 51, 0.4);
}

.hero-video-popup {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.hero-video-popup img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video-popup .video-icon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-video-popup .video-icon-overlay i {
    font-size: 2.6rem;
    color: #fff;
    background: rgba(220, 38, 38, 0.88);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.spotlight-thumb-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background: #000;
}

.spotlight-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-spotlight-card:hover .spotlight-thumb-wrap img {
    transform: scale(1.05);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(7,9,14,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.play-pulse-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-red-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 25px var(--brand-red-glow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-spotlight-card:hover .play-pulse-btn {
    transform: scale(1.12);
    box-shadow: 0 0 35px rgba(255, 0, 51, 0.8);
}

/* Category Quick Filter Chips */
.category-chips-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
}
.category-chips-bar::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cat-chip:hover,
.cat-chip.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   VIDEO CARD GRID SYSTEM (Exact Requirement: 4 Videos in a Row)
   ========================================================================== */
.video-grid-row {
    row-gap: 28px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
    background: var(--bg-card-hover);
}

.video-card.is-premium-card {
    border-color: rgba(245, 158, 11, 0.28);
}
.video-card.is-premium-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 12px 35px -10px rgba(245, 158, 11, 0.25);
}

/* Thumbnail */
.video-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb-container img {
    transform: scale(1.06);
}

/* Duration & Badges */
.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.video-badge-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-vip {
    background: var(--vip-gradient);
    color: #000;
    box-shadow: 0 0 12px var(--vip-gold-glow);
}

.badge-hd {
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Hover Play Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.video-thumb-container:hover .video-play-overlay {
    opacity: 1;
}

.play-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-red-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 0 20px var(--brand-red-glow);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.video-thumb-container:hover .play-circle-icon {
    transform: scale(1);
}

/* Locked Card Overlay for Premium when user does not have package */
.video-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    z-index: 3;
    gap: 8px;
}

.locked-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* Video Card Body */
.video-card-body {
    padding: 14px 16px 16px;
    display: flex;
    gap: 12px;
    flex: 1;
}

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.video-card:hover .video-title {
    color: #ff3b5c;
}

.video-channel-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.video-meta-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Action Footer */
.video-card-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* ==========================================================================
   Category Page Header & Filter Toolbar
   ========================================================================== */
.page-hero-banner {
    padding: 45px 0 35px;
    background: linear-gradient(180deg, rgba(20, 28, 46, 0.6) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.filter-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 30px;
}

.checkout-hero {
    padding: 38px 0;
}

.checkout-section {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.035), var(--bg-base) 60%);
}

.checkout-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: clamp(20px, 3vw, 32px);
}

.checkout-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.checkout-step {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background: rgba(255, 0, 51, 0.12);
    color: #ff6c87;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
}

.checkout-step-gold {
    background: rgba(245, 158, 11, 0.12);
    color: var(--vip-gold);
}

.checkout-methods {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-method-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkout-method {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-method:hover,
.checkout-method-input:focus-visible + .checkout-method {
    border-color: var(--vip-gold);
}

.checkout-method-input:focus-visible + .checkout-method {
    outline: 2px solid var(--vip-gold);
    outline-offset: 3px;
}

.checkout-method-input:checked + .checkout-method {
    border-color: var(--vip-gold);
    background: rgba(245, 158, 11, 0.08);
}

.checkout-method-icon,
.checkout-plan-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: var(--radius-sm);
    font-size: 1.35rem;
}

.checkout-stripe-icon {
    color: #aebaff;
    background: rgba(99, 91, 255, 0.17);
}

.checkout-paypal-icon {
    color: #80c6ff;
    background: rgba(0, 112, 186, 0.17);
}

.checkout-method-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.checkout-method-copy strong {
    color: var(--text-primary);
    font-size: 0.94rem;
}

.checkout-method-copy > span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.checkout-method-mark {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin-left: auto;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
}

.checkout-method-input:checked + .checkout-method .checkout-method-mark {
    border: 5px solid var(--vip-gold);
    background: var(--bg-surface);
}

.checkout-availability {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-top: 22px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.checkout-plan {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-plan-icon {
    color: var(--vip-gold);
    background: rgba(245, 158, 11, 0.12);
}

.checkout-summary-line,
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.88rem;
}

.checkout-summary-line {
    color: var(--text-secondary);
}

.checkout-summary-line strong {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.checkout-total {
    align-items: baseline;
    padding-top: 20px;
    margin-top: 22px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
}

.checkout-total strong {
    color: var(--vip-gold);
    font-size: 1.5rem;
}

.checkout-summary .btn-vip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout-back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.checkout-back-link:hover {
    color: #fff;
}

.checkout-empty {
    max-width: 460px;
}

.invoice-page {
    background: var(--bg-base);
}

.invoice-container {
    max-width: 920px;
}

.invoice-sheet {
    padding: clamp(24px, 5vw, 56px);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #17202d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.invoice-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid #dfe4e9;
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
}

.invoice-brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #d61c3f;
    color: #fff;
    font-size: 1.3rem;
}

.invoice-title {
    margin-bottom: 3px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.invoice-muted {
    color: #526174;
    font-size: 0.88rem;
}

.invoice-label {
    display: block;
    margin-bottom: 6px;
    color: #526174;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.invoice-header-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 0.9rem;
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 32px;
    padding: 32px 0 40px;
}

.invoice-party-name {
    font-weight: 700;
}

.invoice-reference {
    overflow-wrap: anywhere;
}

.invoice-items-head,
.invoice-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
}

.invoice-items-head {
    padding: 12px 16px;
    background: #eff2f5;
    color: #526174;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.invoice-item {
    padding: 22px 16px;
    border-bottom: 1px solid #dfe4e9;
    font-size: 0.9rem;
}

.invoice-item div {
    display: grid;
    gap: 5px;
}

.invoice-item div span {
    color: #526174;
    font-size: 0.8rem;
}

.invoice-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 18px;
    padding: 24px 16px 36px;
    font-weight: 700;
}

.invoice-total strong {
    color: #ba1534;
    font-size: 1.45rem;
}

.invoice-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #dfe4e9;
    font-size: 0.88rem;
}

.invoice-footer strong {
    display: block;
}

.invoice-status {
    color: #176b46;
}

.invoice-missing {
    max-width: 520px;
    margin: auto;
}

@media (max-width: 575px) {
    .invoice-header-details {
        align-items: flex-start;
        text-align: left;
    }
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    .site-navbar,
    .site-footer,
    .invoice-toolbar {
        display: none !important;
    }

    body,
    .invoice-page {
        display: block;
        min-height: 0;
        padding: 0 !important;
        background: #fff !important;
    }

    .invoice-container {
        max-width: none;
        padding: 0;
    }

    .invoice-sheet {
        padding: 0;
        box-shadow: none;
    }

    .invoice-brand-mark,
    .invoice-items-head {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

.category-video-count {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.category-video-nav {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.category-video-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.category-video-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    border-bottom: 2px solid var(--brand-red);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.category-video-nav-link:hover,
.category-video-nav-link:focus-visible {
    color: #ff5573;
}

.category-video-nav-link span {
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.category-video-nav-premium {
    border-color: var(--vip-gold);
}

.category-video-nav-premium:hover,
.category-video-nav-premium:focus-visible {
    color: var(--vip-gold);
}

.category-video-section {
    scroll-margin-top: var(--navbar-height);
}

.category-video-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.category-video-eyebrow {
    color: #ff6c87;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.category-video-eyebrow-premium {
    color: var(--vip-gold);
}

.category-video-section-count {
    color: var(--text-secondary);
    font-size: 0.83rem;
}

.category-badge-free {
    color: #fff;
    background: #b81434;
}

.category-premium-section {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), var(--bg-base) 65%);
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   Pricing & Packages Cards
   ========================================================================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.pricing-card.is-popular {
    border-color: rgba(245, 158, 11, 0.6);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 40%);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
}

.pricing-card.is-popular:hover {
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 999px;
}

.price-val {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    line-height: 1;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 600;
    vertical-align: super;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    flex: 1;
}

.pricing-feature-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-feature-list li i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Auth Pages (Login, Register, Forgot Password)
   ========================================================================== */
.auth-wrapper {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: radial-gradient(circle at 50% 20%, rgba(255, 0, 51, 0.08), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.92rem;
    padding: 11px 16px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 0, 51, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.2);
    outline: none;
    color: #fff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon-wrap .form-control {
    padding-left: 42px;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn-brand {
    background: var(--brand-red-gradient);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 18px var(--brand-red-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.6);
    color: #fff !important;
}

.btn-vip {
    background: var(--vip-gradient);
    color: #000 !important;
    font-weight: 700;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 18px var(--vip-gold-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    color: #000 !important;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ==========================================================================
   Video Player Modal & Watch Page
   ========================================================================== */
.modal-video-dialog {
    max-width: 960px;
    margin: 1.75rem auto;
}

.modal-content-dark {
    background: #0d121f;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.ratio-16x9 {
    position: relative;
    width: 100%;
}

.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Watch Page Layout */
.watch-player-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
}

.action-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.action-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.action-pill-btn.liked {
    background: rgba(255, 0, 51, 0.15);
    border-color: rgba(255, 0, 51, 0.5);
    color: #ff3366;
}

/* ==========================================================================
   Demo Switcher Floating Widget (Testing Convenience for User)
   ========================================================================== */
.demo-switcher-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
}

.demo-switcher-menu {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    padding: 12px;
    min-width: 250px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: #05070b;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-heading {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-right: 8px;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--brand-red-gradient);
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
}

.category-card-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.category-card-tile:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.category-card-premium {
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(20, 28, 46, 0.95));
}

.category-card-premium:hover {
    box-shadow: var(--shadow-vip-glow);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.text-muted {
    color: #94a3b8 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #94a3b8;
}

.site-footer .text-muted {
    font-size: 15px !important;
}

.navbar-brand .logo {
    height: 60px;
}