/* Codino Institute – modern, colorful, Code-Club style */

:root {
    --codino-orange: #f97316;
    --codino-pink: #ec4899;
    --codino-purple: #8b5cf6;
    --codino-teal: #14b8a6;
    --codino-blue: #3b82f6;
    --codino-green: #22c55e;
    --codino-yellow: #eab308;
    --codino-navy: #1e293b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-body: #334155;
    --text-heading: #0f172a;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Avatars */
.avatar-ring {
    width: 154px;
    height: 154px;
    border-radius: 999px;
    padding: 6px;
    background: linear-gradient(135deg, var(--codino-orange), var(--codino-pink), var(--codino-purple), var(--codino-teal));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

html {
    overflow-x: hidden;
}

.page-wrapper {
    min-height: calc(100vh - 80px);
}

/* ----- Top bar (Code-Club style accent) ----- */
.top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--codino-orange), var(--codino-pink), var(--codino-purple), var(--codino-teal));
}

/* ----- Header ----- */
.main-navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 0.6rem 0;
}

.brand-wrap,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-heading);
}

.brand-logo {
    height: 38px;
    width: auto;
}

.brand-text {
    display: none !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-body);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--codino-purple);
    background: rgba(139, 92, 246, 0.08);
}

.nav-link-cta {
    background: linear-gradient(135deg, var(--codino-orange), var(--codino-pink));
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-link-cta:hover {
    background: linear-gradient(135deg, #ea580c, #db2777) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Mobile offcanvas sidebar width */
#mainOffcanvas {
    width: 70vw;
    max-width: 320px;
}

/* ----- Buttons ----- */
.btn-primary {
    background: linear-gradient(135deg, var(--codino-orange), var(--codino-pink));
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.btn-outline-fun {
    border-radius: 999px;
    border: 2px solid var(--codino-purple);
    color: var(--codino-purple);
    font-weight: 600;
    background: transparent;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline-fun:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    transform: translateY(-1px);
}

/* ----- Hero ----- */
.hero {
    padding: 4rem 0 4rem;
    background: linear-gradient(180deg, #fff 0%, #fef3c7 40%, #e0f2fe 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-badge .icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--codino-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-teens {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    color: #6d28d9;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 1rem;
    color: var(--text-heading);
}

.hero-highlight {
    background: linear-gradient(120deg, var(--codino-orange), var(--codino-pink), var(--codino-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 520px;
}

.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 2px;
}

@media (max-width: 767px) {
    .hero-stats {
        display: none;
    }
}

.hero-graphic {
    position: relative;
    padding: 1.5rem;
}

.hero-illustration-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-teens-illustration {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ----- Student dashboard (legacy cards — other pages) ----- */
.student-dashboard .lesson-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.student-dashboard .lesson-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--codino-teal), var(--codino-blue));
    border-radius: inherit;
}

.progress-only-card .progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    color: #0f172a;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.20);
    min-width: 52px;
}

.progress-only-card .card-body h6 {
    font-weight: 800;
    color: var(--text-heading);
}

.certificate-card {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(148, 163, 184, 0.7);
}

/* ----- Course carousel ----- */
#courseCarousel .carousel-item {
    padding: 1rem 0;
}

#courseCarousel .course-card {
    box-shadow: var(--shadow);
}

/* ----- Testimonials ----- */
.testimonials-section {
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
}

.testimonial-slider {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    transition: opacity 0.4s ease;
}

.testimonial-card.active {
    display: block;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-body);
}

.testimonial-name {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* ----- Courses page tweaks ----- */
.course-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.course-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coming-soon-card {
    border: 1px dashed rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.92);
}

/* Course detail page */
.course-hero-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.course-hero-thumb {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.course-hero-content {
    flex: 1;
    min-width: 0;
}

.course-hero-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.course-hero-meta {
    font-size: 0.9rem;
    color: #6b7280;
}

.course-hero-desc {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.course-price {
    font-weight: 700;
    color: var(--codino-orange);
}

.course-deadline {
    font-weight: 600;
    color: var(--codino-teal);
}

.module-plan .module-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.1rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.module-week {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.module-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.module-list {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.9rem;
}

.module-list li {
    margin-bottom: 0.25rem;
}

.course-outcomes {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
}

.course-outcomes li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.35rem;
}

.course-outcomes li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--codino-green);
    font-weight: 700;
}

/* Fun, block‑based vibe for course detail */
.course-detail-wrapper {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 55%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.22), transparent 55%);
}

.course-detail-wrapper .container {
    max-width: 1100px;
}

@media (max-width: 767px) {
    .course-hero-card {
        text-align: center;
    }

    .course-hero-thumb {
        margin: 0 auto 1rem;
    }
}

.programming-hero {
    position: relative;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: #e5e7eb;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.programming-hero .course-hero-pill {
    background: rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
}

.programming-hero .course-hero-title {
    color: #f9fafb;
}

.programming-hero .course-hero-subtitle {
    margin-top: 0.25rem;
    font-size: 1.05rem;
    color: #cbd5f5;
}

.programming-hero .course-hero-meta {
    color: #e5e7eb;
    margin-top: 0.75rem;
}

.programming-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #22c55e, #0ea5e9);
    color: #0f172a;
    font-size: 1.8rem;
}

.course-hero-cta .btn-primary {
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.45);
    min-width: 260px;
    white-space: nowrap;
}

/* ----- Programming Foundation landing page ----- */
.pf-hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top, #020617, #020617 40%, #0f172a 100%);
}

.pf-hero-card {
    background: radial-gradient(circle at top, #0f172a, #020617);
    border-radius: 32px;
    padding: 2.5rem 1.75rem 2.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.pf-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #22c55e, #14b8a6);
    font-size: 2rem;
}

.pf-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e0f2fe;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.pf-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #f9fafb;
}

.pf-subtitle {
    font-size: 1rem;
    color: #cbd5f5;
    max-width: 26rem;
    margin: 0 auto 1.1rem;
}

.pf-meta {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.pf-price {
    font-weight: 700;
    color: #facc15;
}

.pf-deadline {
    display: block;
    margin-top: 0.25rem;
    color: #6ee7b7;
    font-weight: 600;
}

.pf-cert-pill {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    color: #facc15;
    font-weight: 600;
    font-size: 0.9rem;
}

.pf-cta .pf-btn {
    min-width: 260px;
    white-space: nowrap;
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.65);
}

.pf-section {
    padding: 3rem 0;
    background: #fefce8;
}

.pf-section-alt {
    background: #ecfeff;
}

.pf-benefit-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.1rem 1rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.pf-benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.pf-benefit-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pf-benefit-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.contact-page-wrapper + .pf-section {
    border-radius: 0;
}

