/* Modern Obsidian & Gold Design System for Trading Platform */
:root {
    --bg-main: #0B0F19;
    --bg-card: #111827;
    --bg-elevated: #1F2937;
    --gold-primary: #E5A93C;
    --gold-hover: #F59E0B;
    --gold-glow: transparent;
    --border-color: #1F2937;
    --border-gold: rgba(229, 169, 60, 0.3);
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dark: #6B7280;
    --red-live: #EF4444;
    --emerald-live: #10B981;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-main: 0 4px 20px rgba(0, 0, 0, 0.4);
}

td{
    padding: 5px 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Tajawal', 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

/* ==========================================================================
   1. NAVBAR - Professional Obsidian & Gold Layout (Desktop & Mobile)
   ========================================================================== */
.navbar {
    background: #0D131F;
    border-bottom: 1px solid rgba(229, 169, 60, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

/* User Auth Wrapper Container */
/* Premium User Profile Pill Capsule */
.user-pill-card {
    display: inline-flex;
    align-items: center;
    background: #111827;
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 9999px;
    padding: 6px 10px 6px 18px;
    direction: ltr;
    transition: all 0.2s ease;
    user-select: none;
}

.user-pill-card:hover {
    border-color: var(--gold-primary);
    background: #161F30;
}

/* ==========================================================================
   Currency Selection Dropdown Menu ("تغيير العملة")
   ========================================================================== */
.nav-currency-dropdown {
    position: relative;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.nav-currency-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 9999px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-currency-dropdown-toggle:hover,
.nav-currency-dropdown.open .nav-currency-dropdown-toggle {
    border-color: var(--gold-primary);
    background: #161F30;
    box-shadow: 0 0 16px rgba(229, 169, 60, 0.25);
    transform: translateY(-1px);
}

.nav-cur-icon {
    color: var(--gold-primary);
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-cur-active-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', 'Tajawal', sans-serif;
}

.nav-cur-flag {
    font-size: 14px;
    line-height: 1;
}

.nav-cur-code {
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    font-size: 13px;
}

.nav-cur-symbol {
    font-weight: 800;
    color: var(--gold-primary);
    font-size: 12px;
}

.nav-currency-dropdown .dropdown-chevron {
    transition: transform 0.25s ease;
    color: var(--text-muted, #94a3b8);
    margin-right: 2px;
}

.nav-currency-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--gold-primary);
}

.nav-currency-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold, #e5a93c);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(229, 169, 60, 0.15);
    z-index: 1100;
    display: none;
    flex-direction: column;
    animation: navDropFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

.nav-currency-dropdown.open .nav-currency-menu {
    display: flex;
}

.nav-currency-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.nav-currency-items-list {
    max-height: 270px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 2px;
}

.nav-currency-items-list::-webkit-scrollbar {
    width: 5px;
}

.nav-currency-items-list::-webkit-scrollbar-thumb {
    background: rgba(229, 169, 60, 0.3);
    border-radius: 4px;
}

.nav-currency-item-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main, #FFFFFF);
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: right;
    width: 100%;
}

.nav-currency-item-btn:hover {
    background: rgba(229, 169, 60, 0.12);
    border-color: rgba(229, 169, 60, 0.3);
    color: var(--gold-primary);
}

.nav-currency-item-btn.active {
    background: linear-gradient(90deg, rgba(229, 169, 60, 0.2) 0%, rgba(229, 169, 60, 0.08) 100%);
    border-color: rgba(229, 169, 60, 0.6);
    color: var(--gold-primary);
    font-weight: 800;
}

.cur-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cur-item-flag {
    font-size: 15px;
    line-height: 1;
}

.cur-item-name {
    font-size: 12.5px;
}

.cur-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 11.5px;
    color: var(--text-muted);
}

.nav-currency-item-btn.active .cur-item-right {
    color: var(--gold-primary);
    font-weight: 800;
}

.cur-item-check {
    color: #10b981;
    font-weight: 900;
    font-size: 13px;
}

@media (max-width: 640px) {
    .nav-currency-dropdown-toggle {
        padding: 5px 9px;
        gap: 5px;
        font-size: 12px;
    }
    .nav-cur-title {
        display: none; /* Hide text on small screens, show icon + badge */
    }
    .nav-currency-menu {
        right: auto;
        left: -10px;
        min-width: 250px;
    }
}

.user-pill-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Double Golden Ring Frame around Avatar in Navbar */
.navbar .user-pill-avatar-wrapper,
.user-pill-avatar-wrapper {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    padding: 2px;
    background: #0b0f19;
    border: 2px solid #e5a93c;
    outline-offset: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, outline-color 0.3s ease;
}

.user-pill-info:hover .user-pill-avatar-wrapper {
    transform: scale(1.04);
    outline-color: #f5d061;
}

.user-pill-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: #1f2937;
}

