/* ==========================================================
   FOCUS PHYSICS PLATFORM – Premium Design System v2.0
   Author  : Built for م/ طارق الصباغ
   Palette : Deep Navy (#0B0F2E) + Vivid Pink (#E91E63) + Gold accent
   Font    : Cairo (Arabic) – Google Fonts
   ========================================================== */

/* ── Variables & Canonical Design Tokens ───────────────────── */
:root {
    /* Core Brand Tokens */
    --navy-darkest: #060919;
    --navy-dark: #0B0F2E;
    --navy: #111847;
    --navy-medium: #192266;
    --navy-light: #2233A8;

    --pink: #E91E63;
    --pink-hover: #C2185B;
    --pink-deep: #AD1457;
    --pink-light: #FCE4EC;
    --pink-glow: rgba(233, 30, 99, 0.25);

    --gold: #FFB300;
    --gold-light: #FFF8E1;

    /* Theme Neutral Tokens */
    --bg-body: #F0F2FA;
    --bg-light: #F5F6FD;
    --surface: #FFFFFF;
    --border: #E4E7F3;
    --border-strong: #C9CEEA;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;

    /* Semantic Status Tokens */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Elevation System Tokens */
    --shadow-xs: 0 1px 3px rgba(11, 15, 46, 0.05);
    --shadow-sm: 0 4px 12px rgba(11, 15, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 15, 46, 0.10);
    --shadow-lg: 0 16px 48px rgba(11, 15, 46, 0.14);
    --shadow-xl: 0 24px 64px rgba(11, 15, 46, 0.18);
    --shadow-pink: 0 8px 22px rgba(233, 30, 99, 0.30);
    --shadow-navy: 0 8px 22px rgba(11, 15, 46, 0.25);

    /* Radius Scale Tokens */
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Transitions & Motion Timing System */
    --t-fast: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), border-color 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --t-normal: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms cubic-bezier(0.16, 1, 0.3, 1);
    --t-slow: all 250ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Accessibility Focus Ring */
    --focus-ring: 0 0 0 3px rgba(233, 30, 99, 0.35);

    /* Layout */
    --sidebar-w: 272px;
    --navbar-h: 68px;
}

/* ── Base Reset & Typography ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.flex-1,
.flex-grow {
    min-width: 0;
}

.container {
    max-width: 1400px !important;
    margin: 0 auto;
    padding-inline: clamp(1rem, 3vw, 3rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-light);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatY {

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

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

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.50);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(233, 30, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    background: #f1f3f9;
    background-image: linear-gradient(to right, #f1f3f9 0%, #e2e8f0 20%, #f1f3f9 40%, #f1f3f9 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    border-radius: var(--r-md);
}

.skeleton-dark {
    background: rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.05) 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    border-radius: var(--r-md);
}

/* ── Video.js Custom Speed Menu ────────────────────────── */
.video-js .vjs-playback-rate .vjs-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px) scale(0.95);
    width: 8em !important;
    left: -1.5em !important;
    z-index: 100;
}

