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

/* Anti-FOUC: hide page until translations are applied */
html.maher-loading { visibility: hidden; }

:root {
    /* Premium dark / cyber palette (unified site ambience) */
    --maher-space: #050816;
    --maher-slate: #0b1220;
    --maher-ink: #111827;
    --maher-blue: #1d4ed8;
    --maher-sky: #3b82f6;
    --maher-glow: rgba(59, 130, 246, 0.45);
    --maher-glow-soft: rgba(96, 165, 250, 0.22);
    --color-primary: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-deep: #0f172a;
    --color-accent: #60a5fa;
    --color-accent-soft: #93c5fc;
    --color-ice: #bfdbfe;
    --color-highlight: #93c5fc;
    --color-gold: #38bdf8;
    --color-gold-light: #7dd3fc;
    --color-bg: #050816;
    --color-white: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --glass-surface: rgba(248, 250, 252, 0.72);
    --glass-border: rgba(148, 163, 184, 0.22);
    --glass-highlight: rgba(255, 255, 255, 0.55);
    --shadow-soft: 0 24px 48px rgba(5, 8, 22, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.06);
    --shadow-card: 0 12px 40px rgba(5, 8, 22, 0.35), 0 0 0 1px rgba(148, 163, 184, 0.12);
    --shadow-glow-hover: 0 20px 50px rgba(29, 78, 216, 0.35), 0 0 40px rgba(59, 130, 246, 0.18);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

html,
body {
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

html {
    background-color: var(--maher-space);
}

body {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    isolation: isolate;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100%;
    /* Base + aurora: static gradients (no scroll-linked repaint) */
    background-color: var(--maher-space);
    background-image:
        radial-gradient(ellipse 130% 85% at 12% -8%, rgba(29, 78, 216, 0.55), transparent 55%),
        radial-gradient(ellipse 100% 70% at 92% 8%, rgba(59, 130, 246, 0.28), transparent 52%),
        radial-gradient(ellipse 80% 55% at 48% 108%, rgba(17, 24, 39, 0.92), transparent 58%),
        linear-gradient(168deg, #050816 0%, #0b1220 42%, #111827 78%, #0b1220 100%);
    background-attachment: scroll;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

@keyframes maherAuroraDrift {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
    }
    100% {
        background-position: 10% 6%, 90% 10%, 52% 96%, 0 0;
    }
}

/* Floating mesh lines + particles (fixed, behind content) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            118deg,
            transparent 0,
            transparent 72px,
            rgba(59, 130, 246, 0.055) 72px,
            rgba(59, 130, 246, 0.055) 73px
        ),
        repeating-linear-gradient(
            -14deg,
            transparent 0,
            transparent 110px,
            rgba(147, 197, 253, 0.04) 110px,
            rgba(147, 197, 253, 0.04) 111px
        ),
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.07) 0, transparent 0.35%),
        radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.05) 0, transparent 0.28%),
        radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.06) 0, transparent 0.32%),
        radial-gradient(circle at 34% 84%, rgba(147, 197, 253, 0.08) 0, transparent 0.3%),
        radial-gradient(circle at 88% 46%, rgba(255, 255, 255, 0.05) 0, transparent 0.26%);
    background-size: 100% 100%, 100% 100%, 220% 220%, 220% 220%, 220% 220%, 220% 220%, 220% 220%;
    opacity: 0.4;
    mix-blend-mode: normal;
}

@keyframes maherMeshDrift {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.58;
    }
    50% {
        opacity: 0.72;
    }
    100% {
        transform: translate3d(-36px, -28px, 0);
        opacity: 0.62;
    }
}

/* Soft vignette + blue haze */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(29, 78, 216, 0.12), transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 0%, rgba(5, 8, 22, 0.55) 100%);
    opacity: 1;
}

/* Light auth layouts: hide global mesh so solid page bg stays clean */
body.auth-split-page::before,
body.auth-split-page::after,
body.login-split-page::before,
body.login-split-page::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
    }

    body::before {
        animation: none !important;
        transform: none !important;
        opacity: 0.5;
    }

    .hero::before {
        animation: none !important;
    }

    .hero::after {
        animation: none !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
    background-size: 200% auto;
    color: var(--color-white);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.4), 0 0 24px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.45s ease;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-18deg);
    animation: btnShimmer 3.5s ease infinite;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(29, 78, 216, 0.5), 0 0 40px rgba(59, 130, 246, 0.28);
    background-position: right center;
}

@keyframes btnShimmer {
    0%   { left: -100%; }
    35%  { left: 140%; }
    100% { left: 140%; }
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

/* Logout button in header user menu */
.user-menu .btn-outline,
.user-menu .header-logout-btn {
    color: rgba(248, 250, 252, 0.92);
    border: 1px solid var(--header-border);
    background: rgba(15, 23, 42, 0.45);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    min-height: 36px;
    white-space: nowrap;
}

.user-menu .btn-outline:hover,
.user-menu .header-logout-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

/* Settings / profile button in header */
.btn-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1;
    color: rgba(226, 232, 240, 0.95);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.btn-settings:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: #e0f2fe;
    transform: none;
}

.btn-full {
    width: 100%;
}

/* ── Site header (فحمي زجاجي — متناسق مع الموقع + شعار أزرق) ─ */
.main-header {
    --header-h: 92px;
    --header-surface: rgba(22, 30, 46, 0.94);
    --header-surface-muted: rgba(15, 23, 42, 0.72);
    --header-border: rgba(148, 163, 184, 0.16);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--header-border);
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.96) 0%,
        rgba(17, 24, 39, 0.98) 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 36px rgba(2, 6, 23, 0.42);
}

.main-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.35), transparent);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    min-height: var(--header-h);
    padding: 0.65rem 0;
}

.header-main-group {
    display: flex;
    align-items: center;
    gap: 1.5rem 2rem;
    flex: 1;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-img {
    width: auto;
    height: 72px;
    max-height: 76px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.logo-text {
    line-height: 1;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo:hover .logo-img {
    opacity: 1;
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.35));
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.15rem;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.nav-logout-mobile {
    display: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.82);
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 0.85rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.1);
}

.nav-link:hover::after {
    transform: scaleX(0.55);
}

.nav-link.active {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.18);
    box-shadow: none;
}

.nav-link.active::after {
    transform: scaleX(1);
}

html[dir="rtl"] .logo,
html[dir="ltr"] .logo {
    margin-inline-end: 0;
}

.auth-actions {
    display: none;
}

.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.28rem 0.35rem 0.28rem 0.45rem;
    border-radius: 14px;
    border: 1px solid var(--header-border);
    background: var(--header-surface-muted);
    box-shadow: 0 4px 20px rgba(2, 6, 23, 0.28);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    padding: 0.15rem 0.35rem 0.15rem 0;
    border-radius: 10px;
    transition: background 0.2s ease;
}

a.user-chip:hover {
    background: rgba(148, 163, 184, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #e0f2fe;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.45));
    border: 1px solid rgba(125, 211, 252, 0.35);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    max-width: 9.5rem;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.2;
}

.user-menu-divider {
    width: 1px;
    height: 28px;
    background: rgba(148, 163, 184, 0.22);
    flex-shrink: 0;
}

/* ── Language toggle ── */
.lang-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--header-border);
    background: var(--header-surface-muted);
}

.lang-switch::before {
    display: none;
}

.lang-btn {
    padding: 0.38rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(203, 213, 225, 0.88);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    color: #f8fafc;
}

.lang-btn-active {
    background: rgba(248, 250, 252, 0.95);
    color: #0f172a !important;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 11px;
    background: var(--header-surface-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #e2e8f0;
    margin: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .main-nav {
        gap: 0.05rem;
    }

    .nav-link {
        padding: 0.45rem 0.6rem;
        font-size: 0.82rem;
    }
}

.header-inner > .lang-switch,
.header-inner > #authUserMenu {
    flex-shrink: 0;
}

.hero {
    position: relative;
    z-index: 20;
    padding: 3.75rem 0 4.25rem;
    background: transparent;
    color: #ffffff;
    overflow: visible;
}

.hero.hero--visual {
    padding-bottom: 5rem;
}

.hero--visual .hero-photo {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero--visual .hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero--visual .hero-photo--main {
    width: min(34vw, 380px);
    aspect-ratio: 4 / 3;
    top: 8%;
    left: auto;
    right: 0;
    opacity: 0.88;
}

.hero--visual .hero-photo--accent {
    width: min(28vw, 300px);
    aspect-ratio: 5 / 4;
    bottom: 10%;
    right: auto;
    left: 0;
    opacity: 0.8;
}

html[dir="rtl"] .hero--visual .hero-photo--main {
    right: 0;
    left: auto;
}

html[dir="rtl"] .hero--visual .hero-photo--accent {
    left: 0;
    right: auto;
}

/* شاشات عريضة: صور أكبر + مسافة واضحة عن عمود البحث */
@media (min-width: 992px) {
    .hero.hero--visual {
        --hero-center-half: 24rem;
        --hero-photo-gap: 2.75rem;
    }

    .hero--visual .hero-photo--main {
        width: clamp(300px, 38vw, 460px);
        top: 4%;
        right: max(0.75rem, calc(50% - var(--hero-center-half) - clamp(300px, 38vw, 460px) - var(--hero-photo-gap)));
        opacity: 0.92;
    }

    .hero--visual .hero-photo--accent {
        width: clamp(240px, 30vw, 360px);
        bottom: 6%;
        left: max(0.75rem, calc(50% - var(--hero-center-half) - clamp(240px, 30vw, 360px) - var(--hero-photo-gap)));
        opacity: 0.85;
    }
}

@media (max-width: 991px) and (min-width: 901px) {
    .hero--visual .hero-photo--main {
        width: min(32vw, 320px);
    }
    .hero--visual .hero-photo--accent {
        width: min(26vw, 260px);
    }
}

@media (max-width: 900px) {
    .hero--visual .hero-photo--main,
    .hero--visual .hero-photo--accent {
        width: min(40vw, 210px);
        opacity: 0.3;
        right: 0;
        left: 0;
    }
    .hero--visual .hero-photo--accent {
        bottom: 6%;
    }
}

.auth-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(2, 6, 23, 0.72) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(2, 6, 23, 0.78) 100%);
}

.auth-page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
}

body.auth-split-page .auth-split {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

/* ── Animated gradient overlay on hero ─────────────────────────── */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(5, 8, 22, 0.55) 0%,
        rgba(29, 78, 216, 0.22) 38%,
        rgba(59, 130, 246, 0.18) 62%,
        rgba(11, 18, 32, 0.5) 100%
    );
    background-size: 240% 240%;
    animation: heroGradientShift 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ── Soft glow blob ─────────────────────────────────────────────── */
.hero::after {
    content: "";
    position: absolute;
    width: min(90vw, 720px);
    height: min(90vw, 720px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(29, 78, 216, 0.08) 45%, transparent 68%);
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    animation: heroBlobFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroGradientShift {
    0%   { background-position: 0%   40%; }
    50%  { background-position: 100% 60%; }
    100% { background-position: 0%   40%; }
}

@keyframes heroBlobFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50%      { transform: translateX(-50%) translateY(24px) scale(1.05); }
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(0, 28px) scale(1.05); }
}

/* ── Hero 3D ambient layer ─────────────────────────────────────── */
.hero-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 1400px;
    perspective-origin: 50% 42%;
}

.hero-3d-stage {
    position: absolute;
    inset: -12% -8% -22%;
    transform-style: preserve-3d;
}

.hero-3d-grid-floor {
    position: absolute;
    left: -35%;
    right: -35%;
    bottom: -8%;
    height: 55%;
    transform-origin: 50% 100%;
    transform: rotateX(78deg) translateZ(-120px);
    background-image:
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 92%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 92%);
    animation: hero3dGridDrift 28s linear infinite;
}

@keyframes hero3dGridDrift {
    0%   { background-position: 0 0, 0 0; opacity: 0.85; }
    100% { background-position: 480px 240px, -320px -160px; opacity: 1; }
}

.hero-3d-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.55;
    mix-blend-mode: screen;
    transform-style: preserve-3d;
}

.hero-3d-orb-a {
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    left: -8%;
    top: 2%;
    background: radial-gradient(circle at 35% 35%, rgba(147, 197, 253, 0.45), rgba(29, 78, 216, 0.12) 52%, transparent 68%);
    animation: hero3dOrbA 14s ease-in-out infinite;
}

.hero-3d-orb-b {
    width: min(28vw, 360px);
    height: min(28vw, 360px);
    right: -4%;
    top: 18%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.25) 55%, transparent 70%);
    animation: hero3dOrbB 18s ease-in-out infinite;
}

.hero-3d-orb-c {
    width: min(22vw, 280px);
    height: min(22vw, 280px);
    left: 38%;
    bottom: -6%;
    background: radial-gradient(circle at 50% 40%, rgba(147, 197, 253, 0.45), rgba(29, 78, 216, 0.14) 60%, transparent 72%);
    animation: hero3dOrbC 16s ease-in-out infinite;
}

@keyframes hero3dOrbA {
    0%, 100% { transform: translate3d(0, 0, -80px) rotateX(52deg) rotateY(-18deg) scale(1); }
    50%      { transform: translate3d(2%, 4%, 40px) rotateX(38deg) rotateY(12deg) scale(1.06); }
}

@keyframes hero3dOrbB {
    0%, 100% { transform: translate3d(0, 0, 20px) rotateX(48deg) rotateY(22deg) scale(1); }
    50%      { transform: translate3d(-3%, 5%, -60px) rotateX(62deg) rotateY(-8deg) scale(1.08); }
}

@keyframes hero3dOrbC {
    0%, 100% { transform: translate3d(0, 0, -40px) rotateX(60deg) rotateY(0deg); }
    50%      { transform: translate3d(-4%, -3%, 30px) rotateX(44deg) rotateY(-20deg); }
}

.hero-3d-torus {
    position: absolute;
    width: min(55vw, 640px);
    height: min(55vw, 640px);
    left: 50%;
    top: 8%;
    transform: translate3d(-50%, 0, -200px) rotateX(68deg) rotateZ(0deg);
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.06) inset,
        0 0 80px rgba(29, 78, 216, 0.18);
    opacity: 0.35;
    animation: hero3dTorus 22s linear infinite;
}

@keyframes hero3dTorus {
    to { transform: translate3d(-50%, 0, -200px) rotateX(68deg) rotateZ(360deg); }
}

.hero-3d-prism {
    position: absolute;
    width: 120px;
    height: 120px;
    right: 12%;
    bottom: 18%;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.32), rgba(29, 78, 216, 0.14));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    transform-style: preserve-3d;
    transform: translateZ(-40px) rotateY(-25deg) rotateX(12deg);
    opacity: 0.45;
    animation: hero3dPrism 12s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(5, 8, 22, 0.45));
}

@keyframes hero3dPrism {
    0%, 100% { transform: translateZ(-40px) rotateY(-25deg) rotateX(12deg) scale(1); }
    50%      { transform: translateZ(30px) rotateY(15deg) rotateX(-8deg) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d-grid-floor,
    .hero-3d-orb-a,
    .hero-3d-orb-b,
    .hero-3d-orb-c,
    .hero-3d-torus,
    .hero-3d-prism {
        animation: none !important;
    }
    .hero-3d-orb-a { transform: translate3d(0, 0, -80px) rotateX(52deg) rotateY(-18deg); }
    .hero-3d-orb-b { transform: translate3d(0, 0, 20px) rotateX(48deg) rotateY(22deg); }
    .hero-3d-orb-c { transform: translate3d(0, 0, -40px) rotateX(60deg); }
}

.hero-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
    padding-inline: 0.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    color: #ffffff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-content h1 span {
    color: var(--color-accent-soft);
    text-shadow: 0 0 28px rgba(125, 211, 252, 0.55), 0 0 56px rgba(56, 189, 248, 0.28);
}