/* Profile Banner Avatar Wrapper */
.profile-banner-avatar-wrapper {
    position: relative;
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    border-radius: 50% !important;
    padding: 2px;
    background: #0b0f19;
    border: 2px solid #e5a93c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-banner-avatar-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block;
}

.user-pill-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.35;
    white-space: nowrap;
}

.user-pill-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.user-pill-info:hover .user-pill-name {
    color: #f5d061;
}

.user-pill-email {
    font-size: 12px;
    font-weight: 500;
    color: #a0aec0;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    direction: ltr;
    text-align: right;
}

.user-pill-account-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
    display: block;
    white-space: nowrap;
    margin-top: 1px;
    transition: color 0.2s ease;
}

.user-pill-info:hover .user-pill-account-link {
    color: #f5d061;
}

.crown-icon {
    font-size: 14px;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(245, 208, 97, 0.6));
}

/* Vertical Gold Divider Line */
.user-pill-divider {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, rgba(229, 169, 60, 0.05) 0%, rgba(229, 169, 60, 0.5) 50%, rgba(229, 169, 60, 0.05) 100%);
    margin: 0 16px;
    flex-shrink: 0;
}

/* Admin Quick Button inside Capsule if admin */
.user-pill-admin-btn {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.4);
    color: #e5a93c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.user-pill-admin-btn:hover {
    background: #e5a93c;
    color: #000;
    transform: scale(1.08);
}

/* Logout Button (Icon + Label in Red) */
.user-pill-logout {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #ff4d5a;
    padding: 2px 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.user-pill-logout:hover {
    color: #ff2a3a;
    transform: scale(1.08);
}

.logout-icon {
    stroke: #ff4d5a;
    transition: stroke 0.2s ease;
}

.user-pill-logout:hover .logout-icon {
    stroke: #ff2a3a;
}

.logout-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Logo & Brand Title Container (Far Left) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    direction: ltr; /* Logo image on extreme left, Dr-MOST title to its right */
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.brand-logo img {
    height: 80px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-title {
    color: var(--gold-primary);
    font-size: 24px;
    font-weight: 900;
    font-family: 'Outfit', 'Tajawal', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Center Navigation Links */
.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    /* align-items: center; */
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link.active {
    color: var(--gold-primary) !important;
    font-weight: 800 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

/* ==========================================================================
   NAVBAR DROPDOWN SYSTEM ("خدماتنا")
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.dropdown-chevron {
    transition: transform 0.25s ease;
    margin-top: 1px;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 320px;
    background: #0F1623;
    border: 1px solid rgba(229, 169, 60, 0.35);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 10px;
    height: 10px;
    background: #0F1623;
    border-top: 1px solid rgba(229, 169, 60, 0.35);
    border-right: 1px solid rgba(229, 169, 60, 0.35);
    transform: rotate(-45deg);
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item-card:hover {
    background: rgba(229, 169, 60, 0.1);
    border-color: rgba(229, 169, 60, 0.35);
    transform: translateX(-3px);
}

.dropdown-item-card.active {
    background: rgba(229, 169, 60, 0.15);
    border-color: var(--gold-primary);
}

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.35;
}

.dropdown-item-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    transition: color 0.2s ease;
}

.dropdown-item-card:hover .dropdown-item-title,
.dropdown-item-card.active .dropdown-item-title {
    color: var(--gold-primary);
}

.dropdown-item-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mobile Responsive Drawer Adaptation */
@media (max-width: 991px) {
    .nav-item-dropdown {
        width: 100%;
        display: block;
    }
    .nav-dropdown-menu {
        position: static;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(229, 169, 60, 0.2);
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        display: none;
    }
    .nav-dropdown-menu::before {
        display: none;
    }
    .nav-item-dropdown.open .nav-dropdown-menu {
        display: flex;
    }
    .dropdown-item-card {
        padding: 8px 10px;
    }
    .dropdown-item-title {
        font-size: 13px;
    }
    .dropdown-item-sub {
        font-size: 11px;
    }
}

@media (min-width: 992px) {
    .mobile-only-cart-item {
        display: none !important;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Minimalist Borderless Icon-Only Cart Button with Top Badge */
.cart-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none !important;
    transition: transform 0.2s ease;
    border-radius: 0 !important;
}

.cart-btn:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.15);
}

.cart-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: color 0.2s ease;
}

.cart-btn:hover .cart-icon-wrapper {
    color: var(--gold-hover);
}

.cart-svg-icon {
    stroke: currentColor;
    filter: drop-shadow(0 0 6px rgba(229, 169, 60, 0.4));
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: linear-gradient(135deg, var(--gold-primary), #B87E23);
    color: #000000;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 0 4px;
    border: 2px solid var(--bg-main, #0B0F19);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: all 0.2s ease;
}

.cart-btn:hover .cart-count {
    background: var(--gold-hover);
    color: #000000;
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--gold-primary);
    color: #000;
}

.mobile-only-auth {
    display: none;
}

.desktop-only-auth {
    display: block;
}

/* ==========================================================================
   2. BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-gold {
    background: var(--gold-primary);
    color: #0B0F19;
    border: 1px solid var(--gold-primary);
    font-weight: 800;
}

.btn-gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #0B0F19;
    transform: translateY(-1px);
}

.btn i {
    font-size: 13px;
    margin-inline-end: 4px;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-gold);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 60px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-main-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-badge {
    display: inline-block;
    background: rgba(229, 169, 60, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    color: var(--gold-primary);
    font-size: 24px;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================================
   4. COURSES CATALOG
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
}

.course-filter-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: var(--gold-primary);
    color: #000;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-main);
}

.course-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.badge-recorded {
    background: rgba(17, 24, 39, 0.85);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

.badge-live {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-category {
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.course-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.course-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* ==========================================================================
   5. PROTECTED VIDEO PLAYER & DYNAMIC WATERMARK
   ========================================================================== */
.video-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    touch-action: manipulation;
}

.course-video-box {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: padding 0.3s ease;
}

.dynamic-watermark {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 999999 !important;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.75);
    color: var(--gold-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.dynamic-watermark * {
    pointer-events: none !important;
}

/* Course Page Responsive Grid Layout & Components */
.course-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.course-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
}

.lesson-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 13px;
    gap: 12px;
    transition: all 0.2s ease;
}

.lesson-item-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(229, 169, 60, 0.2);
}