.video-js .vjs-playback-rate:hover .vjs-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-js .vjs-playback-rate .vjs-menu-content {
    background: #0b0f2e !important;
    background: linear-gradient(180deg, #161c4f 0%, #0b0f2e 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    bottom: 4em !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(233, 30, 99, 0.1) !important;
    max-height: 20em !important;
    overflow-y: auto !important;
}

/* Custom Scrollbar for Video.js Menu */
.video-js .vjs-playback-rate .vjs-menu-content::-webkit-scrollbar {
    width: 0 !important;
}

.video-js .vjs-playback-rate .vjs-menu-item {
    border-radius: 12px !important;
    margin-bottom: 5px !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    padding: 0.7rem 0.5rem !important;
    text-transform: lowercase !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.video-js .vjs-playback-rate .vjs-menu-item:last-child {
    margin-bottom: 0 !important;
}

.video-js .vjs-playback-rate .vjs-menu-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.video-js .vjs-playback-rate .vjs-menu-item.vjs-selected {
    background: linear-gradient(90deg, var(--pink), var(--pink-deep)) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5) !important;
    border-color: transparent !important;
    font-weight: 800 !important;
}

.video-js .vjs-playback-rate-value {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    line-height: 3 !important;
    color: var(--pink) !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.anim-fade-up {
    animation: fadeUp 0.60s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in {
    animation: fadeIn 0.50s ease both;
}

.anim-float {
    animation: floatY 4.00s ease-in-out infinite;
}

.anim-pulse {
    animation: pulseRing 2.00s ease-out infinite;
}

.anim-slide-right {
    animation: slideInRight 0.50s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
    animation-delay: 0.10s;
}

.delay-2 {
    animation-delay: 0.22s;
}

.delay-3 {
    animation-delay: 0.34s;
}

.delay-4 {
    animation-delay: 0.46s;
}

/* ── Color Utilities ──────────────────────────────────────── */
.bg-navy {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%) !important;
}

.bg-navy-pure {
    background-color: var(--navy-dark) !important;
}

.bg-pink {
    background-color: var(--pink) !important;
}

.bg-pink-light {
    background-color: var(--pink-light) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.bg-gold-light {
    background-color: var(--gold-light) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.bg-body-custom {
    background-color: var(--bg-body) !important;
}

.text-pink {
    color: var(--pink) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-navy-dark {
    color: var(--navy-dark) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-success-custom {
    color: var(--success) !important;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-focus {
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--navbar-h);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    padding: 0 1rem;
    z-index: 1030;
}

.navbar-collapse {
    min-width: 0;
}

.navbar-focus .navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    box-shadow: var(--shadow-pink);
    flex-shrink: 0;
    letter-spacing: 0;
}

.navbar-focus .nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.4rem 0.85rem !important;
    border-radius: var(--r-sm);
    transition: var(--t-fast);
    position: relative;
}

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

.navbar-focus .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
    transition: var(--t-fast);
}

.navbar-focus .nav-link:hover::after {
    left: 10%;
    right: 10%;
}

.navbar-focus .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.navbar-focus .navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar dropdown */
.navbar-focus .dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
    animation: fadeUp 0.2s ease both;
}

.navbar-focus .dropdown-item {
    border-radius: var(--r-sm);
    padding: 0.6rem 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--t-fast);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-focus .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--pink);
}

.navbar-focus .dropdown-item.text-danger:hover {
    background: #FEF2F2;
    color: var(--danger) !important;
}

.user-avatar-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-full);
    color: #fff;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--t-fast);
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.user-avatar-ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ── Accessibility & Reset Standards ───────────────────────── */
:focus-visible {
    outline: 2px solid var(--pink) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:disabled, .disabled, [disabled] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ── Buttons & Canonical Variants ─────────────────────────── */
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--r-md);
    padding: 0.55rem 1.35rem;
    transition: var(--t-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
    user-select: none;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Pink */
.btn-primary, .btn-pink {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: var(--shadow-pink);
}

@media (hover: hover) {
    .btn-primary:hover, .btn-pink:hover {
        background: linear-gradient(135deg, var(--pink-hover) 0%, var(--pink-deep) 100%);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(233, 30, 99, 0.40);
        color: #ffffff !important;
    }
}

/* Secondary Navy */
.btn-secondary, .btn-navy {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: var(--shadow-navy);
}

@media (hover: hover) {
    .btn-secondary:hover, .btn-navy:hover {
        background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(11, 15, 46, 0.35);
        color: #ffffff !important;
    }
}

/* WhatsApp Emerald */
.btn-whatsapp, .btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

@media (hover: hover) {
    .btn-whatsapp:hover, .btn-emerald:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45) !important;
    }
}

/* WhatsApp Alert Banner */
.alert-whatsapp-banner {
    background: linear-gradient(135deg, #047857 0%, #0d9488 50%, #065f46 100%) !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4) !important;
    border-radius: 1rem !important;
}

.alert-whatsapp-banner .banner-icon-box {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
}

.alert-whatsapp-banner .banner-title {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.alert-whatsapp-banner .banner-subtitle {
    color: #d1fae5 !important;
    font-weight: 600 !important;
}

.alert-whatsapp-banner .banner-btn {
    background-color: #ffffff !important;
    color: #065f46 !important;
    font-weight: 900 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.alert-whatsapp-banner .banner-btn:hover {
    background-color: #f0fdf4 !important;
    color: #047857 !important;
    transform: translateY(-1px) scale(1.02) !important;
}

/* Outline Pink */
.btn-outline-pink, .btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--pink);
    color: var(--pink) !important;
}

@media (hover: hover) {
    .btn-outline-pink:hover, .btn-outline-primary:hover {
        background: var(--pink);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-pink);
    }
}

/* Outline Navy */
.btn-outline-navy, .btn-outline-secondary {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--navy) !important;
}

@media (hover: hover) {
    .btn-outline-navy:hover, .btn-outline-secondary:hover {
        background: var(--navy);
        border-color: var(--navy);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-navy);
    }
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.30);
}

@media (hover: hover) {
    .btn-danger:hover {
        background: #dc2626;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(239, 68, 68, 0.40);
    }
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.30);
}