.hero-content p {
    color: #e5e7eb;
    max-width: 32rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── English language direction fix ──────────────────────────────── */
/* Prevents punctuation (? . !) from appearing at wrong end in RTL layout */
html.lang-en h1[data-i18n],
html.lang-en h2[data-i18n],
html.lang-en h3[data-i18n],
html.lang-en p[data-i18n],
html.lang-en span[data-i18n],
html.lang-en label[data-i18n],
html.lang-en button[data-i18n] {
    direction: ltr;
    unicode-bidi: embed;
}

/* ── Smart Search Box ─────────────────────────────────────────────── */
.smart-search-box {
    position: relative;
    z-index: 100;
    margin-bottom: 1.35rem;
    max-width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.ssb-main {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow:
        0 14px 40px rgba(5, 8, 22, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset,
        0 0 32px rgba(59, 130, 246, 0.1);
    padding: 5px 5px 5px 14px;
    gap: 0;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: box-shadow 0.35s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ssb-main:focus-within {
    box-shadow:
        0 26px 72px rgba(5, 8, 22, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 0 3px rgba(59, 130, 246, 0.28),
        0 0 56px rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
}

.ssb-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ssb-search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.ssb-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.92rem;
    color: #1e293b;
    padding: 0.5rem 0;
    min-width: 0;
}

.ssb-input::placeholder {
    color: #94a3b8;
}

.ssb-divider {
    width: 1px;
    height: 22px;
    background: rgba(10, 51, 184, 0.13);
    flex-shrink: 0;
    margin: 0 6px;
}

.ssb-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ssb-pin-icon {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}

.ssb-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    max-width: 96px;
}

.ssb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.58rem 1.25rem;
    background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-position 0.45s ease, box-shadow 0.3s ease, transform 0.22s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4), 0 0 18px rgba(59, 130, 246, 0.18);
    white-space: nowrap;
}

.ssb-btn:hover {
    background-position: right center;
    box-shadow: 0 16px 42px rgba(29, 78, 216, 0.55), 0 0 36px rgba(59, 130, 246, 0.28);
    transform: scale(1.03);
}

.ssb-btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.ssb-btn:hover .ssb-btn-icon {
    transform: translateX(-3px);
}

/* Dropdown */
.ssb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.99) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-radius: 18px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(56, 189, 248, 0.22),
        0 12px 40px rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    z-index: 10050;
    animation: ssbFadeIn 0.18s ease;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    max-height: min(22rem, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.45) rgba(15, 23, 42, 0.65);
}

.ssb-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ssb-dropdown::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 999px;
    margin: 6px 0;
}

.ssb-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.55), rgba(99, 102, 241, 0.45));
    border-radius: 999px;
}

.ssb-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.75), rgba(129, 140, 248, 0.6));
}

.ssb-dropdown-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.65rem 1rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.9);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 70%, rgba(15, 23, 42, 0));
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    margin-bottom: 0.15rem;
}

@keyframes ssbFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ssb-result {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.25rem;
    cursor: pointer;
    transition: background 0.14s;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ssb-result:last-child {
    border-bottom: none;
}

.ssb-result:hover {
    background: rgba(56, 189, 248, 0.1);
}

.ssb-result-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ssb-result-content {
    flex: 1;
    min-width: 0;
}

.ssb-result-title {
    font-weight: 700;
    font-size: 0.96rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssb-result-path {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7dd3fc;
    margin-top: 0.15rem;
}

.ssb-result-meta {
    font-size: 0.76rem;
    color: rgba(148, 163, 184, 0.95);
    margin-top: 0.12rem;
}

.ssb-result-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: rgba(125, 211, 252, 0.85);
    opacity: 0.85;
}

.ssb-result-badge {
    font-size: 0.74rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 51, 184, 0.07);
    color: var(--color-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.ssb-result-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    color: #7dd3fc;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.08);
    cursor: pointer;
    transition: background 0.14s;
}

.ssb-result-all:hover {
    background: rgba(56, 189, 248, 0.16);
}

.ssb-no-results {
    text-align: center;
    padding: 1.4rem 1rem;
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.9rem;
}

.ssb-dropdown-loading {
    text-align: center;
    padding: 1.2rem;
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.88rem;
}

.courses-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
}

.courses-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
}

.courses-showing-txt {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.courses-load-more-btn {
    min-width: 12rem;
}

/* Quick tags */
.ssb-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    position: relative;
    z-index: 1;
}

.ssb-tag-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.ssb-tag {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.90);
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
    backdrop-filter: blur(8px);
}

.ssb-tag:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.50);
    transform: translateY(-1px);
}

/* ── قبل تسجيل الدخول: هيدر ونص وبحث أوضح وأكبر ── */
body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .main-header {
    --header-h: 108px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .header-inner {
    padding: 0.85rem 0;
    gap: 1.25rem 1.5rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .logo-img {
    height: 82px;
    max-height: 86px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .nav-link {
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .lang-btn {
    font-size: 0.85rem;
    padding: 0.42rem 0.95rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero {
    padding: 4.25rem 0 4.75rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-content {
    max-width: 44rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-content h1 {
    font-size: clamp(2.15rem, 4.8vw, 3.55rem);
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-content p {
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .smart-search-box {
    max-width: min(100%, 42rem);
    margin-bottom: 1.5rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-main {
    min-height: 58px;
    padding: 6px 6px 6px 18px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-search-icon {
    width: 21px;
    height: 21px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-input {
    font-size: 1.05rem;
    padding: 0.6rem 0;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-select {
    font-size: 0.95rem;
    max-width: 110px;
    padding: 0.55rem 0.35rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-pin-icon {
    width: 20px;
    height: 20px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-btn {
    font-size: 1rem;
    padding: 0.7rem 1.45rem;
    min-height: 46px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-btn-icon {
    width: 20px;
    height: 20px;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-tag-label {
    font-size: 0.9rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-tag {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-stats {
    margin-top: 1.5rem;
    gap: 1rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .stat {
    min-width: 140px;
    padding: 1rem 1.35rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .stat-number {
    font-size: 2.15rem;
}

body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .stat-label {
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .main-header {
        --header-h: 80px;
    }

    body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-content h1 {
        font-size: 1.85rem;
    }

    body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .hero-content p {
        font-size: 1rem;
    }

    body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-main {
        min-height: 52px;
    }

    body:not(.role-job-seeker):not(.role-company):not(.role-super-admin) .ssb-input {
        font-size: 1rem;
    }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.2rem;
    justify-content: center;
}

.stat {
    min-width: 130px;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(147, 197, 253, 0.22);
    box-shadow:
        0 12px 32px rgba(5, 8, 22, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 18px 40px rgba(5, 8, 22, 0.4), 0 0 36px rgba(59, 130, 246, 0.15);
}

.stat-number {
    display: block;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 45%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.4));
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.hero-card {
    background: var(--glass-surface);
    border-radius: 24px;
    padding: 1.7rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(59, 130, 246, 0.28);
}

.hero-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1.2rem;
}

.hero-card-actions {
    display: grid;
    gap: 0.8rem;
}

.card-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(5, 8, 22, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card-link:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.18);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.92);
}

.card-link h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card-link p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.section {
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: rgba(11, 18, 32, 0.42);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.06);
}

/* أكاديمية أكاديمية — أكورديون (متناسق مع الثيم الداكن) */
.section-academy-info {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: rgba(11, 18, 32, 0.52);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

.section-academy-info::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% -15%, rgba(59, 130, 246, 0.22), transparent 62%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(29, 78, 216, 0.12), transparent 55%);
}

.academy-info-wrap {
    max-width: 920px;
    position: relative;
    z-index: 1;
}

.academy-info-title {
    text-align: center;
    color: #ffffff;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    text-shadow: 0 0 28px rgba(59, 130, 246, 0.35);
}

.academy-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.academy-acc-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.academy-acc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.3rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.academy-acc-summary::-webkit-details-marker {
    display: none;
}

.academy-acc-summary::marker {
    content: "";
}

.academy-acc-summary:hover {
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 20px rgba(29, 78, 216, 0.35);
}

.academy-acc-label {
    flex: 1;
    text-align: start;
}

.academy-acc-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(225deg);
    transition: transform 0.25s ease;
    margin-inline-start: 0.5rem;
    opacity: 0.95;
}

.academy-acc-item[open] .academy-acc-chevron {
    transform: rotate(45deg);
}

.academy-acc-body {
    background: rgba(15, 23, 42, 0.72);
    border-top: 1px solid rgba(59, 130, 246, 0.14);
    padding: 1.15rem 1.35rem 1.35rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.95rem;
    line-height: 1.9;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.academy-acc-lead {
    margin: 0 0 0.85rem;
    text-align: start;
    color: rgba(241, 245, 249, 0.92);
}

.academy-acc-list {
    margin: 0;
    padding: 0 1.25rem 0 0;
    list-style: disc;
    color: rgba(203, 213, 225, 0.95);
}

html[dir="ltr"] .academy-acc-list {
    padding: 0 0 0 1.25rem;
}

.academy-acc-list li {
    margin-bottom: 0.35rem;
}

.academy-acc-list li::marker {
    color: var(--color-accent-soft);
}

.academy-acc-list li:last-child {
    margin-bottom: 0;
}

.academy-tools-line {
    margin: 0;
    text-align: start;
    color: rgba(226, 232, 240, 0.9);
}

/* —— About Academy page —— */
.page-about-academy .aa-main {
    position: relative;
    z-index: 1;
}

.aa-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

.aa-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 80% at 50% -20%, rgba(59, 130, 246, 0.35), transparent 60%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(29, 78, 216, 0.2), transparent 55%);
}

.aa-hero-inner {
    position: relative;
    text-align: center;
}

.aa-hero-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent-soft);
    background: rgba(29, 78, 216, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.aa-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.aa-hero-title span {
    color: var(--color-accent-soft);
    text-shadow: 0 0 32px rgba(59, 130, 246, 0.45);
}

.aa-hero-sub {
    color: rgba(226, 232, 240, 0.82);
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 0 auto;
}

.aa-body {
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.aa-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.aa-sidebar {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
}

.aa-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: var(--shadow-card);
}

.aa-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: start;
    padding: 0.72rem 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: rgba(226, 232, 240, 0.88);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.aa-nav-item::before {
    content: "";
    width: 4px;
    height: 1.1rem;
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.aa-nav-item:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #fff;
    transform: translateX(-2px);
}

html.lang-en .aa-nav-item:hover {
    transform: translateX(2px);
}

.aa-nav-item.is-active {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.45), rgba(59, 130, 246, 0.28));
    border-color: rgba(96, 165, 250, 0.45);
    color: #fff;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.25);
}

.aa-nav-item.is-active::before {
    background: var(--color-accent-soft);
    box-shadow: 0 0 12px rgba(147, 197, 253, 0.65);
}

.aa-content {
    position: relative;
    min-height: 320px;
}

.aa-panel {
    display: none;
    opacity: 0;
    transform: translateY(14px);
}

.aa-panel.is-active {
    display: block;
    animation: aaPanelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.aa-panel.is-leaving {
    display: block;
    animation: aaPanelOut 0.26s ease forwards;
}

@keyframes aaPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aaPanelOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.aa-card {
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(59, 130, 246, 0.22);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.aa-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: var(--shadow-glow-hover);
}

.aa-card-title {
    margin: 0;
    padding: 1.15rem 1.4rem;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.35), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.aa-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1rem;
    line-height: 1.95;
}

.aa-card-body p {
    margin: 0 0 1rem;
}

.aa-card-body p:last-child {
    margin-bottom: 0;
}

.aa-lead {
    font-size: 1.05rem;
    color: rgba(241, 245, 249, 0.95);
}

.aa-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-values-grid li {
    padding: 0.65rem 0.85rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: rgba(29, 78, 216, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.25);
    font-weight: 600;
    color: rgba(241, 245, 249, 0.95);
    transition: transform 0.2s ease, background 0.2s ease;
}

.aa-values-grid li:hover {
    transform: translateY(-2px);
    background: rgba(29, 78, 216, 0.32);
}

.aa-check-list,
.aa-people-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.aa-check-list li,
.aa-people-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(11, 18, 32, 0.45);
    border: 1px solid rgba(59, 130, 246, 0.14);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.aa-check-list li:hover,
.aa-people-list li:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(29, 78, 216, 0.15);
}

.aa-check-list li::before {
    content: "✓";
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--color-accent-soft);
    font-weight: 800;
    line-height: 1;
}

.aa-people-list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

@media (max-width: 900px) {
    .aa-layout {
        grid-template-columns: 1fr;
    }

    .aa-sidebar {
        position: static;
    }

    .aa-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 0.4rem;
        padding: 0.65rem;
    }

    .aa-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
        font-size: 0.85rem;
        padding: 0.6rem 0.85rem;
    }

    .aa-nav-item::before {
        display: none;
    }

    .aa-nav-item:hover {
        transform: none;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-header h2 span {
    color: var(--color-accent-soft);
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.55), 0 0 48px rgba(29, 78, 216, 0.35);
}

.section-header p {
    color: rgba(255, 255, 255, 0.78);
}

.grid {
    display: grid;
    gap: 1.2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.job-card,
.step-card {
    background: var(--glass-surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.step-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-soft));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.12;
    transition: opacity 0.25s;
}

.feature-card:hover::before,
.step-card:hover::before {
    opacity: 1;
}

.feature-card:hover,
.job-card:hover,
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(255, 255, 255, 0.86);
}

/* ── Feature card icon ──────────────────────────────────────────── */
.feature-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 51, 184, 0.10) 0%, rgba(79, 209, 255, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    transition: background 0.25s, transform 0.25s;
}

.feature-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-primary);
    transition: stroke 0.25s;
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: scale(1.08) rotate(-4deg);
}

.feature-card:hover .feature-card-icon svg {
    stroke: #ffffff;
}

.feature-card h3,
.job-card h3,
.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.feature-card p,
.job-card p,
.step-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.job-meta,
.course-meta {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.job-text {
    margin-bottom: 0.6rem;
}

.job-link {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.jobs-page-hero {
    margin-bottom: 1.6rem;
}

.jobs-page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
    color: #ffffff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.jobs-page-hero p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 42rem;
    overflow-wrap: break-word;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

/* ── Skeleton loading cards ─────────────────────────────────────── */
.skeleton-card {
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    padding: 1.6rem;
    border: 1px solid rgba(10, 51, 184, 0.08);
    box-shadow: 0 8px 24px rgba(10, 51, 184, 0.07);
}

.skeleton-line {
    border-radius: 8px;
    background: linear-gradient(90deg, #e8edf5 25%, #f3f6fb 50%, #e8edf5 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-title {
    height: 18px;
    width: 65%;
    margin-bottom: 0.65rem;
}

.skeleton-sub {
    height: 13px;
    width: 40%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 11px;
    margin-bottom: 0.45rem;
}

.skeleton-text:last-of-type {
    width: 75%;
}

.skeleton-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.skeleton-badge {
    height: 26px;
    width: 70px;
    border-radius: 999px;
}

.skeleton-btn {
    height: 36px;
    width: 90px;
    border-radius: 999px;
    margin-right: auto;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.job-card-modern {
    background: #fff;
    border-radius: 22px;
    padding: 1.7rem 1.6rem;
    box-shadow: 0 4px 24px rgba(10, 51, 184, 0.09);
    border: 1.5px solid rgba(10, 51, 184, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.job-card-modern::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.22s;
}

.job-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(10, 51, 184, 0.22), 0 0 0 1.5px rgba(10, 51, 184, 0.15);
    border-color: rgba(10, 51, 184, 0.22);
}

.job-card-modern:hover::before {
    opacity: 1;
}

/* Header row */
.jcm-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.jcm-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10,51,184,0.13), rgba(79,209,255,0.22));
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(10,51,184,0.10);
    box-shadow: 0 4px 14px rgba(10,51,184,0.10);
}

.jcm-meta {
    flex: 1;
    min-width: 0;
}

.jcm-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.15rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jcm-company {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 600;
}

.jcm-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Excerpt */
.jcm-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags row */
.jcm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.jcm-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.jcm-tag svg {
    width: 12px;
    height: 12px;
}

.jcm-tag-loc {
    background: rgba(10, 51, 184, 0.07);
    color: var(--color-primary);
}

.jtype-full {
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
}

.jtype-part {
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
}

.jtype-remote {
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
}

.jtype-default {
    background: rgba(100, 116, 139, 0.10);
    color: #475569;
}

/* Footer row */
.jcm-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.jcm-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
    box-shadow: 0 6px 20px rgba(10, 51, 184, 0.28);
}

.jcm-apply-btn svg {
    width: 15px;
    height: 15px;
}

.jcm-apply-btn:hover {
    box-shadow: 0 10px 28px rgba(10, 51, 184, 0.40);
    transform: translateY(-1px);
}

.jcm-apply-btn.is-applied {
    background: linear-gradient(120deg, #10b981, #34d399);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
    pointer-events: none;
}

.apply-page {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
}

.apply-shell {
    width: 100%;
    max-width: 760px;
}

.apply-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 16px 36px rgba(10, 51, 184, 0.14);
    border: 1px solid rgba(10, 51, 184, 0.1);
}

.apply-job-summary {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.apply-job-summary h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.apply-job-summary p {
    color: var(--color-muted);
}

.apply-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.apply-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.apply-form-group.full-width {
    grid-column: 1 / -1;
}

.apply-form-group label {
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 600;
}

.apply-form-group input,
.apply-form-group textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(10, 51, 184, 0.16);
    padding: 0.75rem 0.85rem;
    font: inherit;
    outline: none;
    background: #f9fbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.apply-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.apply-form-group input:focus,
.apply-form-group textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 51, 184, 0.14);
}

.file-input-box {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(10, 51, 184, 0.24);
    background: rgba(10, 51, 184, 0.04);
}

.apply-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.1rem;
}

.apply-submit {
    min-width: 180px;
}

.page-note {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-top: 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

.badge-free {
    background: rgba(79, 209, 255, 0.12);
    color: #0284c7;
}

.badge-paid {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ── Home courses cards (index.html) ── */
.home-course-card {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 1.5px solid rgba(10,51,184,0.10);
    box-shadow: 0 8px 32px rgba(10,51,184,0.10);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
}

.home-course-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-gold));
    border-radius: 20px 20px 0 0;
}

.home-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(10,51,184,0.18);
    border-color: rgba(10,51,184,0.22);
}

.hcc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.hcc-badge {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
}

.hcc-badge-free {
    background: rgba(16,185,129,0.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
}

.hcc-badge-paid {
    background: rgba(245,158,11,0.12);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.25);
}

.hcc-level {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
}

.hcc-icon {
    font-size: 2.4rem;
    margin: 0.3rem 0 0.2rem;
}

.hcc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hcc-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.hcc-btn {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, #0a33b8, #1a6fff);
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.18s, transform 0.18s;
    align-self: flex-start;
}

.hcc-btn:hover {
    opacity: 0.88;
    transform: translateX(-2px);
}

.badge-pending {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-success {
    background: rgba(10, 51, 184, 0.1);
    color: #0a33b8;
}

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

/* ── Job Categories Grid (index.html) ───────────────────────────── */
.job-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.jcat-card {
    background: var(--glass-surface);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
    color: var(--color-text);
    text-decoration: none;
}

.jcat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(255, 255, 255, 0.88);
}

.jcat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.75));
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
}