@media (max-width: 576px) {
    .course-detail-wrapper .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .course-hero-card {
        padding: 1.6rem 1.4rem;
        border-radius: 24px;
        width: 100%;
    }

    .course-hero-title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .programming-hero .course-hero-subtitle {
        font-size: 0.95rem;
    }

    .course-hero-meta span {
        display: block;
        margin-bottom: 0.15rem;
    }

    .course-hero-cta .btn-primary {
        width: 100%;
        margin-top: 0.75rem;
    }

    .module-plan .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.hero-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.hero-dots span:nth-child(1) { background: var(--codino-orange); }
.hero-dots span:nth-child(2) { background: var(--codino-yellow); }
.hero-dots span:nth-child(3) { background: var(--codino-green); }

.hero-code-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-code-line .badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hero-floating { position: absolute; inset: 0; pointer-events: none; }

.hero-bubble {
    position: absolute;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-bubble.b1 {
    top: 10%;
    right: 5%;
    background: var(--codino-orange);
    color: #fff;
}

.hero-bubble.b2 {
    bottom: 8%;
    left: 5%;
    background: var(--codino-green);
    color: #fff;
}

.hero-orbit {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(139, 92, 246, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ----- Sections ----- */
.section-title {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-heading);
}

.hero + section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    margin: 0 0.5rem;
    padding: 3rem 0 !important;
    box-shadow: var(--shadow);
}

/* ----- Why learn to code (Teenagers & Code) ----- */
.why-coding-section {
    position: relative;
    padding: 4rem 0 !important;
    margin: 2rem 0.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why-coding-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        linear-gradient(225deg, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        linear-gradient(315deg, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.why-coding-section .container {
    z-index: 1;
}

.pill-why {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: #6d28d9;
}

.why-coding-heading {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    background: linear-gradient(120deg, var(--codino-orange), var(--codino-pink), var(--codino-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-coding-lead {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-card {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.why-card-1 {
    background: linear-gradient(180deg, #fef3c7 0%, #ffffff 35%);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.why-card-1::before {
    background: linear-gradient(90deg, var(--codino-yellow), var(--codino-orange));
}

.why-card-2 {
    background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 35%);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.why-card-2::before {
    background: linear-gradient(90deg, var(--codino-blue), var(--codino-purple));
}

.why-card-3 {
    background: linear-gradient(180deg, #fce7f3 0%, #ffffff 35%);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
}

.why-card-3::before {
    background: linear-gradient(90deg, var(--codino-pink), var(--codino-purple));
}

.why-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.why-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.why-card-text {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
    line-height: 1.55;
}

.why-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    font-weight: 600;
    color: var(--text-heading);
}

.why-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-benefit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--codino-orange), var(--codino-pink));
}

.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.15);
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ----- Cards (course cards, feature cards) ----- */
.course-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid transparent;
    background-image: linear-gradient(var(--bg-white), var(--bg-white)), linear-gradient(135deg, var(--codino-orange), var(--codino-pink), var(--codino-purple));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.course-card .card-body {
    padding: 1.25rem;
}

.course-card img {
    height: 200px;
    object-fit: cover;
}

/* Module page */
.module-hero-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(236,72,153,0.10), rgba(20,184,166,0.10));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.module-hero-title {
    font-weight: 900;
    color: var(--text-heading);
}

.module-lesson-item {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255,255,255,0.85);
    transition: transform .2s ease, box-shadow .2s ease;
}

.module-lesson-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.10);
}

.module-mini-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: .75rem;
}

/* Course page extra polish */
.course-hero-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.difficulty-pill,
.badge.difficulty-pill {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    color: #be185d;
}

/* ----- Footer ----- */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    margin-top: 4rem;
    position: relative;
}

.footer-wave {
    height: 6px;
    background: linear-gradient(90deg, var(--codino-orange), var(--codino-pink), var(--codino-purple));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .brand-logo { height: 36px; }

.footer-brand .brand-text { color: #f8fafc; }

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--codino-pink);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ----- Utilities (lesson, certificate, admin) ----- */
.lesson-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

.lesson-sidebar {
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.lesson-content {
    border-radius: var(--radius-lg) !important;
}

.lesson-content h2,
.lesson-content h5 {
    color: var(--text-heading);
    font-weight: 800;
}

/* Preserve spaces & line breaks from the lesson editor (HTML collapses them by default). */
.lesson-body,
.lesson-challenge-body {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.lesson-body pre,
.lesson-body code,
.lesson-challenge-body pre,
.lesson-challenge-body code {
    white-space: pre;
    overflow-x: auto;
}

.lesson-body table,
.lesson-body thead,
.lesson-body tbody,
.lesson-body tr,
.lesson-body td,
.lesson-body th,
.lesson-body ul,
.lesson-body ol,
.lesson-body li,
.lesson-challenge-body table,
.lesson-challenge-body ul,
.lesson-challenge-body ol,
.lesson-challenge-body li {
    white-space: normal;
}

.lesson-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.lesson-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--codino-green), var(--codino-teal));
    border-radius: 999px;
}

.lesson-helper-note {
    background: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font-size: 0.87rem;
    color: #1e3a8a;
}

.profile-wizard-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.profile-step-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-step-chip.is-done {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.profile-step-chip.is-pending {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.certificate-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f0f9ff, #fce7f3);
    padding: 1.25rem;
    border: 2px dashed var(--codino-blue);
}

/* ----- Admin dashboard ----- */
.admin-dashboard-wrap {
    background: var(--bg-light);
}

.admin-dash-title {
    font-weight: 800;
    color: var(--text-heading);
}

.admin-stat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.admin-stat-students { border-color: rgba(59, 130, 246, 0.3); }
.admin-stat-courses { border-color: rgba(236, 72, 153, 0.3); }
.admin-stat-lessons { border-color: rgba(139, 92, 246, 0.3); }
.admin-stat-workshops { border-color: rgba(249, 115, 22, 0.3); }
.admin-stat-events { border-color: rgba(20, 184, 166, 0.3); }
.admin-stat-certs { border-color: rgba(34, 197, 94, 0.3); }

.admin-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
}

.admin-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.admin-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-card-title {
    font-weight: 700;
    color: var(--text-heading);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-body);
    background: #f8fafc;
    transition: background 0.2s, color 0.2s;
}

.admin-action-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--codino-purple);
}

.admin-action-primary {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(236, 72, 153, 0.15));
    color: var(--text-heading);
    font-weight: 600;
}

.admin-action-primary:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(236, 72, 153, 0.25));
}

.admin-action-icon {
    font-size: 1.1rem;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.admin-list-item:last-child {
    border-bottom: none;
}

.admin-list-bullet {
    color: var(--codino-pink);
    font-size: 0.7rem;
}

.admin-course-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    background: #f8fafc;
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 600;
    transition: background 0.2s;
}

.admin-course-chip:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* ----- About page ----- */
.about-hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-heading);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 1rem auto 0;
}

.pill-about {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.2));
    color: #c2410c;
}

.about-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border-top: 4px solid transparent;
}