@media (hover: hover) {
    .btn-success:hover {
        background: #059669;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.40);
    }
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

@media (hover: hover) {
    .btn-ghost:hover {
        background: var(--bg-light);
        color: var(--navy) !important;
    }
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-round {
    border-radius: var(--r-full);
}

/* Small Action Button for Tables */
.btn-action-sm {
    padding: 0.32rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--r-sm);
    font-weight: 700;
}

/* Sizes */
.btn-xs { padding: 0.3rem 0.8rem; font-size: 0.78rem; }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.86rem; }
.btn-lg { padding: 0.75rem 1.8rem; font-size: 1.05rem; }
.btn-xl { padding: 0.9rem 2.2rem; font-size: 1.15rem; }

/* ── Canonical Component: Tabs & Variants ─────────────────── */
.tab-btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    height: 44px;
    padding: 0 1.25rem;
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    transition: var(--t-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    box-shadow: var(--shadow-xs);
}

@media (hover: hover) {
    .tab-btn:hover {
        background: var(--bg-light);
        border-color: var(--border-strong);
        color: var(--navy);
    }
}

.tab-btn:active {
    transform: scale(0.98);
}

.tab-btn-active, .tab-btn.active {
    background: var(--navy) !important;
    color: #ffffff !important;
    border-color: var(--navy) !important;
    box-shadow: var(--shadow-navy) !important;
}

/* ── Navbar User Dropdown ────────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(11, 15, 46, 0.22);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
    background: #f1f5f9;
    color: #e91e63;
}

.nav-dropdown-item.is-danger {
    color: #ef4444;
}
.nav-dropdown-item.is-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Sidebar Collapse & Stretch Feature ────────────────── */
aside.app-sidebar {
    align-self: stretch !important;
    display: flex;
    flex-direction: column;
    transition: width 250ms cubic-bezier(0.16, 1, 0.3, 1), min-width 250ms cubic-bezier(0.16, 1, 0.3, 1), padding 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

aside.app-sidebar.sidebar-collapsed {
    width: 72px !important;
    min-width: 72px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

aside.app-sidebar.sidebar-collapsed .sidebar-header-info,
aside.app-sidebar.sidebar-collapsed .sidebar-section-title,
aside.app-sidebar.sidebar-collapsed nav a span.sidebar-text {
    display: none !important;
}

aside.app-sidebar.sidebar-collapsed nav a {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* ── Canonical Component: Cards & Variants ────────────────── */
.card-static {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.card-focus, .card-interactive {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--t-normal);
}

@media (hover: hover) {
    .card-focus:hover, .card-interactive:hover {
        border-color: var(--border-strong);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

.card-dashboard {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.card-compact {
    padding: 1rem;
    border-radius: var(--r-md);
}

.card-focus.no-hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

/* Dark glass */
.glass-dark {
    background: rgba(11, 15, 46, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
}

/* Stat card */
.stat-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--t-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pink), var(--pink-deep));
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--pink-light) 0%, rgba(233, 30, 99, 0.08) 100%);
    color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.1;
    animation: countUp 0.5s ease both;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Gradient stat card variants */
.stat-card.pink-grad {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    border: none;
    color: #fff;
}

.stat-card.pink-grad::before {
    display: none;
}

.stat-card.pink-grad .stat-icon {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}

.stat-card.pink-grad .stat-value,
.stat-card.pink-grad .stat-label {
    color: #fff !important;
}

.stat-card.navy-grad {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    border: none;
    color: #fff;
}

.stat-card.navy-grad::before {
    background: linear-gradient(180deg, var(--gold), #FF8F00);
}

.stat-card.navy-grad .stat-icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
}

.stat-card.navy-grad .stat-value,
.stat-card.navy-grad .stat-label {
    color: #fff !important;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy-dark);
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border-radius: var(--r-sm);
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border-strong);
    background-color: var(--bg-light);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-primary);
    transition: var(--t-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pink);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.10);
    outline: none;
}

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

.input-group>.form-control:focus {
    z-index: 3;
}