.jcat-icon svg {
    width: 26px;
    height: 26px;
}

.jcat-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.55;
    transition: opacity 0.2s, transform 0.2s;
}

.jcat-arrow svg {
    width: 20px;
    height: 20px;
}

.jcat-content {
    flex: 1;
}

.jcat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.jcat-card:hover .jcat-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.jcat-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── Learning Paths (index.html) ─────────────────────────────────── */
.lpath-card {
    background: var(--glass-surface);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
    position: relative;
    overflow: hidden;
}

.lpath-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-soft));
    border-radius: 20px 20px 0 0;
}

.lpath-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(59, 130, 246, 0.32);
    background: rgba(255, 255, 255, 0.88);
}

.lpath-featured {
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.95), rgba(59, 130, 246, 0.88));
    border-color: rgba(147, 197, 253, 0.25);
    box-shadow: 0 20px 50px rgba(29, 78, 216, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.lpath-featured:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.98), rgba(96, 165, 250, 0.92));
    border-color: rgba(191, 219, 254, 0.35);
}

.lpath-featured::before {
    background: rgba(255, 255, 255, 0.20);
}

.lpath-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.8));
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: var(--color-primary);
}

.lpath-icon svg {
    width: 28px;
    height: 28px;
}

.lpath-featured .lpath-icon {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e0f2fe;
}

.lpath-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.lpath-featured .lpath-title {
    color: #fff;
}

.lpath-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.lpath-featured .lpath-desc {
    color: rgba(255, 255, 255, 0.85);
}

.lpath-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0a33b8, #1a6fff);
    color: #fff;
    align-self: flex-start;
    transition: opacity 0.2s, transform 0.2s;
}

.lpath-btn:hover {
    opacity: 0.85;
    transform: translateX(-2px);
}

.lpath-featured .lpath-btn {
    background: #fff;
    color: var(--color-primary);
}

.lpath-featured .lpath-btn:hover {
    opacity: 0.90;
}

.applications-list {
    display: grid;
    gap: 1rem;
}

.application-card {
    display: block;
}

.application-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.9rem;
}

.application-date {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.steps-grid {
    align-items: flex-start;
}

.step-card {
    position: relative;
    padding-top: 1.6rem;
}

.step-number {
    position: absolute;
    top: 0.65rem;
    left: 1rem;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Scroll reveal animations ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ── Partners marquee ────────────────────────────────────────── */
.partners-section {
    padding-bottom: 0;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    direction: ltr;
    padding: 1rem 0 2rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-scroll 55s linear infinite;
}

.marquee-track img {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    margin-right: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.marquee-track img:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-glow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* photos-duo (kept for reference) */
.photos-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.photos-duo-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 11, 58, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photos-duo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(2, 11, 58, 0.45);
}

.photos-duo-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 640px) {
    .photos-duo {
        grid-template-columns: minmax(0, 1fr);
    }
    .marquee-track img {
        height: 70px;
        max-width: 140px;
    }
}

.admin-course-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1.2rem;
    margin-bottom: 0.75rem;
}

/* ── Staff / Course request cards (company dashboard) ─────────── */
.staff-request-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.src-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.97rem;
    font-weight: 600;
    color: #ffffff;
}

.src-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.staff-request-card .dashboard-btn-delete {
    align-self: flex-end;
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    margin-top: 0.2rem;
}
/* inside a white dash-card — override to dark text */
.dash-card .staff-request-card {
    background: rgba(10,51,184,0.05);
    border-color: rgba(10,51,184,0.15);
}
.dash-card .src-row  { color: #1e293b; }
.dash-card .src-meta { color: #475569; }
.dash-card .staff-request-card strong { color: #0f172a; font-weight: 700; }

/* ── Courses page ────────────────────────────────────────────────── */
/* .courses-grid — responsive definition lives later (single source) */

.course-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(2,11,58,0.4);
}

.course-card-body {
    padding: 1.4rem 1.4rem 0.8rem;
    flex: 1;
}

.course-badge {
    display: inline-block;
    background: rgba(99,157,255,0.22);
    color: #a8c8ff;
    border: 1px solid rgba(99,157,255,0.35);
    border-radius: 20px;
    font-size: 0.73rem;
    padding: 0.2rem 0.75rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.course-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.course-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.992);
    line-height: 1.55;
    margin: 0 0 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.course-seats {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.course-card-footer {
    padding: 0.9rem 1.4rem 1.2rem;
}

.btn-enrolled {
    background: rgba(34,197,94,0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34,197,94,0.35) !important;
    cursor: default !important;
}

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,11,58,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #0e2060;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    padding: 2rem 2.2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(2,11,58,0.6);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.7rem;
}

.modal-body {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 1.4rem;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.career-banner {
    position: relative;
    min-height: 430px;
    padding: 3.5rem 0;
    background:
        radial-gradient(ellipse 90% 80% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(165deg, rgba(11, 18, 32, 0.75), rgba(5, 8, 22, 0.88));
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
}

.career-banner-inner {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.career-banner-inner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.career-banner-inner p {
    font-size: 0.98rem;
    line-height: 1.9;
    color: #e5e7eb;
}

.main-footer {
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.92) 0%, rgba(11, 18, 32, 0.9) 55%, rgba(17, 24, 39, 0.92) 100%);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    color: #e5e7eb;
    padding: 3rem 0 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.14);
    box-shadow: 0 -24px 60px rgba(5, 8, 22, 0.45);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.footer-about {
    font-size: 0.88rem;
    color: rgba(209, 213, 219, 0.85);
    line-height: 1.7;
}

.footer-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--color-accent);
    margin-top: 0.3rem;
    transition: opacity 0.2s;
}

.footer-site-link::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.9;
}

.footer-site-link:hover {
    opacity: 0.8;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.88rem;
}

.footer-contact-list li,
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(226, 232, 255, 0.9);
}

.footer-contact-item {
    position: relative;
    padding-inline-start: 1.45rem;
}

.footer-contact-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.9;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer-contact-item--landline::before,
.footer-contact-item--mobile::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.13.81.36 1.6.7 2.34a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.74.34 1.53.57 2.34.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
}

.footer-contact-item--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.footer-contact-list a {
    color: rgba(226, 232, 255, 0.9);
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-contact-note {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.8);
}

.footer-bottom {
    padding: 1.1rem 0;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.75);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-logo-img {
    width: 210px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.6rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(226, 232, 255, 0.9);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.9);
}

/* Auth pages */
.auth-page {
    padding: 2.5rem 0 3rem;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: 0 32px 64px rgba(2, 11, 58, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    pointer-events: none;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.4rem;
}

.auth-form-group {
    margin-bottom: 0.9rem;
}

.auth-form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.18);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f9fbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form-group textarea,
.auth-form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 51, 184, 0.18);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f9fbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    resize: vertical;
}

.auth-form-group select {
    border-radius: 999px;
    resize: none;
    cursor: pointer;
}

.auth-form-group input:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 51, 184, 0.18);
}

.auth-form-group textarea:focus,
.auth-form-group select:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 51, 184, 0.18);
}

.auth-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
}

.auth-forgot {
    font-size: 0.85rem;
    color: var(--color-primary);
}

.auth-forgot:hover {
    opacity: 0.9;
}

/* ── Auth split layout (login / register) ─────────────────────── */
body.auth-split-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(100% 80% at 100% 20%, rgba(56, 189, 248, 0.12), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(99, 102, 241, 0.14), transparent 50%),
        linear-gradient(165deg, #020617 0%, #0f172a 38%, #0b1128 100%);
    animation: none;
}

@media (min-width: 901px) {
    html:has(body.auth-split-page) {
        height: 100%;
        overflow: hidden;
    }

    body.auth-split-page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
}

/* FloatingLines-style canvas (login / register) — see auth-floating-lines.js */
.auth-floating-lines-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.auth-floating-lines-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Reusable floating-lines layer inside cards / panels */
.maher-fl-host {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.maher-fl-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
}

.maher-fl-host > *:not(.maher-fl-wrap) {
    position: relative;
    z-index: 1;
}

/* Reset-password + similar pages with header/main/footer */
body.maher-auth-floating .main-header,
body.maher-auth-floating > main,
body.maher-auth-floating > footer {
    position: relative;
    z-index: 1;
}

.auth-split {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 38vw);
    grid-template-areas: "panel brand";
}

@media (min-width: 901px) {
    body.auth-split-page .auth-split {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }
}

html[dir="rtl"] .auth-split {
    grid-template-columns: minmax(300px, 38vw) minmax(0, 1fr);
    grid-template-areas: "brand panel";
}

.auth-split-brand {
    grid-area: brand;
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    color: #f1f5f9;
    background: linear-gradient(165deg, #0a1744 0%, #0c2468 42%, #152a6e 100%);
    overflow: hidden;
    min-height: 0;
}

@media (min-width: 901px) {
    .auth-split-brand {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
    }
}

.auth-split-brand::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background: radial-gradient(ellipse at 30% 0%, rgba(56, 189, 248, 0.22), transparent 55%);
    pointer-events: none;
}

.auth-split-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}

.auth-split-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-split-brand-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.auth-split-brand-title {
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
    color: #f8fafc;
}

.auth-split-brand-accent {
    color: #fbbf24;
    font-weight: 900;
}

.auth-split-brand-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.88);
    margin: 0;
    max-width: 28rem;
}

.auth-split-features {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-split-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(241, 245, 249, 0.92);
}

.auth-split-feature-ic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #7dd3fc;
}

.auth-split-feature-ic svg {
    width: 18px;
    height: 18px;
}

.auth-split-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
    margin-top: 0.25rem;
}

.auth-split-stat {
    min-width: 5.5rem;
}

.auth-split-stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.1;
}

.auth-split-stat-lbl {
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.75);
    margin-top: 0.2rem;
    line-height: 1.35;
}

.auth-split-quote {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-split-quote p {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.92);
    font-style: italic;
}

.auth-split-quote cite {
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    color: #e2e8f0;
}

.auth-split-quote span {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    margin-top: 0.15rem;
}

.auth-split-panel {
    grid-area: panel;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(0.85rem, 2.5vw, 1.5rem);
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(2, 6, 23, 0.65) 100%);
    min-height: 0;
}

@media (min-width: 901px) {
    .auth-split-panel {
        overflow-y: auto;
        overscroll-behavior: contain;
        justify-content: center;
    }
}

.auth-split-panel-inner {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

@media (min-width: 901px) {
    .auth-split-panel-inner {
        max-height: 100%;
        justify-content: center;
    }
}

.auth-split-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-split-toolbar .lang-switch {
    margin: 0;
}

.auth-split-toolbar .lang-btn {
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(226, 232, 240, 0.9);
    background: rgba(15, 23, 42, 0.45);
}

.auth-split-toolbar .lang-btn:hover {
    border-color: rgba(56, 189, 248, 0.45);
    color: #f8fafc;
}

.auth-split-toolbar .lang-btn.lang-btn-active {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.15);
    color: #e0f2fe;
}

.auth-split-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7dd3fc;
    text-decoration: none;
}

.auth-split-back:hover {
    text-decoration: underline;
}

.auth-split-back svg {
    width: 1em;
    height: 1em;
}

.auth-split-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-radius: 22px;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.18),
        0 28px 64px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    border: 1px solid rgba(71, 85, 105, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-split-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #bae6fd;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.35);
    margin-bottom: 0.85rem;
}

.auth-split-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

.auth-split-card .auth-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #f8fafc;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.auth-split-card .auth-subtitle {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
    margin-bottom: 1.35rem;
    line-height: 1.55;
}

.auth-split-input-wrap {
    position: relative;
}

.auth-split-input-wrap > input {
    width: 100%;
    padding-block: 0.72rem;
    padding-inline-start: 2.55rem;
    padding-inline-end: 2.55rem;
    border-radius: 14px;
    border: 1px solid rgba(100, 116, 139, 0.45);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    background: rgba(15, 23, 42, 0.55);
    color: #f1f5f9;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-split-input-wrap > input:focus {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.auth-split-input-ic {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(148, 163, 184, 0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-split-input-ic svg {
    width: 18px;
    height: 18px;
}

.auth-split-pw-toggle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(148, 163, 184, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-split-pw-toggle:hover {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
}

.auth-split-pw-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-split-card .auth-form-group {
    margin-bottom: 1rem;
}

.auth-split-card .auth-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
}

.auth-split-row {
    display: flex;
    justify-content: flex-end;
    margin: -0.35rem 0 0.85rem;
}

.auth-split-card .auth-forgot {
    color: #7dd3fc;
}

.auth-split-card .auth-submit {
    margin-top: 0.25rem;
}

.auth-split-card .btn-primary.btn-full {
    border-radius: 14px;
    padding-block: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(10, 51, 184, 0.28);
}

.auth-split-switch {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.82);
}

.auth-split-switch a {
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
}

.auth-split-switch a:hover {
    text-decoration: underline;
}

.auth-split-foot {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.75);
}

.auth-split-foot .footer-copy-year {
    display: inline;
}

.auth-split-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding-inline-end: 4px;
    margin-inline-end: -4px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

@media (min-width: 901px) {
    .auth-split-card:has(.auth-split-scroll) {
        max-height: min(78dvh, 640px);
    }

    .auth-split-scroll {
        max-height: none;
    }
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "panel";
    }

    html[dir="rtl"] .auth-split {
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "panel";
    }

    .auth-split-brand {
        min-height: auto;
        padding-bottom: 1.25rem;
    }

    .auth-split-stats {
        justify-content: flex-start;
    }

    .auth-split-quote {
        display: none;
    }

    .auth-split-scroll {
        max-height: none;
        overflow: visible;
    }
}

/* ── Forgot-password 3-step page ── */
.fp-hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.8rem;
    display: block;
    background: center / contain no-repeat;
    filter: drop-shadow(0 4px 12px rgba(10, 51, 184, 0.2));
    animation: fp-bounce 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