.about-card-mission {
    background: linear-gradient(180deg, #fef3c7 0%, #fff 40%);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
}

.about-card-mission { border-top-color: var(--codino-orange); }

.about-card-teen {
    background: linear-gradient(180deg, #e0f2fe 0%, #fff 40%);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.about-card-teen { border-top-color: var(--codino-blue); }

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.about-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.about-card-text {
    color: var(--text-body);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--codino-green);
    font-weight: 700;
}

.about-feature {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.about-feature-num {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(139, 92, 246, 0.3);
    line-height: 1;
}

.about-feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0.5rem 0;
}

.about-feature p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
}

/* ----- Admin & auth pages ----- */
/* ----- Public auth shell (login / register / password) ----- */
.auth-page {
    position: relative;
    min-height: calc(100vh - 120px);
    overflow: hidden;
}

.auth-page-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 0% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 10%, rgba(244, 114, 182, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(16, 185, 129, 0.08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle fill='%233b82f6' fill-opacity='0.04' cx='2' cy='2' r='1'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    opacity: 0.9;
}

.auth-page-inner {
    position: relative;
    z-index: 1;
}

.auth-side-panel {
    height: 100%;
    min-height: 420px;
    border-radius: 22px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #4f46e5 48%, #7c3aed 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 18px 50px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-side-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -25%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
    pointer-events: none;
}

.auth-side-panel.is-auth-admin {
    background: linear-gradient(145deg, #4c1d95 0%, #6c5dd3 45%, #312e81 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 18px 50px rgba(76, 29, 149, 0.45);
}

.auth-side-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-side-logo {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
}

.auth-side-site {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.auth-side-body {
    position: relative;
    z-index: 1;
}

.auth-side-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.auth-side-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.1rem;
    opacity: 0.92;
}

.auth-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.auth-side-list li {
    position: relative;
    padding-left: 1.35rem;
}

.auth-side-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.auth-mobile-brand img {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.auth-form-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 1.5rem 1.35rem 1.6rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 14px 40px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(15, 23, 42, 0.05);
}

@media (min-width: 576px) {
    .auth-form-card {
        padding: 1.75rem 1.65rem 1.85rem;
    }
}

.auth-form-title {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.45rem;
    color: #0f172a;
}

.auth-form-lead {
    font-size: 0.95rem;
    margin-bottom: 1.25rem !important;
    line-height: 1.55;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.auth-input {
    border-radius: 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.45) !important;
    padding: 0.62rem 0.85rem !important;
}

.auth-input:focus {
    border-color: rgba(37, 99, 235, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.auth-form .input-group .auth-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.auth-form .input-group .auth-pw-toggle {
    border-radius: 0 12px 12px 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-submit {
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 700 !important;
}

.auth-alert {
    border-radius: 12px;
    border: none;
}

.auth-form-foot {
    color: #64748b;
}

.auth-form-foot a {
    font-weight: 700;
}

/* ----- Course catalog page shell ----- */
.courses-catalog-shell {
    position: relative;
    overflow: hidden;
}

.courses-catalog-shell-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% 5%, rgba(244, 114, 182, 0.09), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.courses-catalog-shell-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle fill='%2394a3b8' fill-opacity='0.06' cx='2' cy='2' r='1'/%3E%3C/svg%3E");
    background-size: 24px 24px;
}

.courses-catalog-shell .courses-catalog-page {
    z-index: 1;
}

.container.py-5 .card,
.admin .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: none;
}

.alert {
    border-radius: var(--radius);
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .hero + section { margin: 0 0.25rem; }
    .why-coding-section { margin: 2rem 0.25rem 0; padding: 3rem 0 !important; }
    .why-benefits { flex-direction: column; align-items: center; }
    .lesson-layout { grid-template-columns: 1fr; }
    .footer-inner .row { text-align: center; }
    .footer-tagline { max-width: none; }
    .footer-brand { justify-content: center; }
}

@media (max-width: 576px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

/* ----- Course catalog (list) ----- */
.courses-catalog-page .course-card-v2 {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.05),
        0 14px 34px rgba(15, 23, 42, 0.06);
}

.courses-search-wrap {
    width: 100%;
    max-width: 380px;
}

.courses-search-input {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.62rem 0.85rem;
}

.courses-search-input:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.courses-empty-search {
    margin-top: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: #64748b;
    font-weight: 600;
}
.courses-catalog-page .course-card-v2:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.1),
        0 22px 44px rgba(15, 23, 42, 0.12);
}
.course-card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
}
.course-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.courses-catalog-page .course-card-v2:hover .course-card-thumb {
    transform: scale(1.04);
}
.course-card-soon-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.95);
    color: #1c1917;
}
.course-card-soon {
    border-style: dashed;
}
.course-card-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 600;
}
.course-card-v2-body {
    padding: 1rem 1rem 1.05rem;
    gap: 0.1rem;
}
.course-card-v2-top {
    margin-bottom: 0.45rem !important;
}
.course-card-difficulty {
    background: linear-gradient(135deg, #10b981, #14b8a6) !important;
    border: none;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
.course-card-price {
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.36rem 0.62rem;
}
.course-card-price-free {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.45);
}
.course-card-price-paid {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
}
.course-card-title {
    font-size: clamp(1.06rem, 1.5vw, 1.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}
.course-card-excerpt {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #475569;
}
.course-card-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
}
.course-card-cta {
    border: none;
    border-radius: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--codino-orange), var(--codino-pink));
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.28);
}
.course-card-cta:hover {
    filter: brightness(1.05);
}
.course-card-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}
.course-card-btn-view {
    border-radius: 14px;
    font-weight: 700;
}

@media (max-width: 575px) {
    .courses-catalog-page .course-card-v2 {
        border-radius: 18px;
    }
    .course-card-v2-body {
        padding: 0.9rem 0.85rem 0.95rem;
    }
    .course-card-excerpt {
        -webkit-line-clamp: 4;
    }
    .course-card-meta-chip {
        font-size: 0.74rem;
    }
}

/* ----- Course overview (detail) — admin-driven content, polished cards ----- */
.course-overview-page {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 24%);
}
.course-ov-hero {
    position: relative;
    color: #f8fafc;
    overflow: hidden;
}
.course-ov-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--course-hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.08);
}
.course-ov-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 64, 175, 0.82) 50%, rgba(14, 116, 144, 0.75) 100%);
}
.course-ov-hero .container {
    position: relative;
    z-index: 1;
}
.course-ov-hero-thumb {
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.12),
        0 28px 56px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.course-ov-hero-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.course-ov-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}
.course-ov-pill-muted { opacity: 0.95; }
.course-ov-pill-warn {
    background: rgba(251, 191, 36, 0.28);
    border-color: rgba(253, 224, 71, 0.55);
    color: #fffbeb;
}
.course-ov-pill-live {
    background: rgba(34, 197, 94, 0.28);
    border-color: rgba(74, 222, 128, 0.5);
    color: #ecfdf5;
}
.course-ov-pill-accent {
    background: rgba(52, 211, 153, 0.28);
    border-color: rgba(52, 211, 153, 0.55);
    color: #ecfdf5;
}
.course-ov-title {
    font-size: clamp(1.65rem, 4.5vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0.5rem 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.course-ov-lead {
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    max-width: 38rem;
    margin: 0.5rem auto 0;
    line-height: 1.55;
    opacity: 0.94;
}
.text-lg-start .course-ov-lead {
    margin-left: 0;
    margin-right: 0;
}
.course-ov-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.course-ov-progress-bar .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa);
}

/* Stats band — quick facts from admin data */
.course-ov-stats-band {
    margin-top: -2.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    padding: 0 0.75rem;
}
.course-ov-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 12px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.95);
    height: 100%;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-ov-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.course-ov-stat-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.course-ov-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
}
.course-ov-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    word-break: break-word;
}
.course-ov-stat-value-sm {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Prose + sidebar cards */
.course-ov-card-prose {
    background: transparent;
}
.course-ov-card-inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.35rem;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 14px 36px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
@media (min-width: 768px) {
    .course-ov-card-inner {
        padding: 1.85rem 2rem;
    }
}
.course-ov-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--codino-teal), var(--codino-blue)) 1;
}
.course-ov-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.course-ov-modules-heading {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--text-heading);
}

.course-ov-module-tile {
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.course-ov-module-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--codino-orange), var(--codino-teal));
    border-radius: 4px 0 0 4px;
}
.course-ov-module-tile-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.course-ov-module-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    padding-left: 0.25rem;
}
.course-ov-module-tile-meta {
    font-size: 0.85rem;
    color: #64748b;
    padding-left: 0.25rem;
}

.course-ov-sidebar .course-ov-card-inner {
    padding-bottom: 1.25rem;
}