.lesson-item-row.active-playing {
    background: rgba(229, 169, 60, 0.12);
    border-color: var(--border-gold);
}

.lesson-title-text {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
    flex-grow: 1;
}

.lesson-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================================
   6. MODALS & DRAWERS (STACKING LAYERS Z-INDEX)
/* ==========================================================================
   10. UNIVERSAL MODAL SYSTEM & SCROLLABLE DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 17, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
}

/* Nested sub-modals opened on top of other manager modals */
#module-modal,
#add-lesson-modal,
#review-order-modal,
#modal-telegram-service {
    z-index: 100005 !important;
}

.modal-card {
    background: var(--bg-card, #0B0F19);
    border: 1px solid var(--border-gold, #E5A93C);
    border-radius: var(--radius-lg, 16px);
    padding: 28px;
    width: 100%;
    max-width: 580px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    max-height: 88vh; /* Ensures modal fits within viewport */
    overflow-y: auto; /* ENABLES SMOOTH SCROLLING FOR LONG LISTS OR FORMS */
    overscroll-behavior: contain;
    box-sizing: border-box;
    animation: popIn 0.25s ease-out;
}

/* Custom Styled Scrollbars for all Modals and Long Lists */
.modal-card::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.data-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal-card::-webkit-scrollbar-track,
.modal-overlay::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.data-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.modal-card::-webkit-scrollbar-thumb,
.modal-overlay::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.data-table-container::-webkit-scrollbar-thumb {
    background: var(--gold-primary, #E5A93C);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* ==========================================================================
   7. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success { border-color: var(--emerald-live); }
.toast-error { border-color: var(--red-live); }

/* ==========================================================================
   8. FOOTER STYLING & RESPONSIVE LAYOUT
   ========================================================================== */
.footer-customer-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(229, 169, 60, 0.04);
    border: 1px solid rgba(229, 169, 60, 0.25);
    border-radius: 9999px;
    padding: 7px 18px 7px 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: 95%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.footer-support-text-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-support-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(229, 169, 60, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 1px solid rgba(229, 169, 60, 0.3);
    flex-shrink: 0;
}

.footer-support-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
}

.footer-support-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    flex-shrink: 0;
}

.footer-support-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.footer-support-btn:hover {
    transform: scale(1.12);
}

.btn-support-whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.btn-support-whatsapp i {
    font-size: 18px;
}

.btn-support-messenger {
    background: linear-gradient(135deg, #0084FF 0%, #A033FF 50%, #FF5E3A 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(0, 132, 255, 0.35);
}

.btn-support-messenger i {
    font-size: 16px;
}

.footer-social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}

.social-link-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0B0F19;
    border: 1px solid rgba(229, 169, 60, 0.35);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.social-link-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000000;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 18px var(--gold-glow);
}

@media (max-width: 768px) {
    .footer-customer-support {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px 14px;
        gap: 10px;
        width: 100%;
        max-width: 360px;
    }

    .footer-support-text-group {
        flex-direction: row;
        text-align: center;
        justify-content: center;
        gap: 6px;
    }

    .footer-support-label {
        font-size: 12.5px;
        white-space: normal;
        text-align: center;
    }

    .footer-support-actions {
        justify-content: center;
        margin-top: 2px;
    }

    .footer-social-bar {
        gap: 8px;
        max-width: 300px;
        margin: 0 auto;
    }

    .social-link-btn {
        width: 38px;
        height: 38px;
    }

    .social-link-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (Professional Desktop & Mobile Header Layout)
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 16px;
    }
    .nav-link {
        font-size: 13px;
        padding: 4px 8px;
    }
    .user-pill-card {
        padding: 5px 8px 5px 14px;
    }
    .user-pill-name {
        font-size: 14px;
    }
    .user-pill-welcome {
        font-size: 12px;
    }
}