.fp-hero-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: center / 72% no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a33b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
}

.fp-hero-icon--code::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a33b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

.fp-hero-icon--lock::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a33b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

@keyframes fp-bounce {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); }
}

/* Steps progress dots */
.fp-step .auth-title {
    text-align: center;
}
.fp-step .auth-subtitle {
    text-align: center;
}

.otp-row {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.6rem 0 0.6rem;
    direction: ltr;
}

.otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2.5px solid #dbeafe;
    border-radius: 12px;
    background: #f0f7ff;
    color: #0a33b8;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
    caret-color: transparent;
    box-shadow: 0 2px 8px rgba(10,51,184,0.07);
}

.otp-digit:focus {
    border-color: #0a33b8;
    box-shadow: 0 0 0 4px rgba(10,51,184,0.12), 0 2px 8px rgba(10,51,184,0.1);
    background: #fff;
    transform: translateY(-2px) scale(1.06);
}

.otp-digit:not(:placeholder-shown) {
    border-color: #0a33b8;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #0a33b8;
}

/* divider between groups of 4 */
.otp-row .otp-digit:nth-child(4) {
    margin-left: 0.6rem;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}

.btn-text-link:hover { opacity: 0.8; }
.btn-text-link:disabled { color: #94a3b8; text-decoration: none; cursor: default; }

.auth-submit {
    margin-top: 0.4rem;
}

.auth-footer-text {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
}

.auth-footer-text a {
    color: var(--color-primary);
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: none;
}

.form-status-error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.8);
}

.form-status-success {
    display: block;
    background: rgba(79, 209, 255, 0.12);
    color: #0369a1;
    border: 1px solid rgba(79, 209, 255, 0.6);
}

.btn-loading {
    opacity: 0.7;
    cursor: default;
}

.btn-loading:hover {
    transform: none;
    box-shadow: inherit;
}

.register-card {
    max-width: 540px;
}

.register-type-switch {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.register-type-btn {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.2);
    background: #f3f6ff;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-muted);
    transition: all 0.2s ease;
}

.register-type-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.register-type-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(10, 51, 184, 0.35);
}

.register-forms {
    margin-top: 0.2rem;
}

.register-form {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course access */
.course-access-page {
    padding: 2.5rem 0 3rem;
}

.course-access-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.course-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    max-width: 560px;
    margin: 0 auto;
}

.course-access-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.1rem;
    box-shadow: var(--shadow-soft);
	border: 1px solid rgba(10, 51, 184, 0.12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.course-access-card h3 {
    font-size: 1.05rem;
}

.course-access-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.course-access-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(10, 51, 184, 0.35);
    border-color: rgba(10, 51, 184, 0.5);
    background: linear-gradient(135deg, #ffffff, #e3ebff);
}

.dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.dashboard-admin-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 51, 184, 0.16);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.dashboard-section {
    margin-top: 1.5rem;
}

.dashboard-section h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 51, 184, 0.12);
    box-shadow: 0 10px 24px rgba(10, 51, 184, 0.15);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dashboard-stat-label {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.dashboard-stat-card strong {
    font-size: 1.6rem;
    color: var(--color-primary);
}

.dashboard-table-wrap {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 51, 184, 0.1);
    box-shadow: 0 10px 22px rgba(10, 51, 184, 0.12);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
    text-align: right;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.88rem;
    vertical-align: middle;
}

.dashboard-table th {
    color: #0f172a;
    background: rgba(10, 51, 184, 0.05);
    font-weight: 700;
}

.dashboard-table td {
    color: #1f2937;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dashboard-table-wrap--courses {
    max-height: min(62vh, 520px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table--courses thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(241, 245, 249, 0.98);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.25);
}

.dashboard-table--courses .dashboard-actions {
    max-width: 11rem;
}

.dashboard-table--courses .dashboard-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
}

.adm-courses-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 0.5rem 0.25rem 0;
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.85);
}

.adm-courses-pagination-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.adm-courses-pagination-btns button {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.adm-courses-pagination-btns button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.adm-courses-pagination-btns button:not(:disabled):hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(239, 246, 255, 0.95);
}

.dashboard-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
}

.dashboard-btn-edit {
    background: rgba(10, 51, 184, 0.12);
    color: var(--color-primary);
}

.dashboard-btn-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.dashboard-btn-reset-pwd {
    background: rgba(234, 179, 8, 0.13);
    color: #92400e;
}
.dashboard-btn-reset-pwd:hover {
    background: rgba(234, 179, 8, 0.25);
}

.dashboard-btn-accept {
    background: rgba(79, 209, 255, 0.13);
    color: #0a33b8;
}

.dashboard-btn-reject {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.dashboard-btn-export {
    background: rgba(10, 51, 184, 0.1);
    color: #0a33b8;
    border: 1px solid rgba(10, 51, 184, 0.25);
    font-weight: 600;
}

/* admin badge roles & statuses */
.badge-role-seeker  { background: rgba(79,209,255,0.15); color: #0a33b8; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; }
.badge-role-company { background: rgba(10,51,184,0.13);  color: #0a33b8; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; }
.badge-role-admin   { background: rgba(245,158,11,0.15); color: #92400e; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; }
.badge-accepted     { background: rgba(34,197,94,0.35);  color: #d1fae5; border: 1px solid rgba(34,197,94,0.5);  padding: 0.22rem 0.75rem; border-radius: 999px; font-size: 0.79rem; font-weight: 600; white-space: nowrap; }
.badge-rejected     { background: rgba(239,68,68,0.35);  color: #fee2e2; border: 1px solid rgba(239,68,68,0.5);  padding: 0.22rem 0.75rem; border-radius: 999px; font-size: 0.79rem; font-weight: 600; white-space: nowrap; }
.badge-pending-status { background: rgba(251,191,36,0.35); color: #fef9c3; border: 1px solid rgba(251,191,36,0.5); padding: 0.22rem 0.75rem; border-radius: 999px; font-size: 0.79rem; font-weight: 600; white-space: nowrap; }

/* ── My course requests grid (courses.html – company view) ── */
.my-requests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.req-card {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.40);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.req-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.req-card-title { font-size: 1rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.req-card-meta  { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.83rem; color: #fff; opacity: 0.92; }
.req-card-desc  { font-size: 0.82rem; color: rgba(255,255,255,0.80); margin: 0; }
.btn-link { color: #7dd3fc; text-decoration: underline; font-size: 0.85rem; }
.section-sub-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

/* admin search / filter */
.admin-search {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.2);
    font-family: inherit;
    font-size: 0.87rem;
    outline: none;
    min-width: 200px;
    background: rgba(255,255,255,0.92);
}
.admin-search:focus { border-color: var(--color-primary); }

.admin-select {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.2);
    font-family: inherit;
    font-size: 0.87rem;
    background: rgba(255,255,255,0.92);
    cursor: pointer;
}

.admin-select-sm {
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(10, 51, 184, 0.2);
    font-family: inherit;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.92);
    cursor: pointer;
}

.admin-filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.82rem;
}
.btn-link:hover { text-decoration: underline; }

.phone-link {
    color: #0a33b8;
    font-size: 0.82rem;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}
.phone-link:hover { text-decoration: underline; }

.admin-main-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-nav-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-nav-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.85);
}

.admin-nav-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Admin Dashboard Hero ───────────────────────────────────────── */
.admin-hero {
    background: linear-gradient(135deg, #060e3a 0%, #0a33b8 60%, #1a4fdf 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.admin-hero h1 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0.25rem 0;
}

/* ── Company Dashboard ─────────────────────────────────────────── */
.company-dash-hero {
    background: linear-gradient(135deg, #0a33b8, #1a4fdf 60%, #0e60e0);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    margin-bottom: 1.6rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(10, 51, 184, 0.4);
    flex-wrap: wrap;
}

.company-dash-hero-content {
    flex: 1;
    min-width: 0;
}

.company-dash-welcome {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.company-dash-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.company-dash-sub {
    opacity: 0.82;
    font-size: 0.95rem;
}

.company-dash-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.company-dash-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 0.85rem 1.4rem;
    text-align: center;
    min-width: 90px;
    backdrop-filter: blur(4px);
}

.company-dash-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.company-dash-stat-label {
    font-size: 0.78rem;
    opacity: 0.8;
}

.dash-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.dash-tab {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--color-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dash-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.dash-tab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(10, 51, 184, 0.3);
}

.dash-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 14px 32px rgba(10, 51, 184, 0.12);
    border: 1px solid rgba(10, 51, 184, 0.1);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    flex-wrap: wrap;
}

.dash-card-header .dash-card-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
}

.dash-card-title {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--color-text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Post Job Form grid */
.pjf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.pjf-full {
    grid-column: 1 / -1;
}

.post-job-form textarea,
.company-info-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(10, 51, 184, 0.18);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f9fbff;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-job-form textarea:focus,
.company-info-form textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 51, 184, 0.14);
}

.post-job-form select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 51, 184, 0.18);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f9fbff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.post-job-form select:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 51, 184, 0.14);
}

/* Company jobs list */
.company-job-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.company-job-item:last-child {
    border-bottom: none;
}

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

.company-job-info h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.company-job-date {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-inline-start: 0.2rem;
}

.company-job-actions {
    flex-shrink: 0;
}

.badge-cat {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

/* Misc utilities */
.no-data-msg {
    color: var(--color-muted);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.95rem;
}

#coursesMsg.section-intro {
    color: rgba(226, 232, 240, 0.88);
    font-size: 1.05rem;
    padding: 2rem 1rem;
}

.section-intro {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .pjf-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pjf-full {
        grid-column: 1;
    }

    .company-job-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .company-dash-hero h1 {
        font-size: 1.5rem;
    }
    .company-dash-stats {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .header-inner {
        padding: 0.7rem 0;
    }

    .auth-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat {
        width: 100%;
    }

    .career-banner {
        min-height: 320px;
        padding: 2.5rem 0;
    }

    .career-banner-inner h2 {
        font-size: 1.7rem;
    }

    .career-banner-inner p {
        font-size: 0.9rem;
    }

    .course-access-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Role-based experience */
.role-quick-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(2, 11, 58, 0.95), rgba(6, 27, 99, 0.95));
    backdrop-filter: blur(4px);
}

.role-quick-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1.5rem;
}

.role-quick-title {
    color: #dbeafe;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.role-quick-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.role-quick-link {
    border: 1px solid rgba(191, 219, 254, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #eff6ff;
    border-radius: 999px;
    padding: 0.32rem 0.82rem;
    font-size: 0.82rem;
    transition: 0.2s ease;
}

.role-quick-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(191, 219, 254, 0.75);
}

.role-home {
    padding: 3rem 0 3.2rem;
}

.role-home-hero {
    border-radius: 22px;
    padding: 1.8rem 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.28);
}

.role-home-hero-admin {
    background: linear-gradient(135deg, #111827, #334155);
}

.role-home-welcome {
    opacity: 0.85;
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
}

.role-home-hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.45rem;
}

.role-home-hero p {
    max-width: 760px;
}

.role-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.role-home-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.05rem 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-home-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.role-home-card p {
    color: #475569;
    font-size: 0.88rem;
}

.role-home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.role-home-grid-admin .role-home-card {
    min-height: 140px;
    border-left: 4px solid var(--color-primary);
}

body.role-job-seeker,
body.role-company,
body.role-super-admin {
    background-color: var(--maher-space);
    background-image:
        radial-gradient(ellipse 130% 85% at 12% -8%, rgba(29, 78, 216, 0.55), transparent 55%),
        radial-gradient(ellipse 100% 70% at 92% 8%, rgba(59, 130, 246, 0.28), transparent 52%),
        radial-gradient(ellipse 80% 55% at 48% 108%, rgba(17, 24, 39, 0.92), transparent 58%),
        linear-gradient(168deg, #050816 0%, #0b1220 42%, #111827 78%, #0b1220 100%);
    background-attachment: fixed;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: maherAuroraDrift 24s ease-in-out infinite alternate;
}

body.role-job-seeker .main-header,
body.role-company .main-header,
body.role-super-admin .main-header {
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.97) 0%,
        rgba(17, 24, 39, 0.99) 100%
    );
}

body.role-job-seeker .role-home-hero {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85), rgba(59, 130, 246, 0.65));
}

body.role-company .role-quick-nav {
    background: linear-gradient(90deg, rgba(2,11,58,0.95), rgba(10,51,184,0.95));
}

body.role-company .role-home-hero {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85), rgba(59, 130, 246, 0.65));
}

body.role-super-admin .role-home-hero-admin {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(51, 65, 85, 0.85));
}

@media (max-width: 900px) {
    .role-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .role-quick-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 1rem;
    }

    .role-home {
        padding-top: 2rem;
    }

    .role-home-hero h1 {
        font-size: 1.45rem;
    }

    .role-home-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

/* ── Page headings on dark gradient backgrounds ──────────────────
   Targets h1 / p that are NOT inside white cards (auth-card,
   dash-card, apply-card etc.) but sit directly on the dark body.
   Covers: courses, contact, job-details, profile, my-applications
   ─────────────────────────────────────────────────────────────── */
.section .container > h1,
.section .container > div > h1 {
    color: #ffffff;
}

.section .container > p,
.section .container > div > p {
    color: rgba(255, 255, 255, 0.82);
}