.input-group-text {
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-strong);
    color: var(--navy-medium);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--pink);
    transform: scale(0.8) translateY(-0.8rem) translateX(0.15rem);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-focus {
    padding: 0.4em 0.9em;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.badge-pink {
    background: var(--pink-light);
    color: var(--pink);
}

.badge-navy {
    background: rgba(17, 24, 71, 0.1);
    color: var(--navy-dark);
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.badge-muted {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrapper {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.table-focus {
    margin-bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

.table-focus thead tr {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.table-focus thead th {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: none;
    white-space: nowrap;
}

.table-focus tbody td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 500;
    vertical-align: middle;
}

.table-focus tbody tr:last-child td {
    border-bottom: none;
}

.table-focus tbody tr {
    transition: var(--t-fast);
}

.table-focus tbody tr:hover {
    background-color: rgba(233, 30, 99, 0.04);
}

/* ── Dashboard Layout ─────────────────────────────────────── */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - var(--navbar-h));
}

/* Sidebar */
.sidebar-nav {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy-darkest) 0%, var(--navy-dark) 60%, var(--navy) 100%);
    flex-shrink: 0;
    position: sticky;
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
    overflow-x: clip;
    padding: 1.5rem 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.sidebar-header {
    padding: 0.5rem 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 auto 0.6rem;
    box-shadow: var(--shadow-pink);
}

.sidebar-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

.sidebar-subtitle {
    color: var(--pink);
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 0.75rem;
    margin: 1rem 0 0.4rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.60);
    padding: 0.65rem 0.85rem;
    border-radius: var(--r-sm);
    margin-bottom: 0.2rem;
    font-weight: 600;
    font-size: 0.90rem;
    transition: var(--t-fast);
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--t-fast);
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(-3px);
}

.sidebar-link.active {
    background: linear-gradient(95deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.38);
}

.sidebar-link.active i {
    transform: scale(1.1);
}

.sidebar-badge {
    margin-right: auto;
    background: var(--pink);
    color: #fff;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15em 0.55em;
    min-width: 20px;
    text-align: center;
    animation: pulseRing 2s ease-out infinite;
}

/* Dashboard main content */
.dashboard-content {
    flex: 1;
    padding: 2rem 2.25rem;
    min-width: 0;
    background: var(--bg-body);
}

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── Hero Section (Landing) ───────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-dark) 45%, var(--navy) 100%);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 80% -10%, rgba(233, 30, 99, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at -10% 110%, rgba(34, 51, 168, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-body);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.06;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 30, 99, 0.15);
    border: 1px solid rgba(233, 30, 99, 0.30);
    color: #F48FB1;
    border-radius: var(--r-full);
    padding: 0.35rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--pink), #FF6090);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero image */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-wrapper .glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse, rgba(233, 30, 99, 0.35) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.hero-image {
    width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    border: 6px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl), var(--shadow-pink);
    position: relative;
    z-index: 2;
    transition: var(--t-slow);
}

.hero-image:hover {
    border-radius: 50%;
    border-color: rgba(233, 30, 99, 0.3);
}

/* Floating stat pill */
.float-stat {
    position: absolute;
    background: var(--surface);
    border-radius: var(--r-full);
    padding: 0.55rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 10;
    border: 1px solid var(--border);
}

.float-stat .stat-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseRing 1.8s ease-out infinite;
    flex-shrink: 0;
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--t-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--pink-deep));
    transform: scaleX(0);
    transition: var(--t-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 99, 0.15);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--r-md);
    background: var(--pink-light);
    color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 1.25rem;
    transition: var(--t-normal);
}

.feature-card:hover .feature-icon {
    background: var(--pink);
    color: #fff;
    transform: scale(1.1) rotate(6deg);
    box-shadow: var(--shadow-pink);
}

/* ── Course Cards ─────────────────────────────────────────── */
.course-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--t-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 99, 0.20);
}

.course-card .card-img-top {
    height: 210px;
    object-fit: cover;
    transition: var(--t-slow);
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .img-wrapper {
    overflow: hidden;
    position: relative;
}

.course-card .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 15, 46, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.course-card .card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.plan-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    border: 2px solid var(--border);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--t-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(0deg, rgba(233, 30, 99, 0.04), transparent);
    transition: var(--t-normal);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink);
}

.plan-card:hover::after {
    height: 100%;
}

.plan-card.featured {
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 100%);
    border: 2px solid var(--pink);
    color: #fff;
    box-shadow: var(--shadow-navy), var(--shadow-pink);
}

.plan-card.featured:hover {
    transform: translateY(-10px) scale(1.01);
}

.plan-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--pink), var(--pink-deep));
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 0 0 var(--r-full) var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--pink);
}

.plan-card.featured .plan-price {
    color: var(--pink);
}

.plan-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.plan-card.featured .plan-currency {
    color: rgba(255, 255, 255, 0.6);
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    text-align: right;
    margin-bottom: 1.5rem;
}

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    font-weight: 500;
}

.plan-feature-list li i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.plan-card.featured .plan-feature-list li {
    color: rgba(255, 255, 255, 0.85);
}

.plan-card.featured .plan-feature-list li i {
    color: #6EE7B7;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 2.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--t-normal);
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: var(--pink-light);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 99, 0.15);
}