.course-ov-curriculum {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.course-ov-mod {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.course-ov-mod-standalone {
    margin-top: 0.5rem;
}
.course-ov-mod-empty {
    padding-left: 0.15rem;
}
.course-ov-mod-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}
.course-ov-mod-num {
    flex-shrink: 0;
    min-width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(145deg, #0ea5e9, #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.course-ov-mod-num-dot {
    background: linear-gradient(145deg, #94a3b8, #64748b);
    font-size: 1rem;
    line-height: 1;
}
.course-ov-mod-title {
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    font-size: 0.98rem;
}
.course-ov-lesson-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    color: #475569;
}
.course-ov-lesson-list li {
    margin-bottom: 0.28rem;
}
.course-ov-lesson-list a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}
.course-ov-lesson-list a:hover {
    text-decoration: underline;
    color: #0c4a6e;
}
.course-ov-lesson-flat {
    padding-left: 1.15rem;
}

.course-ov-sidebar-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}
.course-ov-total-lessons {
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 991px) {
    .course-ov-sidebar {
        position: relative !important;
        top: auto !important;
    }
    .course-ov-hero-thumb {
        max-width: min(100%, 380px);
    }
    .course-ov-stats-band {
        margin-top: -1.5rem;
    }
}

@media (max-width: 575px) {
    .course-ov-hero {
        padding-bottom: 0.25rem;
    }
    .course-ov-cta .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }
    .course-ov-stat-card {
        min-height: 104px;
        padding: 0.85rem 0.5rem;
    }
    .course-ov-stat-value {
        font-size: 0.88rem;
    }
    .course-ov-module-tile {
        padding: 1rem 1rem;
    }
}

/* ----- Contact page ----- */
.contact-page-wrapper {
    overflow-x: hidden;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(20, 184, 166, 0.35), transparent 42%),
        radial-gradient(circle at 82% 72%, rgba(59, 130, 246, 0.32), transparent 48%),
        linear-gradient(148deg, #0f172a 0%, #1e3a5f 45%, #312e81 100%);
}

.contact-title {
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #f8fafc;
    margin: 0.75rem 0 0;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.contact-lead {
    color: #cbd5e1;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 36rem;
    margin: 1rem auto 0;
}

.contact-hero .pill-contact {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #e0e7ff;
    backdrop-filter: blur(8px);
}

.contact-content {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 35%);
    margin-top: -2rem;
    padding-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.35rem 1.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 16px 40px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.contact-form-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--codino-teal), var(--codino-blue)) 1;
}

.contact-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.contact-input {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.65rem 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-input:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.contact-submit {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, var(--codino-blue), #6366f1);
    border: none;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.contact-alert-success {
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(52, 211, 153, 0.15));
    color: #14532d;
    font-weight: 600;
    padding: 1rem 1.15rem;
}

.contact-info-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%);
    border-radius: 20px;
    padding: 1.5rem 1.35rem 1.65rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 16px 40px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
}

.contact-info-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--codino-orange), var(--codino-teal)) 1;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0.85rem;
    margin: 0 -0.85rem;
    border-radius: 14px;
    transition: background 0.15s ease;
}

.contact-info-item:hover {
    background: rgba(241, 245, 249, 0.85);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-info-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-info-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.contact-info-link {
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-link:hover {
    text-decoration: underline;
    color: #0c4a6e;
}

.contact-info-text {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-social-block {
    margin-top: auto;
    padding-top: 1.35rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.contact-social-heading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-social-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-heading);
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.contact-social-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: var(--codino-blue);
}

.contact-social-chip-muted {
    opacity: 0.72;
    cursor: default;
    pointer-events: none;
}

@media (min-width: 992px) {
    .contact-form-card,
    .contact-info-card {
        padding: 1.85rem 2rem 2rem;
    }
}

@media (max-width: 991px) {
    .contact-content {
        margin-top: -1.25rem;
    }
}

@media (max-width: 575px) {
    .contact-form-card,
    .contact-info-card {
        padding: 1.25rem 1.15rem 1.4rem;
        border-radius: 18px;
    }

    .contact-info-item {
        padding: 0.85rem 0.65rem;
        margin: 0 -0.65rem;
    }

    .contact-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-social-chip {
        justify-content: center;
    }
}

/* ----- About page refresh ----- */
.about-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}
.about-hero-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(129, 140, 248, 0.35), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.3), transparent 50%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    opacity: 1;
}
.about-hero .about-title {
    color: #f9fafb;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.about-hero .about-lead {
    color: #e2e8f0;
    font-size: 1.12rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.about-hero .pill-about {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
}
.about-content {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 40%);
}
.about-card {
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}
.about-feature {
    border-radius: 18px;
    padding: 1.25rem 1.1rem;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
@media (max-width: 767px) {
    .about-feature { margin-bottom: 0.5rem; }
}

/* ----- Course detail: deadline pill + payment strip + content cards ----- */
.course-ov-pill-deadline {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(253, 224, 71, 0.45);
    color: #fffbeb;
}

.course-overview-page > .alert {
    margin: 0 auto;
    max-width: 900px;
    border-radius: 14px;
}

.cd-pay-strip {
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 45%, #ffffff 100%);
    border-top: 1px solid rgba(125, 211, 252, 0.35);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.cd-pay-panel {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.35rem 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 4px 6px rgba(14, 165, 233, 0.06),
        0 20px 50px rgba(15, 23, 42, 0.08);
}

.cd-pay-panel-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cd-pay-panel-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cd-pay-panel-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 0.35rem;
}

.cd-pay-panel-lead {
    font-size: 0.95rem;
    line-height: 1.55;
}

.cd-pay-summary {
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.08));
    border-radius: 16px;
    padding: 1.15rem 1.1rem;
    border: 1px solid rgba(14, 165, 233, 0.22);
    height: 100%;
}

.cd-pay-summary-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0369a1;
    margin: 0 0 0.25rem;
}

.cd-pay-summary-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 1rem;
    line-height: 1.1;
}

.cd-pay-student li {
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.cd-pay-method {
    display: block;
    margin: 0;
    cursor: pointer;
    height: 100%;
}

.cd-pay-method .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cd-pay-method-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    border: 2px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    min-height: 76px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cd-pay-method:hover .cd-pay-method-inner {
    border-color: rgba(59, 130, 246, 0.45);
    background: #fff;
}

.cd-pay-method .form-check-input:checked + .cd-pay-method-inner {
    border-color: #0ea5e9;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}

.cd-pay-method-name {
    font-weight: 800;
    color: var(--text-heading);
    font-size: 1.05rem;
}

.cd-pay-method-hint {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.cd-pay-input {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.cd-pay-submit {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.65rem 1.75rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.cd-pay-submit:hover {
    color: #fff;
    filter: brightness(1.05);
}

.cd-pay-legend {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .cd-pay-panel {
        padding: 1.75rem 2rem 2rem;
    }
}

/* Stacked detail cards (description / outcomes / curriculum) */
.cd-detail-stack {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.cd-detail-card {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.cd-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 22px 22px 0 0;
}

.cd-detail-card--desc::before {
    background: linear-gradient(90deg, var(--codino-teal), #22d3ee);
}

.cd-detail-card--outcomes::before {
    background: linear-gradient(90deg, var(--codino-purple), var(--codino-pink));
}

.cd-detail-card--curriculum::before {
    background: linear-gradient(90deg, var(--codino-orange), var(--codino-yellow));
}

.cd-detail-card-inner {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    padding: 1.35rem 1.25rem 1.5rem;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 14px 36px rgba(15, 23, 42, 0.06);
}

.cd-detail-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.cd-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cd-detail-card--desc .cd-detail-icon {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.2), rgba(34, 211, 238, 0.15));
}

.cd-detail-card--outcomes .cd-detail-icon {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.12));
}

.cd-detail-card--curriculum .cd-detail-icon {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.2), rgba(234, 179, 8, 0.15));
}

.cd-detail-title {
    font-size: clamp(1.15rem, 2.8vw, 1.4rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.2;
}

.cd-detail-body {
    font-size: 1rem;
    line-height: 1.75;
}

.cd-outcome-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-outcome-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
    color: #475569;
    line-height: 1.5;
}

.cd-outcome-list li:last-child {
    border-bottom: none;
}

.cd-outcome-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.12));
    color: var(--codino-purple);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-curriculum-prose {
    font-size: 1rem;
    line-height: 1.75;
}