/* profile-page bare h1 */
.profile-page .container > h1 {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════
   FULL MOBILE RESPONSIVE  — covers all pages, all components
   ═══════════════════════════════════════════════════════════════════ */

/* ── 768px: tablets & large phones ─────────────────────────────── */
@media (max-width: 768px) {

    /* --- Navigation -------------------------------------------- */
    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .main-nav {
        display: none;
        position: fixed;
        inset-inline: 0.75rem;
        top: calc(var(--header-h, 72px) + 0.5rem);
        flex-direction: column;
        align-items: stretch;
        flex: none;
        padding: 0.65rem;
        gap: 0.2rem;
        z-index: 9999;
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.2);
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 24px 48px rgba(2, 6, 23, 0.65);
    }

    .main-nav.open {
        display: flex;
    }

    /* Mobile logout link inside nav dropdown */
    .nav-logout-mobile {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        min-height: 44px;
        color: rgba(255, 100, 100, 0.95);
        background: rgba(255, 80, 80, 0.08);
        border: none;
        cursor: pointer;
        margin-top: 0.5rem;
        font-family: inherit;
        font-weight: 600;
        border-top: 1px solid rgba(148, 163, 184, 0.15);
        padding-top: 1rem;
    }

    .nav-logout-mobile:hover {
        background: rgba(255, 80, 80, 0.18);
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        min-height: 44px;
        font-size: 0.92rem;
        border-radius: 10px;
        justify-content: flex-start;
        color: rgba(248, 250, 252, 0.92);
    }

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

    .nav-link.active {
        background: rgba(56, 189, 248, 0.15);
    }

    .main-header {
        --header-h: 64px;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    /* Performance: disable heavy animations on mobile */
    body {
        background-attachment: scroll;
    }

    .hero::before {
        animation: none;
    }

    .hero::after {
        animation: none;
    }

    .btn-primary::after {
        display: none;
    }

    .lang-switch {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .auth-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Fix: English button invisible on dark panel background */
    .lsp-lang-float {
        background: rgba(5, 15, 55, 0.55);
        border-color: rgba(255, 255, 255, 0.22);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lsp-lang-float .lang-btn {
        color: rgba(255, 255, 255, 0.8);
    }

    .lsp-lang-float .lang-btn:hover {
        color: #ffffff;
    }

    .header-inner {
        position: relative;
        flex-wrap: nowrap;
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .header-main-group {
        flex: 1;
        gap: 0;
    }

    .logo-img {
        width: auto;
        height: 62px;
        max-height: 66px;
        max-width: 150px;
    }

    .lang-switch {
        order: 2;
        padding: 2px;
    }
    .lang-switch::before { padding-inline: 0.3rem 0.05rem; }

    .lang-btn {
        padding: 0.2rem 0.55rem;
        font-size: 0.7rem;
    }

    .user-menu {
        gap: 0.25rem;
        padding: 0.2rem;
        border-radius: 12px;
    }

    .user-info {
        display: none;
    }

    .user-menu-divider,
    .user-menu .btn-settings {
        display: none;
    }

    .user-menu #authLogoutBtn,
    .user-menu .header-logout-btn {
        display: none;
    }

    /* --- Hero -------------------------------------------------- */
    .hero {
        padding: 2.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-stats .stat {
        min-width: 110px;
    }

    /* --- Grids ------------------------------------------------- */
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* --- Dashboard stats -------------------------------------- */
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* --- Admin / Company hero banners ------------------------- */
    .admin-hero,
    .company-dash-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.3rem 1.2rem;
        gap: 1rem;
    }

    .admin-hero h1 {
        font-size: 1.35rem;
    }

    .company-dash-hero h1 {
        font-size: 1.5rem;
    }

    .company-dash-stats {
        flex-wrap: wrap;
        gap: 0.7rem;
    }

    .company-dash-stat {
        min-width: 75px;
        padding: 0.6rem 0.9rem;
    }

    .company-dash-stat-num {
        font-size: 1.5rem;
    }

    /* --- Dash tabs: horizontal scroll on mobile --------------- */
    .dash-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dash-tabs::-webkit-scrollbar { display: none; }

    .dash-tab {
        flex-shrink: 0;
        padding: 0.48rem 1rem;
        font-size: 0.84rem;
    }

    /* --- Dash card -------------------------------------------- */
    .dash-card {
        padding: 1.1rem 1rem;
    }

    .dash-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* --- Filter row ------------------------------------------- */
    .admin-filter-row {
        width: 100%;
    }

    .admin-search {
        width: 100%;
        min-width: unset;
    }

    /* --- Post-job form grid ----------------------------------- */
    .pjf-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* --- Career banner ---------------------------------------- */
    .career-banner {
        min-height: 260px;
        padding: 2.5rem 0;
    }

    .career-banner-inner h2 {
        font-size: 1.55rem;
    }

    /* --- Jobs page hero --------------------------------------- */
    .jobs-page-hero h1 {
        font-size: 1.5rem;
    }
}

/* ── 640px: small phones ─────────────────────────────────────── */
@media (max-width: 640px) {

    .container {
        padding: 0 0.9rem;
    }

    /* --- Hero -------------------------------------------------- */
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.45rem;
        line-height: 1.55;
    }

    .hero-content p {
        font-size: 0.88rem;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .hero-stats .stat {
        min-width: 95px;
        padding: 0.55rem 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .smart-search-box {
        max-width: 100%;
    }

    .ssb-dropdown {
        max-height: min(18rem, 45vh);
    }

    .ssb-main {
        border-radius: 20px;
        padding: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ssb-input-wrap {
        width: 100%;
        padding: 0 10px;
    }

    .ssb-divider {
        display: none;
    }

    .ssb-select-wrap {
        padding: 0 12px;
        width: calc(100% - 120px);
    }

    .ssb-select {
        max-width: 100%;
        width: 100%;
    }

    .ssb-btn {
        width: 110px;
        justify-content: center;
        padding: 0.72rem 1rem;
    }

    /* --- All main grids → 1 col ------------------------------- */
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .jobs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .apply-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-access-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-course-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-requests-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* --- Section ------------------------------------------- */
    .section {
        padding: 1.8rem 0;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    /* --- Jobs page hero --------------------------------------- */
    .jobs-page-hero h1 {
        font-size: 1.25rem;
    }

    /* --- Apply card ------------------------------------------- */
    .apply-card {
        padding: 1.2rem 1rem;
        border-radius: var(--radius-md);
    }

    .apply-job-summary h1 {
        font-size: 1.25rem;
    }

    /* --- Career banner ---------------------------------------- */
    .career-banner {
        min-height: 220px;
        padding: 2rem 0;
    }

    .career-banner-inner h2 {
        font-size: 1.25rem;
    }

    .career-banner-inner p {
        font-size: 0.88rem;
    }

    /* --- Auth -------------------------------------------------- */
    .auth-card {
        padding: 1.3rem 1rem;
        border-radius: var(--radius-md);
    }

    .auth-title {
        font-size: 1.2rem;
    }

    .register-card {
        max-width: 100%;
    }

    /* --- OTP digits (8 boxes) — fit on small screen ----------- */
    .otp-row {
        gap: 0.28rem;
        margin: 1.2rem 0 0.5rem;
    }

    .otp-digit {
        width: 35px;
        height: 43px;
        font-size: 1.1rem;
        border-radius: 9px;
    }

    /* --- Partners marquee ------------------------------------- */
    .marquee-track img {
        height: 58px;
        max-width: 110px;
        margin-right: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    /* --- Dashboard -------------------------------------------- */
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat-card {
        padding: 0.8rem;
    }

    .dashboard-stat-card strong {
        font-size: 1.35rem;
    }

    /* --- Admin / company hero --------------------------------- */
    .admin-hero,
    .company-dash-hero {
        padding: 1.1rem 0.9rem;
    }

    .admin-hero h1,
    .company-dash-hero h1 {
        font-size: 1.25rem;
    }

    /* --- Modal ------------------------------------------------- */
    .modal-box {
        padding: 1.4rem 1.1rem;
        border-radius: var(--radius-md);
        width: 95%;
    }

    /* --- Home course card ------------------------------------- */
    .home-course-card {
        padding: 1.2rem 1rem 1rem;
    }

    /* --- Hero card -------------------------------------------- */
    .hero-card {
        padding: 1.2rem 1rem;
    }

    /* --- Footer ----------------------------------------------- */
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    /* --- Profile / dashboard page sections -------------------- */
    .dashboard-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-admin-meta {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    /* --- course access grid ----------------------------------- */
    .course-access-grid {
        max-width: 100%;
    }
}

/* ── 480px: very small phones ─────────────────────────────────── */
@media (max-width: 480px) {

    /* Performance: stop heavy blob/float animations on small phones */
    .lsp-blob,
    .ch-blob,
    .prf-hero-blob,
    .apps-hero-blob,
    .cdash-hero-blob {
        animation: none;
    }

    /* --- OTP: make even tighter ------------------------------- */
    .otp-digit {
        width: 31px;
        height: 38px;
        font-size: 0.98rem;
        border-radius: 7px;
        border-width: 2px;
    }

    .otp-row {
        gap: 0.2rem;
    }

    /* --- lang switch: إخفاء على الشاشات الصغيرة جداً ---------- */
    .lang-switch {
        display: none;
    }
    .lang-switch::before { display: none; }

    /* --- Logo على الجوال الصغير ----------------------------- */
    .logo-img {
        height: 54px;
        max-height: 58px;
        max-width: 132px;
    }

    /* --- Stats ------------------------------------------------ */
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    /* --- Dashboard stats always 2-col ------------------------- */
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* --- Action buttons in tables ----------------------------- */
    .dashboard-actions {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .dashboard-btn {
        font-size: 0.75rem;
        padding: 0.28rem 0.55rem;
    }

    /* --- Form rows even on very small ----------------------- */
    .apply-form-grid,
    .pjf-grid,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    /* --- Dash tabs even smaller ----------------------------- */
    .dash-tab {
        padding: 0.42rem 0.8rem;
        font-size: 0.8rem;
    }

    /* --- Career banner -------------------------------------- */
    .career-banner {
        min-height: 190px;
    }

    .career-banner-inner h2 {
        font-size: 1.15rem;
    }

    /* --- Section header ------------------------------------- */
    .section-header h2 {
        font-size: 1.2rem;
    }

    /* --- Job Categories & Learning Paths ------------------- */
    .job-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .jcat-card {
        padding: 1rem 1.2rem;
    }

    .lpath-card {
        padding: 1.5rem 1.4rem;
    }

    /* --- Job card redesign (jcm-*) on tiny screens ---------- */
    .job-card-modern {
        padding: 1.2rem;
    }

    .jcm-title {
        font-size: 0.95rem;
    }

    .jcm-apply-btn {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   JOBS PAGE — Hero, Filter Bar & Card Improvements
   ═══════════════════════════════════════════════════════════════ */

/* Disable old pseudo-element strip — replaced by .jcm-stripe element */
.job-card-modern::before,
.job-card-modern:hover::before { display: none; }

/* ── Jobs Hero ──────────────────────────────────────────────── */
.jobs-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 22, 0.35) 0%,
        rgba(11, 18, 32, 0.25) 100%
    );
    overflow: hidden;
    color: #fff;
}

.jobs-hero::before {
    content: "";
    position: absolute;
    width: min(90vw, 640px);
    height: min(90vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 68%);
    top: -22%;
    left: -8%;
    animation: blobFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.jobs-hero::after {
    content: "";
    position: absolute;
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.18) 0%, transparent 65%);
    bottom: -18%;
    right: -6%;
    animation: blobFloat 9s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.jobs-hero-inner {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.8rem;
}

.jobs-hero-text { max-width: 700px; }

.jobs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #93c5fc;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.jobs-hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
    overflow-wrap: break-word;
}

.jobs-hero-text h1 span {
    color: var(--color-accent-soft);
    text-shadow: 0 0 32px rgba(59, 130, 246, 0.45);
}

.jobs-hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Jobs Filter Bar ──────────────────────────────────────────────── */
.jobs-filter-bar {
    width: 100%;
    max-width: 900px;
    background: rgba(255,255,255,0.97);
    border-radius: 22px;
    padding: 0.65rem 0.65rem 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 32px 72px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.55) inset;
    border: 1px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.jfb-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 180px;
}

.jfb-icon { width: 18px; height: 18px; color: #94a3b8; flex-shrink: 0; }

.jfb-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.97rem;
    color: #1e293b;
    padding: 0.72rem 0;
    min-width: 0;
}

.jfb-input::placeholder { color: #94a3b8; }

.jfb-divider {
    width: 1px; height: 26px;
    background: rgba(10,51,184,0.12);
    flex-shrink: 0;
}

.jfb-select {
    border: 1px solid rgba(10,51,184,0.13);
    border-radius: 14px;
    padding: 0.62rem 0.9rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: #475569;
    background: #f7f9ff;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.jfb-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10,51,184,0.10);
}

/* ── Jobs section & results info ──────────────────────────────── */
.jobs-section { padding-top: 2.5rem; }

.jobs-results-info {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.60);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding-inline-start: 0.25rem;
}

/* ── Empty state ──────────────────────────────────────────────────── */
.jobs-empty {
    text-align: center;
    padding: 5rem 1rem;
}

.jobs-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.jobs-empty p { font-size: 1rem; color: rgba(255,255,255,0.65); }

/* ── Card: Type Stripe (top colour bar) ──────────────────────────── */
.jcm-stripe {
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    pointer-events: none;
}

.jcm-stripe-full    { background: linear-gradient(90deg, #059669, #34d399); }
.jcm-stripe-part    { background: linear-gradient(90deg, #d97706, #fbbf24); }
.jcm-stripe-remote  { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.jcm-stripe-default { background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); }

/* ── Card: Coloured Avatar variants ─────────────────────────────── */
.jcm-logo-full   { background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(52,211,153,0.25))  !important; color: #059669 !important; border-color: rgba(5,150,105,0.18)   !important; }
.jcm-logo-part   { background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(251,191,36,0.25))  !important; color: #d97706 !important; border-color: rgba(217,119,6,0.18)   !important; }
.jcm-logo-remote { background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(129,140,248,0.25)) !important; color: #4f46e5 !important; border-color: rgba(79,70,229,0.18)   !important; }

/* ── Card: Title row (title + جديد badge) ──────────────────────────── */
.jcm-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.jcm-meta-top .jcm-title { flex: 1; min-width: 0; }

.jcm-new-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(251,191,36,0.28));
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.35);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Mobile: Jobs Hero & Filter ─────────────────────────────────── */
@media (max-width: 768px) {
    .jobs-hero { padding: 3.5rem 0 2.5rem; }
    .jobs-hero-text h1 { font-size: 2rem; line-height: 1.35; }

    .jobs-filter-bar {
        padding: 0.8rem;
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        gap: 0.65rem;
    }

    .jfb-search-wrap {
        background: #f7f9ff;
        border: 1px solid rgba(10,51,184,0.12);
        border-radius: 12px;
        padding: 0 0.9rem;
    }

    .jfb-divider { display: none; }
    .jfb-select  { width: 100%; }
}

@media (max-width: 640px) {
    .jobs-hero-text h1 { font-size: 1.7rem; }
    .jobs-hero-text p  { font-size: 0.92rem; }
    .jobs-hero-badge   { font-size: 0.78rem; padding: 0.32rem 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN SPLIT-PAGE  —  Premium full-viewport two-column layout
   ═══════════════════════════════════════════════════════════════════ */

body.login-split-page {
    background: #f4f7ff;
    min-height: 100vh;
    overflow-x: hidden;
    animation: none;
}

.lsp-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── Visual Panel ────────────────────────────────────────────────── */
.lsp-panel {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 3rem 3.5rem 2.5rem;
}

.lsp-panel-seeker {
    background: linear-gradient(148deg, #010c28 0%, #041259 22%, #0a33b8 58%, #1860ee 100%);
}

.lsp-panel-employer {
    background: linear-gradient(148deg, #040208 0%, #08092a 22%, #090e3c 52%, #0d1a5e 100%);
}

/* Dot-grid overlay */
.lsp-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Animated blobs */
.lsp-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.lsp-blob-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(79,209,255,0.17) 0%, transparent 66%);
    top: -160px; right: -110px;
    animation: blobFloat 11s ease-in-out infinite;
}

.lsp-blob-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(245,158,11,0.13) 0%, transparent 65%);
    bottom: -90px; left: -70px;
    animation: blobFloat 14s ease-in-out infinite reverse;
}

.lsp-blob-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(10,51,184,0.30) 0%, transparent 65%);
    top: 42%; right: 28%;
    animation: blobFloat 8s ease-in-out infinite 2.5s;
}

/* Glowing horizontal line accent */
.lsp-panel::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79,209,255,0.45), rgba(245,158,11,0.35), transparent);
    pointer-events: none;
    z-index: 1;
}

.lsp-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0;
}

/* Logo in panel */
.lsp-logo-link {
    display: inline-block;
    margin-bottom: 3.5rem;
    flex-shrink: 0;
}

.lsp-logo-img {
    width: 130px;
    height: auto;
    display: block;
    filter: brightness(1.1);
}

/* Middle content grows to fill */
.lsp-panel-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
}

/* Panel headline */
.lsp-headline h2 {
    font-size: 2.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.28;
    letter-spacing: -0.035em;
    margin-bottom: 0.8rem;
}

.lsp-headline h2 span {
    color: var(--color-gold);
    text-shadow: 0 0 28px rgba(245,158,11,0.55), 0 0 60px rgba(245,158,11,0.18);
}

.lsp-headline p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 340px;
}

/* Feature bullets */
.lsp-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.lsp-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 500;
}

.lsp-feature-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Stats row */
.lsp-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    margin-top: auto;
}

.lsp-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.lsp-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: -0.03em;
    text-shadow: 0 0 18px rgba(245,158,11,0.38);
    line-height: 1;
}

.lsp-stat-lbl {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.50);
    letter-spacing: 0.02em;
}

/* Testimonial quote (optional) */
.lsp-quote {
    margin-top: 1.8rem;
    padding: 1.1rem 1.3rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lsp-quote p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 0.7rem;
}

.lsp-quote-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lsp-quote-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79,209,255,0.4), rgba(245,158,11,0.4));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.lsp-quote-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.lsp-quote-role {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.45);
}

/* ── Form Panel ─────────────────────────────────────────────────── */
.lsp-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #f4f7ff;
    position: relative;
    overflow: hidden;
}

/* subtle bg circle */
.lsp-form-side::before {
    content: "";
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,51,184,0.055) 0%, transparent 65%);
    top: -220px; left: -120px;
    pointer-events: none;
}

.lsp-form-inner {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 1;
}

/* Back link */
.lsp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(10, 51, 184, 0.07);
    border: 1.5px solid rgba(10, 51, 184, 0.18);
    border-radius: 50px;
    padding: 0.5rem 1.1rem 0.5rem 0.85rem;
    margin-bottom: 2.4rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
    align-self: flex-start;
}

.lsp-back-bar {
    position: absolute;
    top: 1.4rem;
    right: 1.8rem;
    z-index: 10;
}
.lsp-back-bar .lsp-back-link {
    margin-bottom: 0;
}