/* ── Watch / Video Player ─────────────────────────────────── */
.video-wrapper {
    background: #000;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.watermark-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.watermark-text {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-30deg);
    user-select: none;
    white-space: nowrap;
    line-height: 1.4;
    font-family: 'Cairo', sans-serif;
}

/* Watch sidebar lesson list */
.watch-playlist {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.watch-playlist-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.watch-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--t-fast);
}

.watch-playlist-item:last-child {
    border-bottom: none;
}

.watch-playlist-item:hover {
    background: rgba(233, 30, 99, 0.04);
    color: var(--pink);
}

.watch-playlist-item.active {
    background: var(--navy-dark);
    color: #fff;
}

.watch-playlist-item.active .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Timeline (Vodafone Cash steps) ──────────────────────── */
.payment-timeline {
    position: relative;
    padding-right: 2.5rem;
}

.payment-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 11px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--pink) 0%, rgba(233, 30, 99, 0.15) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    right: -2.5rem;
    top: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    border-radius: 50%;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(233, 30, 99, 0.20);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-dark) 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 300px at 50% -10%, rgba(233, 30, 99, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--t-fast);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--pink);
    padding-right: 0.4rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--t-fast);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-pink);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress {
    height: 6px;
    background: var(--border);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--pink) 0%, #FF4081 100%);
    border-radius: var(--r-full);
    transition: width 0.6s ease;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert-focus {
    border-radius: var(--r-md);
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.alert-focus i {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.alert-focus-danger {
    background: rgba(239, 68, 68, 0.10);
    color: #B91C1C;
}

.alert-focus-success {
    background: rgba(16, 185, 129, 0.10);
    color: #065F46;
}

.alert-focus-warning {
    background: rgba(245, 158, 11, 0.10);
    color: #92400E;
}

.alert-focus-info {
    background: rgba(59, 130, 246, 0.10);
    color: #1E40AF;
}

/* ── Upload / Dropzone ────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--t-normal);
    cursor: pointer;
    background: var(--bg-light);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--pink);
    background: var(--pink-light);
}

.upload-zone .upload-icon {
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-eyebrow {
    display: inline-block;
    color: var(--pink);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Decorative underline */
.underline-pink {
    display: inline-block;
    position: relative;
}

.underline-pink::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--pink-deep));
    border-radius: var(--r-full);
}

/* ── Image receipt preview ────────────────────────────────── */
.receipt-preview {
    border-radius: var(--r-md);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--t-fast);
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}

.receipt-preview:hover {
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}

/* ── Misc Utility ─────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rounded-focus {
    border-radius: var(--r-lg) !important;
}

.divider-pink {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    opacity: 0.3;
    margin: 2rem 0;
}

.text-gradient-pink {
    background: linear-gradient(90deg, var(--pink), #FF4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Responsive Overrides ─────────────────────────────────── */
@media (max-width: 1199px) {
    :root {
        --sidebar-w: 240px;
    }

    .dashboard-content {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 991px) {
    :root {
        --sidebar-w: 100%;
    }

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar-nav {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
        overflow: hidden;
    }

    .sidebar-nav .sidebar-section-label {
        display: none;
    }

    .sidebar-nav nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .sidebar-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
        margin-bottom: 0;
        text-align: center;
    }

    .sidebar-link:hover {
        transform: none;
    }

    .sidebar-header {
        display: none;
    }

    .dashboard-content {
        padding: 1.25rem 1rem;
    }

    .hero-image {
        width: 260px;
        height: 260px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 5rem 0 4.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .dashboard-content {
        padding: 1rem 0.75rem;
    }

    .card-focus {
        border-radius: var(--r-md);
    }

    .sidebar-link {
        min-width: 80px;
        font-size: 0.75rem;
    }

    .sidebar-link span {
        display: none;
    }
}

/* ════════════════════════════════════════════════
   EXTENDED UTILITIES – added for new views
   ════════════════════════════════════════════════ */

/* ── Sidebar badge ─────────────────────────────── */
.sidebar-badge {
    margin-left: auto;
    background: var(--pink);
    color: #fff;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

/* ── Alert-focus variants ──────────────────────── */
.alert-focus {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.9rem;
}

.alert-focus i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-focus-danger {
    background: rgba(239, 68, 68, .08);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, .18);
}

.alert-focus-warning {
    background: rgba(245, 158, 11, .09);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, .20);
}

.alert-focus-success {
    background: rgba(16, 185, 129, .08);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, .18);
}

.alert-focus-info {
    background: rgba(59, 130, 246, .08);
    color: #1E40AF;
    border: 1px solid rgba(59, 130, 246, .18);
}