.cd-curriculum-border-top {
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.cd-curriculum-mod {
    margin-bottom: 1.25rem;
}

.cd-curriculum-mod:last-child {
    margin-bottom: 0;
}

.cd-curriculum-mod-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cd-curriculum-mod-num {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(145deg, #f97316, #eab308);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.cd-curriculum-mod-num-dot {
    background: linear-gradient(145deg, #94a3b8, #64748b);
    font-size: 1.1rem;
    box-shadow: none;
}

.cd-curriculum-mod-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.35;
    padding-top: 0.15rem;
}

.cd-curriculum-lessons {
    margin: 0;
    padding-left: 1.2rem;
    color: #475569;
    font-size: 0.95rem;
}

.cd-curriculum-lessons li {
    margin-bottom: 0.35rem;
}

.cd-curriculum-lessons a {
    color: #0369a1;
    font-weight: 500;
    text-decoration: none;
}

.cd-curriculum-lessons a:hover {
    text-decoration: underline;
}

.cd-curriculum-lessons-flat {
    padding-left: 1.2rem;
}

@media (max-width: 575px) {
    .cd-detail-card-inner {
        padding: 1.15rem 1rem;
        border-radius: 18px;
    }

    .cd-detail-card {
        border-radius: 18px;
    }
}

/* ----- Course details minimal view ----- */
.cd-minimal-page {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 75% 50% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 42% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 50%),
        linear-gradient(180deg, #f1f5f9 0%, #ffffff 48%);
}

.cd-minimal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle fill='%2394a3b8' fill-opacity='0.05' cx='2' cy='2' r='1'/%3E%3C/svg%3E");
    background-size: 24px 24px;
}

.course-overview-page.cd-minimal-page > * {
    position: relative;
    z-index: 1;
}

.cd-minimal-hero {
    position: relative;
}

.cd-minimal-card {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    padding: 1.35rem 1.2rem 1.45rem;
    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.05),
        0 18px 44px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    .cd-minimal-card {
        padding: 1.7rem 1.85rem 1.8rem;
    }
}

.cd-minimal-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cd-minimal-status.is-published {
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.cd-minimal-status.is-soon {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cd-minimal-price {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.78rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.cd-minimal-title {
    font-size: clamp(1.45rem, 3.4vw, 2.1rem);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin: 0.25rem 0 0.8rem;
}

.cd-minimal-summary {
    margin: 0 0 0.2rem;
    color: #475569;
    line-height: 1.65;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.cd-minimal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cd-minimal-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.cd-minimal-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    white-space: normal;
    margin-top: 0.85rem;
    padding-top: 0.95rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.cd-minimal-subtitle {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.45rem;
}

.cd-minimal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cd-minimal-actions .btn {
    border-radius: 12px;
    font-weight: 700;
}

.cd-minimal-thumb-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.cd-minimal-thumb {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ----- Student dashboard v2 (three-column concept, responsive) ----- */
.stdash-page {
    --stdash-bg: #f4f2ec;
    --stdash-orange: #f06529;
    --stdash-pink: #e94e77;
    --stdash-blue: #2d5bff;
    --stdash-yellow: #f4b400;
    --stdash-card: #ffffff;
    --stdash-text: #1a1a1a;
    --stdash-muted: #6b6b6b;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 90% 55% at 10% -5%, rgba(45, 91, 255, 0.11), transparent 52%),
        radial-gradient(ellipse 70% 45% at 95% 10%, rgba(233, 78, 119, 0.09), transparent 48%),
        radial-gradient(ellipse 50% 35% at 50% 100%, rgba(244, 180, 0, 0.06), transparent 55%),
        var(--stdash-bg);
    min-height: calc(100vh - 80px);
    padding-bottom: 2rem;
}

.stdash-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle fill='%23000' fill-opacity='0.018' cx='2' cy='2' r='1'/%3E%3C/svg%3E");
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.stdash-page .stdash-shell {
    position: relative;
    z-index: 1;
}

.stdash-mobile-toggle {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1035;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--stdash-orange), var(--stdash-pink));
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 28px rgba(240, 101, 41, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stdash-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem 0.8rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

@media (min-width: 992px) {
    .stdash-shell {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr) 288px;
        gap: 1.1rem 1.25rem;
        padding: 1.1rem 1rem 1.6rem;
        align-items: start;
    }

    .stdash-mobile-toggle {
        display: none !important;
    }
}

/* Sidebar: Bootstrap offcanvas-lg = drawer on small, static column on lg+ */
.stdash-sidebar {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 32px rgba(15, 23, 42, 0.07),
        0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

@media (min-width: 992px) {
    .stdash-sidebar.offcanvas-lg {
        transform: none !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        max-width: none;
        height: auto !important;
        z-index: 1;
    }

    .stdash-sidebar.offcanvas-lg .offcanvas-header {
        display: none !important;
    }
}

.stdash-sidebar-inner {
    padding: 1.35rem 1.1rem 1.25rem;
    min-height: 500px;
}

@media (min-width: 992px) {
    .stdash-sidebar-inner {
        min-height: calc(100vh - 146px);
        position: sticky;
        top: 88px;
    }
}

.stdash-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--stdash-text);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    padding: 0 0.15rem;
}

.stdash-brand-logo {
    border-radius: 12px;
    object-fit: contain;
}

.stdash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stdash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--stdash-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stdash-nav-link:hover {
    background: rgba(45, 91, 255, 0.08);
    color: var(--stdash-text);
    transform: translateX(2px);
}

.stdash-nav-link.is-active {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);
}

.stdash-nav-link-muted {
    margin-top: 0.5rem;
    color: #9ca3af;
}

.stdash-nav-ico {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
    font-size: 0.95rem;
}

.stdash-promo {
    margin-top: 2rem;
    padding: 1.15rem 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(240, 101, 41, 0.12), rgba(233, 78, 119, 0.12));
    border: 1px solid rgba(240, 101, 41, 0.15);
    text-align: center;
}

.stdash-promo-art {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stdash-promo-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
    color: var(--stdash-text);
}

.stdash-promo-text {
    font-size: 0.78rem;
    color: var(--stdash-muted);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.stdash-promo-btn {
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--stdash-orange), var(--stdash-pink));
    color: #fff !important;
    border: none;
}

.stdash-main {
    min-width: 0;
    order: 1;
    display: grid;
    grid-auto-rows: min-content;
    row-gap: 1.1rem;
}

.stdash-section {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 1.1rem 1.05rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 10px 40px rgba(15, 23, 42, 0.06),
        0 2px 10px rgba(15, 23, 42, 0.03);
}

.stdash-section .stdash-section-head {
    margin-bottom: 0.95rem;
}

.stdash-section .stdash-course-scroll {
    margin: 0 -1.05rem;
    padding: 0 1.05rem 0.15rem;
}

.stdash-rail {
    order: 2;
}

@media (min-width: 992px) {
    .stdash-sidebar {
        order: 0;
    }

    .stdash-main {
        order: 1;
    }

    .stdash-rail {
        order: 2;
    }
}

.stdash-greeting {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--stdash-text);
    letter-spacing: -0.02em;
}

.stdash-greeting-name {
    color: var(--stdash-blue);
}

.stdash-greeting-sub {
    font-size: 0.95rem;
}

.stdash-main > .alert {
    margin-bottom: 0.15rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.stdash-focus-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 45%, #1e1b4b 100%);
    color: #f9fafb;
    border-radius: 22px;
    padding: 1.15rem 1.1rem;
    display: grid;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 20px 50px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(45, 91, 255, 0.15);
}