.lsp-back-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(10, 51, 184, 0.22);
}
.lsp-back-link svg { width: 17px; height: 17px; transition: transform 0.18s; }
.lsp-back-link:hover svg { transform: translateX(3px); }

/* Type chip (role badge) */
.lsp-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 1rem;
    background: rgba(10,51,184,0.07);
    border: 1px solid rgba(10,51,184,0.16);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}

.lsp-type-chip-employer {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.20);
    color: #4f46e5;
}

/* Form heading */
.lsp-form-title {
    font-size: 2.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.035em;
    line-height: 1.22;
    margin-bottom: 0.45rem;
}

.lsp-form-sub {
    font-size: 0.93rem;
    color: #64748b;
    margin-bottom: 2.2rem;
    line-height: 1.5;
}

/* ── Fields ─────────────────────────────────────────────────────── */
.lsp-field {
    margin-bottom: 1.25rem;
}

.lsp-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.55rem;
    letter-spacing: 0.015em;
}

.lsp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Leading icon (right in RTL = start) */
.lsp-input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.18s;
}

.lsp-input {
    width: 100%;
    padding: 0.88rem 2.9rem 0.88rem 1.1rem;
    border: 1.5px solid #dde3f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}

.lsp-input-wrap:focus-within .lsp-input-icon {
    color: var(--color-primary);
}

.lsp-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(10,51,184,0.10), 0 1px 4px rgba(15,23,42,0.04);
    background: #ffffff;
}

.lsp-input::placeholder { color: #c8d1e0; }

/* Password field gets left-padding for toggle (left = end in RTL) */
.lsp-input-pass { padding-left: 2.9rem; }

/* Password toggle */
.lsp-pass-toggle {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    z-index: 2;
}

.lsp-pass-toggle:hover {
    color: var(--color-primary);
    background: rgba(10,51,184,0.06);
}

.lsp-pass-toggle svg { width: 17px; height: 17px; pointer-events: none; }

/* Forgot link */
.lsp-forgot {
    display: block;
    font-size: 0.82rem;
    color: var(--color-primary);
    margin-bottom: 1.8rem;
    text-align: left;
    transition: opacity 0.18s;
    text-decoration: none;
    font-weight: 600;
}

.lsp-forgot:hover { opacity: 0.7; }

/* Submit button */
.lsp-submit-btn {
    width: 100%;
    padding: 0.92rem 1.5rem;
    background: linear-gradient(135deg, #0a33b8 0%, #1a6fff 60%, #3a8aff 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.025em;
    transition: background-position 0.38s ease, box-shadow 0.22s, transform 0.18s;
    box-shadow: 0 10px 32px rgba(10,51,184,0.32);
    position: relative;
    overflow: hidden;
}

.lsp-submit-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-18deg);
    animation: btnShimmer 3.5s ease infinite;
    pointer-events: none;
}

.lsp-submit-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(10,51,184,0.46);
}

.lsp-submit-btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.lsp-submit-btn-employer {
    background: linear-gradient(135deg, #0d1a5e 0%, #1e2fa8 60%, #2e44d4 100%);
    box-shadow: 0 10px 32px rgba(13,26,94,0.40);
}

.lsp-submit-btn-employer:hover {
    box-shadow: 0 16px 44px rgba(13,26,94,0.55);
}

/* Register row */
.lsp-register-row {
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 1.6rem;
}

.lsp-register-row a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 0.25rem;
}

.lsp-register-row a:hover { text-decoration: underline; }

/* Switch type card */
.lsp-switch-type {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.8rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border: 1.5px solid #dde3f0;
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: #475569;
}

.lsp-switch-type:hover {
    background: #f0f4ff;
    border-color: rgba(10,51,184,0.28);
    box-shadow: 0 6px 22px rgba(10,51,184,0.10);
}

.lsp-switch-type-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(10,51,184,0.07);
    border: 1px solid rgba(10,51,184,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.lsp-switch-type-text { flex: 1; min-width: 0; }

.lsp-switch-type-text span {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0.12rem;
}

.lsp-switch-type-text strong {
    color: var(--color-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.lsp-switch-arrow {
    width: 18px; height: 18px;
    color: #b0b9cc;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.lsp-switch-type:hover .lsp-switch-arrow {
    color: var(--color-primary);
    transform: translateX(-3px);
}

/* Form footer copyright */
.lsp-form-copy {
    text-align: center;
    font-size: 0.76rem;
    color: #b0b9cc;
    margin-top: 2.2rem;
}

/* Form status overrides inside lsp */
.lsp-form-inner .form-status {
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.86rem;
    padding: 0.65rem 1rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lsp-panel  { flex: 0 0 40%; padding: 2.5rem 2.5rem; }
    .lsp-headline h2 { font-size: 2rem; }
    .lsp-quote  { display: none; }
}

@media (max-width: 768px) {
    .lsp-wrap   { flex-direction: column; min-height: auto; }

    .lsp-panel  {
        flex: 0 0 auto;
        padding: 2.5rem 1.5rem 2rem;
        min-height: auto;
    }

    .lsp-panel-middle { gap: 1.5rem; }

    .lsp-logo-link  { margin-bottom: 1.8rem; }
    .lsp-logo-img   { width: 110px; }

    .lsp-headline h2 { font-size: 1.75rem; }
    .lsp-headline p  { font-size: 0.9rem; }

    .lsp-features    { display: none; }

    .lsp-stats {
        padding-top: 1.2rem;
        gap: 1.5rem;
    }

    .lsp-stat-num { font-size: 1.25rem; }

    .lsp-form-side {
        padding: 2rem 1.25rem 3rem;
        background: #f4f7ff;
        align-items: flex-start;
        flex-direction: column;
    }

    .lsp-form-inner { max-width: 100%; width: 100%; }

    /* On mobile the back bar becomes part of normal flow above the form */
    .lsp-back-bar {
        position: static;
        padding: 0 0 1.2rem 0;
        width: 100%;
    }

    .lsp-back-link  { margin-bottom: 0; }
    .lsp-form-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .lsp-panel  { padding: 2rem 1.1rem 1.8rem; }
    .lsp-headline h2 { font-size: 1.5rem; }
    .lsp-stats  { gap: 1.2rem; flex-wrap: wrap; }
    .lsp-form-side { padding: 2rem 1rem 2.5rem; }
    .lsp-form-title { font-size: 1.5rem; }
    .lsp-input  { font-size: 0.9rem; }
}

/* ── Floating lang toggle on login split-pages ── */
.lsp-lang-float {
    position: fixed;
    top: 1.25rem;
    inset-inline-end: 1.4rem;  /* form-side corner: RIGHT in LTR, LEFT in RTL */
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(10, 51, 184, 0.07);
    border: 1px solid rgba(10, 51, 184, 0.18);
    border-radius: 999px;
    padding: 3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(10, 51, 184, 0.10);
}

.lsp-lang-float::before {
    content: "🌐";
    font-size: 0.75rem;
    padding-inline: 0.4rem 0.05rem;
    opacity: 0.65;
    pointer-events: none;
    line-height: 1;
}

.lsp-lang-float .lang-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: rgba(10, 36, 120, 0.6);
}

/* On mobile the panel background is dark — make inactive btn text white */
@media (max-width: 768px) {
    .lsp-lang-float {
        background: rgba(5, 15, 55, 0.60);
        border-color: rgba(255, 255, 255, 0.25);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lsp-lang-float .lang-btn {
        color: rgba(255, 255, 255, 0.85);
    }

    .lsp-lang-float .lang-btn:hover {
        color: #ffffff;
    }
}

.lsp-lang-float .lang-btn:hover {
    color: var(--color-primary);
}

.lsp-lang-float .lang-btn-active {
    background: var(--color-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(10, 51, 184, 0.3);
}

@media (max-width: 480px) {
    .lsp-lang-float { top: 0.7rem; inset-inline-end: 0.7rem; }
}

/* ══════════════════════════════════════════════════════════════════
   COURSES PAGE — Premium Redesign (ch-* = courses hero)
══════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────── */
.courses-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 22, 0.4) 0%,
        rgba(11, 18, 32, 0.28) 100%
    );
    padding: 5.5rem 0 4rem;
    text-align: center;
}
.ch-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.85;
}
.ch-blob-1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.45) 0%, transparent 70%);
    top: -170px;
    inset-inline-end: -110px;
    animation: chBlob1 9s ease-in-out infinite alternate;
}
.ch-blob-2 {
    width: 430px; height: 430px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%);
    bottom: -110px;
    inset-inline-start: -90px;
    animation: chBlob2 11s ease-in-out infinite alternate-reverse;
}
.ch-blob-3 {
    width: 310px; height: 310px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, transparent 70%);
    top: 40%; left: 48%;
    animation: chBlob3 13s ease-in-out infinite alternate;
}
@keyframes chBlob1 {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.15) translateY(-22px); }
}
@keyframes chBlob2 {
    from { transform: scale(1); }
    to   { transform: scale(1.12) translateY(14px); }
}
@keyframes chBlob3 {
    from { transform: translate(-50%,-50%) scale(1); }
    to   { transform: translate(-50%,-50%) scale(1.2); }
}
.ch-inner {
    position: relative;
    z-index: 1;
}
.ch-badge {
    display: inline-block;
    background: rgba(79,209,255,0.12);
    border: 1px solid rgba(79,209,255,0.4);
    color: #4fd1ff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.38rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.15rem;
    letter-spacing: 0.045em;
    animation: fadeInUp 0.5s ease both;
}
.ch-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 0.9rem;
    letter-spacing: -0.025em;
    animation: fadeInUp 0.55s 0.08s ease both;
}
.ch-accent {
    font-style: normal;
    background: linear-gradient(90deg, #4fd1ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ch-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    max-width: 44rem;
    margin: 0 auto 2.2rem;
    animation: fadeInUp 0.6s 0.14s ease both;
}

/* ── Search bar ──────────────────────────────────── */
.ch-search-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.65s 0.2s ease both;
}
.ch-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 1.1rem;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.38);
    pointer-events: none;
}
.ch-search-input {
    width: 100%;
    background: rgba(255,255,255,0.09);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.9rem 1.3rem;
    padding-inline-start: 3rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(2,11,58,0.2);
}
.ch-search-input::placeholder { color: rgba(255,255,255,0.4); }
.ch-search-input:focus {
    border-color: rgba(79,209,255,0.65);
    background: rgba(255,255,255,0.13);
    box-shadow: 0 0 0 3px rgba(79,209,255,0.12), 0 4px 24px rgba(2,11,58,0.2);
}

/* ── Category tabs ───────────────────────────────── */
.ch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    animation: fadeInUp 0.7s 0.26s ease both;
}
.ch-tab {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ch-tab:hover {
    background: rgba(79,209,255,0.12);
    border-color: rgba(79,209,255,0.42);
    color: #4fd1ff;
}
.ch-tab-active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(10,51,184,0.45);
}

/* ── Results bar ─────────────────────────────────── */
.ch-results-bar {
    margin-bottom: 0.6rem;
}
.ch-results-txt {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.46);
}
.ch-results-num {
    font-weight: 700;
    color: #4fd1ff;
}

.courses-path-banner {
    margin-top: 1rem;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    background: rgba(79, 209, 255, 0.1);
    border: 1px solid rgba(79, 209, 255, 0.28);
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.92rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    justify-content: center;
    text-align: center;
}
.courses-path-banner strong { color: #e0f2fe; }
.courses-path-banner .courses-path-clear {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.courses-path-banner .courses-path-clear:hover { text-decoration: underline; color: #fff; }

/* ── Courses grid — responsive (1 / 2 / 3 columns) ───────────────── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 0.75rem;
    align-items: stretch;
}
.courses-grid > .course-card,
.courses-grid > a.tp-card {
    min-width: 0;
}
@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── Course Card — Premium (Coursera / Udemy style) ── */
.course-card {
    background: linear-gradient(165deg, rgba(13, 27, 85, 0.98) 0%, rgba(8, 14, 40, 0.99) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    position: relative;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    box-shadow: 0 8px 32px rgba(2, 11, 58, 0.35);
}
.course-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(167, 139, 250, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}
.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        0 28px 60px rgba(2, 11, 58, 0.55),
        0 0 48px rgba(59, 130, 246, 0.18);
}
.course-card:hover::before {
    opacity: 1;
}

/* Full-width cover */
.course-card-media,
.course-card-header {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0b1220;
    text-decoration: none;
    flex-shrink: 0;
}
.course-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.course-card:hover .course-card-cover {
    transform: scale(1.07);
    filter: brightness(1.05) saturate(1.08);
}
.course-card-media-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 22, 0.05) 0%,
        rgba(5, 8, 22, 0.25) 45%,
        rgba(5, 8, 22, 0.92) 100%
    );
}
.course-card-media-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(59, 130, 246, 0.35), transparent 70%);
    opacity: 0.65;
    transition: opacity 0.35s ease;
}
.course-card:hover .course-card-media-glow {
    opacity: 1;
}
.course-card-badges {
    position: absolute;
    inset-inline: 0.85rem;
    bottom: 0.75rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
}
.course-card-icon {
    display: none;
}
.course-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

/* Cycling stripe palette */
.course-card:nth-child(6n+1) { --cc-stripe:#0a33b8; --cc-stripe-end:rgba(79,209,255,0.22); }
.course-card:nth-child(6n+2) { --cc-stripe:#7c3aed; --cc-stripe-end:rgba(167,139,250,0.22); }
.course-card:nth-child(6n+3) { --cc-stripe:#0d9488; --cc-stripe-end:rgba(52,211,153,0.22); }
.course-card:nth-child(6n+4) { --cc-stripe:#d97706; --cc-stripe-end:rgba(251,191,36,0.22); }
.course-card:nth-child(6n+5) { --cc-stripe:#be185d; --cc-stripe-end:rgba(252,165,165,0.22); }
.course-card:nth-child(6n+6) { --cc-stripe:#0891b2; --cc-stripe-end:rgba(125,211,252,0.22); }

.course-card-body {
    padding: 1.15rem 1.25rem 0.65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card-desc:empty {
    display: none;
}
.course-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.72rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.3;
    max-width: 100%;
}
.course-card-body .course-badge {
    margin-bottom: 0.72rem;
    align-self: flex-start;
}
.course-badge--cat {
    color: #bae6fd;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(29, 78, 216, 0.45);
}
.course-badge--free {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(22, 101, 52, 0.45);
}
.course-badge--price {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.5);
}
.course-badge--diploma {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(76, 29, 149, 0.45);
}
.course-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.42;
}
.course-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.course-card-title-link:hover {
    color: #7dd3fc;
}
.course-card-desc {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
    margin: 0 0 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 0.75rem;
    margin-top: auto;
}
.course-card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.course-seats {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.course-card-footer {
    padding: 0.85rem 1.3rem 1.1rem;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.btn-enrolled {
    background: rgba(34,197,94,0.1) !important;
    color: #4ade80 !important;
    border: 1.5px solid rgba(34,197,94,0.32) !important;
    cursor: default !important;
    font-weight: 600 !important;
}

/* ── Empty / loading states ──────────────────────── */
.courses-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 1rem;
    color: rgba(255,255,255,0.42);
}
.courses-empty-icon { font-size: 3.6rem; margin-bottom: 0.9rem; display: block; }
.courses-empty-txt  { font-size: 1rem; }

/* ── Section title ───────────────────────────────── */
.courses-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.3rem;
}

/* ── Request cards (My Requests section) ─────────── */
.my-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}
.req-card {
    background: linear-gradient(135deg, #0d1b55, #0f2060);
    border: 1px solid rgba(79,209,255,0.11);
    border-radius: 16px;
    padding: 1.3rem 1.5rem 1.1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.req-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(2,11,58,0.45);
}
.req-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}
.req-card-title { font-size: 1rem; font-weight: 700; color: #fff; }
.req-card-meta  {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.4rem;
}
.req-card-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 0.5rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 0.6rem;
}

/* ── Modal premium override ──────────────────────── */
.modal-box-premium {
    background: linear-gradient(135deg, #0d1b55, #0f2464) !important;
    border: 1px solid rgba(79,209,255,0.18) !important;
    border-radius: 22px !important;
    padding: 2.5rem 2.4rem 2rem !important;
    text-align: center;
    box-shadow: 0 32px 80px rgba(2,11,58,0.7) !important;
}
.modal-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.9rem;
    animation: modalIconBounce 0.5s ease both;
}
@keyframes modalIconBounce {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.12); }
    100% { transform: scale(1);   opacity: 1; }
}
.modal-box-premium .modal-actions { justify-content: center; }

/* ── Courses responsive ──────────────────────────── */
@media (max-width: 768px) {
    .courses-hero    { padding: 4rem 0 3rem; }
    .ch-title        { font-size: 1.9rem; }
    .ch-search-wrap  { max-width: 100%; }
    .course-card-media,
    .course-card-header { height: 168px; }
}
@media (max-width: 480px) {
    .courses-hero    { padding: 3.5rem 0 2.5rem; }
    .ch-title        { font-size: 1.65rem; }
}

/* ══════════════════════════════════════════════════════════════════
   PROFILE PAGE — PREMIUM
══════════════════════════════════════════════════════════════════ */
.prf-page {
    min-height: 100vh;
    background: linear-gradient(175deg, #060e2e 0%, #0a1845 55%, #071135 100%);
    padding-bottom: 5rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.prf-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020b3a 0%, #0a33b8 55%, #3366ff 100%);
    padding: 3.5rem 0 5rem;
    margin-bottom: -3.5rem;
}
.prf-hero-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(60px);
    pointer-events: none;
}
.prf-hero-blob-1 { width: 380px; height: 380px; background: #4fd1ff; top: -100px; left: -80px; }
.prf-hero-blob-2 { width: 280px; height: 280px; background: #f59e0b; bottom: -60px; right: 8%; }

.prf-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    z-index: 2;
}
.prf-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.prf-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 3px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 2.4rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}
.prf-avatar svg { width: 42px; height: 42px; }
.prf-avatar-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #f59e0b;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.prf-hero-text { flex: 1; }
.prf-hero-name {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.prf-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

/* ── Body layout ────────────────────────────────────────────────── */
.prf-body { position: relative; z-index: 3; }

.prf-completion-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 4px 22px rgba(10,51,184,0.09);
    margin-bottom: 1.5rem;
}
.prf-completion-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.prf-completion-label { font-size: 0.85rem; font-weight: 700; color: #475569; }
.prf-completion-pct   { font-size: 0.85rem; font-weight: 800; color: var(--color-primary); }
.prf-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.prf-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0a33b8, #4fd1ff);
    transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

.prf-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

/* ── Section card ───────────────────────────────────────────────── */
.prf-section-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 28px rgba(10,51,184,0.08);
}
.prf-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9eff8;
}
.prf-section-head-secondary {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}
.prf-section-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(10,51,184,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.prf-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* ── Form fields ────────────────────────────────────────────────── */
.prf-field { margin-bottom: 1.2rem; }
.prf-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}
.prf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.prf-input-icon {
    position: absolute;
    right: 0.9rem;
    width: 17px; height: 17px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}