/* ── Extra badge variants ──────────────────────── */
.badge-focus.badge-warning {
    background: rgba(245, 158, 11, .15);
    color: #D97706;
}

.badge-focus.badge-danger {
    background: rgba(239, 68, 68, .12);
    color: #DC2626;
}

.badge-focus.badge-navy {
    background: rgba(17, 24, 71, .1);
    color: var(--navy-dark);
}

.badge-focus.badge-muted {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ── Text color utilities ──────────────────────── */
.text-success-custom {
    color: var(--success) !important;
}

.text-navy-dark {
    color: var(--navy-dark) !important;
}

/* ── Stat card gradient variants ──────────────── */
.stat-card.navy-grad {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: #fff !important;
}

.stat-card.navy-grad .stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.stat-card.navy-grad .stat-value {
    color: #fff !important;
}

.stat-card.navy-grad .stat-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.stat-card.pink-grad {
    background: linear-gradient(135deg, var(--pink-hover) 0%, var(--pink) 100%);
    color: #fff !important;
}

.stat-card.pink-grad .stat-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

.stat-card.pink-grad .stat-value {
    color: #fff !important;
}

.stat-card.pink-grad .stat-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ── Watch page playlist item ──────────────────── */
.watch-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: var(--t-fast);
}

.watch-playlist-item:hover {
    background: rgba(255, 255, 255, .05);
}

/* ── Upload zone ───────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--r-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--t-fast);
    background: var(--bg-light);
}

.upload-zone:hover {
    border-color: var(--pink);
    background: var(--pink-light);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

/* Receipt image preview */
.receipt-preview {
    max-width: 100%;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
}

/* ── Payment timeline ──────────────────────────── */
.payment-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.timeline-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── Plan cards on home ────────────────────────── */
.plan-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    transition: var(--t-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: right;
}

.plan-card:hover {
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
    transform: translateY(-4px);
}

.plan-card.featured {
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
    color: #fff;
    position: relative;
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .plan-card.featured {
        transform: none;
    }
}

.plan-badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-full);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pink);
    line-height: 1;
}

.plan-currency {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-card.featured .plan-price {
    color: #fff;
}

.plan-card.featured .plan-currency {
    color: rgba(255, 255, 255, .6);
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.plan-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-feature-list .ti-check {
    color: var(--success);
}

.plan-card.featured .plan-feature-list li {
    color: rgba(255, 255, 255, .85);
}

.plan-card.featured .plan-feature-list .ti-check {
    color: #6EE7B7;
}

/* ── Testimonials ──────────────────────────────── */
.testimonial-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 2rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ── btn-outline-pink ──────────────────────────── */
.btn-outline-pink {
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: var(--r-full);
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: var(--t-fast);
}

.btn-outline-pink:hover {
    background: var(--pink);
    color: #fff;
}

/* ── btn-navy & btn-outline-navy ───────────────── */
.btn-navy {
    background: var(--navy-dark);
    color: #fff;
    border-radius: var(--r-full);
    border: none;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: var(--t-fast);
}

.btn-navy:hover {
    background: var(--navy-darkest);
    color: #fff;
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy-dark);
    border: 1.5px solid var(--navy-dark);
    border-radius: var(--r-full);
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: var(--t-fast);
}

.btn-outline-navy:hover {
    background: var(--navy-dark);
    color: #fff;
}

/* xs button */
.btn-xs {
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
}

/* btn-icon – square/round icon button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    font-size: 1rem;
}

/* ── line-clamp ────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Rounded helpers ───────────────────────────── */
.rounded-focus {
    border-radius: var(--r-lg) !important;
}

/* ── glass-dark ────────────────────────────────── */
.glass-dark {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    border-radius: var(--r-md);
}

/* ── bg-body-custom ────────────────────────────── */
.bg-body-custom {
    background: var(--bg-body) !important;
}

/* ── Hero image wrapper & animations ───────────── */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.glow-orb {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, .3) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.5;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.float-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--r-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 1.2s ease-in-out infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

/* ── Section labels ────────────────────────────── */
.section-eyebrow {
    display: inline-block;
    background: var(--pink-light);
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--r-full);
    margin-bottom: 0.85rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
}

.underline-pink {
    position: relative;
    display: inline-block;
    color: var(--pink);
}

.underline-pink::after {
    content: '';
    position: absolute;
    inset: auto 0 -4px 0;
    height: 3px;
    background: var(--pink);
    border-radius: var(--r-full);
    opacity: 0.5;
}