.stdash-focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stdash-orange), var(--stdash-pink), var(--stdash-blue));
    opacity: 0.95;
}

.stdash-focus-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(45, 91, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.stdash-focus-card > * {
    position: relative;
    z-index: 1;
}

.stdash-focus-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.stdash-focus-title {
    margin: 0.55rem 0 0.25rem;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.stdash-focus-sub {
    color: #d1d5db;
    font-size: 0.88rem;
}

.stdash-focus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.stdash-focus-link {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
}

.stdash-focus-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.stdash-focus-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.stdash-focus-stat {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.6rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stdash-focus-stat-num {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.stdash-focus-stat-lbl {
    font-size: 0.68rem;
    color: #d1d5db;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (min-width: 768px) {
    .stdash-focus-card {
        grid-template-columns: minmax(0, 1.5fr) auto;
        align-items: center;
    }

    .stdash-focus-stats {
        grid-column: 1 / -1;
    }
}

.stdash-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.stdash-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--stdash-text);
}

.stdash-section-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--stdash-blue);
    text-decoration: none;
    white-space: nowrap;
}

.stdash-section-link:hover {
    text-decoration: underline;
}

.stdash-course-scroll {
    margin: 0 -0.85rem;
    padding: 0 0.85rem 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.stdash-course-row {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.1rem;
}

@media (min-width: 992px) {
    .stdash-course-scroll {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .stdash-section .stdash-course-scroll {
        margin: 0;
        padding: 0;
    }

    .stdash-course-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.95rem;
    }
}

/* Tablet polish: avoid crowded 3-up cards, keep 2 balanced columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .stdash-course-scroll {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .stdash-section .stdash-course-scroll {
        margin: 0;
        padding: 0;
    }

    .stdash-course-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .stdash-course-card {
        flex: none;
    }
}

.stdash-course-card {
    flex: 0 0 min(280px, 85vw);
    display: flex;
    flex-direction: column;
    background: var(--stdash-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 992px) {
    .stdash-course-card {
        flex: none;
    }
}

.stdash-course-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(45, 91, 255, 0.08);
}

.stdash-course-card--a {
    border-top: 5px solid var(--stdash-orange);
}

.stdash-course-card--b {
    border-top: 5px solid var(--stdash-pink);
}

.stdash-course-card--c {
    border-top: 5px solid var(--stdash-blue);
}

.stdash-course-card-visual {
    height: 120px;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stdash-course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stdash-course-card-placeholder {
    font-size: 2.75rem;
    opacity: 0.85;
}

.stdash-course-card-body {
    padding: 0.9rem 1rem 1rem;
    position: relative;
}

.stdash-course-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
}

.stdash-course-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.55rem;
    color: var(--stdash-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stdash-progress-track {
    height: 8px;
    background: #eceae4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stdash-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--stdash-orange), var(--stdash-pink));
    transition: width 0.4s ease;
}

.stdash-course-card--b .stdash-progress-fill {
    background: linear-gradient(90deg, var(--stdash-pink), var(--stdash-blue));
}

.stdash-course-card--c .stdash-progress-fill {
    background: linear-gradient(90deg, var(--stdash-blue), #22c55e);
}

.stdash-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--stdash-text);
}

.stdash-empty-card {
    background: var(--stdash-card);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stdash-btn-primary {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    background: linear-gradient(135deg, var(--stdash-blue), #6366f1);
    color: #fff !important;
    border: none;
    box-shadow: 0 8px 24px rgba(45, 91, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.stdash-btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(45, 91, 255, 0.42);
    color: #fff !important;
}

/* Schedule list */
.stdash-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stdash-schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    background: var(--stdash-card);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stdash-schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.stdash-sch-ico {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
}

.stdash-sch-ico--o {
    background: linear-gradient(145deg, var(--stdash-orange), #fb923c);
}

.stdash-sch-ico--p {
    background: linear-gradient(145deg, var(--stdash-pink), #f472b6);
}

.stdash-sch-ico--b {
    background: linear-gradient(145deg, var(--stdash-blue), #38bdf8);
}

.stdash-sch-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stdash-sch-course {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--stdash-text);
}

.stdash-sch-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--stdash-blue);
    white-space: nowrap;
}

.stdash-sch-more {
    flex-shrink: 0;
    text-decoration: none;
    color: #9ca3af;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0.25rem;
    align-self: center;
}

.stdash-sch-more:hover {
    color: var(--stdash-text);
}

/* Right rail */
.stdash-rail {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 1rem 0.95rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 32px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: grid;
    grid-auto-rows: min-content;
    row-gap: 0.75rem;
}

.stdash-rail .mb-4 {
    margin-bottom: 0 !important;
}

.stdash-rail .mb-3 {
    margin-bottom: 0 !important;
}

.stdash-rail-avatar {
    border-radius: 14px;
    object-fit: cover;
    background: #f3f4f6;
}

.stdash-rail-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--stdash-text);
}

.stdash-rail-handle {
    font-size: 0.75rem;
    color: var(--stdash-muted);
}

.stdash-rail-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    text-decoration: none;
    color: var(--stdash-text);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stdash-calendar {
    background: #faf8f4;
    border-radius: 16px;
    padding: 0.75rem 0.62rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stdash-cal-head {
    text-align: center;
    margin-bottom: 0.65rem;
}

.stdash-cal-month {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--stdash-text);
}

.stdash-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--stdash-muted);
    margin-bottom: 0.35rem;
}

.stdash-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    text-align: center;
}

.stdash-cal-cell {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.28rem 0;
    border-radius: 8px;
    color: var(--stdash-text);
}

.stdash-cal-cell.is-today {
    background: #1a1a1a;
    color: #fff;
}

.stdash-cal-empty {
    visibility: hidden;
}

.stdash-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.stdash-stat-cell {
    background: #faf8f4;
    border-radius: 14px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stdash-stat-ico {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.stdash-stat-num {
    display: block;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--stdash-text);
    line-height: 1.1;
}

.stdash-stat-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--stdash-muted);
}

.stdash-res-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    padding: 0.85rem 0.75rem;
    min-height: 108px;
    position: relative;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stdash-res-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.stdash-res-card--yellow {
    background: linear-gradient(145deg, #fff7d6, #ffecb0);
    border: 1px solid rgba(244, 180, 0, 0.35);
}

.stdash-res-card--pink {
    background: linear-gradient(145deg, #ffe4ec, #ffd0e0);
    border: 1px solid rgba(233, 78, 119, 0.25);
}

.stdash-res-arrow,
.stdash-res-play {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.stdash-res-title {
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.stdash-res-count {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--stdash-text);
}

.stdash-res-hint {
    font-size: 0.65rem;
    color: var(--stdash-muted);
    margin-top: 0.35rem;
}

.stdash-chart-card {
    background: #faf8f4;
    border-radius: 18px;
    padding: 0.85rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stdash-chart-title {
    font-size: 0.95rem;
    font-weight: 800;
}

.stdash-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    height: 108px;
    padding-top: 0.3rem;
}

.stdash-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.stdash-chart-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 88px;
}

.stdash-chart-bar {
    width: 70%;
    max-width: 22px;
    min-height: 8px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--stdash-blue), #93c5fd);
    transition: height 0.3s ease;
}

.stdash-chart-dow {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--stdash-muted);
    margin-top: 0.35rem;
}

.stdash-cert-card {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 0.8rem;
}

.stdash-cert-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
}

.stdash-cert-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stdash-cert-row:last-child {
    border-bottom: none;
}