@media (max-width: 1080px) {
    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        direction: rtl;
    }

    /* Mobile Hamburger Menu Toggle on Extreme Right */
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }

    #nav-right-group {
        order: 2;
    }

    /* Compact Cart Button in Center / Next to Hamburger */
    .nav-actions {
        order: 2;
    }

    .cart-btn {
        padding: 4px;
    }

    /* Brand Logo on Extreme Left */
    .brand-logo {
        order: 3;
        gap: 8px;
    }

    .brand-logo img {
        height: 56px;
        max-height: 56px;
    }

    .brand-title {
        font-size: 19px;
    }

    .desktop-only-auth,
    .desktop-only-currency {
        display: none !important;
    }

    .mobile-only-auth {
        display: block !important;
        margin-top: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--border-gold);
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--border-gold);
        flex-direction: column;
        padding: 24px 20px;
        gap: 18px;
        box-shadow: var(--shadow-main);
        z-index: 1000;
        border-radius: 0 0 16px 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Services Dropdown in Mobile Drawer */
    .nav-services-dropdown {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-services-dropdown .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: unset;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(229, 169, 60, 0.25);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        border-radius: 10px;
    }

    .nav-services-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-services-dropdown .nav-dropdown-menu::before {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Cart Page & Mobile Responsiveness System */
.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.order-review-grid {
    display: grid;
    grid-template-columns: minmax(340px, 460px) 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .order-review-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }
    .course-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .course-sidebar-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 880px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .course-video-box {
        padding: 8px;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
    }
    .page-course-detail {
        padding-top: 16px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .dynamic-watermark {
        font-size: 11px !important;
        padding: 3px 8px !important;
        top: 10px !important;
        left: 10px !important;
        max-width: 80%;
    }
    .dynamic-watermark img {
        height: 24px !important;
        max-width: 90px !important;
    }
    .lesson-item-row {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }
    .lesson-title-text {
        width: 100%;
        font-size: 13px;
    }
    .lesson-actions-wrapper {
        width: 100%;
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px dashed rgba(255, 255, 255, 0.06);
    }
    .lesson-actions-wrapper .btn {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .hero-main-heading {
        font-size: 20px;
    }
    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
    .stat-item h3 {
        font-size: 20px;
    }
    .modal-card {
        max-width: 94vw !important;
        padding: 18px !important;
        max-height: 90vh;
        overflow-y: auto;
    }
    .data-table-container, .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   10. ABOUT THE INSTRUCTOR SECTION
   ========================================================================== */
.instructor-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 880px) {
    .instructor-grid {
        grid-template-columns: 1fr;
    }
}

.instructor-card-gold {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.instructor-avatar-frame {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: #1F2937;
    border: 2px solid var(--gold-primary);
}

.instructor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.instructor-badge-tag {
    background: rgba(229, 169, 60, 0.15);
    color: var(--gold-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid var(--border-gold);
}

.instructor-name {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}

.instructor-title-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 600;
}

.instructor-linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0077b5;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.instructor-linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 181, 0.5);
}

.instructor-heading {
    font-size: 28px;
    font-weight: 900;
    margin: 12px 0 16px;
    color: #ffffff;
}

.instructor-heading span {
    color: var(--gold-primary);
}

.instructor-bio {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.instructor-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.instructor-feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.instructor-feature-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
}

.instructor-feature-item h4 {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.instructor-feature-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   11. TECHNICAL SUPPORT TICKETS SECTION
   ========================================================================== */
.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-color: var(--border-gold);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-subject {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-replied {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-closed {
    background: rgba(107, 114, 128, 0.2);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

/* Global File Upload Progress Bar Overlay */
.upload-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 10, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-progress-card {
    background: #0F1623;
    border: 1px solid var(--border-gold, #E5A93C);
    border-radius: 16px;
    padding: 24px 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 169, 60, 0.2);
    text-align: right;
    direction: rtl;
    animation: popIn 0.25s ease-out;
}

.upload-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.upload-progress-header .title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    flex-grow: 1;
}

.upload-progress-header .percent {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary, #E5A93C);
    font-family: monospace, sans-serif;
}

.upload-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-primary);
    border-radius: 20px;
    transition: width 0.15s ease-out;
}

.upload-progress-status {
    font-size: 12px;
    color: var(--text-muted, #9CA3AF);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   11. MODAL OVERLAY & TICKET CHAT CARDS FOR PROFILE PAGE
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-card {
    background: #0B0F19;
    border: 1px solid var(--border-gold, #E5A93C);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 580px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-sizing: border-box;
    animation: popIn 0.25s ease-out;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

/* ==========================================================================
   12. INTERACTIVE COUNTDOWN TIMER & ANNOUNCEMENT BANNER
   ========================================================================== */
.global-countdown-banner {
    background: linear-gradient(90deg, #090D16 0%, #151F33 50%, #090D16 100%);
    border-bottom: 1px solid rgba(229, 169, 60, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1002;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

.cd-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cd-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cd-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
    animation: cdPulse 1.5s infinite;
}

@keyframes cdPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cd-banner-badge {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.45);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.cd-banner-title {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cd-banner-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cd-timer-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.cd-tile {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(229, 169, 60, 0.45);
    border-radius: 8px;
    padding: 3px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cd-tile-num {
    font-family: 'Outfit', monospace;
    font-size: 14.5px;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1.1;
    transition: transform 0.2s ease;
}

.cd-tick-pulse {
    animation: cdTickPulse 0.3s ease-out;
}

@keyframes cdTickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #FFF; }
    100% { transform: scale(1); }
}

.cd-tile-lbl {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
}

.cd-colon {
    color: var(--gold-primary);
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

.cd-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-cta-btn {
    background: linear-gradient(135deg, #E5A93C 0%, #D49326 100%);
    color: #0B0F19 !important;
    font-weight: 800;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(229, 169, 60, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}

.cd-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 18px rgba(229, 169, 60, 0.6);
    background: #FFF;
}

.cd-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cd-close-btn:hover {
    color: #ef4444;
}

/* Multi-Event Rotation Indicators & Animations */
.cd-events-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.cd-events-indicator .cd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.cd-events-indicator .cd-dot.active {
    width: 14px;
    border-radius: 4px;
    background: var(--gold-primary);
    box-shadow: 0 0 6px rgba(229, 169, 60, 0.6);
}

.cd-fade-anim {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cd-fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

.cd-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Course Page Large Hero Countdown Box */
.course-countdown-card {
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.08) 0%, rgba(13, 19, 31, 0.95) 100%);
    border: 1px solid rgba(229, 169, 60, 0.4);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    direction: rtl;
}

.course-countdown-card .cd-tile {
    min-width: 52px;
    padding: 6px 10px;
    background: #0B0F19;
    border: 1px solid rgba(229, 169, 60, 0.5);
}

.course-countdown-card .cd-tile-num {
    font-size: 22px;
}

.course-countdown-card .cd-tile-lbl {
    font-size: 10px;
    margin-top: 3px;
}

.course-countdown-card .cd-colon {
    font-size: 20px;
}

@media (max-width: 900px) {
    .cd-banner-container {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .cd-banner-left {
        justify-content: center;
    }
    .cd-banner-title {
        font-size: 12px;
    }
}