/* ── User avatar ring ──────────────────────────── */
.user-avatar-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--navy) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── user-avatar-btn ───────────────────────────── */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r-full);
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
    text-decoration: none;
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.user-avatar-btn::after {
    display: none;
}

/* ── Dropdown polish ───────────────────────────── */
.dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

.dropdown-item i {
    margin-left: 0.5rem;
}

/* ── Navbar final ──────────────────────────────── */
.navbar-focus .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: var(--r-sm);
    transition: var(--t-fast);
}

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

/* ── Footer polish ─────────────────────────────── */
.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.18rem 0;
    transition: var(--t-fast);
}

.footer-link:hover {
    color: var(--pink);
    padding-right: 4px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.footer-social {
    gap: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--t-fast);
}

.footer-social a:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}

.footer-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

/* ── Table small fixes ─────────────────────────── */
.table-focus th,
.table-focus td {
    font-size: 0.87rem;
}

/* ── Progress bar ──────────────────────────────── */
.progress {
    background: var(--border);
    border-radius: var(--r-full);
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--pink-hover) 0%, var(--pink) 100%);
    border-radius: var(--r-full);
    transition: width 0.5s ease;
}

/* ── Course card img wrapper ───────────────────── */
.course-card .img-wrapper {
    position: relative;
    overflow: hidden;
}

.course-card .card-img-top {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(11, 15, 46, 0.5) 100%);
}

/* ── Watermark overlay ─────────────────────────── */
.watermark-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
    z-index: 5;
    opacity: 0.12;
}

.watermark-text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    transform: rotate(-20deg);
    user-select: none;
}

/* ── Hero dots ─────────────────────────────────── */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
}

/* ── Gradient text ─────────────────────────────── */
.text-gradient-pink {
    background: linear-gradient(135deg, var(--pink) 0%, #FF6090 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── letter-spacing ────────────────────────────── */
.letter-spacing-1 {
    letter-spacing: 0.05em;
}

/* ── Hero eyebrow ──────────────────────────────── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 30, 99, .15);
    border: 1px solid rgba(233, 30, 99, .25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: var(--r-full);
}

/* ── bg-pink-light utility ─────────────────────── */
.bg-pink-light {
    background: var(--pink-light) !important;
}

/* ── min-width-0 ───────────────────────────────── */
.min-width-0 {
    min-width: 0;
}

/* Focus premium loading experience */
.focus-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, .35), transparent 32%),
        radial-gradient(circle at 78% 75%, rgba(233, 30, 99, .22), transparent 28%),
        linear-gradient(135deg, #11184C 0%, #070a22 58%, #E91E63 150%);
    transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}

.focus-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    pointer-events: none;
}

.focus-loader-orbit {
    position: relative;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
}

.focus-loader-orbit::before,
.focus-loader-orbit::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-top-color: rgba(233, 30, 99, .95);
    border-radius: 50%;
    animation: focusSpin 1.25s linear infinite;
}

.focus-loader-orbit::after {
    inset: 20px;
    transform: rotate(65deg);
    animation-duration: 1.8s;
    animation-direction: reverse;
    border-top-color: rgba(255, 255, 255, .9);
}

.focus-loader-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #E91E63, #b70f48);
    color: #fff;
    font-weight: 900;
    font-size: 1.8rem;
    box-shadow: 0 18px 45px rgba(233, 30, 99, .35);
}

.focus-loader-electron {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    top: 5px;
    box-shadow: 0 0 18px rgba(255, 255, 255, .9);
    animation: focusPulse 1s ease-in-out infinite alternate;
}

.focus-loader-electron-b {
    top: auto;
    bottom: 7px;
    background: #E91E63;
    animation-delay: .25s;
}

.focus-loader-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.focus-loader-text strong {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: .02em;
}

.focus-loader-text span {
    color: rgba(255, 255, 255, .65);
    font-size: .85rem;
    font-weight: 700;
}

.focus-loader-bar {
    width: min(240px, 68vw);
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.focus-loader-bar span {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #E91E63, #fff);
    animation: focusLoadBar 1.15s ease-in-out infinite;
}

@keyframes focusSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes focusPulse {
    from {
        transform: scale(.8);
        opacity: .55;
    }

    to {
        transform: scale(1.25);
        opacity: 1;
    }
}

@keyframes focusLoadBar {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(260%);
    }
}

/* Lightweight scroll reveal */
[data-animate] {
    opacity: 0;
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}

[data-animate="slide-up"] {
    transform: translateY(24px);
}

[data-animate="fade-in"] {
    transform: translateY(8px);
}