.prf-input {
    width: 100%;
    padding: 0.72rem 2.7rem 0.72rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.93rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}
.prf-input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10,51,184,0.08);
}
.prf-input::placeholder { color: #c8d1e0; }

.prf-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.93rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    line-height: 1.6;
}
.prf-textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10,51,184,0.08);
}
.prf-textarea::placeholder { color: #c8d1e0; }

/* ── CV upload ──────────────────────────────────────────────────── */
.prf-cv-upload-area {
    border: 2px dashed #c7d5ef;
    border-radius: 16px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    background: #f8faff;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}
.prf-cv-upload-area:hover { border-color: var(--color-primary); background: #eef3ff; }
.prf-cv-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.prf-cv-upload-text { font-size: 0.88rem; color: #64748b; margin: 0 0 0.5rem; }
.prf-cv-upload-btn {
    display: inline-block;
    padding: 0.45rem 1.4rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    margin-bottom: 0.7rem;
}
.prf-cv-upload-btn:hover { background: #0a2a9e; }
.prf-cv-file-input { display: none; }
.prf-cv-hint { font-size: 0.75rem; color: #94a3b8; margin: 0; }

.prf-cv-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #eef9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-top: 0.8rem;
    color: #0369a1;
    font-size: 0.88rem;
    font-weight: 600;
}
.prf-cv-current a { color: inherit; text-decoration: underline; }
.prf-cv-current svg { flex-shrink: 0; color: #0ea5e9; }

/* ── Save button ────────────────────────────────────────────────── */
.prf-save-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    margin-top: 1.8rem;
    background: linear-gradient(135deg, #0a33b8 0%, #3366ff 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(10,51,184,0.30);
    transition: transform 0.18s, box-shadow 0.18s;
}
.prf-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(10,51,184,0.38);
}
.prf-save-btn:active { transform: translateY(0); }

/* ── Right column ───────────────────────────────────────────────── */
.prf-info-col { display: flex; flex-direction: column; gap: 1rem; }

.prf-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 18px rgba(10,51,184,0.08);
}
.prf-stat-icon { font-size: 1.9rem; flex-shrink: 0; }
.prf-stat-body { display: flex; flex-direction: column; }
.prf-stat-num  { font-size: 1.8rem; font-weight: 900; color: var(--color-primary); line-height: 1; }
.prf-stat-lbl  { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-top: 0.2rem; }

.prf-tips-card {
    background: linear-gradient(135deg, #020b3a 0%, #0a2a9e 100%);
    border-radius: 18px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 4px 18px rgba(2,11,58,0.22);
}
.prf-tips-title { font-size: 0.92rem; font-weight: 800; color: #fff; margin: 0 0 0.9rem; }
.prf-tips-list {
    margin: 0; padding: 0;
    list-style: none;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.prf-tips-list li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.78);
    padding-right: 1rem;
    position: relative;
    line-height: 1.45;
}
.prf-tips-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #4fd1ff;
    font-weight: 700;
}

/* ── Academy requirements banner (large) ─────────────────────── */
.prf-academy-banner {
    position: relative;
    margin-bottom: 1.75rem;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
    overflow: hidden;
}

.prf-academy-banner-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 70% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 55% at 0% 100%, rgba(29, 78, 216, 0.1), transparent 50%);
}

.prf-academy-banner-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.prf-academy-banner-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.12), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.12);
}

.prf-academy-banner-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.prf-academy-banner-intro {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    color: #475569;
    line-height: 1.75;
    max-width: 52rem;
}

.prf-req-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.prf-req-card {
    padding: 1.35rem 1.4rem 1.4rem;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.prf-req-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.12);
    transform: translateY(-2px);
}

.prf-req-num {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(29, 78, 216, 0.1);
    letter-spacing: 0.04em;
}

.prf-req-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
}

.prf-req-card-text {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

.prf-form-card {
    margin-bottom: 2rem;
}

.prf-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.35rem;
}

.prf-field--full {
    grid-column: 1 / -1;
}

.prf-textarea--large {
    min-height: 140px;
    font-size: 1rem;
}

.prf-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.prf-form-actions .prf-save-btn {
    width: auto;
    min-width: 220px;
    flex: 1 1 220px;
    margin-top: 0;
}

.prf-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.prf-secondary-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.12);
}

.prf-secondary-link svg {
    flex-shrink: 0;
}

[dir="rtl"] .prf-secondary-link svg {
    transform: scaleX(-1);
}

@media (max-width: 720px) {
    .prf-req-grid,
    .prf-fields-grid {
        grid-template-columns: 1fr;
    }

    .prf-academy-banner-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .prf-form-actions .prf-save-btn {
        width: 100%;
    }
}

.prf-link-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 4px 18px rgba(10,51,184,0.08);
    text-decoration: none;
    color: inherit;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.prf-link-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(10,51,184,0.14);
}
.prf-link-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.prf-link-card-title { font-size: 0.93rem; font-weight: 800; color: #0f172a; }
.prf-link-card-sub { font-size: 0.77rem; color: #64748b; margin-top: 0.15rem; }
.prf-link-card svg { margin-right: auto; /* push to end in RTL */ color: #94a3b8; flex-shrink: 0; }
[dir="rtl"] .prf-link-card svg { margin-right: 0; margin-left: 0; transform: scaleX(-1); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .prf-grid { grid-template-columns: 1fr; }
    .prf-info-col { flex-direction: row; flex-wrap: wrap; }
    .prf-stat-card { flex: 1 1 40%; }
    .prf-tips-card,
    .prf-link-card { width: 100%; }
}
@media (max-width: 560px) {
    .prf-hero-inner { flex-direction: column; text-align: center; }
    .prf-hero-name  { font-size: 1.5rem; }
    .prf-section-card { padding: 1.4rem 1.1rem; }
    .prf-stat-card { flex: 1 1 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   MY APPLICATIONS PAGE — PREMIUM
══════════════════════════════════════════════════════════════════ */
.apps-page {
    min-height: 100vh;
    background: linear-gradient(175deg, #060e2e 0%, #0a1845 55%, #071135 100%);
    padding-bottom: 5rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.apps-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020b3a 0%, #0a33b8 60%, #1e4fff 100%);
    padding: 3.5rem 0 5.5rem;
    margin-bottom: -3.5rem;
}
.apps-hero-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(55px);
    pointer-events: none;
}
.apps-hero-blob-1 { width: 340px; height: 340px; background: #4fd1ff; top: -80px; right: -60px; }
.apps-hero-blob-2 { width: 240px; height: 240px; background: #f59e0b; bottom: -40px; left: 10%; }
.apps-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.apps-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.9rem;
    backdrop-filter: blur(6px);
}
.apps-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
}
.apps-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
    margin: 0 auto 1.6rem;
    max-width: 480px;
}
.apps-count-strip {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.apps-count-item {
    text-align: center;
}
.apps-count-num { font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1; }
.apps-count-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.65); font-weight: 600; margin-top: 0.2rem; }

/* ── Body ───────────────────────────────────────────────────────── */
.apps-body { position: relative; z-index: 3; }

/* Filter tabs */
.apps-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #fff;
    border-radius: 18px;
    padding: 0.8rem 1.1rem;
    box-shadow: 0 4px 20px rgba(10,51,184,0.08);
    margin-bottom: 1.5rem;
}
.apps-filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.apps-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.apps-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(10,51,184,0.22);
}
.apps-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0 5px;
    background: rgba(255,255,255,0.25);
}
.apps-filter-btn:not(.active) .apps-filter-badge {
    background: #e2e8f0;
    color: #64748b;
}

/* Applications list */
#myApplicationsList { display: flex; flex-direction: column; gap: 1rem; }

/* App card */
.app-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    border-radius: 18px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 20px rgba(10,51,184,0.07);
    border: 1.5px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
}
.app-card:hover {
    border-color: rgba(10,51,184,0.18);
    box-shadow: 0 8px 30px rgba(10,51,184,0.12);
    transform: translateY(-2px);
}
.app-card-logo {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef3ff, #dbe6ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(10,51,184,0.10);
}
.app-card-body { flex: 1; min-width: 0; }
.app-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.app-card-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}
.app-card-date svg { width: 13px; height: 13px; }

/* Status badge */
.app-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
}
.app-status::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
}
.app-status-pending  { background: #fef3c7; color: #92400e; }
.app-status-pending::before  { background: #f59e0b; }
.app-status-approved { background: #d1fae5; color: #065f46; }
.app-status-approved::before { background: #10b981; }
.app-status-rejected { background: #fee2e2; color: #991b1b; }
.app-status-rejected::before { background: #ef4444; }
.app-status-reviewing { background: #e0e7ff; color: #3730a3; }
.app-status-reviewing::before { background: #6366f1; }

.app-card-actions { flex-shrink: 0; }
.app-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    color: #475569;
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
}
.app-card-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #eef3ff;
}

/* Empty state */
.apps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(10,51,184,0.06);
}
.apps-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.apps-empty-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin: 0 0 0.4rem; }
.apps-empty-sub { font-size: 0.88rem; color: #64748b; margin: 0 0 1.5rem; }
.apps-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #0a33b8, #3366ff);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(10,51,184,0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}
.apps-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(10,51,184,0.36); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .apps-hero-title { font-size: 1.6rem; }
    .apps-count-strip { gap: 1.5rem; }
    .app-card { flex-wrap: wrap; }
    .app-card-actions { width: 100%; }
    .app-card-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   COMPANY DASHBOARD — PREMIUM
══════════════════════════════════════════════════════════════════ */

/* ── Page background ────────────────────────────────────────────── */
.cdash-page {
    min-height: 100vh;
    background: linear-gradient(170deg, #010c28 0%, #030e40 30%, #061b63 60%, #0a28a8 100%);
    padding-bottom: 5rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.cdash-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020b3a 0%, #0a33b8 45%, #1a4fff 75%, #0ea5e9 100%);
    padding: 3.2rem 0 5rem;
    margin-bottom: -3rem;
}
.cdash-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.18;
    filter: blur(60px);
}
.cdash-hero-blob-1 { width: 400px; height: 400px; background: #4fd1ff; top: -120px; left: -80px; }
.cdash-hero-blob-2 { width: 300px; height: 300px; background: #f59e0b; bottom: -80px; right: 5%; }
.cdash-hero-blob-3 { width: 200px; height: 200px; background: #a78bfa; top: 10px; right: 30%; opacity: 0.12; }

.cdash-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}
.cdash-avatar-wrap { position: relative; flex-shrink: 0; }
.cdash-avatar {
    width: 82px; height: 82px;
    border-radius: 22px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.cdash-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 26px;
    border: 2px solid rgba(79,209,255,0.4);
    pointer-events: none;
}
.cdash-hero-text { flex: 1; min-width: 0; }
.cdash-welcome { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.3rem; }
.cdash-company-name { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 0.25rem; letter-spacing: -0.03em; line-height: 1.15; }
.cdash-sub { font-size: 0.92rem; color: rgba(255,255,255,0.70); margin: 0; }

.cdash-stats-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 18px;
    padding: 0.9rem 1.5rem;
    backdrop-filter: blur(8px);
}
.cdash-stat { text-align: center; }
.cdash-stat-num { display: block; font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1; }
.cdash-stat-lbl { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.65); font-weight: 600; margin-top: 0.2rem; }
.cdash-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.25); }

/* ── Body & Tab bar ─────────────────────────────────────────────── */
.cdash-body { position: relative; z-index: 3; }

.cdash-tabs-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 0.7rem 0.8rem;
    box-shadow: 0 4px 24px rgba(10,51,184,0.09);
    margin-bottom: 1.5rem;
}
.cdash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
/* Override any old dash-tab styles */
.cdash-tab {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.3rem !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    color: #64748b !important;
    transition: all 0.18s !important;
    box-shadow: none !important;
}
.cdash-tab:hover {
    background: #f1f5fb !important;
    color: var(--color-primary) !important;
}
.cdash-tab.active {
    background: linear-gradient(135deg, #0a33b8, #3366ff) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(10,51,184,0.28) !important;
    border-color: transparent !important;
}
.cdash-tab-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Content card ───────────────────────────────────────────────── */
.cdash-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem 2.2rem;
    box-shadow: 0 6px 32px rgba(10,51,184,0.08);
    border: 1px solid rgba(10,51,184,0.06);
}
.cdash-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e9eff8;
}
.cdash-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cdash-card-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.15rem;
}
.cdash-card-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* ── Form grid ──────────────────────────────────────────────────── */
.cdash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}
.cdash-full { grid-column: 1 / -1; }

/* ── Add job button ─────────────────────────────────────────────── */
.cdash-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: linear-gradient(135deg, #0a33b8, #3366ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(10,51,184,0.28);
    transition: transform 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
    white-space: nowrap;
}
.cdash-add-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,51,184,0.36); }

/* ── No data / loading ──────────────────────────────────────────── */
.cdash-no-data {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ── Previous requests section ──────────────────────────────────── */
.cdash-prev-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}
.cdash-prev-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Company job item (rendered by JS) ──────────────────────────── */
.company-job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: #f8faff;
    border-radius: 14px;
    border: 1.5px solid #e9eff8;
    margin-bottom: 0.75rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.company-job-item:hover { border-color: rgba(10,51,184,0.25); box-shadow: 0 4px 16px rgba(10,51,184,0.08); }