.stdash-pending-card {
    background: linear-gradient(145deg, rgba(255, 247, 214, 0.65), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(244, 180, 0, 0.22);
    border-radius: 16px;
    padding: 0.85rem 0.8rem;
    box-shadow: 0 6px 20px rgba(240, 101, 41, 0.08);
}

.stdash-pending-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.55rem;
}

.stdash-pending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.stdash-pending-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.55rem;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stdash-pending-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.stdash-pending-num {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
}

.stdash-pending-lbl {
    font-size: 0.72rem;
    color: #6b7280;
}

@media (max-width: 991px) {
    .stdash-rail {
        order: 3;
    }

    .stdash-main {
        order: 1;
    }

    .stdash-sidebar {
        order: 0;
    }

    .stdash-main {
        row-gap: 0.75rem;
    }
}

/* ----- Admin dashboard v2 (UStudy-style, purple, responsive) ----- */
.adash-page {
    --adash-purple: #6c5dd3;
    --adash-purple-dark: #5548b0;
    --adash-purple-soft: #e8e4fb;
    --adash-bg: #f3f1f8;
    --adash-card: #ffffff;
    --adash-text: #111827;
    --adash-muted: #6b7280;
    --adash-green: #10b981;
    --adash-red: #ef4444;
    --adash-amber: #f59e0b;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 85% 50% at 0% 0%, rgba(108, 93, 211, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 45% at 100% 15%, rgba(167, 139, 250, 0.12), transparent 50%),
        radial-gradient(ellipse 55% 40% at 50% 100%, rgba(16, 185, 129, 0.06), transparent 55%),
        var(--adash-bg);
    min-height: calc(100vh - 72px);
    padding-bottom: 2rem;
}

.adash-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle fill='%236c5dd3' fill-opacity='0.035' cx='2' cy='2' r='1'/%3E%3C/svg%3E");
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.adash-page .adash-layout {
    position: relative;
    z-index: 1;
}

.adash-fab-nav {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1035;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--adash-purple), #9b8cf3);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 28px rgba(108, 93, 211, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.adash-layout {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 992px) {
    .adash-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        padding: 1.25rem 1rem 2rem;
    }

    .adash-fab-nav {
        display: none !important;
    }
}

.adash-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

@media (min-width: 992px) {
    .adash-sidebar.offcanvas-lg {
        transform: none !important;
        visibility: visible !important;
        position: relative !important;
        width: 268px !important;
        min-width: 268px;
        max-width: 268px;
        height: auto !important;
        border-radius: 20px;
        flex-shrink: 0;
        margin-right: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.75);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 12px 40px rgba(108, 93, 211, 0.1),
            0 4px 16px rgba(17, 24, 39, 0.06);
    }

    .adash-sidebar.offcanvas-lg .offcanvas-header {
        display: none !important;
    }
}

.adash-sidebar-body {
    padding: 1.35rem 1.1rem 1.25rem !important;
    min-height: 520px;
}

@media (min-width: 992px) {
    .adash-sidebar-body {
        min-height: calc(100vh - 140px);
        position: sticky;
        top: 88px;
    }
}

.adash-logo-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--adash-text);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.adash-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--adash-purple), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.adash-nav-section {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--adash-muted);
    margin: 1rem 0 0.4rem 0.35rem;
}

.adash-nav-section:first-of-type {
    margin-top: 0;
}

.adash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.adash-nav-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.adash-nav-item:hover {
    background: var(--adash-purple-soft);
    color: var(--adash-purple-dark);
}

.adash-nav-item.is-active {
    background: var(--adash-purple);
    color: #fff;
}

.adash-nav-muted {
    color: #9ca3af;
}

.adash-nav-ico {
    width: 1.35rem;
    text-align: center;
    font-size: 0.95rem;
}

.adash-promo {
    margin-top: 1.75rem;
    padding: 1rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(108, 93, 211, 0.12), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(108, 93, 211, 0.2);
    text-align: center;
}

.adash-promo-img {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.adash-promo-t {
    font-weight: 800;
    font-size: 0.88rem;
    margin: 0 0 0.2rem;
    color: var(--adash-text);
}

.adash-promo-d {
    font-size: 0.72rem;
    color: var(--adash-muted);
    margin: 0 0 0.65rem;
    line-height: 1.4;
}

.adash-promo-btn {
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    background: var(--adash-purple) !important;
    color: #fff !important;
    border: none;
}

.adash-main {
    flex: 1;
    min-width: 0;
    padding: 1rem 0.85rem 0;
}

@media (min-width: 992px) {
    .adash-main {
        padding: 0.5rem 0.5rem 0 0;
    }
}

.adash-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 6px 22px rgba(108, 93, 211, 0.08),
        0 2px 10px rgba(17, 24, 39, 0.05);
}

.adash-main > .alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.07);
}

.adash-search {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--adash-card);
    border-radius: 14px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
}

.adash-search-ico {
    opacity: 0.45;
    font-size: 0.95rem;
}

.adash-search-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.adash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.adash-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--adash-card);
    text-decoration: none;
    color: var(--adash-text);
    border: 1px solid rgba(17, 24, 39, 0.06);
    position: relative;
    font-size: 1.05rem;
}

.adash-icon-dot::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--adash-red);
    border: 2px solid #fff;
}

.adash-admin-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    background: var(--adash-card);
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    margin-left: 0.25rem;
}

.adash-admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--adash-purple), #c4b5fd);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.adash-admin-meta {
    max-width: 140px;
}

.adash-admin-name {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
}

.adash-admin-mail {
    display: block;
    font-size: 0.65rem;
    color: var(--adash-muted);
}

.adash-welcome-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.78) 45%,
        rgba(232, 228, 251, 0.65) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 14px 42px rgba(108, 93, 211, 0.11),
        0 4px 14px rgba(17, 24, 39, 0.06);
    position: relative;
    overflow: hidden;
}

.adash-welcome-hero::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -5%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 93, 211, 0.16), transparent 68%);
    pointer-events: none;
}

.adash-welcome-copy {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.adash-welcome-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--adash-purple-dark);
    background: rgba(108, 93, 211, 0.12);
    border: 1px solid rgba(108, 93, 211, 0.22);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.65rem;
}

.adash-welcome-sub {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0.5rem !important;
    max-width: 42rem;
}

.adash-welcome-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    align-self: center;
    padding: 0.25rem 0.15rem 0.25rem 0;
}

.adash-welcome-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--adash-purple), #c4b5fd);
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.12);
    flex-shrink: 0;
}

.adash-welcome-dot--b {
    width: 14px;
    height: 14px;
    opacity: 0.85;
    box-shadow: 0 0 0 5px rgba(167, 139, 250, 0.18);
}

.adash-welcome-dot--c {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.adash-welcome-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--adash-text);
    letter-spacing: -0.02em;
}

.adash-ops-strip {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .adash-ops-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.adash-ops-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.05);
    padding: 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.adash-ops-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(108, 93, 211, 0.12);
    border-color: rgba(108, 93, 211, 0.18);
}

.adash-ops-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--adash-muted);
    font-weight: 700;
}

.adash-ops-value {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    color: var(--adash-text);
}

.adash-ops-link {
    font-size: 0.8rem;
    color: var(--adash-purple);
    text-decoration: none;
    font-weight: 700;
}

.adash-ops-link:hover {
    text-decoration: underline;
}

.adash-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.adash-quick-action {
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    padding: 0.62rem 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--adash-purple-dark);
    background: #ece9ff;
    border: 1px solid rgba(108, 93, 211, 0.22);
    transition: background 0.15s ease, transform 0.15s ease;
}

.adash-quick-action:hover {
    background: #e0dbff;
    transform: translateY(-1px);
    color: var(--adash-purple-dark);
}