[data-animate="scale-in"] {
    transform: scale(.97);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

[data-stagger]>* {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

[data-stagger].is-visible>* {
    opacity: 1;
    transform: none;
}

[data-stagger].is-visible>*:nth-child(2) {
    transition-delay: .06s;
}

[data-stagger].is-visible>*:nth-child(3) {
    transition-delay: .12s;
}

[data-stagger].is-visible>*:nth-child(4) {
    transition-delay: .18s;
}

[data-stagger].is-visible>*:nth-child(5) {
    transition-delay: .24s;
}

[data-stagger].is-visible>*:nth-child(6) {
    transition-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {

    .focus-loader,
    .focus-loader *,
    [data-animate],
    [data-stagger]>* {
        animation: none !important;
        transition: none !important;
    }

    [data-animate],
    [data-stagger]>* {
        opacity: 1 !important;
        transform: none !important;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10000;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
    animation: whatsapp-float-bounce 3s ease-in-out infinite;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.whatsapp-float.is-dragging {
    cursor: grabbing !important;
    animation: none !important;
    transform: scale(1.1) !important;
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.7) !important;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: whatsapp-icon-shake 4s ease-in-out infinite;
    pointer-events: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg) translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65) !important;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25D366;
    z-index: -1;
    pointer-events: none;
}

.whatsapp-float::before {
    animation: whatsapp-ring-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.whatsapp-float::after {
    animation: whatsapp-ring-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s infinite;
}

@keyframes whatsapp-float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes whatsapp-icon-shake {
    0%, 75%, 100% {
        transform: rotate(0deg);
    }
    80% {
        transform: rotate(-12deg);
    }
    85% {
        transform: rotate(12deg);
    }
    90% {
        transform: rotate(-8deg);
    }
    95% {
        transform: rotate(8deg);
    }
}

@keyframes whatsapp-ring-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float svg,
    .whatsapp-float::before,
    .whatsapp-float::after {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ══════════════════════════════════════════════════════════
   COLLAPSIBLE SIDEBAR SYSTEM
══════════════════════════════════════════════════════════ */
.app-sidebar {
    align-self: stretch !important;
    min-height: 100% !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (min-width: 1024px) {
    .app-sidebar.sidebar-collapsed {
        width: 4.75rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .app-sidebar.sidebar-collapsed .sidebar-text,
    .app-sidebar.sidebar-collapsed .sidebar-header-info,
    .app-sidebar.sidebar-collapsed .sidebar-section-title {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .app-sidebar.sidebar-collapsed .sidebar-header-wrapper {
        justify-content: center !important;
        padding-bottom: 0.75rem !important;
    }

    .app-sidebar.sidebar-collapsed nav a {
        justify-content: center !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        gap: 0 !important;
    }

    .app-sidebar.sidebar-collapsed nav a i {
        font-size: 1.35rem !important;
    }
}

/* ══════════════════════════════════════════════════════════
   GLOBAL MODAL STYLES (POLYFILL FOR BOOTSTRAP MODALS)
══════════════════════════════════════════════════════════ */
.modal {
    position: fixed; inset: 0; z-index: 1050; display: none;
    align-items: center; justify-content: center; padding: 16px;
    direction: rtl; font-family: 'Cairo', sans-serif;
}
.modal.show { display: flex !important; }
.modal-dialog {
    width: 100%; max-width: 520px; position: relative; margin: auto;
    z-index: 1055; animation: modalIn .2s ease forwards;
}
.modal-lg { max-width: 820px; }
.modal-content {
    background: #ffffff; border-radius: 20px; border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px); z-index: 1040;
}
body.modal-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   HALL OF FAME / TOP STUDENTS
   ══════════════════════════════════════════════════════════ */
.hof-section {
    position: relative;
}

.hof-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hof-podium__left, .hof-podium__center, .hof-podium__right {
    display: flex;
    flex-direction: column;
}

.hof-card {
    border-radius: 1.5rem;
    padding: 1.5rem 1rem 1rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.hof-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.hof-card__photo {
    border-radius: 50%;
}

.hof-card--gold {
    border: 2px solid #FFD700;
}

.hof-card--silver {
    border: 2px solid #C0C0C0;
}

.hof-card--bronze {
    border: 2px solid #CD7F32;
}

.hof-card__name {
    font-weight: 800;
}

.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .hof-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

.hof-archive-select {
    outline: none;
    cursor: pointer;
}

/* Badge Display Helper */
.student-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.student-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: currentColor;
    font-size: 12px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: help;
}

.student-badge i {
    color: white;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.student-badge:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.student-badge-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 20px;
    border-radius: 10px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #e5e7eb;
}

@media print {
    .student-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .student-badge-more {
        display: none;
    }
}