.company-job-item:last-child { margin-bottom: 0; }
.company-job-info { flex: 1; min-width: 0; }
.company-job-info h3 { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0 0 0.4rem; }
.company-job-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.company-job-date { font-size: 0.76rem; color: #94a3b8; }
.company-job-actions { flex-shrink: 0; }

/* Delete button */
.dashboard-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #fecaca;
    background: #fff1f2;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
}
.dashboard-btn-delete:hover { background: #fee2e2; border-color: #ef4444; }

/* Staff request card (rendered by JS) */
.staff-request-card {
    padding: 1rem 1.2rem;
    background: #f8faff;
    border-radius: 14px;
    border: 1.5px solid #e9eff8;
    margin-bottom: 0.75rem;
    transition: border-color 0.18s;
}
.staff-request-card:hover { border-color: rgba(10,51,184,0.2); }
.src-row { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; flex-wrap: wrap; }
.src-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.8rem; color: #64748b; }

/* Badge overrides */
.badge { display: inline-flex; align-items: center; padding: 0.22rem 0.75rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-free      { background: #d1fae5; color: #065f46; }
.badge-paid      { background: #dbeafe; color: #1e40af; }
.badge-cat       { background: #f3e8ff; color: #7e22ce; }
.badge-accepted  { background: #d1fae5; color: #065f46; }
.badge-rejected  { background: #fee2e2; color: #991b1b; }
.badge-pending-status { background: #fef3c7; color: #92400e; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cdash-form-grid { grid-template-columns: 1fr; }
    .cdash-full { grid-column: 1; }
}
@media (max-width: 700px) {
    .cdash-hero-inner { flex-direction: column; align-items: flex-start; }
    .cdash-stats-strip { width: 100%; justify-content: center; }
    .cdash-company-name { font-size: 1.5rem; }
    .cdash-card { padding: 1.4rem 1.1rem; }
    .cdash-tabs { gap: 0.3rem; }
    .cdash-tab { padding: 0.5rem 0.9rem !important; font-size: 0.82rem !important; }
}
@media (max-width: 480px) {
    .cdash-tab span:not(.cdash-tab-icon) { display: none; }
    .cdash-tab { padding: 0.55rem 0.85rem !important; }
}

/* ══════════════════════════════════════════════════════════════════
   COMPANY PROFILE PAGE — PREMIUM
══════════════════════════════════════════════════════════════════ */
.cprf-page {
    min-height: 100vh;
    background: linear-gradient(170deg, #010c28 0%, #030e40 30%, #061b63 60%, #0a28a8 100%);
    padding-bottom: 5rem;
}
.cprf-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020b3a 0%, #0a33b8 45%, #1a4fff 75%, #0ea5e9 100%);
    padding: 3rem 0 4.8rem;
    margin-bottom: -3rem;
}
.cprf-hero-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.16;
    filter: blur(55px);
    pointer-events: none;
}
.cprf-hero-blob-1 { width: 350px; height: 350px; background: #4fd1ff; top: -80px; right: -60px; }
.cprf-hero-blob-2 { width: 240px; height: 240px; background: #f59e0b; bottom: -40px; left: 8%; }
.cprf-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}
.cprf-avatar-wrap { position: relative; flex-shrink: 0; }
.cprf-avatar {
    width: 82px; height: 82px;
    border-radius: 22px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.cprf-avatar-badge {
    position: absolute;
    bottom: -4px; left: -4px;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: #f59e0b;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cprf-hero-text { flex: 1; }
.cprf-hero-title { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 0.3rem; letter-spacing: -0.03em; }
.cprf-hero-sub { font-size: 0.93rem; color: rgba(255,255,255,0.72); margin: 0; }
.cprf-body { position: relative; z-index: 3; }
.cprf-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}
.cprf-form-col { }
.cprf-info-col { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 820px) {
    .cprf-grid { grid-template-columns: 1fr; }
    .cprf-hero-inner { flex-direction: column; }
    .cprf-hero-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════
   PROMOTION REQUESTS — PREMIUM CARDS
══════════════════════════════════════════════════════════════════ */
.prq-panel {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 2.2rem 2.5rem;
    box-shadow: 0 6px 40px rgba(10,51,184,0.09);
    border: 1px solid rgba(10,51,184,0.06);
}
.prq-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9eff8;
}
.prq-panel-title-wrap { display: flex; align-items: center; gap: 1rem; }
.prq-panel-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}
.prq-panel-title { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin: 0 0 0.2rem; }
.prq-panel-sub   { font-size: 0.82rem; color: #64748b; margin: 0; }

/* Stats strip */
.prq-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.prq-stat {
    text-align: center;
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.6rem 1.1rem;
    border: 1px solid #e2e8f0;
    min-width: 70px;
}
.prq-stat--pending  { background: #fffbeb; border-color: #fcd34d; }
.prq-stat--approved { background: #f0fdf4; border-color: #6ee7b7; }
.prq-stat--rejected { background: #fef2f2; border-color: #fca5a5; }
.prq-stat-num { display: block; font-size: 1.4rem; font-weight: 900; color: #0f172a; line-height: 1; }
.prq-stat--pending  .prq-stat-num { color: #d97706; }
.prq-stat--approved .prq-stat-num { color: #059669; }
.prq-stat--rejected .prq-stat-num { color: #dc2626; }
.prq-stat-lbl { display: block; font-size: 0.68rem; color: #64748b; font-weight: 600; margin-top: 0.2rem; }

/* Cards grid */
.prq-cards-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

/* Single card */
.prq-card {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(10,51,184,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.prq-card:hover { box-shadow: 0 8px 32px rgba(10,51,184,0.12); transform: translateY(-2px); }
.prq-card[data-status="approved"] { border-color: #6ee7b7; background: #f0fdf4; }
.prq-card[data-status="rejected"] { border-color: #fca5a5; background: #fef2f2; opacity: 0.75; }

/* Card top bar */
.prq-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.3rem;
    background: #f8fafc;
    border-bottom: 1px solid #e9eff8;
}
.prq-card[data-status="approved"] .prq-card-top { background: #dcfce7; border-color: #bbf7d0; }
.prq-card[data-status="rejected"] .prq-card-top { background: #fee2e2; border-color: #fecaca; }
.prq-date { font-size: 0.78rem; color: #64748b; font-weight: 600; }
.prq-status {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.prq-status--pending  { background: #fef3c7; color: #92400e; }
.prq-status--approved { background: #d1fae5; color: #065f46; }
.prq-status--rejected { background: #fee2e2; color: #991b1b; }

/* Card middle — parties */
.prq-card-mid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 1.5rem 1.2rem;
}
.prq-party { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; }
.prq-party-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}
.prq-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.prq-avatar--req { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.prq-avatar--tgt { background: linear-gradient(135deg, #0a33b8, #3366ff); }
.prq-party-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}
.prq-party-meta {
    font-size: 0.76rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    direction: ltr;
}
.prq-party-meta a { color: #3366ff; text-decoration: none; }
.prq-party-meta a:hover { text-decoration: underline; }
.prq-party-role {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    background: #e0e7ff;
    color: #3730a3;
    margin-top: 0.2rem;
}
.prq-party-role--target {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

/* Arrow divider */
.prq-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
}
.prq-arrow-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #c7d2fe, #a5b4fc);
}
.prq-arrow-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.prq-arrow-icon {
    font-size: 1.1rem;
    color: #7c3aed;
    font-weight: 900;
}

/* Actions */
.prq-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9eff8;
    background: #fafbff;
    justify-content: flex-end;
}
.prq-btn-approve,
.prq-btn-reject {
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.prq-btn-approve {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 14px rgba(5,150,105,0.3);
}
.prq-btn-approve:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,0.42); }
.prq-btn-reject {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220,38,38,0.28);
}
.prq-btn-reject:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,0.4); }
.prq-btn-approve:disabled,
.prq-btn-reject:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Empty & loading */
.prq-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #94a3b8;
}
.prq-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.prq-empty-text { font-size: 0.95rem; font-weight: 600; margin: 0; }
.prq-loading {
    text-align: center;
    padding: 2.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 700px) {
    .prq-card-mid { grid-template-columns: 1fr; }
    .prq-arrow { flex-direction: row; writing-mode: horizontal-tb; }
    .prq-arrow-line { width: 40px; height: 1px; }
    .prq-arrow-label { writing-mode: horizontal-tb; }
    .prq-card-actions { justify-content: stretch; }
    .prq-btn-approve, .prq-btn-reject { flex: 1; }
    .prq-panel { padding: 1.2rem; }
}

/* ── Training paths (public) — same 1 / 2 / 3 rhythm as courses ─── */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
    align-items: stretch;
}
.tp-grid > a.tp-card {
    min-width: 0;
}
@media (min-width: 640px) {
    .tp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .tp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
a.tp-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
a.tp-card:hover .btn-outline {
    background: rgba(79, 209, 255, 0.12);
    border-color: rgba(79, 209, 255, 0.45);
    color: #e0f2fe;
}
.tp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
    text-decoration: none;
}
.tp-back:hover {
    text-decoration: underline;
    color: #fff;
}

/* ── Admin notifications dropdown ───────────────────────────────── */
.adm-notify-wrap {
    position: relative;
}
.adm-notify-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    max-width: 360px;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    z-index: 500;
    padding: 0.5rem 0;
}
[dir="rtl"] .adm-notify-dropdown {
    left: auto;
    right: 0;
}
.adm-notify-dropdown.open {
    display: block;
}
.adm-notify-item {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    cursor: pointer;
    font-size: 0.82rem;
    color: #e2e8f0;
    text-align: right;
}
.adm-notify-item:hover {
    background: rgba(59, 130, 246, 0.12);
}
.adm-notify-item small {
    display: block;
    color: rgba(148, 163, 184, 0.75);
    margin-top: 0.25rem;
    font-size: 0.72rem;
}
.adm-notify-head {
    padding: 0.5rem 1rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Performance: lighter motion & card effects ───────────────── */
.hero-3d,
.ch-blob,
.lsp-blob,
.prf-hero-blob,
.apps-hero-blob,
.cprf-hero-blob,
.cdash-hero-blob,
.course-card-media-glow {
    display: none !important;
}

/* بطاقات الدورات — hover احترافي بدون تبييض الخلفية */
.courses-grid > .course-card {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.courses-grid > .course-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(165deg, rgba(16, 32, 96, 0.99) 0%, rgba(10, 18, 48, 1) 100%) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
    box-shadow:
        0 20px 44px rgba(2, 11, 58, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.12) !important;
}

.courses-grid > .course-card:hover .course-card-title,
.courses-grid > .course-card:hover .course-card-title-link {
    color: #f8fafc !important;
}

.courses-grid > .course-card:hover .course-card-desc,
.courses-grid > .course-card:hover .course-card-meta {
    color: rgba(226, 232, 240, 0.88) !important;
}

.courses-grid > .course-card:hover .course-card-footer {
    background: rgba(0, 0, 0, 0.22);
    border-top-color: rgba(148, 163, 184, 0.14);
}

.courses-grid > .course-card:hover .btn-interest {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.55) !important;
}

.courses-grid > .course-card:hover .course-card-cover {
    transform: scale(1.03);
    filter: brightness(1.04) saturate(1.05);
}

.courses-grid > .course-card .course-card-cover {
    transition: transform 0.35s ease, filter 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
    }
}

/* ── Header cart ─────────────────────────────────────────────── */
.header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline-end: 0.75rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.header-cart-link:hover {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(30, 58, 138, 0.35);
}
.header-cart-link--has-items {
    border-color: rgba(34, 197, 94, 0.45);
}
.header-cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #22c55e;
    color: #052e16;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .header-cart-label { display: none; }
}

/* ── Checkout page ───────────────────────────────────────────── */
.checkout-page {
    padding: 2.5rem 0 4rem;
    min-height: 60vh;
}
.checkout-wrap {
    max-width: 1100px;
}
.checkout-header {
    margin-bottom: 1.75rem;
}
.checkout-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.35rem;
    color: #f8fafc;
}
.checkout-sub {
    margin: 0;
    color: rgba(148, 163, 184, 0.95);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
.checkout-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 36px rgba(2, 11, 58, 0.35);
}
.checkout-card-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #e2e8f0;
}
.checkout-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.checkout-cart-item:last-child { border-bottom: none; }
.checkout-cart-item-main strong {
    display: block;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}
.checkout-cart-cat {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.9);
}
.checkout-cart-item-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.checkout-cart-price {
    font-weight: 700;
    color: #4ade80;
    white-space: nowrap;
}
.checkout-remove-btn {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 1.05rem;
    color: #cbd5e1;
}
.checkout-total-row strong {
    font-size: 1.25rem;
    color: #4ade80;
}
.checkout-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.pay-method-chip {
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
}
.pay-method-chip--mada { color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.pay-method-chip--visa { color: #93c5fd; }
.pay-method-chip--apple { color: #f8fafc; }
.checkout-pay-note,
.checkout-secure {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.95);
    margin: 0.75rem 0;
}
.checkout-pay-placeholder {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.65);
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
}
.checkout-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
    margin-bottom: 1rem;
}
.checkout-alert--warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.checkout-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}
.checkout-success-wrap {
    max-width: 640px;
}
.checkout-success-card {
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
}
.checkout-success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 2rem;
    line-height: 4rem;
    font-weight: 800;
}
.checkout-success-list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: right;
    color: #cbd5e1;
}
.checkout-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ── Dashboard edit course modal ─────────────────────────────── */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 1rem;
}
.adm-modal-box {
    width: min(520px, 100%);
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 1.35rem 1.35rem;
}
.adm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.adm-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #f1f5f9;
}
.adm-modal-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.adm-modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 520px) {
    .adm-modal-grid-2 { grid-template-columns: 1fr; }
}
.adm-modal-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.adm-modal-msg {
    min-height: 1.25rem;
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}
.course-badge--price {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* ── Course interest button ───────────────────────────────────── */
.btn-interest {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    font-weight: 600;
}
.btn-interest:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
}
.btn-interest-done {
    opacity: 0.85;
    cursor: default;
}

/* ── Interest modal — premium form ───────────────────────────── */
.interest-modal-box.modal-box-premium {
    max-width: 460px !important;
    text-align: center;
}
.interest-modal-box .modal-title {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}
.interest-modal-box .modal-body {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
    color: rgba(226, 232, 240, 0.9);
}
.interest-course-chip {
    display: block;
    margin: 0 auto 1.1rem;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.interest-modal-box .interest-form {
    text-align: right;
    margin-top: 0.25rem;
}
.interest-modal-box .interest-field {
    margin-bottom: 1rem;
    text-align: right;
}
.interest-modal-box .interest-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}
.interest-modal-box .auth-form-group input.interest-input {
    border-radius: 12px !important;
}
.interest-modal-box .interest-input {
    width: 100%;
    padding: 0.78rem 1rem;
    border-radius: 12px !important;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    -webkit-text-fill-color: #0f172a;
    caret-color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.interest-modal-box .interest-input::placeholder {
    color: #64748b !important;
    font-weight: 500;
    opacity: 1;
}
.interest-modal-box .interest-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.22),
        inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.interest-modal-box .interest-input--phone {
    font-family: "Tajawal", ui-monospace, monospace;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    text-align: left;
    direction: ltr;
}
.interest-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    color: rgba(148, 163, 184, 0.95);
}
.interest-form-msg {
    min-height: 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0.15rem 0 0.65rem;
    text-align: center;
}
.interest-modal-box .modal-actions {
    justify-content: stretch;
    gap: 0.65rem;
    margin-top: 0.25rem;
}
.interest-modal-box .modal-actions .btn {
    flex: 1;
    min-height: 2.75rem;
    font-weight: 700;
}
.cd-actions .btn-interest {
    margin-top: 0.5rem;
}

/* ── Dashboard course interests ──────────────────────────────── */
.adm-interest-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin: 0 0 1rem;
    padding: 0 0.25rem;
}
.adm-interest-filters {
    min-width: min(100%, 320px);
}
.adm-interest-filter-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.adm-interest-select {
    width: 100%;
    max-width: 420px;
}
.adm-interest-search {
    flex: 1;
    min-width: 200px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #f1f5f9;
    font-size: 0.9rem;
}
.adm-interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0 0.25rem;
}
.adm-interest-chips-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    margin-inline-end: 0.25rem;
}
.adm-interest-chip {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(30, 41, 59, 0.75);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.adm-interest-chip:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: #e2e8f0;
}
.adm-interest-chip.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #fff;
}
.adm-interest-chip-count {
    display: inline-block;
    margin-inline-start: 0.25rem;
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
}
.adm-interest-stats {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
}
.dashboard-table--interests td:nth-child(4) {
    max-width: 280px;
    line-height: 1.45;
}