.adash-metric-card {
    background: var(--adash-card);
    border-radius: 18px;
    padding: 1.15rem 1.1rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    border: 1px solid rgba(17, 24, 39, 0.04);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 124px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
}

.adash-metric-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -44px;
    top: -54px;
    border-radius: 999px;
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

.adash-metric-card > * {
    position: relative;
    z-index: 1;
}

a.adash-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}

.adash-metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.adash-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--adash-muted);
}

.adash-metric-trend {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
}

.adash-metric-trend.is-up {
    color: var(--adash-green);
    background: rgba(16, 185, 129, 0.12);
}

.adash-metric-trend.is-down {
    color: var(--adash-red);
    background: rgba(239, 68, 68, 0.1);
}

.adash-metric-trend.is-neutral {
    color: var(--adash-purple);
    background: var(--adash-purple-soft);
}

.adash-metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--adash-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.adash-metric-avatars {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    letter-spacing: -0.15em;
    opacity: 0.85;
}

.adash-metric-foot {
    margin-top: 0.35rem;
}

.adash-metric--violet {
    border-top: 3px solid #8b5cf6;
    background: linear-gradient(155deg, #ffffff 0%, #f4f1ff 100%);
}

.adash-metric--rose {
    border-top: 3px solid #ec4899;
    background: linear-gradient(155deg, #ffffff 0%, #fff1f6 100%);
}

.adash-metric--sky {
    border-top: 3px solid #38bdf8;
    background: linear-gradient(155deg, #ffffff 0%, #eff9ff 100%);
}

.adash-metric--mint {
    border-top: 3px solid #34d399;
    background: linear-gradient(155deg, #ffffff 0%, #ecfdf5 100%);
}

.adash-metric--violet::before {
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
}

.adash-metric--rose::before {
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
}

.adash-metric--sky::before {
    background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
}

.adash-metric--mint::before {
    background: radial-gradient(circle, #34d399 0%, rgba(52, 211, 153, 0) 70%);
}

.adash-chart-card {
    background: var(--adash-card);
    border-radius: 20px;
    padding: 1.25rem 1.15rem;
    border: 1px solid rgba(17, 24, 39, 0.05);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    overflow: hidden;
}

.adash-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.adash-chart-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--adash-text);
}

.adash-chart-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--adash-muted);
    background: #f3f4f6;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    white-space: nowrap;
}

.adash-chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--adash-muted);
    margin-bottom: 0.75rem;
}

.adash-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.adash-dot--light {
    background: #c4b5fd;
}

.adash-dot--deep {
    background: var(--adash-purple);
}

.adash-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    height: 168px;
    padding-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.adash-bar-chart-wrap {
    position: relative;
}

.adash-bar-chart-grid {
    position: absolute;
    inset: 0 0 18px 0;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    z-index: 0;
    pointer-events: none;
}

.adash-bar-chart-grid span {
    border-top: 1px dashed rgba(156, 163, 175, 0.28);
}

.adash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.adash-bar-col-track {
    width: 100%;
    max-width: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 8px 8px 4px 4px;
    overflow: hidden;
    background: rgba(243, 244, 246, 0.8);
}

.adash-bar-stack-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 4px;
}

.adash-bar-seg--deep {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, var(--adash-purple), #8b5cf6);
    border-radius: 6px 6px 0 0;
}

.adash-bar-seg--light {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, #ddd6fe, #c4b5fd);
}

.adash-bar-seg--empty {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
}

.adash-bar-dow {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--adash-muted);
    margin-top: 0.45rem;
}

.adash-line-chart-wrap {
    padding: 0.25rem 0 0;
    position: relative;
}

.adash-line-grid {
    position: absolute;
    inset: 8px 0 24px;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
}

.adash-line-grid span {
    border-top: 1px dashed rgba(156, 163, 175, 0.26);
}

.adash-line-svg {
    width: 100%;
    height: 120px;
    display: block;
    position: relative;
    z-index: 1;
}

.adash-line-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--adash-muted);
}

.adash-line-labels span {
    flex: 1;
    text-align: center;
}

.adash-table-card {
    background: var(--adash-card);
    border-radius: 20px;
    padding: 1.25rem 1.15rem;
    border: 1px solid rgba(17, 24, 39, 0.05);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
}

.adash-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.adash-table-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.adash-btn-outline {
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(108, 93, 211, 0.35);
    color: var(--adash-purple) !important;
    background: transparent;
}

.adash-btn-outline:hover {
    background: var(--adash-purple-soft) !important;
}

.adash-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--adash-muted);
    font-weight: 700;
    border-bottom-color: #f3f4f6 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
}

.adash-table tbody td {
    font-size: 0.88rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-color: #f3f4f6 !important;
}

.adash-table tbody tr:hover td {
    background: #faf9ff;
}

.adash-tx-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--adash-purple-soft);
    color: var(--adash-purple);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.adash-pay-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
}

.adash-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
}

.adash-badge-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.adash-badge-bad {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.adash-badge-warn {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.adash-tx-action {
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.65;
    padding: 0.25rem;
}

.adash-tx-action:hover {
    opacity: 1;
}

.adash-panel {
    background: var(--adash-card);
    border-radius: 20px;
    padding: 1.2rem 1.1rem;
    border: 1px solid rgba(17, 24, 39, 0.05);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    height: 100%;
}

.adash-risk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #fcfcff;
    text-decoration: none;
    color: inherit;
}

.adash-risk-item:hover {
    background: #f5f3ff;
}

.adash-risk-main {
    min-width: 0;
}

.adash-risk-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.adash-risk-email {
    display: block;
    font-size: 0.73rem;
    color: var(--adash-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.adash-risk-meta {
    text-align: right;
    font-size: 0.72rem;
    color: var(--adash-muted);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    white-space: nowrap;
}

.adash-panel-title {
    font-size: 1rem;
    font-weight: 800;
}

.adash-mini-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.adash-mini-kpi {
    font-size: 0.73rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.adash-track-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    background: #fcfcff;
}

.adash-track-title {
    font-size: 0.83rem;
    font-weight: 700;
}

.adash-track-sub {
    font-size: 0.7rem;
    color: var(--adash-muted);
}

.adash-track-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    background: #ede9fe;
    color: #5b21b6;
}

.adash-track-badge.is-status {
    background: #f1f5f9;
    color: #334155;
}

.adash-link {
    color: var(--adash-purple);
    font-weight: 600;
    text-decoration: none;
}

.adash-link:hover {
    text-decoration: underline;
}

.adash-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.adash-mini-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.adash-mini-av {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--adash-purple);
    flex-shrink: 0;
}

.adash-course-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: #f9fafb;
    text-decoration: none;
    color: var(--adash-text);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(17, 24, 39, 0.05);
    transition: background 0.15s ease;
}

.adash-course-pill:hover {
    background: var(--adash-purple-soft);
    color: var(--adash-purple-dark);
}

.adash-pill-diff {
    background: var(--adash-purple-soft) !important;
    color: var(--adash-purple) !important;
    font-weight: 700;
    font-size: 0.7rem;
}

@media (max-width: 575px) {
    .adash-main {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .adash-chart-card,
    .adash-table-card,
    .adash-panel {
        border-radius: 16px;
        padding: 1rem 0.85rem;
    }

    .adash-chart-legend {
        gap: 0.65rem;
        font-size: 0.68rem;
    }

    .adash-admin-chip {
        padding-right: 0.3rem;
    }

    .adash-icon-btn {
        width: 38px;
        height: 38px;
    }

    .adash-metric-value {
        font-size: 1.35rem;
    }

    .adash-metric-card {
        min-height: 116px;
    }

    .adash-table {
        font-size: 0.8rem;
    }
}
