:root {
    /* =====================================================
       INNOVTECH INTEGRATED SOLUTIONS BRAND COLORS
    ===================================================== */

    --c-primary: #C20A62;
    --c-primary-dark: #98064C;
    --c-primary-light: #F8E7F0;

    --c-navy: #101F48;
    --c-navy-700: #172B61;
    --c-navy-light: #E8ECF5;

    --c-blue: #193A7A;
    --c-blue-light: #E8EEF9;

    --c-charcoal: #292929;
    --c-text: #343434;

    --c-white: #FFFFFF;

    --c-grey-50: #F8F9FB;
    --c-grey-100: #F1F3F6;
    --c-grey-200: #E5E7EB;
    --c-grey-300: #D1D5DB;
    --c-grey-500: #6B7280;
    --c-grey-600: #4B5563;

    /* Legacy alias */
    --c-accent: var(--c-primary);

    /* Layout */
    --radius: 12px;
    --radius-lg: 20px;

    --shadow-xs: 0 2px 8px rgba(16, 31, 72, .05);
    --shadow-sm: 0 4px 15px rgba(16, 31, 72, .07);
    --shadow-md: 0 12px 35px rgba(16, 31, 72, .10);
    --shadow-lg: 0 20px 50px rgba(16, 31, 72, .15);

    --font-sans:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    /* =====================================================
       NAVBAR TOKENS (new)
    ===================================================== */
    --nav-logo-h: 40px;
    --nav-logo-h-sm: 30px;
    --nav-focus-ring: 0 0 0 3px rgba(194, 10, 98, .35);
}


/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-white);
    line-height: 1.6;
}

a {
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.min-vh-75 {
    min-height: 75vh;
}


/* =====================================================
   BOOTSTRAP BRAND OVERRIDES
===================================================== */

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

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

.border-primary {
    border-color: var(--c-primary) !important;
}

.bg-primary-subtle {
    background-color: var(--c-primary-light) !important;
}

.text-info {
    color: #BFD0FF !important;
}

.btn-primary {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
}

.btn-primary:active {
    background-color: var(--c-primary-dark) !important;
    border-color: var(--c-primary-dark) !important;
}

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

.btn-outline-primary:hover {
    color: var(--c-white);
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}

.text-gradient {
    background:
        linear-gradient(
            90deg,
            var(--c-primary),
            #D71874,
            var(--c-navy)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =====================================================
   NAVBAR
===================================================== */

.site-navbar {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: .8rem 0;

    border-bottom:
        1px solid rgba(16,31,72,.08);

    box-shadow:
        0 4px 20px rgba(16,31,72,.05);
}

.site-navbar .container {
    gap: .5rem;
}

.site-navbar .navbar-brand,
.site-navbar .brand-mark {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--c-navy);
    text-decoration: none;
    line-height: 1;

    /* Match the logo slot height so fallback text aligns */
    min-height: var(--nav-logo-h);
    display: inline-flex;
    align-items: center;
}

.site-navbar .brand-logo {
    height: var(--nav-logo-h);
    width: auto;
    display: block;
    object-fit: contain;
}

.site-navbar .brand-logo-sm {
    height: var(--nav-logo-h-sm);
}

.site-navbar .brand-text {
    line-height: 1.2;
    font-size: 1.1rem;
    color: var(--c-navy);
}

.site-navbar .nav-link {
    color: var(--c-charcoal);
    font-weight: 600;
    padding: .7rem 1rem;
    border-radius: 8px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--c-primary);
}

.site-navbar .nav-link.active {
    color: var(--c-primary);
    position: relative;
}

/* Subtle underline for the active desktop link */
.site-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
}

.site-navbar .navbar-toggler {
    color: var(--c-navy);
}

.site-navbar .navbar-toggler:focus {
    box-shadow: var(--nav-focus-ring);
}


/* ----- Mobile offcanvas drawer ----- */

.mobile-nav-drawer {
    background: linear-gradient(135deg, var(--c-navy), #0C1838) !important;
    color: var(--c-white);
}

.mobile-nav-drawer .offcanvas-header {
    align-items: center;
}

.mobile-nav-drawer .nav-link {
    color: var(--c-white);
}

.mobile-nav-link {
    color: var(--c-white);
    border-radius: 8px;
    transition:
        background-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background-color: rgba(255, 255, 255, .06);
    transform: translateX(2px);
    color: var(--c-white);
}

.mobile-nav-link.active {
    background-color: rgba(194, 10, 98, .18);
    font-weight: 600;
    color: var(--c-white);
}


/* =====================================================
   HERO
===================================================== */

.hero-section {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F8F9FC 55%,
            #F7EAF1 100%
        );

    padding: 3rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    background:
        radial-gradient(
            circle,
            rgba(194,10,98,.08),
            transparent 70%
        );

    top: -200px;
    right: -100px;

    pointer-events: none;
}

.hero-section::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    background:
        radial-gradient(
            circle,
            rgba(25,58,122,.08),
            transparent 70%
        );

    bottom: -250px;
    left: -150px;

    pointer-events: none;
}


/* HERO BLOBS */

.hero-blob {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);

    opacity: .18;

    pointer-events: none;
}

.hero-blob-1 {
    width: 300px;
    height: 300px;

    background: var(--c-primary);

    top: -100px;
    right: 5%;
}

.hero-blob-2 {
    width: 280px;
    height: 280px;

    background: var(--c-navy);

    bottom: -150px;
    left: 5%;
}


/* HERO TEXT */

.hero-title {
    color: var(--c-navy);

    font-size:
        clamp(
            2.5rem,
            5vw,
            4.5rem
        );

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -.04em;
}

.hero-sub {
    color: var(--c-grey-600);

    font-size: 1.15rem;

    max-width: 720px;
}

.hero-eyebrow {
    letter-spacing: .05em;
}


/* HERO PULSE */

.hero-pulse {
    display: inline-block;

    width: 8px;
    height: 8px;

    background: var(--c-primary);

    border-radius: 50%;

    box-shadow:
        0 0 0 0
        rgba(194,10,98,.5);

    animation:
        innovPulse
        2s
        infinite;
}

@keyframes innovPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(194,10,98,.5);
    }

    70% {
        box-shadow:
            0 0 0 8px
            rgba(194,10,98,0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(194,10,98,0);
    }

}


/* HERO BUTTON */

.hero-btn {
    border-radius: 10px;

    font-weight: 600;
}


/* =====================================================
   HERO CARD
===================================================== */

.hero-card {
    position: relative;

    border:
        1px solid
        rgba(16,31,72,.08) !important;

    box-shadow:
        var(--shadow-lg) !important;

    background:
        rgba(255,255,255,.95) !important;
}

.hero-stat-icon {
    background:
        var(--c-primary-light) !important;

    color:
        var(--c-primary) !important;
}

.hero-solution-item {
    color: var(--c-charcoal);

    transition:
        all .25s ease;
}

.hero-solution-item:hover {
    background:
        var(--c-grey-50);

    transform:
        translateX(5px);
}

.hero-solution-item:hover i {
    color:
        var(--c-primary) !important;
}


/* =====================================================
   SECTION
===================================================== */

.section-eyebrow {
    letter-spacing: .15em;

    font-size: .75rem;

    color:
        var(--c-primary) !important;
}

.tracking-wider {
    letter-spacing: .15em;
}


/* =====================================================
   INFORMATION CARDS
===================================================== */

.info-card {
    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #F7F8FB
        ) !important;

    border:
        1px solid
        rgba(16,31,72,.05);
}

.info-icon {
    color:
        var(--c-primary) !important;
}


/* =====================================================
   SOLUTION CARDS
===================================================== */

.solution-card {

    border:
        1px solid
        rgba(16,31,72,.07) !important;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.solution-card:hover {

    border-color:
        rgba(194,10,98,.25) !important;

    box-shadow:
        var(--shadow-md) !important;

}

.solution-icon {

    color:
        var(--c-primary) !important;

    background:
        var(--c-primary-light) !important;

}


/* =====================================================
   FEATURE PANEL
===================================================== */

.feature-panel {

    background:
        linear-gradient(
            145deg,
            var(--c-navy-light),
            var(--c-primary-light)
        ) !important;

    border:
        1px solid
        rgba(16,31,72,.08) !important;

}

.feature-large-icon {

    background:
        linear-gradient(
            135deg,
            var(--c-primary),
            #A40853
        ) !important;

}


/* =====================================================
   PROCESS
===================================================== */

.process-card {

    border:
        1px solid
        rgba(16,31,72,.06) !important;

}

.process-number {

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--c-primary-light);

    color:
        var(--c-primary) !important;

}


/* =====================================================
   REASON CARDS
===================================================== */

.reason-icon {

    color:
        var(--c-primary) !important;

}


/* =====================================================
   GROUP CARDS
===================================================== */

.group-card {

    border:
        1px solid
        rgba(16,31,72,.07) !important;

}

.group-icon {

    color:
        var(--c-primary) !important;

    background:
        var(--c-primary-light) !important;

}


/* =====================================================
   VISION SECTION
===================================================== */

.bg-dark {

    background:
        linear-gradient(
            135deg,
            var(--c-navy),
            #172B61
        ) !important;

}

.vision-glow {

    position: absolute;

    width: 500px;
    height: 500px;

    background:
        radial-gradient(
            circle,
            rgba(194,10,98,.25),
            transparent 70%
        );

    top: -200px;
    right: -100px;

}

.vision-mark {

    color:
        var(--c-primary) !important;

}


/* =====================================================
   CTA
===================================================== */

.cta-banner {

    background:
        linear-gradient(
            135deg,
            var(--c-primary),
            #A90855,
            var(--c-navy)
        ) !important;

    position: relative;

}

.cta-banner::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    border:
        60px solid
        rgba(255,255,255,.05);

    top: -150px;
    right: -100px;

}

.cta-banner > * {

    position: relative;

    z-index: 1;

}


/* =====================================================
   HOVER EFFECTS
===================================================== */

.lift-on-hover {

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.lift-on-hover:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-md);

}


.tilt-on-hover {

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.tilt-on-hover:hover {

    transform:
        translateY(-5px)
        rotate(.3deg);

}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

[data-reveal] {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

[data-reveal].revealed {

    opacity: 1;

    transform:
        translateY(0);

}


/* =====================================================
   SCROLL TO TOP
===================================================== */

.btn-scroll-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    z-index: 1000;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow:
        var(--shadow-md);

}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {

    background:
        linear-gradient(
            135deg,
            var(--c-navy),
            #0C1838
        );

    color:
        rgba(255,255,255,.7);

    margin-top: 0;

}

.site-footer h5,
.site-footer h6 {

    color:
        var(--c-white);

}

.site-footer a {

    color:
        rgba(255,255,255,.7);

    text-decoration:
        none;

}

.site-footer a:hover {

    color:
        var(--c-primary);

}

.site-footer hr {

    border-color:
        rgba(255,255,255,.1);

}


/* =====================================================
   AUTH PAGES
===================================================== */

.auth-body {

    background:
        linear-gradient(
            135deg,
            var(--c-grey-50),
            var(--c-primary-light)
        );

    min-height: 100vh;

    display: grid;

    place-items: center;

    margin: 0;

}

.auth-wrap {

    width: 100%;

    max-width: 480px;

    padding:
        2rem 1rem;

}

.auth-brand {

    text-align:
        center;

    font-size:
        1.5rem;

    font-weight:
        800;

    margin-bottom:
        1.5rem;

}

.auth-brand a {

    color:
        var(--c-navy);

}

.auth-card {

    background:
        white;

    border-radius:
        var(--radius-lg);

    padding:
        2rem;

    box-shadow:
        var(--shadow-md);

}

.auth-footer {

    text-align:
        center;

    color:
        var(--c-grey-600);

    font-size:
        .85rem;

    margin-top:
        1.5rem;

}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-body {

    background:
        var(--c-grey-50);

    margin: 0;

}

.dashboard-layout {

    display: grid;

    grid-template-columns:
        240px 1fr;

    min-height:
        100vh;

}

.dash-sidebar {

    background:
        linear-gradient(
            180deg,
            var(--c-navy),
            #0C1838
        );

    color:
        white;

    padding:
        1.5rem 1rem;

}

.dash-brand a {

    color:
        white;

    font-weight:
        700;

    text-decoration:
        none;

    font-size:
        1.1rem;

}

.dash-sidebar nav {

    margin-top:
        2rem;

    display:
        flex;

    flex-direction:
        column;

    gap:
        .25rem;

}

.dash-sidebar nav a {

    color:
        rgba(255,255,255,.75);

    text-decoration:
        none;

    padding:
        .65rem .9rem;

    border-radius:
        8px;

    display:
        flex;

    align-items:
        center;

    gap:
        .6rem;

    font-size:
        .95rem;

}

.dash-sidebar nav a:hover,
.dash-sidebar nav a.active {

    background:
        rgba(194,10,98,.18);

    color:
        white;

}

.dash-main {

    padding:
        1.5rem 2rem;

}

.dash-topbar {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        1.5rem;

}

.dash-topbar h1 {

    font-size:
        1.5rem;

    margin:
        0;

}

.dash-user {

    display:
        flex;

    align-items:
        center;

    gap:
        1rem;

}

.dash-card {

    background:
        white;

    border-radius:
        var(--radius);

    padding:
        1.25rem;

    box-shadow:
        var(--shadow-sm);

}

.dash-card-label {

    font-size:
        .8rem;

    color:
        var(--c-grey-600);

    text-transform:
        uppercase;

    letter-spacing:
        .05em;

}

.dash-card-value {

    font-size:
        1.5rem;

    font-weight:
        700;

    margin-top:
        .25rem;

}


/* =====================================================
   SEARCH
===================================================== */

.search-dropdown {

    top: 100%;
    left: 0;

    width: 100%;

}

.search-dropdown a:hover {

    background:
        var(--c-grey-50);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 991px) {

    .hero-section {

        padding:
            4rem 0;

    }

    .hero-title {

        font-size:
            clamp(
                2.3rem,
                8vw,
                3.5rem
            );

    }

    /* Desktop collapse should never appear on small screens */
    .site-navbar .navbar-collapse {
        display: none !important;
    }

}


@media (max-width: 768px) {

    .dashboard-layout {

        grid-template-columns:
            1fr;

    }

    .dash-sidebar {

        display:
            none;

    }

    .dash-main {

        padding:
            1rem;

    }

    .hero-section {

        padding:
            3rem 0 4rem;

    }

    .hero-title {

        letter-spacing:
            -.025em;

    }

    .cta-banner {

        padding:
            2.5rem 1.5rem !important;

    }

    .site-navbar {
        padding: .6rem 0;
    }

    .site-navbar .brand-logo {
        height: 34px;
    }

}



/* ---------- About platform list ---------- */
.about-platform-item {
    transition: background .25s ease, transform .25s ease;
}

.about-platform-item:hover {
    background: var(--c-grey-50);
    transform: translateX(4px);
}


/* =====================================================
   FOOTER CONTRAST ENHANCEMENTS
===================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--c-navy), #0C1838);
    color: #E2E8F0; /* Brighter neutral text for overall high contrast */
}

.site-footer p,
.site-footer .text-muted {
    color: #94A3B8 !important; /* Lighter slate tone replacing dark muted grey */
}

.site-footer a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover {
    color: var(--c-primary);
}


/* =====================================================
   ACCESSIBILITY — KEYBOARD FOCUS RINGS (new)
===================================================== */

.site-navbar a:focus-visible,
.site-navbar button:focus-visible,
.mobile-nav-drawer a:focus-visible,
.mobile-nav-drawer button:focus-visible,
.btn-scroll-top:focus-visible {
    outline: none;
    box-shadow: var(--nav-focus-ring);
    border-radius: 8px;
}

/* Search suggestions keyboard focus */
.search-dropdown a:focus {
    background: var(--c-grey-50);
}


/* =====================================================
   REDUCED MOTION (new)
===================================================== */

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero-pulse {
        animation: none;
    }
}

/* =====================================================
   ABOUT PAGE
===================================================== */

/* Soft hover lift on the ecosystem card */
.about-ecosystem {
    background: linear-gradient(145deg, #FFFFFF, #F7F8FB) !important;
    border: 1px solid rgba(16, 31, 72, .06) !important;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.about-ecosystem:hover {
    border-color: rgba(194, 10, 98, .18) !important;
    box-shadow: var(--shadow-md);
}

/* Larger, on-brand icon tiles */
.about-ecosystem .eco-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* Prose rhythm in the left column */
.about-prose p {
    color: var(--c-grey-600);
    line-height: 1.75;
}

.about-prose p strong {
    color: var(--c-navy);
}

/* Slightly refined eyebrow */
.about-eyebrow {
    letter-spacing: .15em;
    font-size: .75rem;
    color: var(--c-primary) !important;
}

/* =====================================================
   ABOUT PAGE
===================================================== */

/* ----- Intro hero ----- */
.about-hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.about-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}

.about-eyebrow {
    color: var(--c-primary);
    letter-spacing: .08em;
}

.about-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(194, 10, 98, .15);
    display: inline-block;
}


/* ----- Purpose card (Who we are) ----- */
.about-purpose-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-primary-light)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.about-purpose-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(194, 10, 98, .12),
        transparent 70%
    );
    top: -80px;
    right: -80px;
    pointer-events: none;
}

.purpose-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A40853
    );
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}


/* ----- Ecosystem section ----- */
.about-ecosystem-section {
    background: var(--c-grey-50);
}

.about-platform-card {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.about-platform-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.platform-card-top {
    margin-bottom: 1.5rem;
}

.eco-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.platform-number {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--c-grey-300);
    font-variant-numeric: tabular-nums;
}


/* ----- Values grid ("What we stand for") ----- */
.about-value-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.about-value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}


/* ----- Connection map ----- */
.about-connection {
    background: linear-gradient(
        180deg,
        var(--c-white),
        var(--c-grey-50)
    );
}

.connection-map {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    box-shadow: var(--shadow-sm);

    min-height: 380px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    text-align: center;
    color: var(--c-navy);
}

.connection-center-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: .75rem;
    box-shadow: 0 12px 30px rgba(16, 31, 72, .2);
}

.connection-center strong {
    font-size: 1.05rem;
}

.connection-center span {
    font-size: .8rem;
    color: var(--c-grey-600);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.connection-item {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    padding: .5rem .9rem;
    border-radius: 999px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);
    box-shadow: var(--shadow-xs);

    font-size: .85rem;
    font-weight: 600;
    color: var(--c-navy);
}

.connection-item i {
    color: var(--c-primary);
}

.connection-one   { top: 1.5rem;  left: 1.5rem; }
.connection-two   { top: 1.5rem;  right: 1.5rem; }
.connection-three { bottom: 1.5rem; left: 50%; transform: translateX(-50%); }

@media (max-width: 575px) {
    .connection-item {
        position: static;
        transform: none;
        margin: .35rem auto 0;
    }
    .connection-map {
        flex-direction: column;
        gap: 1rem;
        min-height: 0;
    }
    .connection-three { transform: none; }
}


/* ----- Value strip ----- */
.about-values {
    background: var(--c-white);
}

.value-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}

.value-number {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: .85rem;
}

.value-label {
    font-weight: 700;
    color: var(--c-navy);
}


/* ----- Closing CTA pattern ----- */
.cta-banner-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 45%);
}


/* =====================================================
   REVEAL FALLBACK (no-JS safety net)
===================================================== */

/* If JS is disabled the [data-reveal] elements would stay invisible.
   The <noscript> block below in main.php handles this. */
.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

/* =====================================================
   INTEGRATED SOLUTIONS PAGE
===================================================== */

/* ----- Section spacing utility (not in Bootstrap 5) ----- */
@media (min-width: 992px) {
    .py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}
@media (min-width: 1400px) {
    .py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
}

/* ----- ILS hero ----- */
.ils-hero {
    /* inherits .hero-section background + blobs */
}

.ils-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}

.ils-hero-card {
    padding: 1.75rem;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.hero-solution-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.hero-trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .9rem;
    color: var(--c-grey-600);
}

.hero-trust-line span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.hero-trust-line i {
    color: var(--c-primary);
}

.hero-solution-item {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: .6rem .75rem;
    border-radius: 10px;

    font-size: .95rem;
    font-weight: 500;
}

.hero-solution-item i {
    color: var(--c-primary);
    font-size: 1rem;
}


/* ----- Shared company-card shell (services + solutions) ----- */
.company-card {
    position: relative;
    display: flex;
    flex-direction: column;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);

    padding: 1.75rem;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.company-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.company-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}


/* ----- Service card specifics ----- */
.service-card {
    padding-bottom: 1.5rem;
}

.service-card-content {
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    color: var(--c-primary);
    font-size: .9rem;
    margin-top: .5rem;

    transition: gap .2s ease;
}

.service-card:hover .service-link {
    gap: .6rem;
}


/* ----- Solution card specifics ----- */
.solution-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.solution-arrow {
    color: var(--c-grey-300);
    font-size: 1.15rem;
    transition: color .25s ease, transform .25s ease;
}

.company-card:hover .solution-arrow {
    color: var(--c-primary);
    transform: translate(2px, -2px);
}


/* ----- Featured panel (Print & Document) ----- */
.feature-panel-inner {
    padding: 3rem 2rem;
}

@media (min-width: 992px) {
    .feature-panel-inner { padding: 4rem 3rem; }
}

.feature-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.5rem;
}

.feature-large-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;

    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    margin-bottom: 1rem;

    box-shadow: 0 15px 35px rgba(194, 10, 98, .3);
}

.document-stat {
    display: flex;
    align-items: center;
    gap: .85rem;

    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: 12px;

    padding: .8rem 1rem;

    transition: transform .25s ease, background .25s ease;
}

.document-stat:hover {
    background: rgba(255, 255, 255, .95);
    transform: translateX(4px);
}

.document-stat > i {
    color: var(--c-primary);
    font-size: 1.25rem;
}

.document-stat strong {
    display: block;
    font-size: .9rem;
    color: var(--c-navy);
}

.document-stat span {
    font-size: .78rem;
    color: var(--c-grey-600);
}


/* ----- Process card icon (was unstyled) ----- */
.process-icon {
    font-size: 1.25rem;
    color: var(--c-grey-300);
    transition: color .25s ease;
}

.process-card:hover .process-icon {
    color: var(--c-primary);
}


/* ----- Reason cards (Why Innovtech) ----- */
.reason-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.reason-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}


/* =====================================================
   CONTACT PAGE
===================================================== */

/* ----- Hero ----- */
.contact-hero {
    position: relative;
    padding: 5rem 0 3rem;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.contact-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}


/* ----- Form card ----- */
.contact-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .contact-card { padding: 2.5rem; }
}

.contact-card-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}


/* ----- Form fields ----- */
.contact-form .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--c-navy);
    margin-bottom: .4rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

/* Icons inside inputs */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);

    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
}

.input-icon-wrap .form-control,
.input-icon-wrap .form-select {
    padding-left: 2.5rem;
}

.input-icon-wrap:focus-within > i {
    color: var(--c-primary);
}

/* Textarea icon sits at the top, not vertically centered */
.input-icon-wrap-textarea > i {
    top: 1rem;
    transform: none;
}

.input-icon-wrap-textarea .form-control {
    padding-top: .7rem;
    resize: vertical;
    min-height: 140px;
}


/* ----- Contact info card ----- */
.contact-info-card {
    background: linear-gradient(
        145deg,
        var(--c-navy),
        #0C1838
    );
    color: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(
        circle,
        rgba(194, 10, 98, .35),
        transparent 70%
    );
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.contact-info-card h3 {
    position: relative;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    position: relative;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.contact-info-label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .15rem;
}

.contact-info-value {
    color: var(--c-white);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    transition: color .2s ease;
    word-break: break-word;
}

a.contact-info-value:hover {
    color: var(--c-primary);
}


/* ----- Newsletter card ----- */
.newsletter-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A40853
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}

.newsletter-form .form-control {
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .7rem .9rem .7rem 2.5rem;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

.newsletter-msg {
    min-height: 1.1rem;
}

.newsletter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   SERVICES & TRAININGS PAGE
===================================================== */

/* ----- Hero ----- */
.st-hero {
    position: relative;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.st-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}

.st-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .9rem;
    color: var(--c-grey-600);
}

.st-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.st-hero-points i {
    color: var(--c-primary);
}

/* Hero card */
.st-hero-card {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.st-hero-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        circle,
        rgba(194, 10, 98, .10),
        transparent 70%
    );
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.st-hero-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;

    background: linear-gradient(135deg, var(--c-primary), #A40853);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}

/* Journey steps */
.st-journey {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    position: relative;
}

.st-journey-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .65rem .25rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .08);
}

.st-journey-item:last-child {
    border-bottom: 0;
}

.st-journey-item > span {
    flex-shrink: 0;

    width: 32px;
    height: 32px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
}

.st-journey-item strong {
    display: block;
    color: var(--c-navy);
    font-size: .95rem;
}

.st-journey-item small {
    color: var(--c-grey-600);
    font-size: .82rem;
}


/* ----- Value cards ----- */
.st-value-card {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.75rem;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.st-value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.st-value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
}


/* ----- Filter card ----- */
.st-filter-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    box-shadow: var(--shadow-sm);
}

.st-filter-card .form-label {
    color: var(--c-navy);
}

.st-input-group .input-group-text {
    background: var(--c-white);
    border-right: 0;
    color: var(--c-grey-500);
    border-color: rgba(16, 31, 72, .12);
}

.st-input-group .form-control {
    border-left: 0;
    border-color: rgba(16, 31, 72, .12);
}

.st-input-group .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: none;
}

.st-input-group:focus-within .input-group-text {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.st-filter-card .form-select {
    border-color: rgba(16, 31, 72, .12);
}

.st-filter-card .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

/* Active filter chips */
.st-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    padding-top: .85rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.st-filter-chips-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.st-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .3rem .75rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
}

.st-chip i {
    font-size: .7rem;
}


/* ----- Training card ----- */
.training-card {
    position: relative;
    display: flex;
    flex-direction: column;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.training-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.training-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Status ribbon */
.training-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;

    padding: .3rem .75rem;
    border-radius: 999px;

    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-white);
}

.training-ribbon.is-urgent   { background: #E0A100; }
.training-ribbon.is-sale     { background: var(--c-primary); }
.training-ribbon.is-booked   { background: var(--c-grey-600); }

/* Thumbnail */
.training-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-grey-100);
}

.training-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.training-card:hover .training-thumbnail img {
    transform: scale(1.05);
}

.training-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(16, 31, 72, .25)
    );
    pointer-events: none;
}

.training-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );

    color: var(--c-primary);
    font-size: 2.25rem;
}

/* Category */
.training-category {
    display: inline-block;

    padding: .25rem .65rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Title */
.training-title {
    color: var(--c-navy);
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.training-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    font-size: .82rem;
    color: var(--c-grey-600);
}

.training-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.training-meta i {
    color: var(--c-primary);
    font-size: .85rem;
}

/* Footer */
.training-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 31, 72, .08);
}

.training-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-navy);
}

.training-spots {
    color: var(--c-grey-600);
    font-size: .78rem;
}

/* Arrow on hover */
.training-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;

    width: 32px;
    height: 32px;
    border-radius: 50%;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .9rem;

    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;

    pointer-events: none;
}

.training-card:hover .training-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ----- Empty state ----- */
.st-empty-state {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
}

.st-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Community banner ----- */
.st-community-banner {
    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A90855,
        var(--c-navy)
    );
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.st-community-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,.08), transparent 40%);
}

.st-community-banner .btn-light {
    color: var(--c-primary);
    font-weight: 600;
}



/* =====================================================
   STORE — LANDING
===================================================== */

/* ----- Hero ----- */
.store-hero {
    position: relative;
    padding: 4rem 0 5rem;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.store-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}

/* Search bar */
.store-hero-search .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-white);
}

.store-hero-search .input-group-text {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    border-right: 0;
    color: var(--c-grey-500);
}

.store-hero-search .form-control {
    border: 1px solid rgba(16, 31, 72, .12);
    border-left: 0;
    border-right: 0;
    padding: .85rem 1rem;
    font-size: .95rem;
}

.store-hero-search .form-control:focus {
    box-shadow: none;
    border-color: var(--c-primary);
}

.store-hero-search .input-group:focus-within .input-group-text {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.store-hero-search .btn {
    border-radius: 0;
    padding: .85rem 1.5rem;
    font-weight: 600;
}

/* Trust row */
.store-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .88rem;
    color: var(--c-grey-600);
}

.store-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.store-hero-trust i {
    color: var(--c-primary);
}

/* Visual tile collage (right column) */
.store-hero-visual {
    position: relative;
    height: 380px;
}

.store-hero-visual-tile {
    position: absolute;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);

    padding: 1.25rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    text-align: center;
    color: var(--c-navy);
    font-size: .82rem;
    font-weight: 600;

    transition: transform .35s ease;
}

.store-hero-visual-tile i {
    font-size: 1.75rem;
    color: var(--c-primary);
}

.store-hero-visual-tile:hover {
    transform: translateY(-6px);
}

.tile-1 { top: 0;     left: 0;     width: 160px; height: 160px; }
.tile-2 { top: 30px;  right: 40px; width: 140px; height: 140px; }
.tile-3 { bottom: 60px; left: 60px; width: 130px; height: 130px; }
.tile-4 { bottom: 0;  right: 0;    width: 150px; height: 150px; }


/* ----- Category card ----- */
.store-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.store-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.store-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;

    transition: background .3s ease, color .3s ease;
}

.store-category-card:hover .store-category-icon {
    background: var(--c-primary);
    color: var(--c-white);
}

.store-category-count {
    font-size: .78rem;
    color: var(--c-grey-600);
}


/* ----- Empty state ----- */
.store-empty-state {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
}

.store-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .store-hero {
        padding: 3.5rem 0 4rem;
    }
}



/* =====================================================
   STORE — PRODUCT LISTING
===================================================== */

/* ----- Page header ----- */
.store-listing-header {
    padding: 2rem 0 1.25rem;
    background: var(--c-white);
    border-bottom: 1px solid rgba(16, 31, 72, .06);
    margin-bottom: 1.5rem;
}

.store-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 .75rem;
    font-size: .85rem;
    color: var(--c-grey-600);
}

.store-breadcrumb li + li::before {
    content: "/";
    margin-right: .5rem;
    color: var(--c-grey-300);
}

.store-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.store-breadcrumb a:hover {
    color: var(--c-primary);
}

.store-breadcrumb [aria-current="page"] {
    color: var(--c-navy);
    font-weight: 600;
}


/* ----- Sidebar ----- */
.store-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.store-filters {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.store-filter-group + .store-filter-group {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.store-filter-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-navy);
    margin-bottom: .9rem;
}

.store-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .15rem;
    max-height: 260px;
    overflow-y: auto;
}

.store-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;

    padding: .45rem .65rem;
    border-radius: 8px;

    color: var(--c-charcoal);
    font-size: .9rem;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.store-filter-link:hover {
    background: var(--c-grey-50);
    color: var(--c-primary);
}

.store-filter-link.is-active {
    background: var(--c-primary-light);
    color: var(--c-primary);
    font-weight: 600;
}

.store-filter-count {
    font-size: .75rem;
    color: var(--c-grey-500);
    font-variant-numeric: tabular-nums;
}


/* ----- Toolbar ----- */
.store-toolbar {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
}

.store-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.store-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.store-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.store-toolbar-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.store-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.store-toolbar-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.store-toolbar-sort label {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.store-toolbar-sort .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    min-width: 150px;
}

.store-toolbar-sort .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Active filter chips ----- */
.store-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.store-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.st-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .3rem .75rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.st-chip-removable:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.st-chip i {
    font-size: .8rem;
    opacity: .7;
}

.st-chip-removable:hover i {
    opacity: 1;
}

.store-clear-all {
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.store-clear-all:hover {
    color: var(--c-primary);
}


/* ----- Pagination ----- */
.store-pagination {
    display: flex;
    justify-content: center;
}


/* ----- Offcanvas variant ----- */
.store-sidebar-offcanvas .store-filters {
    border: 0;
    box-shadow: none;
    padding: 0;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .store-listing-header {
        padding: 1.5rem 0 1rem;
    }
}

/* =====================================================
   PRODUCT DETAIL PAGE (PDP)
===================================================== */

/* ----- Breadcrumb ----- */
.pdp-breadcrumb .breadcrumb {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.pdp-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.pdp-breadcrumb a:hover {
    color: var(--c-primary);
}

.pdp-breadcrumb .breadcrumb-item.active {
    color: var(--c-navy);
    font-weight: 600;
}


/* ----- Gallery ----- */
.pdp-carousel {
    background: var(--c-white);
}

.pdp-main-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pdp-carousel-control {
    width: 44px;
    opacity: .85;
}

.pdp-carousel-control .carousel-control-prev-icon,
.pdp-carousel-control .carousel-control-next-icon {
    background-color: rgba(16, 31, 72, .75);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50%;
    transition: background-color .2s ease;
}

.pdp-carousel-control:hover .carousel-control-prev-icon,
.pdp-carousel-control:hover .carousel-control-next-icon {
    background-color: var(--c-primary);
}

/* Thumbnails */
.pdp-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.pdp-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;

    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;

    background: var(--c-grey-100);
    cursor: pointer;

    transition: border-color .2s ease, transform .2s ease;
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-thumb:hover {
    transform: translateY(-2px);
}

.pdp-thumb.is-active {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

/* Placeholder */
.pdp-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--c-grey-300);
}


/* ----- Buy box ----- */
.pdp-buybox {
    padding: 0;
}

.pdp-title {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.25;
    margin-bottom: .75rem;
}

.pdp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--c-grey-600);
    margin-bottom: 1rem;
}

.pdp-meta code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
}

.pdp-meta a {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.pdp-meta a:hover {
    text-decoration: underline;
}

.pdp-meta-sep {
    color: var(--c-grey-300);
}

/* Rating */
.pdp-rating {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.pdp-stars {
    color: #F5A623;
    letter-spacing: .05em;
    font-size: .9rem;
}

.pdp-stars-lg {
    font-size: 1.4rem;
}

.pdp-stars-sm {
    font-size: .8rem;
}

.pdp-rating-text {
    font-weight: 700;
    color: var(--c-navy);
    font-size: .95rem;
}

.pdp-rating-text .text-muted {
    font-weight: 400;
}

/* Price card */
.pdp-price-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-primary-light)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .75rem;
}

.pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
}

.pdp-price-current {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
}

.pdp-price-old {
    font-size: 1.05rem;
    color: var(--c-grey-500);
    text-decoration: line-through;
}

.pdp-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .3rem .7rem;
    border-radius: 999px;

    background: #E0A100;
    color: var(--c-white);

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Stock pill */
.pdp-stock-row {
    margin-bottom: 1rem;
}

.pdp-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .35rem .8rem;
    border-radius: 999px;

    font-size: .82rem;
    font-weight: 600;
}

.pdp-stock-pill.is-in {
    background: #E7F7EE;
    color: #12805C;
}

.pdp-stock-pill.is-low {
    background: #FFF4E0;
    color: #A96A00;
}

.pdp-stock-pill.is-out {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

/* Short description */
.pdp-short-desc {
    color: var(--c-grey-600);
    font-size: .98rem;
    line-height: 1.7;
    margin-bottom: 0;
}


/* ----- Cart form ----- */
.pdp-cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: stretch;
}

/* Quantity stepper */
.pdp-qty {
    display: inline-flex;
    align-items: stretch;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .15);
    border-radius: 10px;
    overflow: hidden;
}

.pdp-qty-btn {
    width: 40px;
    border: 0;
    background: transparent;
    color: var(--c-navy);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.pdp-qty-btn:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.pdp-qty-input {
    width: 52px;
    border: 0;
    text-align: center;

    font-weight: 700;
    color: var(--c-navy);
    background: transparent;
}

.pdp-qty-input:focus {
    outline: none;
}

/* Hide browser spinners */
.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pdp-qty-input[type=number] { -moz-appearance: textfield; }

/* Add to cart button */
.pdp-add-btn {
    flex: 1 1 200px;
    padding: .75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Wishlist button */
.pdp-wishlist-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(16, 31, 72, .15);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--c-navy);
    background: var(--c-white);

    transition: all .2s ease;
}

.pdp-wishlist-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.pdp-wishlist-btn[aria-pressed="true"] {
    background: var(--c-primary-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* Cart message */
.pdp-cart-msg {
    min-height: 1.15rem;
    margin-top: .5rem;
    color: #12805C;
}

.pdp-cart-msg.is-error {
    color: #B02A37;
}


/* ----- Trust row ----- */
.pdp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;

    padding-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .12);

    font-size: .85rem;
    color: var(--c-grey-600);
}

.pdp-trust span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.pdp-trust i {
    color: var(--c-primary);
}


/* ----- Info tabs ----- */
.pdp-info-section {
    background: var(--c-white);
}

.pdp-tabs {
    border-bottom: 1px solid rgba(16, 31, 72, .1);
    gap: .25rem;
}

.pdp-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--c-grey-600);
    font-weight: 600;
    padding: .75rem 1.15rem;
    border-radius: 0;
    background: transparent;
}

.pdp-tabs .nav-link:hover {
    color: var(--c-primary);
}

.pdp-tabs .nav-link.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
    background: transparent;
}

.pdp-tab-content {
    padding: 1.75rem 0;
    color: var(--c-text);
    line-height: 1.75;
}

.pdp-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


/* ----- Related products ----- */
.pdp-related {
    border-top: 1px solid rgba(16, 31, 72, .08);
}


/* ----- Reviews ----- */
.pdp-reviews {
    border-top: 1px solid rgba(16, 31, 72, .08);
}

.pdp-review-summary {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 90px;
}

.pdp-review-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
    margin-bottom: .5rem;
}

.pdp-review-form {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.pdp-review-form .form-control,
.pdp-review-form .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.pdp-review-form .form-control:focus,
.pdp-review-form .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.pdp-review-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdp-review-item {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.pdp-review-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .75rem;
}

.pdp-review-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
}

.pdp-review-author {
    flex-grow: 1;
}

.pdp-review-author strong {
    display: block;
    color: var(--c-navy);
    font-size: .95rem;
}

.pdp-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: .2rem;
}

.pdp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .15rem .55rem;
    border-radius: 999px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .7rem;
    font-weight: 600;
}

.pdp-review-date {
    font-size: .78rem;
    color: var(--c-grey-500);
}

.pdp-review-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: .5rem;
}

.pdp-review-body {
    color: var(--c-text);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.pdp-review-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
}

.pdp-review-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .pdp-review-summary {
        position: static;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575px) {
    .pdp-price-current {
        font-size: 1.6rem;
    }

    .pdp-cart-row {
        flex-direction: column;
    }

    .pdp-qty {
        justify-content: space-between;
    }

    .pdp-add-btn {
        flex-basis: 100%;
    }

    .pdp-wishlist-btn {
        width: 100%;
        height: 44px;
    }
}


/* =====================================================
   ORDER DETAIL PAGE
===================================================== */

/* ----- Payment alert ----- */
.order-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    background: linear-gradient(
        135deg,
        #FFF4E0,
        #FFF9F0
    );
    border: 1px solid #F5D8A0;
    border-left: 4px solid #E0A100;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.order-alert-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    background: #E0A100;
    color: var(--c-white);

    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}

.order-alert-body {
    flex: 1 1 240px;
    color: #7A4A00;
}

.order-alert-body strong {
    display: block;
    color: #7A4A00;
    margin-bottom: .15rem;
}


/* ----- Page header ----- */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;

    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.order-header-main {
    flex: 1 1 320px;
}

.order-breadcrumb .breadcrumb {
    font-size: .82rem;
    color: var(--c-grey-600);
}

.order-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.order-breadcrumb a:hover {
    color: var(--c-primary);
}

.order-breadcrumb .breadcrumb-item.active {
    color: var(--c-navy);
    font-weight: 600;
}

.order-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: var(--c-navy);
    letter-spacing: -.01em;
}

.order-copy-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;

    border: 1px solid rgba(16, 31, 72, .12);
    background: var(--c-white);
    color: var(--c-grey-600);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .9rem;
    cursor: pointer;

    transition: all .2s ease;
}

.order-copy-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.order-copy-btn.is-copied {
    background: #E7F7EE;
    border-color: #12805C;
    color: #12805C;
}

.order-date {
    color: var(--c-grey-600);
    font-size: .9rem;
    margin-top: .5rem;

    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.order-date i {
    color: var(--c-primary);
}

.order-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}


/* ----- Status pill ----- */
.order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    padding: .45rem 1rem;
    border-radius: 999px;

    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.order-status-pill.is-pending {
    background: #FFF4E0;
    color: #A96A00;
}

.order-status-pill.is-processing {
    background: #E8EEF9;
    color: var(--c-blue);
}

.order-status-pill.is-shipped {
    background: #E8EFF7;
    color: #1E5BA6;
}

.order-status-pill.is-delivered {
    background: #E7F7EE;
    color: #12805C;
}

.order-status-pill.is-cancelled {
    background: #FDEAEA;
    color: #B02A37;
}

.order-status-pill.is-refunded {
    background: #F0E8F5;
    color: #6B3FA0;
}

.order-status-pill.is-neutral {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Card shell ----- */
.order-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
    background: var(--c-grey-50);
}


/* ----- Items table ----- */
.order-items-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-items-table {
    min-width: 480px;
    margin: 0;
}

.order-items-table thead th {
    background: transparent;
    border-bottom: 1px solid rgba(16, 31, 72, .08);

    padding: .85rem 1.5rem;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-600);
}

.order-items-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(16, 31, 72, .05);
}

.order-items-table tbody tr:last-child td {
    border-bottom: 0;
}

.order-item-name {
    font-weight: 600;
    color: var(--c-navy);
}

.order-items-table code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .78rem;
}

.order-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 28px;

    padding: 0 .5rem;
    border-radius: 8px;

    background: var(--c-grey-100);
    color: var(--c-navy);

    font-size: .82rem;
    font-weight: 700;
}


/* ----- Totals ----- */
.order-totals {
    padding: 1.25rem 1.5rem;
    background: var(--c-grey-50);
    border-top: 1px solid rgba(16, 31, 72, .08);

    display: flex;
    flex-direction: column;
    gap: .5rem;

    margin-left: auto;
    max-width: 380px;
    width: 100%;
}

.order-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: .92rem;
    color: var(--c-grey-600);
}

.order-totals-row.is-discount span:last-child {
    color: #12805C;
    font-weight: 600;
}

.order-totals-row.is-grand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-navy);

    padding-top: .65rem;
    margin-top: .35rem;
    border-top: 1px solid rgba(16, 31, 72, .1);
}


/* ----- Timeline ----- */
.order-timeline {
    list-style: none;
    margin: 0;
    padding: 1.5rem;
    position: relative;
}

.order-timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
}

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

/* Connector line */
.order-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 0;

    width: 2px;
    background: var(--c-grey-200);
}

.order-timeline-item.is-complete:not(:last-child)::before {
    background: #12805C;
}

/* Dot */
.order-timeline-dot {
    position: absolute;
    left: 0;
    top: 0;

    width: 30px;
    height: 30px;
    border-radius: 50%;

    background: var(--c-white);
    border: 2px solid var(--c-grey-300);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--c-white);
    font-size: .75rem;
}

.order-timeline-item.is-complete .order-timeline-dot {
    background: #12805C;
    border-color: #12805C;
}

.order-timeline-item.is-current .order-timeline-dot {
    background: var(--c-primary);
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(194, 10, 98, .2);
}

.order-timeline-item.is-current .order-timeline-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--c-primary);
    opacity: .5;
    animation: orderPulse 2s infinite;
}

@keyframes orderPulse {
    0%   { transform: scale(.9); opacity: .6; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.order-timeline-body {
    padding-top: .25rem;
}

.order-timeline-label {
    display: block;
    font-weight: 600;
    color: var(--c-navy);
    font-size: .95rem;
}

.order-timeline-item.is-pending .order-timeline-label {
    color: var(--c-grey-500);
    font-weight: 500;
}

.order-timeline-date {
    display: block;
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}


/* ----- Order meta ----- */
.order-meta {
    padding: 1.25rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.order-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    font-size: .88rem;
}

.order-meta-row dt {
    color: var(--c-grey-600);
    font-weight: 500;
    margin: 0;
    flex-shrink: 0;
}

.order-meta-row dd {
    color: var(--c-navy);
    font-weight: 600;
    margin: 0;
    text-align: right;
    word-break: break-word;
}

.order-meta-row code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
}


/* ----- Addresses ----- */
.order-addresses {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-address {
    padding: 1rem 1.15rem;

    background: var(--c-grey-50);
    border-radius: 12px;
    border: 1px solid rgba(16, 31, 72, .05);
}

.order-address-type {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-primary);
    margin-bottom: .35rem;
}

.order-address-name {
    display: block;
    color: var(--c-navy);
    margin-bottom: .15rem;
}

.order-address-lines {
    font-style: normal;
    color: var(--c-grey-600);
    font-size: .88rem;
    line-height: 1.55;
}


/* ----- Help card ----- */
.order-help-card {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-primary-light)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.order-help-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A40853
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .order-totals {
        max-width: 100%;
    }

    .order-header {
        flex-direction: column;
        align-items: stretch;
    }

    .order-header-actions {
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    .order-items-table thead th,
    .order-items-table tbody td {
        padding: .75rem 1rem;
    }

    .order-card-header,
    .order-totals {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hide decorative elements when printing */
@media print {
    .order-alert,
    .order-help-card,
    .order-header-actions .btn,
    .order-copy-btn {
        display: none !important;
    }

    .order-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}



/* =====================================================
   DASHBOARD — WISHLIST
===================================================== */

/* ----- Empty state ----- */
.wishlist-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
}

.wishlist-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Card ----- */
.wishlist-card {
    position: relative;
    display: flex;
    flex-direction: column;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.wishlist-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.wishlist-card-link {
    color: inherit;
    display: block;
}

/* Thumbnail */
.wishlist-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-grey-100);
}

.wishlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.wishlist-thumb-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );
    color: var(--c-primary);
    font-size: 2.5rem;
}

/* Badge */
.wishlist-badge {
    position: absolute;
    top: .65rem;
    right: .65rem;

    padding: .22rem .65rem;
    border-radius: 999px;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-white);
}

.wishlist-badge.is-sale { background: var(--c-primary); }
.wishlist-badge.is-out  { background: var(--c-grey-600); }

/* Body */
.wishlist-body {
    padding: .9rem 1rem;
}

.wishlist-title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.35;
    margin-bottom: .6rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-price-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.wishlist-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-primary);
}

.wishlist-price-old {
    font-size: .8rem;
    color: var(--c-grey-500);
    text-decoration: line-through;
}

/* Actions */
.wishlist-actions {
    display: flex;
    align-items: stretch;
    gap: .4rem;

    margin-top: auto;
    padding: .75rem 1rem 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .08);
}

.wishlist-action-form {
    display: contents;
}

.wishlist-cart-btn {
    font-weight: 600;
}

.wishlist-remove-btn {
    width: 36px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .wishlist-title {
        font-size: .85rem;
    }

    .wishlist-price {
        font-size: .95rem;
    }

    .wishlist-actions {
        padding: .65rem .75rem .85rem;
    }

    .wishlist-cart-btn {
        font-size: .8rem;
        padding: .35rem .5rem;
    }
}



/* =====================================================
   DASHBOARD — ORDERS LIST
===================================================== */

/* ----- Section header ----- */
.dashboard-orders-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


/* ----- Table wrapper ----- */
.dashboard-table-wrap {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}


/* ----- Orders table ----- */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.orders-table thead th {
    text-align: left;
    padding: .9rem 1.25rem;

    background: var(--c-grey-50);
    border-bottom: 1px solid rgba(16, 31, 72, .08);

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    white-space: nowrap;
}

.orders-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .06);
    color: var(--c-text);
    vertical-align: middle;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.orders-table tbody tr {
    transition: background .15s ease;
}

.orders-table tbody tr:hover {
    background: var(--c-grey-50);
}

/* Order number link */
.order-number {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .25rem .65rem;
    border-radius: 8px;

    background: var(--c-grey-100);
    color: var(--c-navy);

    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.order-number:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.order-number i {
    font-size: .85rem;
    opacity: .7;
}

.order-date {
    color: var(--c-grey-600);
    white-space: nowrap;
}

.order-total {
    font-weight: 700;
    color: var(--c-navy);
    white-space: nowrap;
}


/* ----- Status pills ----- */
.order-status {
    display: inline-flex;
    align-items: center;

    padding: .3rem .75rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

.order-status.is-pending     { background: #FFF4E0; color: #A96A00; }
.order-status.is-processing  { background: #E8EEF9; color: var(--c-blue); }
.order-status.is-paid        { background: #E7F7EE; color: #12805C; }
.order-status.is-shipped     { background: #E8EEF9; color: #1A5FBF; }
.order-status.is-delivered   { background: #E7F7EE; color: #0E6E4E; }
.order-status.is-cancelled   { background: #FBE9EC; color: #A3122B; }
.order-status.is-default     { background: var(--c-grey-100); color: var(--c-grey-600); }


/* ----- Empty state ----- */
.dashboard-empty-state {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
}

.dashboard-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* =====================================================
   MOBILE — ORDER CARDS
===================================================== */

.orders-cards {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.order-card {
    position: relative;
    display: block;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);

    padding: 1rem 1rem 1rem;

    color: var(--c-text);
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;

    margin-bottom: .85rem;
    padding-bottom: .85rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.order-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.order-card-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);
    margin-bottom: .15rem;
}

.order-card-value {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-navy);
}

.order-card-total {
    color: var(--c-primary);
    font-size: 1rem;
}

.order-card-arrow {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;

    opacity: .8;
    transition: transform .2s ease, opacity .2s ease;
}

.order-card:hover .order-card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}


/* ----- Responsive tweaks ----- */
@media (max-width: 767px) {
    .dashboard-orders-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-orders-header .btn {
        width: 100%;
    }
}



/* =====================================================
   CHECKOUT
===================================================== */

.checkout-wrap {
    background: var(--c-grey-50);
    min-height: 100vh;
}


/* ----- Progress indicator ----- */
.checkout-progress {
    background: var(--c-white);
    border-bottom: 1px solid rgba(16, 31, 72, .08);
    padding: 1rem 0;
}

.checkout-steps {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: .55rem;

    font-size: .85rem;
    font-weight: 600;
    color: var(--c-grey-500);
}

.checkout-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;

    background: var(--c-grey-200);
    color: var(--c-grey-600);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .75rem;
    font-weight: 700;
}

.checkout-step.is-complete {
    color: #12805C;
}

.checkout-step.is-complete .checkout-step-dot {
    background: #E7F7EE;
    color: #12805C;
}

.checkout-step.is-current {
    color: var(--c-primary);
}

.checkout-step.is-current .checkout-step-dot {
    background: var(--c-primary);
    color: var(--c-white);
    box-shadow: 0 0 0 4px rgba(194, 10, 98, .15);
}

@media (max-width: 575px) {
    .checkout-steps {
        gap: .75rem;
    }
    .checkout-step-label {
        display: none;
    }
}


/* ----- Header ----- */
.checkout-header h1 {
    color: var(--c-navy);
}


/* ----- Section cards ----- */
.checkout-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-xs);
}

@media (min-width: 992px) {
    .checkout-card {
        padding: 2rem;
    }
}

.checkout-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.checkout-card-num {
    flex-shrink: 0;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: .9rem;
}

.checkout-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin: 0;
    line-height: 1.3;
}

.checkout-card-sub {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin: 0;
}

.checkout-optional {
    font-weight: 400;
    font-size: .82rem;
    color: var(--c-grey-500);
}


/* ----- Form fields (consistent with contact page) ----- */
.checkout-card .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--c-navy);
    margin-bottom: .4rem;
}

.checkout-card .form-control,
.checkout-card .form-select {
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.checkout-card .form-control:focus,
.checkout-card .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

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

.checkout-card .input-icon-wrap > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
}

.checkout-card .input-icon-wrap .form-control {
    padding-left: 2.5rem;
}

.checkout-card .input-icon-wrap:focus-within > i {
    color: var(--c-primary);
}


/* ----- Shipping toggle ----- */
.checkout-switch {
    padding: .9rem 1rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: 10px;
}

.checkout-switch .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: .2em;
    border-color: rgba(16, 31, 72, .25);
}

.checkout-switch .form-check-input:checked {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}

.checkout-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .2);
    border-color: var(--c-primary);
}


/* =====================================================
   ORDER SUMMARY
===================================================== */
.checkout-summary {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
    .checkout-summary {
        position: sticky;
        top: 90px;
    }
}

.checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.checkout-summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin: 0;
}

.checkout-summary-count {
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-grey-600);

    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--c-grey-100);
}


/* Items */
.checkout-summary-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    max-height: 320px;
    overflow-y: auto;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding: .65rem 0;
    border-bottom: 1px solid rgba(16, 31, 72, .05);
}

.checkout-summary-item:last-child {
    border-bottom: 0;
}

.checkout-summary-item-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.checkout-summary-item-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-summary-item-qty {
    font-size: .78rem;
    color: var(--c-grey-600);
}

.checkout-summary-item-price {
    font-weight: 700;
    color: var(--c-navy);
    font-size: .9rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}


/* Coupon */
.checkout-coupon {
    padding: 1rem;
    background: var(--c-grey-50);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.checkout-coupon .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-navy);
}

.checkout-coupon-row {
    display: flex;
    gap: .5rem;
}

.checkout-coupon-row .form-control {
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .55rem .8rem;
    font-size: .9rem;
}

.checkout-coupon-row .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.checkout-coupon-row .btn {
    padding: .55rem 1rem;
    font-weight: 600;
    white-space: nowrap;
}


/* Totals */
.checkout-totals {
    margin: 0 0 1.25rem;
    padding: 1rem 0 0;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    padding: .35rem 0;
    font-size: .92rem;
}

.checkout-total-row dt {
    font-weight: 500;
    color: var(--c-grey-600);
    margin: 0;
}

.checkout-total-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--c-navy);
    font-variant-numeric: tabular-nums;
}

.checkout-total-row-grand {
    margin-top: .5rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(16, 31, 72, .1);
}

.checkout-total-row-grand dt,
.checkout-total-row-grand dd {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-navy);
}

.checkout-total-row-grand dd {
    color: var(--c-primary);
}

.checkout-free-badge {
    display: inline-block;
    margin-left: .4rem;

    padding: .1rem .5rem;
    border-radius: 999px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* CTA */
.checkout-cta {
    width: 100%;
    padding: .9rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}

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

.checkout-terms {
    margin-top: 1rem;
    font-size: .78rem;
    color: var(--c-grey-600);
    text-align: center;
    line-height: 1.6;
}

.checkout-terms a {
    color: var(--c-primary);
    text-decoration: underline;
}


/* Trust badges */
.checkout-trust {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: .75rem;

    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.checkout-trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .78rem;
    color: var(--c-grey-600);
}

.checkout-trust i {
    color: var(--c-primary);
    font-size: .9rem;
}



/* =====================================================
   CART PAGE
===================================================== */

/* ----- Header ----- */
.cart-page .cart-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
    margin-bottom: .5rem;
}


/* ----- Empty state ----- */
.cart-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cart-empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    margin: 0 auto;
}


/* ----- Free-shipping progress bar ----- */
.cart-ship-bar {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-primary-light)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.cart-ship-bar-text {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: .88rem;
    color: var(--c-navy);
    margin-bottom: .65rem;
}

.cart-ship-bar-text i {
    color: var(--c-primary);
    font-size: 1rem;
}

.cart-ship-bar-progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(16, 31, 72, .08);
    overflow: hidden;
}

.cart-ship-bar-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), var(--c-navy));
    border-radius: 3px;
    transition: width .35s ease;
}


/* ----- Cart list ----- */
.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-item:hover {
    border-color: rgba(194, 10, 98, .2);
    box-shadow: var(--shadow-xs);
}

/* Thumbnail */
.cart-item-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-grey-100);
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-thumb-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );
    color: var(--c-primary);
    font-size: 1.5rem;
}

/* Product info */
.cart-item-info {
    min-width: 0; /* allow text truncation */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .25rem;
}

.cart-item-title a {
    color: var(--c-navy);
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--c-primary);
}

.cart-item-sku {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-bottom: .4rem;
}

.cart-item-sku code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .74rem;
}

.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-size: .88rem;
}

.cart-item-price-old {
    color: var(--c-grey-500);
    text-decoration: line-through;
}

.cart-item-price-now {
    font-weight: 700;
    color: var(--c-primary);
}

.cart-item-price-each {
    color: var(--c-grey-500);
    font-size: .8rem;
}

.cart-item-stock-warn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    margin-top: .5rem;
    font-size: .75rem;
    color: #A96A00;
}

/* Actions column */
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    min-width: 160px;
}

/* Qty stepper */
.cart-qty {
    display: inline-flex;
    align-items: stretch;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .15);
    border-radius: 10px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 34px;
    border: 0;
    background: transparent;
    color: var(--c-navy);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cart-qty-btn:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.cart-qty-input {
    width: 46px;
    border: 0;
    text-align: center;

    font-weight: 700;
    color: var(--c-navy);
    background: transparent;
    font-size: .9rem;
}

.cart-qty-input:focus {
    outline: none;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-qty-input[type=number] { -moz-appearance: textfield; }

/* Line total */
.cart-item-linetotal {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    font-variant-numeric: tabular-nums;
}

/* Remove */
.cart-item-remove {
    border: 0;
    background: transparent;
    color: var(--c-grey-500);

    width: 34px;
    height: 34px;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cart-item-remove:hover {
    background: #FDECEC;
    color: #B02A37;
}

/* Footnote */
.cart-list-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    margin-top: .5rem;
}


/* ----- Order summary ----- */
.cart-summary {
    position: sticky;
    top: 90px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.cart-summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1.25rem;
}

.cart-summary-list {
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cart-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    font-size: .92rem;
}

.cart-summary-row dt {
    color: var(--c-grey-600);
    font-weight: 400;
}

.cart-summary-row dd {
    margin: 0;
    color: var(--c-navy);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-free-tag {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;

    padding-top: 1rem;
    margin-bottom: 1.25rem;
    border-top: 1px solid rgba(16, 31, 72, .1);

    font-size: .95rem;
    color: var(--c-navy);
}

.cart-summary-total strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--c-primary);
    font-variant-numeric: tabular-nums;
}

.cart-checkout-btn {
    padding: .85rem 1.5rem;
    font-weight: 700;
    border-radius: 10px;
}

.cart-summary-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;

    margin: 1rem 0 0;
    font-size: .78rem;
    color: var(--c-grey-600);
}

.cart-summary-trust i {
    color: var(--c-primary);
}

.cart-summary-payments {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.cart-payment-chip {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 6px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .72rem;
    font-weight: 600;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .cart-item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "thumb info"
            "actions actions";
        row-gap: .75rem;
    }

    .cart-item-thumb {
        grid-area: thumb;
        width: 72px;
        height: 72px;
    }

    .cart-item-info {
        grid-area: info;
    }

    .cart-item-actions {
        grid-area: actions;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-width: 0;

        padding-top: .75rem;
        border-top: 1px dashed rgba(16, 31, 72, .1);
    }

    .cart-item-linetotal {
        order: 2;
    }

    .cart-item-remove-form {
        order: 3;
    }

    .cart-list-footnote {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =====================================================
   DASHBOARD — ADDRESSES
===================================================== */

/* ----- Saved address card ----- */
.addr-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.addr-card {
    position: relative;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.addr-card:hover {
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}

.addr-card.is-default {
    border-color: var(--c-primary);
    box-shadow:
        var(--shadow-sm),
        0 0 0 3px rgba(194, 10, 98, .08);
}

/* Card header */
.addr-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .85rem;
}

.addr-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.addr-card-title strong {
    color: var(--c-navy);
    font-size: 1rem;
}

.addr-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;

    padding: .2rem .55rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

.addr-default-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .25rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Card body */
.addr-card-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);

    color: var(--c-grey-600);
    font-size: .9rem;
    line-height: 1.5;
}

.addr-line {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

.addr-line > i {
    color: var(--c-primary);
    font-size: .9rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

/* Actions */
.addr-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.addr-card-actions .btn {
    display: inline-flex;
    align-items: center;
}


/* ----- Empty state ----- */
.addr-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.addr-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Add-address card ----- */
.addr-form-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    /* Keep it visible while scrolling the list on desktop */
    position: sticky;
    top: 90px;
}

.addr-form-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.addr-form-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.addr-form .form-label {
    color: var(--c-navy);
    margin-bottom: .25rem;
}

.addr-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.addr-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.addr-form-group {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .08);
}

.addr-form-group:last-of-type {
    border-bottom: 0;
}

.addr-form-group-title {
    display: block;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);

    margin-bottom: .6rem;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .addr-form-card {
        position: static;
    }
}

@media (max-width: 575px) {
    .addr-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .addr-card-actions {
        flex-direction: column;
    }

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

    .addr-form-card {
        padding: 1.25rem;
    }
}



/* =====================================================
   STORE — PRODUCT CARD (grid)
===================================================== */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

.product-card.is-out-of-stock {
    /* Slight desaturation for unavailable items */
    opacity: .92;
}


/* ----- Ribbons ----- */
.product-ribbon {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .3rem .7rem;
    border-radius: 999px;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;

    color: var(--c-white);
}

.product-ribbon.is-sale {
    background: var(--c-primary);
}

.product-ribbon.is-out {
    background: var(--c-grey-600);
}


/* ----- Thumbnail ----- */
.product-thumb-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-grey-100);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

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

.product-thumb-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );
    color: var(--c-primary);
    font-size: 2.5rem;
}

.product-thumb-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(16, 31, 72, .55);
    color: var(--c-white);

    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* ----- Body ----- */
.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 1rem 1.1rem;
}

.product-brand {
    display: inline-block;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);

    margin-bottom: .35rem;
}

.product-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .75rem;

    /* Clamp to 2 lines for uniform card heights */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--c-navy);
    text-decoration: none;
    transition: color .2s ease;
}

.product-title a:hover {
    color: var(--c-primary);
}


/* ----- Price + stock ----- */
.product-meta {
    margin-top: auto;
    margin-bottom: .85rem;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    flex-wrap: wrap;
}

.product-price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-primary);
}

.product-price-old {
    font-size: .8rem;
    color: var(--c-grey-500);
    text-decoration: line-through;
}

.product-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .15rem .55rem;
    border-radius: 999px;

    font-size: .68rem;
    font-weight: 600;
}

.product-stock-pill.is-in {
    background: #E7F7EE;
    color: #12805C;
}

.product-stock-pill.is-low {
    background: #FFF4E0;
    color: #A96A00;
}


/* ----- Actions ----- */
.product-actions {
    display: flex;
    gap: .5rem;
    align-items: stretch;

    /* Sit above the stretched-link title */
    position: relative;
    z-index: 2;
}

.product-cart-form {
    flex: 1;
    display: flex;
}

.product-cart-btn {
    flex: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;

    padding: .5rem .75rem;
    font-weight: 600;
    border-radius: 10px;
}

.product-cart-btn-label {
    font-size: .82rem;
}

.product-wishlist-btn {
    width: 38px;
    flex-shrink: 0;

    border-radius: 10px;
    border: 1px solid rgba(16, 31, 72, .15);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--c-navy);
    background: var(--c-white);

    transition: all .2s ease;
}

.product-wishlist-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.product-wishlist-btn[aria-pressed="true"] {
    background: var(--c-primary-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}


/* ----- Hover arrow (decorative) ----- */
.product-hover-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;

    width: 30px;
    height: 30px;
    border-radius: 50%;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;

    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;

    pointer-events: none;
}

.product-card:hover .product-hover-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ----- Compact variant on small screens ----- */
@media (max-width: 575px) {
    .product-body {
        padding: .85rem .85rem 1rem;
    }

    .product-title {
        font-size: .88rem;
    }

    .product-price-current {
        font-size: .95rem;
    }

    .product-cart-btn-label {
        display: none;
    }

    .product-cart-btn {
        padding: .5rem;
    }
}


/* Chip text truncation — long search queries */
.st-chip-text {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}



/* =====================================================
   DASHBOARD — TRAININGS WIDGET
===================================================== */

.dash-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    display: flex;
    flex-direction: column;
}

/* Panel header */
.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.dash-panel-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.dash-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.dash-panel-icon.is-upcoming {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.dash-panel-icon.is-done {
    background: #E7F7EE;
    color: #12805C;
}

.dash-panel-count {
    min-width: 32px;
    height: 32px;
    padding: 0 .6rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-panel-count.is-done {
    background: #E7F7EE;
    color: #12805C;
}


/* Empty state */
.dash-panel-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.dash-panel-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: var(--c-grey-100);
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    margin: 0 auto;
}


/* Training list */
.dash-training-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.dash-training-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: .9rem 1rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    transition: background .2s ease, border-color .2s ease;
}

.dash-training-item:hover {
    background: var(--c-white);
    border-color: rgba(16, 31, 72, .1);
}


/* Body */
.dash-training-body {
    flex-grow: 1;
    min-width: 0; /* allow text truncation on flex children */
}

.dash-training-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .95rem;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-training-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-top: .35rem;
    font-size: .8rem;
    color: var(--c-grey-600);
}

.dash-training-meta > span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.dash-training-meta i {
    color: var(--c-primary);
    font-size: .78rem;
}


/* When badge */
.dash-when-badge {
    display: inline-flex;
    align-items: center;

    padding: .15rem .55rem;
    border-radius: 999px;

    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.dash-when-badge.is-urgent {
    background: #FFF4E0;
    color: #A96A00;
}

.dash-when-badge.is-soon {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.dash-when-badge.is-muted {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* Payment-due badge */
.dash-pay-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .15rem .55rem;
    border-radius: 999px;

    background: #FFF4E0;
    color: #A96A00;

    font-size: .7rem;
    font-weight: 700;
}

.dash-pay-badge i {
    color: #A96A00;
    font-size: .72rem;
}


/* Certificate link */
.dash-cert-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .15rem .6rem;
    border-radius: 999px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.dash-cert-link:hover {
    background: #12805C;
    color: var(--c-white);
}

.dash-cert-link i {
    color: inherit;
}


/* Actions */
.dash-training-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.dash-training-actions .btn {
    white-space: nowrap;
}


/* Responsive */
@media (max-width: 575px) {
    .dash-training-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-training-actions {
        justify-content: flex-end;
    }
}


/* =====================================================
   DASHBOARD — TRAINING MATERIALS
===================================================== */

.mats-wrap {
    max-width: 900px;
}

/* Breadcrumb */
.mats-breadcrumb .breadcrumb {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.mats-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.mats-breadcrumb a:hover {
    color: var(--c-primary);
}

.mats-breadcrumb .breadcrumb-item.active {
    color: var(--c-navy);
    font-weight: 600;
}

/* Header */
.mats-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.mats-title {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.25;
    margin-top: .5rem;
    margin-bottom: .35rem;
}


/* ----- Empty state ----- */
.mats-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.mats-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Material list ----- */
.mats-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mats-item {
    display: flex;
    align-items: center;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.mats-item:hover {
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}


/* Icon */
.mats-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.25rem;

    /* Default tone */
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

.mats-item-icon.is-pdf     { background: #FDE7E9; color: #B02A37; }
.mats-item-icon.is-doc     { background: #E7EEFB; color: #1E40AF; }
.mats-item-icon.is-xls     { background: #E7F7EE; color: #12805C; }
.mats-item-icon.is-ppt     { background: #FFEEE5; color: #C2410C; }
.mats-item-icon.is-zip     { background: #F3E8FF; color: #6B21A8; }
.mats-item-icon.is-img     { background: #FEF3C7; color: #A96A00; }
.mats-item-icon.is-vid     { background: #FFE4E6; color: #BE123C; }
.mats-item-icon.is-aud     { background: #E0F2FE; color: #0369A1; }
.mats-item-icon.is-txt     { background: var(--c-grey-100); color: var(--c-charcoal); }
.mats-item-icon.is-link    { background: var(--c-primary-light); color: var(--c-primary); }
.mats-item-icon.is-generic { background: var(--c-grey-100); color: var(--c-grey-600); }


/* Body */
.mats-item-body {
    flex-grow: 1;
    min-width: 0;
}

.mats-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.35;
    margin: 0 0 .35rem;
}

.mats-item-desc {
    color: var(--c-grey-600);
    font-size: .88rem;
    line-height: 1.55;
    margin: 0 0 .5rem;
}

.mats-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.mats-item-tag {
    display: inline-flex;
    align-items: center;

    padding: .15rem .55rem;
    border-radius: 6px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.mats-item-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    font-size: .78rem;
    color: var(--c-grey-500);
}

.mats-item-meta-item i {
    font-size: .75rem;
}


/* Actions */
.mats-item-actions {
    flex-shrink: 0;
}

.mats-item-unavailable {
    font-size: .8rem;
    color: var(--c-grey-500);
    font-style: italic;
}


/* Responsive */
@media (max-width: 575px) {
    .mats-item {
        flex-wrap: wrap;
    }

    .mats-item-actions {
        width: 100%;
        margin-top: .25rem;
    }

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

.dash-panel-empty-icon {
    background: var(--c-primary-light);
    color: var(--c-primary);
}


/* =====================================================
   DASHBOARD — CERTIFICATES
===================================================== */

.cert-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ----- Panel header ----- */
.cert-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1.25rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.cert-panel-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.cert-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.cert-panel-count {
    min-width: 32px;
    height: 32px;
    padding: 0 .6rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* ----- Empty state ----- */
.cert-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.cert-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-grey-100);
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Certificate card ----- */
.cert-card {
    display: flex;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius);
    padding: 1rem;

    height: 100%;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.cert-card:hover {
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}


/* QR */
.cert-card-qr {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;

    border: 1px solid rgba(16, 31, 72, .1);
    background: var(--c-white);
    padding: 4px;
}

.cert-card-qr img {
    display: block;
    width: 80px;
    height: 80px;
}


/* Body */
.cert-card-body {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cert-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.3;

    margin-bottom: .4rem;

    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-card-meta {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-bottom: .5rem;

    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.cert-card-meta i {
    color: var(--c-primary);
}


/* Certificate number + copy */
.cert-card-number {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .25rem .5rem;
    border-radius: 8px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);

    margin-bottom: .75rem;
    max-width: 100%;
}

.cert-card-number code {
    background: transparent;
    color: var(--c-navy);
    font-size: .78rem;
    padding: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.cert-copy-btn {
    flex-shrink: 0;

    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;

    background: transparent;
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cert-copy-btn:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.cert-copy-btn.is-copied {
    color: #12805C;
}


/* Actions */
.cert-card-actions {
    display: flex;
    gap: .4rem;
    margin-top: auto;
}

.cert-card-actions .btn {
    display: inline-flex;
    align-items: center;
}


/* Responsive */
@media (max-width: 575px) {
    .cert-card {
        flex-direction: column;
    }

    .cert-card-qr {
        align-self: flex-start;
    }

    .cert-card-actions {
        flex-wrap: wrap;
    }
}




/* =====================================================
   DASHBOARD — PROFILE FORM
===================================================== */

.profile-form {
    padding-bottom: 5rem; /* leave room for the sticky actions bar */
}

/* ----- Section wrapper ----- */
.profile-section {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.profile-section:last-of-type {
    margin-bottom: 0;
}

/* ----- Section header (legend) ----- */
.profile-section-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: 0 0 1rem;
    margin: 0 0 1.25rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);

    width: 100%;
    float: none; /* override default fieldset legend behaviour */
}

.profile-section-head strong {
    display: block;
    color: var(--c-navy);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.profile-section-head small {
    display: block;
    color: var(--c-grey-600);
    font-size: .82rem;
    font-weight: 400;
    margin-top: .1rem;
}

.profile-section-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}


/* ----- Form fields ----- */
.profile-form .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--c-navy);
    margin-bottom: .4rem;
}

.profile-form .form-control,
.profile-form .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .6rem .85rem;
    font-size: .92rem;
}

.profile-form .form-control:focus,
.profile-form .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.profile-form .form-text {
    color: var(--c-grey-500);
    font-size: .78rem;
}

.profile-form textarea {
    resize: vertical;
}


/* ----- Specializations toolbar + tiles ----- */
.profile-spec-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;

    margin-bottom: .85rem;
}

.profile-spec-hint {
    font-size: .82rem;
    color: var(--c-grey-600);
}

.profile-spec-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
}

.profile-spec-actions .btn-link {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.profile-spec-actions .btn-link:hover {
    text-decoration: underline;
}

/* Specialization tiles */
.profile-spec-tile {
    display: flex;
    align-items: center;
    gap: .6rem;

    padding: .65rem .85rem;
    border-radius: 10px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    font-size: .88rem;
    color: var(--c-text);

    cursor: pointer;
    user-select: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease;
}

.profile-spec-tile:hover {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .25);
}

/* Hide the raw checkbox but keep it focusable */
.profile-spec-tile input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

/* Custom checkbox indicator */
.profile-spec-tile::before {
    content: "";
    flex-shrink: 0;

    width: 18px;
    height: 18px;
    border-radius: 5px;

    border: 1.5px solid rgba(16, 31, 72, .25);
    background: var(--c-white);

    display: inline-block;

    transition: background .15s ease, border-color .15s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.profile-spec-tile input:checked + .profile-spec-label {
    font-weight: 600;
    color: var(--c-primary);
}

.profile-spec-tile:has(input:checked) {
    background: var(--c-primary-light);
    border-color: var(--c-primary);
}

.profile-spec-tile:has(input:checked)::before {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M13.485 3.515a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 1.414-1.414L6 10.086l6.293-6.293a1 1 0 0 1 1.192 0z'/></svg>");
}

/* Focus ring for keyboard users */
.profile-spec-tile:has(input:focus-visible) {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Fallback for browsers without :has() — still shows focus via checkbox */
.profile-spec-tile input:focus-visible + .profile-spec-label {
    outline: 2px solid var(--c-primary);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ----- Resume current-file chip ----- */
.profile-resume-current {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: .75rem .9rem;
    border-radius: 10px;

    background: var(--c-primary-light);
    border: 1px solid rgba(194, 10, 98, .15);

    margin-bottom: .6rem;
}

.profile-resume-current > i {
    color: var(--c-primary);
    font-size: 1.25rem;
}

.profile-resume-current strong {
    display: block;
    font-size: .85rem;
    color: var(--c-navy);
    font-weight: 600;
}

.profile-resume-current a {
    color: var(--c-primary);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-resume-current a:hover {
    text-decoration: underline;
}


/* ----- Bio counter ----- */
.profile-bio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: .5rem;
    margin-top: .35rem;
}


/* ----- Sticky actions bar ----- */
.profile-form-actions {
    position: sticky;
    bottom: 0;

    display: flex;
    justify-content: flex-end;
    gap: .6rem;

    padding: 1rem 0;
    margin-top: 1.5rem;

    background: linear-gradient(
        180deg,
        rgba(248, 249, 251, 0) 0%,
        rgba(248, 249, 251, .95) 40%,
        rgba(248, 249, 251, 1) 100%
    );

    z-index: 10;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .profile-section {
        padding: 1.25rem;
    }

    .profile-section-head small {
        display: none; /* keep header compact on very small screens */
    }

    .profile-form-actions {
        flex-direction: column-reverse;
    }

    .profile-form-actions .btn {
        width: 100%;
    }
}




/* =====================================================
   TRAINING DETAIL PAGE (TDP)
===================================================== */

/* ----- Breadcrumb ----- */
.tdp-breadcrumb .breadcrumb {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.tdp-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.tdp-breadcrumb a:hover {
    color: var(--c-primary);
}

.tdp-breadcrumb .breadcrumb-item.active {
    color: var(--c-navy);
    font-weight: 600;
}


/* ----- Hero ----- */
.tdp-hero {
    padding-bottom: 1rem;
}

.tdp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.tdp-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .3rem .75rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tdp-badge.is-spec {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.tdp-badge.is-mode {
    background: var(--c-navy-light);
    color: var(--c-navy);
}

.tdp-status i {
    font-size: .5rem;
}

.tdp-status.is-open {
    background: #E7F7EE;
    color: #12805C;
}

.tdp-status.is-closed,
.tdp-status.is-cancelled {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

.tdp-status.is-done {
    background: #E6EEFF;
    color: #193A7A;
}

.tdp-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.2;
    margin-bottom: .75rem;
}

.tdp-subtitle {
    font-size: 1.1rem;
    color: var(--c-grey-600);
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.tdp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .9rem;
    color: var(--c-grey-600);
}

.tdp-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.tdp-hero-meta i {
    color: var(--c-primary);
}


/* ----- Media ----- */
.tdp-media {
    background: var(--c-grey-100);
}

.tdp-media-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tdp-media-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );
    color: var(--c-primary);
    font-size: 4rem;
}


/* ----- Sections ----- */
.tdp-section {
    margin-top: 2.5rem;
}

.tdp-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;

    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-navy);

    padding-bottom: .85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.tdp-section-title i {
    color: var(--c-primary);
}

.tdp-section-count {
    margin-left: auto;

    padding: .15rem .55rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .75rem;
    font-weight: 700;
}

.tdp-prose {
    color: var(--c-text);
    line-height: 1.75;
}

.tdp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.tdp-prose h2,
.tdp-prose h3 {
    color: var(--c-navy);
    font-weight: 700;
    margin-top: 1.5rem;
}

.tdp-prose ul,
.tdp-prose ol {
    padding-left: 1.25rem;
}


/* ----- Materials ----- */
.tdp-materials {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.tdp-material {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.15rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: 12px;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.tdp-material:hover {
    border-color: rgba(194, 10, 98, .2);
    box-shadow: var(--shadow-xs);
}

.tdp-material-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.tdp-material-icon.is-file {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.tdp-material-icon.is-link {
    background: var(--c-navy-light);
    color: var(--c-navy);
}

.tdp-material-body {
    flex-grow: 1;
    min-width: 0;
}

.tdp-material-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .95rem;
}

.tdp-material-desc {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}

.tdp-material-type {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-grey-500);
    margin-top: .35rem;
}

.tdp-material-btn {
    flex-shrink: 0;
    white-space: nowrap;
}


/* ----- Sidebar ----- */
.tdp-sidebar {
    position: sticky;
    top: 90px;
}

.tdp-side-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    box-shadow: var(--shadow-sm);
}

.tdp-side-card + .tdp-side-card,
.tdp-side-card + .tdp-trust {
    margin-top: 1rem;
}

.tdp-side-price {
    margin-bottom: 1rem;
}

.tdp-side-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
}

.tdp-side-price-value.is-free {
    color: #12805C;
}


/* Capacity */
.tdp-capacity {
    margin-bottom: 1.25rem;
}

.tdp-capacity-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: .82rem;
    color: var(--c-grey-600);
    margin-bottom: .4rem;
}

.tdp-capacity-head > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tdp-capacity-head i {
    color: var(--c-primary);
}

.tdp-capacity-bar {
    height: 6px;
    background: var(--c-grey-100);
    border-radius: 999px;
    overflow: hidden;
}

.tdp-capacity-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--c-primary),
        #A40853
    );
    border-radius: 999px;
    transition: width .4s ease;
}


/* Details list */
.tdp-details {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.tdp-details li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;

    font-size: .88rem;
}

.tdp-details-label {
    color: var(--c-grey-500);
    flex-shrink: 0;
}

.tdp-details-value {
    color: var(--c-navy);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.tdp-side-divider {
    margin: 1.25rem 0;
    border-top: 1px dashed rgba(16, 31, 72, .1);
    opacity: 1;
}


/* Registration status */
.tdp-reg-status {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: .9rem;
    margin-bottom: 1rem;

    border-radius: 12px;
    background: var(--c-grey-50);
}

.tdp-reg-status-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
}

.tdp-reg-status-icon.is-paid {
    background: #E7F7EE;
    color: #12805C;
}

.tdp-reg-status-icon.is-pending {
    background: #FFF4E0;
    color: #A96A00;
}

.tdp-reg-status-title {
    font-weight: 700;
    color: var(--c-navy);
    font-size: .95rem;
}

.tdp-reg-status-sub {
    font-size: .8rem;
    color: var(--c-grey-600);
    margin-top: .1rem;
}


/* Amount due */
.tdp-amount-due {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: .85rem 1rem;
    margin-bottom: 1rem;

    background: #FFF4E0;
    border-radius: 12px;
}

.tdp-amount-due-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #A96A00;
}

.tdp-amount-due-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #A96A00;
}


/* CTA */
.tdp-cta {
    font-weight: 600;
    border-radius: 10px;
}


/* Trainer card */
.tdp-side-card-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);

    margin-bottom: 1rem;
}

.tdp-trainer {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.tdp-trainer-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.tdp-trainer-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    font-size: 1.25rem;
    font-weight: 700;
}

.tdp-trainer-name {
    font-weight: 700;
    color: var(--c-navy);
    font-size: .95rem;
}

.tdp-trainer-role {
    font-size: .78rem;
    color: var(--c-grey-500);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tdp-trainer-bio {
    font-size: .85rem;
    color: var(--c-grey-600);
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
}


/* Trust row */
.tdp-trust {
    display: flex;
    flex-direction: column;
    gap: .6rem;

    padding: 1rem 1.25rem;

    background: var(--c-grey-50);
    border-radius: var(--radius-lg);

    font-size: .85rem;
    color: var(--c-grey-600);
}

.tdp-trust span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.tdp-trust i {
    color: var(--c-primary);
    font-size: .95rem;
}


/* ----- Sticky mobile CTA ----- */
.tdp-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;

    background: var(--c-white);
    border-top: 1px solid rgba(16, 31, 72, .08);

    box-shadow: 0 -8px 24px rgba(16, 31, 72, .08);

    padding: .75rem 1rem;
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0));
}

.tdp-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.tdp-mobile-bar-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-grey-500);
}

.tdp-mobile-bar-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-primary);
}

@media (min-width: 992px) {
    .tdp-mobile-bar { display: none !important; }
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .tdp-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .tdp-material {
        flex-wrap: wrap;
    }

    .tdp-material-btn {
        width: 100%;
        justify-content: center;
    }
}



/* =====================================================
   TECHNICIAN PUBLIC PROFILE
===================================================== */

.profile-page {
    /* no extra padding needed */
}


/* ----- Hero + cover ----- */
.profile-hero {
    position: relative;
    margin-bottom: 3rem;
}

.profile-cover {
    position: relative;
    height: 180px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--c-navy),
        #0C1838,
        #172B61
    );
}

.profile-cover-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 20%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 20%,
        transparent 75%
    );
}

/* White card that overlaps the cover */
.profile-card {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0 2rem 2rem;
    box-shadow: var(--shadow-md);
}

/* Avatar */
.profile-avatar-wrap {
    margin-top: -70px;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;

    border: 6px solid var(--c-white);
    box-shadow: var(--shadow-md);
    background: var(--c-grey-100);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: .02em;
}


/* ----- Headline ----- */
.profile-headline {
    text-align: center;
}

.profile-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .35rem;

    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.profile-verified {
    color: #12805C;
    font-size: .85em;
    line-height: 1;
}

.profile-title {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;

    margin-bottom: 1.25rem;
    font-size: .88rem;
    color: var(--c-grey-600);
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.profile-meta-item i {
    color: var(--c-primary);
}

.profile-meta-item.is-available {
    color: #12805C;
    font-weight: 600;
}

.profile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12805C;

    box-shadow: 0 0 0 0 rgba(18, 128, 92, .5);
    animation: profilePulse 2s infinite;
}

@keyframes profilePulse {
    0%   { box-shadow: 0 0 0 0 rgba(18, 128, 92, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(18, 128, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 128, 92, 0); }
}


/* ----- Specialization chips ----- */
.profile-specializations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

.profile-specialization {
    display: inline-block;

    padding: .3rem .8rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
}


/* ----- Contact actions ----- */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;

    padding-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}


/* ----- Panels ----- */
.profile-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    height: 100%;
}

.profile-panel-head {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.profile-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.profile-bio {
    color: var(--c-text);
    line-height: 1.75;
    margin-bottom: 0;
    font-size: .95rem;
}


/* ----- Detail blocks ----- */
.profile-detail {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: 100%;
}

.profile-detail-head {
    display: flex;
    align-items: center;
    gap: .5rem;

    margin-bottom: .75rem;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-600);
}

.profile-detail-head i {
    color: var(--c-primary);
    font-size: .95rem;
}

.profile-detail-text {
    color: var(--c-navy);
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: 0;
    white-space: pre-line;
}


/* ----- Chip list inside details ----- */
.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.profile-chip {
    display: inline-block;

    padding: .28rem .7rem;
    border-radius: 8px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);

    color: var(--c-navy);
    font-size: .8rem;
    font-weight: 500;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .profile-cover {
        height: 140px;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }

    .profile-avatar-wrap {
        margin-top: -55px;
    }

    .profile-card {
        padding: 0 1.25rem 1.5rem;
    }
}

@media (max-width: 575px) {
    .profile-meta {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .profile-actions .btn {
        flex: 1 1 auto;
        min-width: 130px;
    }
}




/* =====================================================
   TECHNICIAN DIRECTORY
===================================================== */

/* ----- Header ----- */
.tech-directory-header {
    margin-bottom: 1.5rem;
}

.tech-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 .75rem;

    font-size: .85rem;
    color: var(--c-grey-600);
}

.tech-breadcrumb li + li::before {
    content: "/";
    margin-right: .5rem;
    color: var(--c-grey-300);
}

.tech-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.tech-breadcrumb a:hover {
    color: var(--c-primary);
}

.tech-breadcrumb [aria-current="page"] {
    color: var(--c-navy);
    font-weight: 600;
}

.tech-directory-heading h1 {
    color: var(--c-navy);
}


/* ----- Filter bar ----- */
.tech-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .65rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: .9rem 1rem;

    box-shadow: var(--shadow-xs);
}

.tech-filter-search {
    position: relative;
    flex: 1 1 240px;
}

.tech-filter-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);

    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
}

.tech-filter-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    height: 100%;
}

.tech-filter-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.tech-filter-search:focus-within > i {
    color: var(--c-primary);
}

.tech-filter-spec {
    flex: 1 1 200px;
}

.tech-filter-spec .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    height: 100%;
}

.tech-filter-spec .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.tech-filter-submit,
.tech-filter-clear {
    border-radius: 10px;
    padding: .55rem 1.25rem;
    white-space: nowrap;
}


/* ----- Active filter chips ----- */
.tech-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-top: 1rem;
}

.tech-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .3rem .75rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.tech-chip-removable:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.tech-chip i {
    font-size: .75rem;
    opacity: .75;
}

.tech-chip-removable:hover i {
    opacity: 1;
}


/* ----- Grid ----- */
.tech-grid {
    margin-top: 1.5rem;
}


/* ----- Technician card ----- */
.tech-card-link {
    color: inherit;
}

.tech-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem 1.5rem;

    text-align: center;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.tech-card-link:hover .tech-card {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}


/* Avatar */
.tech-card-avatar-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.tech-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;

    border: 4px solid var(--c-white);
    box-shadow: var(--shadow-sm);
    background: var(--c-grey-100);
}

.tech-card-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.tech-card-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;

    width: 26px;
    height: 26px;
    border-radius: 50%;

    background: var(--c-white);
    color: #12805C;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;
    box-shadow: var(--shadow-xs);
}


/* Text */
.tech-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.35;
    margin-bottom: .25rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-card-title {
    font-size: .82rem;
    color: var(--c-primary);
    font-weight: 600;

    margin-bottom: .35rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-card-location {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    font-size: .78rem;
    color: var(--c-grey-600);
    margin-bottom: .75rem;
}

.tech-card-location i {
    color: var(--c-primary);
    font-size: .8rem;
}


/* Completion pill */
.tech-card-completion {
    position: relative;

    width: 100%;
    height: 26px;

    border-radius: 999px;
    overflow: hidden;

    background: var(--c-grey-100);
    margin-top: auto;
    margin-bottom: 1rem;
}

.tech-card-completion-bar {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;

    border-radius: 999px;

    transition: width .8s ease;
}

.tech-card-completion-label {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--c-navy);

    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.tech-card-completion.is-high .tech-card-completion-bar {
    background: linear-gradient(90deg, #A9E7C5, #7DDFAD);
}

.tech-card-completion.is-mid .tech-card-completion-bar {
    background: linear-gradient(90deg, #FFE6A8, #FFD166);
}

.tech-card-completion.is-low .tech-card-completion-bar {
    background: linear-gradient(90deg, #F8CFCF, #F1A9A9);
}


/* CTA at bottom */
.tech-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .82rem;
    font-weight: 600;
    color: var(--c-primary);

    transition: gap .2s ease;
}

.tech-card-link:hover .tech-card-cta {
    gap: .6rem;
}


/* ----- Empty state ----- */
.tech-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;

    text-align: center;
    margin-top: 1.5rem;
}

.tech-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Pagination ----- */
.tech-pagination {
    display: flex;
    justify-content: center;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .tech-filter-bar {
        padding: .75rem;
    }

    .tech-filter-submit,
    .tech-filter-clear {
        flex: 1 1 auto;
    }

    .tech-card {
        padding: 1.25rem 1rem 1.25rem;
    }

    .tech-card-avatar {
        width: 72px;
        height: 72px;
    }

    .tech-card-avatar-placeholder {
        font-size: 1.4rem;
    }

    .tech-card-name {
        font-size: .9rem;
    }

    .tech-card-title {
        font-size: .75rem;
    }
}





/* =====================================================
   TECHNICIAN DIRECTORY
===================================================== */

/* ----- Hero ----- */
.tech-dir-hero {
    position: relative;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.tech-dir-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.tech-dir-count {
    text-align: right;
}

.tech-dir-count-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
}

.tech-dir-count-label {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);
    margin-top: .35rem;
}


/* ----- Toolbar ----- */
.tech-dir-toolbar {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.tech-dir-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.tech-dir-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.tech-dir-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.tech-dir-toolbar-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.tech-dir-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.tech-dir-toolbar-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tech-dir-toolbar-sort label {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.tech-dir-toolbar-sort .form-select {
    min-width: 170px;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}


/* ----- Active filter chips ----- */
.tech-dir-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.tech-dir-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.tech-dir-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.tech-dir-chip:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.tech-dir-clear {
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.tech-dir-clear:hover {
    color: var(--c-primary);
}


/* ----- Filter sidebar ----- */
.tech-dir-filters {
    position: sticky;
    top: 90px;
    align-self: flex-start;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.tech-filter-group + .tech-filter-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.tech-filter-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-navy);
    margin-bottom: .85rem;
}

.tech-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .1rem;
    max-height: 260px;
    overflow-y: auto;
}

.tech-filter-link {
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: .42rem .65rem;
    border-radius: 8px;

    color: var(--c-charcoal);
    font-size: .88rem;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.tech-filter-link:hover {
    background: var(--c-grey-50);
    color: var(--c-primary);
}

.tech-filter-link.is-active {
    background: var(--c-primary-light);
    color: var(--c-primary);
    font-weight: 600;
}

.tech-filter-link i {
    color: inherit;
    font-size: .9rem;
}


/* ----- Technician card ----- */
.tech-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem 1.5rem;

    text-decoration: none;
    color: inherit;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

/* Availability ribbon */
.tech-card-ribbon {
    position: absolute;
    top: .85rem;
    right: .85rem;

    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .22rem .55rem;
    border-radius: 999px;

    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tech-card-ribbon.is-success   { background: #E7F7EE; color: #12805C; }
.tech-card-ribbon.is-info      { background: #E8EEF9; color: #193A7A; }
.tech-card-ribbon.is-secondary { background: var(--c-grey-100); color: var(--c-grey-600); }
.tech-card-ribbon.is-muted     { background: var(--c-grey-100); color: var(--c-grey-500); }

.tech-card-ribbon i {
    font-size: .7rem;
}

/* Avatar */
.tech-card-avatar {
    margin-bottom: 1rem;
}

.tech-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-sm);
}

.tech-card-avatar-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: .03em;

    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-sm);
}

/* Name */
.tech-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.3;
    margin-bottom: .25rem;

    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tech-card-verified {
    color: #12805C;
    font-size: .9em;
}

/* Title */
.tech-card-title {
    font-size: .82rem;
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: .85rem;
    line-height: 1.35;
}

/* Meta */
.tech-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;

    display: flex;
    flex-direction: column;
    gap: .3rem;

    font-size: .78rem;
    color: var(--c-grey-600);
}

.tech-card-meta li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.tech-card-meta i {
    color: var(--c-primary);
    font-size: .78rem;
}

/* Progress */
.tech-card-progress {
    width: 100%;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.tech-card-progress-bar {
    height: 4px;
    background: var(--c-grey-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .35rem;
}

.tech-card-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), #D71874);
    border-radius: inherit;
    transition: width .4s ease;
}

.tech-card-progress-label {
    font-size: .7rem;
    color: var(--c-grey-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* ----- Empty state ----- */
.tech-dir-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.tech-dir-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Offcanvas filters ----- */
.tech-dir-offcanvas .tech-filters {
    padding: 0;
    border: 0;
}

.tech-dir-offcanvas .tech-filter-group:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}


/* ----- Pagination ----- */
.tech-dir-pagination {
    display: flex;
    justify-content: center;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .tech-dir-count {
        text-align: left;
    }

    .tech-dir-toolbar {
        margin-top: 0;
        padding: .85rem;
    }
}

@media (max-width: 575px) {
    .tech-card {
        padding: 1.5rem 1rem 1.25rem;
    }

    .tech-card-name {
        font-size: .95rem;
    }
}






/* =====================================================
   TRAINER PUBLIC PROFILE
   (extends the technician profile styles)
===================================================== */

/* Trainings handled list */
.trainer-trainings-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.trainer-training-item {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: .75rem .9rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    color: inherit;
    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.trainer-training-item:hover {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .25);
    transform: translateX(3px);
}

.trainer-training-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.trainer-training-body {
    flex-grow: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.trainer-training-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .95rem;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trainer-training-date {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    font-size: .78rem;
    color: var(--c-grey-600);
}

.trainer-training-date i {
    color: var(--c-primary);
    font-size: .75rem;
}

.trainer-training-arrow {
    flex-shrink: 0;

    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;

    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;

    pointer-events: none;
}

.trainer-training-item:hover .trainer-training-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* Chip with icon (used on certifications) */
.profile-chip i {
    color: var(--c-primary);
    font-size: .8rem;
}



/* =====================================================
   TRAINERS DIRECTORY
===================================================== */

.trainers-page {}

/* ----- Total count pill in header ----- */
.trainers-total {
    display: inline-flex;
    align-items: center;

    padding: .5rem 1rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .82rem;
    font-weight: 700;
}


/* ----- Filter bar ----- */
.trainers-filter {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.trainers-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.trainers-filter-search {
    position: relative;
    flex: 1 1 260px;
}

.trainers-filter-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.trainers-filter-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.trainers-filter-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.trainers-filter-select {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 1 260px;
}

.trainers-filter-select label {
    font-size: .85rem;
    color: var(--c-grey-600);
    white-space: nowrap;
}

.trainers-filter-select .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    min-width: 150px;
}

.trainers-filter-select .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.trainers-clear {
    padding: .4rem .75rem;
}


/* ----- Trainer card ----- */
.trainer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);

    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.trainer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

/* Avatar */
.trainer-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.trainer-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;

    border: 4px solid var(--c-white);
    box-shadow: var(--shadow-sm);
    background: var(--c-grey-100);
    margin: 0 auto;
}

.trainer-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: .02em;
}

/* Verified check mark on avatar */
.trainer-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;

    width: 26px;
    height: 26px;
    border-radius: 50%;

    background: #12805C;
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    border: 3px solid var(--c-white);
}

/* Body */
.trainer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.trainer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: .25rem;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trainer-specialization {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin-bottom: .85rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.trainer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
}

.trainer-experience-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .25rem .65rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.trainer-experience-pill i {
    font-size: .72rem;
}

.trainer-availability {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .72rem;
    font-weight: 600;
    color: #12805C;
    white-space: nowrap;
}

.trainer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #12805C;
}

/* Hover arrow */
.trainer-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;

    width: 30px;
    height: 30px;
    border-radius: 50%;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;

    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s ease, transform .25s ease;

    pointer-events: none;
}

.trainer-card:hover .trainer-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ----- Empty state ----- */
.trainers-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.trainers-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Responsive tweaks ----- */
@media (max-width: 575px) {
    .trainers-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .trainers-filter-select {
        flex: 1 1 auto;
    }

    .trainers-filter-select label {
        display: none;
    }

    .trainer-card {
        padding: 1.5rem 1rem 1.25rem;
    }

    .trainer-avatar {
        width: 84px;
        height: 84px;
    }

    .trainer-name {
        font-size: .95rem;
    }

    .trainer-specialization {
        font-size: .78rem;
    }
}


/* =====================================================
   CERTIFICATE VERIFICATION
===================================================== */

.cert-verify-page {
    max-width: 1200px;
}


/* ----- Header ----- */
.cert-verify-header {
    max-width: 640px;
    margin: 0 auto 1rem;
}

.cert-verify-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A40853
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 15px 35px rgba(194, 10, 98, .25);
}

.cert-verify-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .75rem;
}

.cert-verify-sub {
    color: var(--c-grey-600);
    font-size: 1rem;
    margin-bottom: 0;
}


/* ----- Form card ----- */
.cert-verify-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.cert-verify-form .form-label {
    color: var(--c-navy);
    margin-bottom: .5rem;
}

.cert-verify-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cert-verify-input-wrap {
    position: relative;
    flex: 1 1 260px;
}

.cert-verify-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    font-size: 1.05rem;
    pointer-events: none;
    transition: color .2s ease;
}

.cert-verify-input-wrap .form-control {
    padding-left: 2.75rem;
    padding-top: .85rem;
    padding-bottom: .85rem;

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95rem;
    letter-spacing: .02em;

    border: 1px solid rgba(16, 31, 72, .15);
    border-radius: 12px;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.cert-verify-input-wrap .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

.cert-verify-input-wrap:focus-within > i {
    color: var(--c-primary);
}

.cert-verify-btn {
    padding: .85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cert-help {
    display: flex;
    align-items: flex-start;
    gap: .4rem;

    margin-top: .75rem;
    margin-bottom: 0;
    font-size: .82rem;
    color: var(--c-grey-600);
}

.cert-help i {
    color: var(--c-primary);
    margin-top: .15rem;
}


/* ----- Result ----- */
.cert-result {
    margin-top: 1.5rem;
}

.cert-result-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;

    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}

.cert-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
}

/* Valid */
.cert-result-card.is-valid {
    background: linear-gradient(
        145deg,
        #E7F7EE,
        #F2FBF6
    );
    border-color: rgba(18, 128, 92, .2);
}

.cert-result-card.is-valid .cert-result-icon {
    background: #12805C;
    color: var(--c-white);
}

.cert-result-card.is-valid .cert-result-title {
    color: #0E5F45;
}

/* Invalid */
.cert-result-card.is-invalid {
    background: linear-gradient(
        145deg,
        #FDEEEF,
        #FEF5F6
    );
    border-color: rgba(176, 42, 55, .2);
}

.cert-result-card.is-invalid .cert-result-icon {
    background: #B02A37;
    color: var(--c-white);
}

.cert-result-card.is-invalid .cert-result-title {
    color: #872029;
}

.cert-result-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cert-result-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.cert-result-text {
    color: var(--c-charcoal);
    font-size: .95rem;
    line-height: 1.6;
}

.cert-result-hint {
    color: var(--c-grey-600);
    margin-top: .5rem;
}


/* ----- Detail grid inside the valid card ----- */
.cert-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.5rem;

    padding: 1rem 1.15rem;
    border-radius: 12px;

    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(18, 128, 92, .15);

    margin-bottom: 1rem;
}

.cert-detail-grid > div {
    min-width: 0;
}

.cert-detail-grid .cert-detail-full {
    grid-column: 1 / -1;
}

.cert-detail-grid dt {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-600);
    margin-bottom: .15rem;
}

.cert-detail-grid dd {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-navy);
    word-break: break-word;
}

.cert-detail-grid dd code {
    font-size: .88rem;
    background: rgba(18, 128, 92, .1);
    color: #0E5F45;
    padding: .1rem .45rem;
    border-radius: 6px;
}

.cert-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}


/* ----- Sidebar ----- */
.cert-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-side-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.cert-side-card-accent {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-primary-light)
    );
    border-color: rgba(194, 10, 98, .15);
}

.cert-side-title {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: .95rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1rem;
}

.cert-side-title i {
    color: var(--c-primary);
    font-size: 1.1rem;
}


/* ----- Steps ----- */
.cert-steps {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-steps li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.cert-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cert-steps strong {
    display: block;
    color: var(--c-navy);
    font-size: .9rem;
    margin-bottom: .15rem;
}


/* ----- Format code ----- */
.cert-format-code {
    display: block;

    padding: .75rem 1rem;
    border-radius: 10px;

    background: var(--c-navy);
    color: var(--c-white);

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
}

.cert-format-list {
    list-style: none;
    padding: 0;
    margin: .85rem 0 0;
}

.cert-format-list li {
    color: var(--c-grey-600);
    padding: .2rem 0;
}

.cert-format-list li strong {
    color: var(--c-navy);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85em;
}


/* ----- Print styles ----- */
@media print {
    .cert-verify-header,
    .cert-verify-form,
    .cert-side,
    .cert-result-actions,
    .site-navbar,
    .site-footer,
    .btn-scroll-top {
        display: none !important;
    }

    .cert-verify-card {
        box-shadow: none;
        border: 1px solid #ccc;
        padding: 0;
    }

    .cert-result-card {
        border: 2px solid currentColor;
    }
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .cert-verify-input-row {
        flex-direction: column;
    }

    .cert-verify-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cert-detail-grid {
        grid-template-columns: 1fr;
    }

    .cert-result-card {
        flex-direction: column;
        text-align: left;
    }

    .cert-result-actions .btn {
        flex: 1 1 auto;
    }
}




/* =====================================================
   SEARCH PAGE
===================================================== */

.search-page {
    max-width: 960px;
    margin: 0 auto;
}


/* ----- Header ----- */
.search-header {
    text-align: center;
    padding: 1rem 0 2rem;
}

.search-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.search-subtitle {
    color: var(--c-grey-600);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.search-subtitle strong {
    color: var(--c-navy);
}


/* ----- Search form ----- */
.search-form {
    display: flex;
    gap: .5rem;
    align-items: stretch;

    max-width: 720px;
    margin: 0 auto;
}

.search-input-wrap {
    position: relative;
    flex: 1;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    align-items: center;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input-wrap:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.search-input-wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);

    color: var(--c-grey-500);
    font-size: 1rem;
    pointer-events: none;

    transition: color .2s ease;
}

.search-input-wrap:focus-within > i {
    color: var(--c-primary);
}

.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .85rem 3rem .85rem 2.75rem;

    font-size: 1rem;
    color: var(--c-text);
    outline: none;
}

.search-input::placeholder {
    color: var(--c-grey-500);
}

/* Hide browser's native search "X" since we provide our own */
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--c-grey-500);
    background: transparent;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.search-clear:hover {
    background: var(--c-grey-100);
    color: var(--c-navy);
}

.search-submit {
    padding: 0 1.75rem;
    font-weight: 600;
    border-radius: 12px;
}


/* ----- Suggestions (no query yet) ----- */
.search-suggestions-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);

    margin-bottom: 1rem;
}

.search-suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.search-suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .5rem 1rem;
    border-radius: 999px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);

    color: var(--c-charcoal);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;

    transition: all .2s ease;
}

.search-suggestion-chip:hover {
    background: var(--c-primary-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.search-suggestion-chip i {
    font-size: .75rem;
    opacity: .7;
}


/* ----- Quick links ----- */
.search-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;

    padding: 1rem .5rem;
    border-radius: var(--radius);

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);

    color: var(--c-navy);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;

    transition: all .2s ease;
}

.search-quicklink:hover {
    transform: translateY(-3px);
    border-color: var(--c-primary);
    color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}

.search-quicklink i {
    font-size: 1.5rem;
    color: var(--c-primary);
}


/* ----- Group navigation ----- */
.search-group-nav {
    position: sticky;
    top: 74px;
    z-index: 20;

    display: flex;
    flex-wrap: wrap;
    gap: .5rem;

    padding: .75rem 0;
    margin-bottom: 1rem;

    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.search-group-nav-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .4rem .85rem;
    border-radius: 999px;

    background: var(--c-grey-50);
    color: var(--c-charcoal);

    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.search-group-nav-item:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.search-group-nav-item i {
    font-size: .85rem;
    color: var(--c-primary);
}

.search-group-nav-count {
    padding: .05rem .4rem;
    border-radius: 999px;

    background: var(--c-white);
    color: var(--c-grey-600);

    font-size: .7rem;
    font-weight: 700;
}


/* ----- Group sections ----- */
.search-groups {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.search-group {
    scroll-margin-top: 140px; /* account for sticky nav */
}

.search-group-head {
    margin-bottom: 1rem;
}

.search-group-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.search-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.search-group-count {
    padding: .15rem .6rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* ----- Result list ----- */
.search-results {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.25rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius);

    color: var(--c-text);
    text-decoration: none;

    transition: all .2s ease;
}

.search-result:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.search-result-body {
    flex-grow: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .98rem;
    line-height: 1.4;
    margin-bottom: .25rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-snippet {
    color: var(--c-grey-600);
    font-size: .85rem;
    line-height: 1.55;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;

    background: var(--c-grey-50);
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;

    transition: all .2s ease;
}

.search-result:hover .search-result-arrow {
    background: var(--c-primary);
    color: var(--c-white);
    transform: translateX(2px);
}


/* ----- Empty state ----- */
.search-empty {
    text-align: center;
    padding: 3rem 1.5rem;

    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
}

.search-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .search-form {
        flex-direction: column;
    }

    .search-submit {
        padding: .75rem 1.5rem;
    }

    .search-group-nav {
        top: 66px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: .5rem 0;
        -webkit-overflow-scrolling: touch;
    }

    .search-group-nav-item {
        flex-shrink: 0;
    }

    .search-group {
        scroll-margin-top: 120px;
    }
}



/* =====================================================
   DASHBOARD — NOTIFICATIONS
===================================================== */

/* ----- Header ----- */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.notif-header-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.notif-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-count-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 .55rem;
    border-radius: 999px;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}


/* ----- Feedback ----- */
.notif-feedback {
    min-height: 1.15rem;
    margin-bottom: .75rem;
}

.notif-feedback.is-success {
    color: #12805C;
}

.notif-feedback.is-error {
    color: #B02A37;
}


/* ----- Groups ----- */
.notif-group + .notif-group {
    margin-top: 1.75rem;
}

.notif-group-title {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);

    margin-bottom: .75rem;
}

.notif-group-count {
    min-width: 22px;
    height: 22px;
    padding: 0 .5rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .7rem;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}


/* ----- List ----- */
.notif-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);

    transition: background .2s ease, border-color .2s ease;
}

.notif-item.is-read {
    background: var(--c-grey-50);
    color: var(--c-grey-600);
}

.notif-item.is-unread {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .18);
}

/* Accent bar for unread */
.notif-item.is-unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--c-primary);
}

.notif-item:hover {
    border-color: rgba(194, 10, 98, .3);
}


/* ----- Icon tile ----- */
.notif-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.notif-icon-primary {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.notif-icon-info {
    background: #E8EEF9;
    color: var(--c-blue);
}

.notif-icon-success {
    background: #E7F7EE;
    color: #12805C;
}

.notif-icon-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.notif-icon-danger {
    background: #FBE9E7;
    color: #B02A37;
}


/* ----- Body ----- */
.notif-body {
    flex-grow: 1;
    min-width: 0;
}

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

.notif-title {
    color: var(--c-navy);
    font-size: .95rem;
    line-height: 1.35;
}

.notif-item.is-read .notif-title {
    font-weight: 600;
    color: var(--c-grey-600);
}

.notif-time {
    font-size: .75rem;
    color: var(--c-grey-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.notif-text {
    color: var(--c-grey-600);
    font-size: .88rem;
    line-height: 1.6;
    margin: .25rem 0 .5rem;
}

.notif-link {
    display: inline-flex;
    align-items: center;

    color: var(--c-primary);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;

    transition: gap .2s ease;
}

.notif-link:hover {
    gap: .35rem;
    color: var(--c-primary-dark);
}

.notif-link i {
    transition: transform .2s ease;
}

.notif-link:hover i {
    transform: translateX(3px);
}


/* ----- Mark-read button ----- */
.notif-mark-read {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid rgba(16, 31, 72, .15);
    color: var(--c-grey-600);

    cursor: pointer;
    transition: all .2s ease;
}

.notif-mark-read:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}

.notif-mark-read:disabled {
    opacity: .5;
    cursor: wait;
}


/* ----- Empty state ----- */
.notif-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.notif-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-grey-100);
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .notif-body-head {
        flex-direction: column;
        gap: .2rem;
    }

    .notif-time {
        white-space: normal;
    }

    .notif-item {
        padding: .85rem 1rem;
    }

    .notif-mark-read {
        width: 28px;
        height: 28px;
        align-self: center;
    }
}


/* =====================================================
   TECHNICAL JOBS — LISTING
===================================================== */

/* ----- Header ----- */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;

    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.jobs-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--c-navy);
    margin: .35rem 0 .35rem;
    letter-spacing: -.02em;
}

.jobs-subtitle {
    color: var(--c-grey-600);
    font-size: 1rem;
    margin-bottom: 0;
}

.jobs-recommended-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}


/* ----- Filter bar ----- */
.jobs-filter-bar {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 2rem;
}

.jobs-filter-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .75rem;
    align-items: end;
}

.jobs-filter-field          { grid-column: span 12; }
.jobs-filter-field-search   { grid-column: span 12; }
.jobs-filter-field-submit   { grid-column: span 12; }

.jobs-filter-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-600);
    margin-bottom: .35rem;
}

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

.jobs-input-wrap > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);

    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
}

.jobs-input-wrap .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.jobs-filter-bar .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.jobs-filter-bar .form-control:focus,
.jobs-filter-bar .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.jobs-input-wrap:focus-within > i {
    color: var(--c-primary);
}

/* Active filter chips */
.jobs-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.jobs-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.jobs-chip-removable {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.jobs-chip-removable:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.jobs-chip-removable i {
    font-size: .78rem;
    opacity: .75;
}

.jobs-chip-removable:hover i {
    opacity: 1;
}

.jobs-clear-all {
    font-size: .78rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.jobs-clear-all:hover {
    color: var(--c-primary);
}


/* ----- List ----- */
.jobs-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ----- Job card ----- */
.job-card {
    position: relative;
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
}

/* Featured ribbon */
.job-featured-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;

    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .3rem .7rem;
    border-radius: 999px;

    background: #FFF4E0;
    color: #A96A00;

    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.job-featured-ribbon i {
    font-size: .65rem;
}

/* Card inner grid */
.job-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Company avatar */
.job-company-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .02em;
}

/* Body */
.job-body {
    flex-grow: 1;
    min-width: 0;
}

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

.job-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .25rem;
    color: var(--c-navy);
}

.job-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.job-title a:hover {
    color: var(--c-primary);
}

.job-company {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    font-size: .85rem;
    color: var(--c-grey-600);
}

.job-company i {
    color: var(--c-primary);
    font-size: .85rem;
}

/* Salary block */
.job-salary {
    text-align: right;
    flex-shrink: 0;
}

.job-salary-range {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    white-space: nowrap;
}

.job-salary-period {
    display: block;
    font-size: .75rem;
    color: var(--c-grey-500);
}

/* Meta row */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;

    margin-top: .35rem;
    font-size: .82rem;
    color: var(--c-grey-600);
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.job-meta-item i {
    color: var(--c-primary);
    font-size: .8rem;
}

.job-meta-item.is-muted {
    color: var(--c-grey-500);
}

.job-meta-item.is-muted i {
    color: var(--c-grey-400, #9CA3AF);
}

/* Footer row */
.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;

    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.job-spec-chip {
    display: inline-block;

    padding: .25rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.job-view-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    color: var(--c-primary);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;

    transition: gap .2s ease;
}

.job-view-link:hover {
    gap: .6rem;
    color: var(--c-primary-dark);
}

.job-view-link i {
    transition: transform .2s ease;
}

.job-view-link:hover i {
    transform: translateX(3px);
}


/* ----- Empty state ----- */
.jobs-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.jobs-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Pagination ----- */
.jobs-pagination {
    display: flex;
    justify-content: center;
}


/* ----- Responsive ----- */
@media (min-width: 768px) {
    .jobs-filter-field-search { grid-column: span 6; }
    .jobs-filter-field         { grid-column: span 3; }
    .jobs-filter-field-submit  { grid-column: span 3; }
}

@media (min-width: 992px) {
    .jobs-filter-field-search { grid-column: span 4; }
    .jobs-filter-field         { grid-column: span 2; }
    .jobs-filter-field-submit  { grid-column: span 2; }
}

@media (max-width: 767px) {
    .job-head {
        flex-direction: column;
        gap: .5rem;
    }

    .job-salary {
        text-align: left;
    }

    .job-card {
        padding: 1.25rem;
    }

    .job-featured-ribbon {
        position: static;
        margin-bottom: .75rem;
    }

    .job-card-inner {
        gap: 1rem;
    }

    .job-company-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-view-link {
        margin-top: .35rem;
    }
}



/* =====================================================
   DASHBOARD — JOB APPLICATIONS
===================================================== */

/* ----- Stat row ----- */
.ja-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.ja-stat {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
}

.ja-stat-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.ja-stat-icon.is-total {
    background: var(--c-navy-light);
    color: var(--c-navy);
}

.ja-stat-icon.is-pending {
    background: #FFF4E0;
    color: #A96A00;
}

.ja-stat-icon.is-shortlisted {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.ja-stat-icon.is-rejected {
    background: #FBE9E7;
    color: #B02A37;
}

.ja-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ja-stat-label {
    font-size: .75rem;
    color: var(--c-grey-600);
    margin-top: .2rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}


/* ----- Status pill ----- */
.ja-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.ja-status i {
    font-size: .8rem;
}

.ja-status-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.ja-status-info {
    background: var(--c-blue-light);
    color: var(--c-blue);
}

.ja-status-primary {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.ja-status-success {
    background: #E7F7EE;
    color: #12805C;
}

.ja-status-danger {
    background: #FBE9E7;
    color: #B02A37;
}

.ja-status-muted {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Table (desktop) ----- */
.ja-table-wrap {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ja-table {
    width: 100%;
    border-collapse: collapse;
}

.ja-table thead th {
    padding: .85rem 1.25rem;

    background: var(--c-grey-50);
    color: var(--c-grey-600);

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: left;

    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.ja-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .06);
    vertical-align: middle;
    font-size: .9rem;
    color: var(--c-text);
}

.ja-table tbody tr:last-child td {
    border-bottom: 0;
}

.ja-table tbody tr:hover {
    background: var(--c-grey-50);
}


/* ----- Job link ----- */
.ja-job-link {
    color: var(--c-navy);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    line-height: 1.35;
}

.ja-job-link:hover {
    color: var(--c-primary);
    text-decoration: underline;
}


/* ----- Company cell ----- */
.ja-company {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.ja-company-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        var(--c-navy),
        var(--c-navy-700)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}


/* ----- Applied time ----- */
.ja-applied {
    color: var(--c-grey-600);
    font-size: .85rem;
    cursor: help;
}


/* ----- Card list (mobile) ----- */
.ja-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ja-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
}

.ja-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;

    padding-bottom: .85rem;
    margin-bottom: .85rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.ja-card-head .ja-company {
    align-items: flex-start;
}

.ja-card-head .ja-company-avatar {
    margin-top: .1rem;
}

.ja-card-company {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}

.ja-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.ja-card-foot .ja-applied {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}


/* ----- Empty state ----- */
.ja-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.ja-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .ja-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ja-stat {
        padding: .85rem .95rem;
    }

    .ja-stat-value {
        font-size: 1.15rem;
    }

    .ja-stat-label {
        font-size: .7rem;
    }
}



/* =====================================================
   DASHBOARD — JOB RECOMMENDATIONS
===================================================== */

/* ----- Card shell ----- */
.rec-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;

    height: 100%;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.rec-card:hover {
    transform: translateY(-4px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}


/* ----- Score ring ----- */
.rec-score {
    position: relative;
    flex-shrink: 0;

    width: 64px;
    height: 64px;
}

.rec-score-ring {
    display: block;
}

.rec-score-track {
    stroke: var(--c-grey-200);
}

.rec-score-fill {
    transition: stroke-dashoffset .8s ease;
}

/* Tier colours */
.rec-score-fill.is-high   { stroke: #12805C; }
.rec-score-fill.is-medium { stroke: var(--c-primary); }
.rec-score-fill.is-low    { stroke: #E0A100; }
.rec-score-fill.is-weak   { stroke: var(--c-grey-500); }

.rec-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    font-weight: 800;
    color: var(--c-navy);
    font-variant-numeric: tabular-nums;
}

.rec-score-text small {
    font-size: .6em;
    font-weight: 700;
    margin-left: .05em;
    color: var(--c-grey-600);
}


/* ----- Body ----- */
.rec-body {
    flex-grow: 1;
    min-width: 0;
}

.rec-tier {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .18rem .55rem;
    border-radius: 999px;

    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;

    margin-bottom: .6rem;
}

.rec-tier.is-high {
    background: #E7F7EE;
    color: #12805C;
}

.rec-tier.is-medium {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.rec-tier.is-low {
    background: #FFF4E0;
    color: #A96A00;
}

.rec-tier.is-weak {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Title ----- */
.rec-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .35rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-title a {
    color: var(--c-navy);
    text-decoration: none;
    transition: color .2s ease;
}

.rec-title a:hover {
    color: var(--c-primary);
}


/* ----- Meta ----- */
.rec-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;

    font-size: .82rem;
    color: var(--c-grey-600);
}

.rec-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.rec-meta i {
    color: var(--c-primary);
    font-size: .85rem;
}


/* ----- Reasons ----- */
.rec-reasons {
    list-style: none;
    padding: 0;
    margin: .75rem 0 .85rem;

    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.rec-reason {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .25rem .65rem;
    border-radius: 999px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);

    color: var(--c-grey-600);
    font-size: .75rem;
    font-weight: 500;
}

.rec-reason i {
    color: #12805C;
    font-size: .8rem;
}

.rec-reason-more {
    display: inline-flex;
    align-items: center;

    padding: .25rem .65rem;
    border-radius: 999px;

    background: transparent;
    color: var(--c-grey-500);

    font-size: .72rem;
    font-weight: 600;
}


/* ----- CTA ----- */
.rec-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    color: var(--c-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;

    transition: gap .2s ease, color .2s ease;
}

.rec-cta:hover {
    gap: .6rem;
    color: var(--c-primary-dark);
}


/* ----- Empty state ----- */
.rec-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.rec-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .rec-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .rec-score {
        margin: 0 auto;
    }
}



/* =====================================================
   JOB DETAIL PAGE
===================================================== */

/* ----- Hero ----- */
.job-hero {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
    border: 1px solid rgba(16, 31, 72, .08);
    box-shadow: var(--shadow-sm);
}

.job-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 25%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 25%,
        transparent 75%
    );
}

.job-hero-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.job-hero-main {
    flex: 1 1 320px;
    min-width: 0;
}

.job-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.2;
    margin: .35rem 0 .5rem;
    letter-spacing: -.02em;
}

.job-company {
    color: var(--c-primary);
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 1.25rem;

    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* Meta strip */
.job-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.job-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .4rem .85rem;
    border-radius: 999px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);

    color: var(--c-navy);
    font-size: .82rem;
    font-weight: 500;
}

.job-meta-pill i {
    color: var(--c-primary);
    font-size: .9rem;
}


/* ----- Match score widget ----- */
.job-match {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    box-shadow: var(--shadow-sm);

    flex: 0 0 auto;
}

.job-match-gauge {
    --score: 0;
    --gauge-color: var(--c-primary);

    position: relative;

    width: 72px;
    height: 72px;
    border-radius: 50%;

    background:
        conic-gradient(
            var(--gauge-color) calc(var(--score) * 1%),
            var(--c-grey-200) 0
        );

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.job-match-gauge::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--c-white);
}

.job-match-gauge > span {
    position: relative;
    z-index: 1;

    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
}

.job-match-gauge > span small {
    font-size: .65em;
    font-weight: 700;
    color: var(--c-grey-600);
    margin-left: .05em;
}

.job-match-text strong {
    display: block;
    color: var(--c-navy);
    font-size: .9rem;
    margin-bottom: .15rem;
}

.job-match-text span {
    font-size: .8rem;
    color: var(--c-grey-600);
    line-height: 1.4;
}

.job-match-text a {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
}

.job-match-text a:hover {
    text-decoration: underline;
}

/* Tone by score */
.job-match-high  .job-match-gauge { --gauge-color: #12805C; }
.job-match-mid   .job-match-gauge { --gauge-color: #E0A100; }
.job-match-low   .job-match-gauge { --gauge-color: #B02A37; }


/* ----- Content sections ----- */
.job-section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.job-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-section-title {
    display: flex;
    align-items: center;
    gap: .65rem;

    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-navy);

    margin-bottom: 1rem;
}

.job-section-title i {
    width: 34px;
    height: 34px;
    border-radius: 10px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .95rem;
    flex-shrink: 0;
}

.job-section-content {
    color: var(--c-text);
    line-height: 1.75;
    font-size: .96rem;
}

.job-section-content p:last-child {
    margin-bottom: 0;
}

.job-section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


/* ----- Skills chips ----- */
.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.job-skill {
    display: inline-block;

    padding: .4rem .9rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .82rem;
    font-weight: 600;
}


/* ----- Apply card (sidebar) ----- */
.job-apply-card {
    position: sticky;
    top: 90px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

/* Salary */
.job-salary {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.job-salary-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    margin-bottom: .35rem;
}

.job-salary-value {
    display: flex;
    align-items: baseline;
    gap: .5rem;

    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.1;
}

.job-salary-currency {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--c-grey-600);
    align-self: center;
}

.job-salary-sep {
    color: var(--c-grey-300);
    font-weight: 400;
}

.job-salary-period {
    display: block;
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .25rem;
}

/* Deadline */
.job-deadline {
    display: flex;
    align-items: flex-start;
    gap: .75rem;

    padding: .85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .08);
}

.job-deadline i {
    color: var(--c-primary);
    font-size: 1.1rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.job-deadline strong {
    display: block;
    color: var(--c-navy);
    font-size: .92rem;
    line-height: 1.2;
}

.job-deadline span {
    font-size: .78rem;
    color: var(--c-grey-600);
}

.job-deadline.is-urgent {
    background: #FFF4E0;
    border-color: rgba(224, 161, 0, .3);
}

.job-deadline.is-urgent i,
.job-deadline.is-urgent strong {
    color: #A96A00;
}

.job-deadline.is-closed {
    background: var(--c-grey-100);
    border-color: rgba(16, 31, 72, .08);
}

.job-deadline.is-closed i,
.job-deadline.is-closed strong {
    color: var(--c-grey-600);
}

/* Apply button */
.job-apply-btn {
    padding: .85rem 1.25rem;
    font-weight: 600;
    border-radius: 12px;
}

.job-apply-form .form-label {
    color: var(--c-navy);
}

.job-apply-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.job-apply-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

/* Application status */
.job-status {
    background: linear-gradient(
        145deg,
        var(--c-white),
        var(--c-grey-50)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.job-status-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
    color: #12805C;
}

.job-status-head i {
    font-size: 1.1rem;
}

.job-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    padding: .5rem 0;
    font-size: .85rem;
    border-top: 1px dashed rgba(16, 31, 72, .08);
}

.job-status-row:first-of-type {
    border-top: 0;
}

.job-status-row > span:first-child {
    color: var(--c-grey-600);
}

.job-status-row > span:last-child {
    color: var(--c-navy);
    font-weight: 600;
}

.job-status-badge {
    display: inline-block;

    padding: .2rem .6rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.job-status-badge.is-accepted  { background: #E7F7EE; color: #12805C; }
.job-status-badge.is-rejected  { background: #FBE9E7; color: #B02A37; }
.job-status-badge.is-review    { background: #FFF4E0; color: #A96A00; }
.job-status-badge.is-interview { background: #E8EEF9; color: var(--c-blue); }

/* Contact */
.job-contact {
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.job-contact-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    margin-bottom: .35rem;
}

.job-contact-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    color: var(--c-primary);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;

    word-break: break-all;
}

.job-contact-link:hover {
    color: var(--c-primary-dark);
    text-decoration: underline;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .job-hero {
        padding: 2rem 1.5rem;
    }

    .job-apply-card {
        position: static;
    }
}

@media (max-width: 575px) {
    .job-hero-inner {
        flex-direction: column;
    }

    .job-match {
        width: 100%;
    }

    .job-salary-value {
        font-size: 1.3rem;
    }

    .job-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
    }
}



/* =====================================================
   ERROR PAGE — 404 (and generic)
===================================================== */

.error-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem 1rem;

    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );

    font-family: var(--font-sans);
    color: var(--c-text);

    overflow: hidden;
    position: relative;
}

/* Soft brand blobs in the background */
.error-page::before,
.error-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .18;
    pointer-events: none;
}

.error-page::before {
    width: 400px;
    height: 400px;
    background: var(--c-primary);
    top: -150px;
    right: -100px;
}

.error-page::after {
    width: 380px;
    height: 380px;
    background: var(--c-navy);
    bottom: -180px;
    left: -120px;
}


/* ----- Wrapper ----- */
.error-wrap {
    width: 100%;
    max-width: 640px;

    position: relative;
    z-index: 1;

    text-align: center;
}


/* ----- Visual: giant "404" + orbs ----- */
.error-visual {
    position: relative;

    height: 130px;
    margin-bottom: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.error-visual-code {
    display: inline-flex;
    gap: .15em;

    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;

    color: var(--c-navy);
}

/* Alternate the middle "0" in brand gradient */
.error-visual-code > span:nth-child(2) {
    background: linear-gradient(
        135deg,
        var(--c-primary),
        #D71874
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating decorative orbs */
.error-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: errorFloat 6s ease-in-out infinite;
}

.error-orb.orb-1 {
    width: 14px;
    height: 14px;
    background: var(--c-primary);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.error-orb.orb-2 {
    width: 10px;
    height: 10px;
    background: var(--c-navy);
    top: 65%;
    right: 22%;
    animation-delay: 1.2s;
}

.error-orb.orb-3 {
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    bottom: 5%;
    left: 35%;
    animation-delay: 2.4s;
}

@keyframes errorFloat {
    0%, 100% { transform: translateY(0);     opacity: .6; }
    50%      { transform: translateY(-12px); opacity: 1; }
}


/* ----- Content ----- */
.error-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    padding: .3rem .85rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;

    margin-bottom: 1rem;
}

.error-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-primary);
}

.error-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--c-navy);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}

.error-lead {
    color: var(--c-grey-600);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2rem;
}


/* ----- Search ----- */
.error-search {
    max-width: 460px;
    margin: 0 auto 1.75rem;
}

.error-search .input-group {
    background: var(--c-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.error-search .input-group-text {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    border-right: 0;
    color: var(--c-grey-500);
}

.error-search .form-control {
    border: 1px solid rgba(16, 31, 72, .12);
    border-left: 0;
    border-right: 0;
    padding: .85rem 1rem;
    font-size: .95rem;
}

.error-search .form-control:focus {
    box-shadow: none;
    border-color: var(--c-primary);
}

.error-search .input-group:focus-within .input-group-text {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.error-search .btn {
    border-radius: 0;
    padding: .85rem 1.25rem;
    font-weight: 600;
}


/* ----- Primary actions ----- */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;

    margin-bottom: 2.5rem;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1.4rem;
    font-weight: 600;
    border-radius: 10px;
}


/* ----- Quick links ----- */
.error-quicklinks {
    padding-top: 1.75rem;
    border-top: 1px dashed rgba(16, 31, 72, .12);
}

.error-quicklinks-label {
    display: block;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-grey-500);

    margin-bottom: 1rem;
}

.error-quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

.error-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;

    padding: .85rem .5rem;
    border-radius: 12px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);

    color: var(--c-navy);
    text-decoration: none;

    font-size: .8rem;
    font-weight: 600;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        color .2s ease;
}

.error-quicklink i {
    font-size: 1.15rem;
    color: var(--c-primary);
    transition: transform .2s ease;
}

.error-quicklink:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 10, 98, .3);
    box-shadow: var(--shadow-sm);
    color: var(--c-primary);
}

.error-quicklink:hover i {
    transform: scale(1.1);
}


/* ----- Responsive ----- */
@media (max-width: 575px) {

    .error-visual {
        height: 100px;
    }

    .error-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .error-quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-orb.orb-1,
    .error-orb.orb-3 {
        display: none;
    }

}


/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {

    .error-orb {
        animation: none;
    }

    .error-quicklink,
    .error-quicklink i {
        transition: none;
    }

}



/* =====================================================
   DASHBOARD — OVERVIEW
===================================================== */

/* ============ KPI Cards ============ */
.dash-kpi {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.15rem 1.25rem;
    min-height: 96px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);

    color: var(--c-navy);
    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.dash-kpi:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-md);
    color: var(--c-navy);
}

.dash-kpi-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.25rem;
}

.dash-kpi-icon.is-primary {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.dash-kpi-icon.is-info {
    background: #E8EEF9;
    color: #193A7A;
}

.dash-kpi-icon.is-success {
    background: #E7F7EE;
    color: #12805C;
}

.dash-kpi-icon.is-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.dash-kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--c-navy);
    font-variant-numeric: tabular-nums;
}

.dash-kpi-label {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}

.dash-kpi-hint {
    display: inline-block;
    align-self: flex-start;

    margin-top: .3rem;
    padding: .1rem .5rem;
    border-radius: 999px;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dash-kpi-hint.is-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.dash-kpi-hint.is-success {
    background: #E7F7EE;
    color: #12805C;
}

.dash-kpi-arrow {
    margin-left: auto;
    color: var(--c-grey-300);
    font-size: .9rem;
    transition: transform .2s ease, color .2s ease;
}

.dash-kpi:hover .dash-kpi-arrow {
    color: var(--c-primary);
    transform: translateX(3px);
}


/* ============ Profile progress card ============ */
.dash-progress-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.dash-progress-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .85rem;
}

.dash-progress-label {
    font-size: .82rem;
    color: var(--c-grey-600);
}

.dash-progress-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dash-progress-value.is-danger  { color: #B02A37; }
.dash-progress-value.is-warning { color: #A96A00; }
.dash-progress-value.is-success { color: #12805C; }

.dash-progress-bar {
    position: relative;
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background: var(--c-grey-100);
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .6s ease;
}

.dash-progress-fill.is-danger  { background: #E5484D; }
.dash-progress-fill.is-warning { background: #E0A100; }
.dash-progress-fill.is-success { background: #12805C; }

.dash-progress-cta,
.dash-progress-done {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    margin-top: .85rem;

    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.dash-progress-cta { color: var(--c-primary); }
.dash-progress-cta:hover { gap: .55rem; }

.dash-progress-done { color: #12805C; }


/* ============ Panels (reuses .dash-panel from trainings widget) ============ */
.dash-panel-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .82rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    white-space: nowrap;
}

.dash-panel-link:hover {
    gap: .55rem;
    color: var(--c-primary-dark);
}


/* ============ Orders list ============ */
.dash-orders {
    display: flex;
    flex-direction: column;
}

.dash-orders-head {
    display: grid;
    grid-template-columns: 1fr auto 130px;
    gap: 1rem;

    padding: 0 .5rem .5rem;
    margin-bottom: .35rem;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);
}

.dash-order-row {
    display: grid;
    grid-template-columns: 1fr auto 130px auto;
    gap: 1rem;
    align-items: center;

    padding: .85rem .5rem;
    border-radius: 10px;

    color: var(--c-navy);
    text-decoration: none;
    font-size: .9rem;

    border-bottom: 1px solid rgba(16, 31, 72, .05);

    transition: background .2s ease;
}

.dash-order-row:last-child { border-bottom: 0; }

.dash-order-row:hover {
    background: var(--c-grey-50);
    color: var(--c-navy);
}

.dash-order-num code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .15rem .5rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
}

.dash-order-date {
    color: var(--c-grey-600);
    font-size: .85rem;
    white-space: nowrap;
}

.dash-order-status { text-align: right; }

.dash-order-arrow {
    color: var(--c-grey-300);
    font-size: .8rem;
    transition: transform .2s ease, color .2s ease;
}

.dash-order-row:hover .dash-order-arrow {
    color: var(--c-primary);
    transform: translateX(3px);
}

/* Status pills */
.dash-status-pill {
    display: inline-block;

    padding: .25rem .7rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.dash-status-pill.is-success {
    background: #E7F7EE;
    color: #12805C;
}

.dash-status-pill.is-info {
    background: #E8EEF9;
    color: #193A7A;
}

.dash-status-pill.is-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.dash-status-pill.is-danger {
    background: #FBE9E7;
    color: #B02A37;
}

.dash-status-pill.is-neutral {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ============ Recommended jobs ============ */
.dash-job-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.dash-job {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: .9rem 1rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    color: var(--c-navy);
    text-decoration: none;

    transition: background .2s ease, border-color .2s ease;
}

.dash-job:hover {
    background: var(--c-white);
    border-color: rgba(16, 31, 72, .1);
    color: var(--c-navy);
}

.dash-job-body {
    flex-grow: 1;
    min-width: 0;
}

.dash-job-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .95rem;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-job-meta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    margin-top: .25rem;
    font-size: .8rem;
    color: var(--c-grey-600);
}

.dash-job-meta i {
    color: var(--c-primary);
    font-size: .78rem;
}

.dash-job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .5rem;
}

.dash-job-skill {
    display: inline-block;

    padding: .15rem .5rem;
    border-radius: 6px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);

    color: var(--c-grey-600);
    font-size: .72rem;
    font-weight: 500;
}

.dash-job-score {
    flex-shrink: 0;
    text-align: right;
}

.dash-job-score-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.dash-job-score-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-grey-500);
    margin-top: .15rem;
}

.dash-job-score.is-strong .dash-job-score-value { color: #12805C; }
.dash-job-score.is-medium .dash-job-score-value { color: #A96A00; }
.dash-job-score.is-fair   .dash-job-score-value { color: var(--c-grey-600); }


/* ============ Responsive ============ */
@media (max-width: 991px) {
    .dash-orders-head { display: none; }

    .dash-order-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "num    status"
            "date   arrow";
        row-gap: .5rem;
    }

    .dash-order-num    { grid-area: num; }
    .dash-order-date   { grid-area: date; font-size: .8rem; }
    .dash-order-status { grid-area: status; }
    .dash-order-arrow  { grid-area: arrow; }
}

@media (max-width: 575px) {
    .dash-kpi {
        padding: .9rem 1rem;
        gap: .75rem;
        min-height: 84px;
    }

    .dash-kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .dash-kpi-value { font-size: 1.25rem; }
    .dash-kpi-label { font-size: .76rem; }
    .dash-kpi-arrow { display: none; }
}




/* =====================================================
   DASHBOARD — MESSAGE COMPOSE
===================================================== */

.msg-compose {
    padding: 1.5rem;
}

/* Header */
.msg-compose-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.msg-compose-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Form */
.msg-compose-form .form-label {
    color: var(--c-navy);
}

.msg-compose-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    padding: .6rem .8rem;
}

.msg-compose-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.msg-compose-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Character counter */
[data-char-count] {
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}

[data-char-count].is-over-limit span {
    color: #B02A37;
    font-weight: 600;
}

/* Actions */
.msg-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;

    padding-top: 1rem;
    margin-top: .5rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.msg-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.msg-submit:disabled {
    opacity: .8;
    cursor: wait;
}


/* =====================================================
   DASHBOARD — MESSAGES INBOX
===================================================== */

/* ----- Header ----- */
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.msg-header-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.msg-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;
    flex-shrink: 0;
}

.msg-count-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 .55rem;
    border-radius: 999px;

    background: var(--c-primary);
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}


/* ----- List ----- */
.msg-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.msg-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;

    transition: transform .15s ease;
}

.msg-item-link {
    display: flex;
    align-items: flex-start;
    gap: .9rem;

    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.msg-item-link:hover {
    border-color: rgba(194, 10, 98, .25);
    box-shadow: var(--shadow-sm);
}

/* Unread accent */
.msg-item.is-unread .msg-item-link {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .18);
}

.msg-item.is-unread .msg-item-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--c-primary);
}

/* Read items are muted */
.msg-item.is-read .msg-item-link {
    background: var(--c-grey-50);
}

.msg-item.is-read .msg-sender,
.msg-item.is-read .msg-subject {
    color: var(--c-grey-600);
}

.msg-item.is-read .msg-subject {
    font-weight: 500;
}


/* ----- Avatar ----- */
.msg-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
}


/* ----- Body ----- */
.msg-body {
    flex-grow: 1;
    min-width: 0;
}

.msg-body-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;

    margin-bottom: .15rem;
}

.msg-sender {
    color: var(--c-navy);
    font-size: .95rem;
    line-height: 1.3;

    /* prevent long names from pushing the time off */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-time {
    font-size: .75rem;
    color: var(--c-grey-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-subject {
    font-weight: 700;
    color: var(--c-navy);
    font-size: .9rem;
    line-height: 1.4;

    /* Clamp to one line on small screens */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-preview {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: var(--c-grey-600);
    line-height: 1.5;

    /* Clamp preview to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ----- Flags ----- */
.msg-flags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.msg-flag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .15rem .55rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .7rem;
    font-weight: 600;
}

.msg-flag i {
    font-size: .78rem;
}


/* ----- Unread dot ----- */
.msg-unread-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-primary);
    align-self: center;
    margin-left: .25rem;

    box-shadow: 0 0 0 4px rgba(194, 10, 98, .12);
}


/* ----- Empty state ----- */
.msg-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.msg-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .msg-item-link {
        padding: .85rem 1rem;
        gap: .7rem;
    }

    .msg-avatar {
        width: 36px;
        height: 36px;
        font-size: .78rem;
    }

    .msg-body-head {
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
    }

    .msg-time {
        white-space: normal;
    }
}


/* =====================================================
   DASHBOARD — STAT CARDS
===================================================== */

.stat-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);

    padding: 1.25rem 1.35rem;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 10, 98, .18);
    box-shadow: var(--shadow-sm);
}

/* Colored left accent */
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--stat-accent, var(--c-primary));
}

/* Tones */
.stat-card-primary { --stat-accent: var(--c-primary); }
.stat-card-info    { --stat-accent: #193A7A; }
.stat-card-navy    { --stat-accent: var(--c-navy); }
.stat-card-success { --stat-accent: #12805C; }
.stat-card-warning { --stat-accent: #A96A00; }

/* Icon tile */
.stat-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;

    background: var(--c-primary-light);
    color: var(--c-primary);
}

.stat-card-primary .stat-card-icon {
    background: var(--c-primary-light);
    color: var(--c-primary);
}
.stat-card-info .stat-card-icon {
    background: #E8EEF9;
    color: #193A7A;
}
.stat-card-navy .stat-card-icon {
    background: var(--c-navy-light);
    color: var(--c-navy);
}
.stat-card-success .stat-card-icon {
    background: #E7F7EE;
    color: #12805C;
}
.stat-card-warning .stat-card-icon {
    background: #FFF4E0;
    color: #A96A00;
}

/* Body */
.stat-card-body {
    flex-grow: 1;
    min-width: 0;
}

.stat-card-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);
    margin-bottom: .35rem;
}

.stat-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-navy);
    line-height: 1.25;
}

.stat-card-hint {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin: .35rem 0 0;
}

.stat-card-action {
    margin-top: .6rem;
}

.stat-card-action .btn {
    font-size: .78rem;
    padding: .3rem .7rem;
    font-weight: 600;
}



/* =====================================================
   DASHBOARD — MESSAGE VIEW
===================================================== */

/* ----- Back link ----- */
.msg-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    margin-bottom: 1rem;

    font-size: .85rem;
    font-weight: 600;
    color: var(--c-grey-600);
    text-decoration: none;

    transition: color .2s ease, gap .2s ease;
}

.msg-back-link:hover {
    color: var(--c-primary);
    gap: .55rem;
}

.msg-back-link i {
    font-size: .9rem;
}


/* ----- Card ----- */
.msg-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
    .msg-card {
        padding: 2rem 2.25rem;
    }
}


/* ----- Head ----- */
.msg-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.msg-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.msg-head-body {
    flex-grow: 1;
    min-width: 0;
}

.msg-subject {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.3;
    margin-bottom: .4rem;

    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.msg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    font-size: .85rem;
    color: var(--c-grey-600);
}

.msg-from a {
    color: var(--c-primary);
    text-decoration: none;
}

.msg-from a:hover {
    text-decoration: underline;
}

.msg-meta-sep {
    color: var(--c-grey-300);
}

.msg-time {
    font-variant-numeric: tabular-nums;
}


/* ----- Actions ----- */
.msg-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.msg-actions .btn {
    display: inline-flex;
    align-items: center;
}


/* ----- Body ----- */
.msg-body {
    color: var(--c-text);
    font-size: 1rem;
    line-height: 1.75;

    /* Preserve line breaks from nl2br */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.msg-body a {
    color: var(--c-primary);
    text-decoration: underline;
}

.msg-body p {
    margin-bottom: 1rem;
}


/* ----- Foot ----- */
.msg-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    padding-top: 1.25rem;
    margin-top: 1.75rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);

    font-size: .78rem;
    color: var(--c-grey-500);
}

.msg-foot > span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.msg-foot i {
    color: var(--c-grey-400, var(--c-grey-500));
    font-size: .8rem;
}


/* ----- Quick reply ----- */
.msg-reply {
    margin-top: 1.5rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
}

.msg-reply textarea {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    resize: vertical;
    font-size: .95rem;
}

.msg-reply textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .msg-head {
        flex-wrap: wrap;
    }

    .msg-avatar {
        width: 44px;
        height: 44px;
        font-size: .9rem;
    }

    .msg-actions {
        width: 100%;
        margin-top: .75rem;
    }

    .msg-actions .btn-primary {
        flex: 1 1 auto;
        justify-content: center;
    }
}



/* =====================================================
   DASHBOARD — SETTINGS
===================================================== */

.settings-page .settings-card + .settings-card {
    margin-top: 1rem;
}

/* ----- Card ----- */
.settings-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Card header */
.settings-card-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding-bottom: 1rem;
    margin-bottom: 1.25rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.settings-card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}

.settings-card-icon.is-navy {
    background: var(--c-navy-light);
    color: var(--c-navy);
}

.settings-card-icon.is-info {
    background: #E8EEF9;
    color: #193A7A;
}

.settings-card-icon.is-danger {
    background: #FBE9E7;
    color: #B02A37;
}


/* ----- Form ----- */
.settings-form .form-label {
    color: var(--c-navy);
    margin-bottom: .3rem;
}

.settings-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.settings-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}


/* ----- Avatar preview row ----- */
.settings-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.settings-avatar-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;

    border: 2px solid rgba(16, 31, 72, .1);
    background: var(--c-grey-100);
}

.settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: .02em;
}

.settings-avatar-input {
    flex: 1 1 220px;
}


/* ----- Password field wrapper ----- */
.pw-wrap {
    position: relative;
}

.pw-wrap .form-control {
    padding-right: 2.5rem;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    color: var(--c-grey-500);

    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.pw-toggle:hover {
    color: var(--c-primary);
    background: var(--c-primary-light);
}


/* ----- Password strength ----- */
.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: .4rem;
}

.pw-strength span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--c-grey-200);
    transition: background .2s ease;
}

.pw-strength[data-score="1"] span:nth-child(-n+1),
.pw-strength[data-score="1"] span:nth-child(-n+1) { background: #B02A37; }

.pw-strength[data-score="2"] span:nth-child(-n+2) { background: #A96A00; }
.pw-strength[data-score="3"] span:nth-child(-n+3) { background: #12805C; }
.pw-strength[data-score="4"] span:nth-child(-n+4) { background: #12805C; }


/* ----- Preferences list ----- */
.pref-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pref-item {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.1rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.pref-item:hover {
    background: var(--c-white);
    border-color: rgba(16, 31, 72, .12);
}

.pref-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;

    background: var(--c-white);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

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

.pref-title {
    display: block;
    font-weight: 600;
    color: var(--c-navy);
    font-size: .92rem;
}

.pref-desc {
    display: block;
    font-size: .8rem;
    color: var(--c-grey-600);
    margin-top: .1rem;
}

.pref-toggle .form-check-input {
    margin: 0;
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.pref-toggle .form-check-input:checked {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}


/* ----- Sidebar summary ----- */
.settings-summary {
    text-align: center;
}

.settings-summary-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;

    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-sm);
    background: var(--c-grey-100);
}

.settings-summary-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-summary-initials {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: .02em;
}

.settings-summary-meta {
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;

    border-top: 1px dashed rgba(16, 31, 72, .1);

    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .85rem;
}

.settings-summary-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-summary-meta span {
    color: var(--c-grey-600);
}

.settings-summary-meta strong {
    color: var(--c-navy);
    font-weight: 700;
}


/* ----- Danger zone ----- */
.settings-danger {
    border-color: rgba(176, 42, 55, .25);
    background: linear-gradient(180deg, #FFF8F8, var(--c-white));
}

.settings-card-head.is-danger {
    border-bottom-color: rgba(176, 42, 55, .15);
}

.settings-danger-body h3 {
    color: #B02A37;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .settings-summary {
        margin-bottom: 1rem;
    }
}




/* =====================================================
   SITE FOOTER
===================================================== */

.site-footer {
    background: linear-gradient(135deg, var(--c-navy), #0C1838);
    color: #E2E8F0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Soft brand glow top-right */
.site-footer::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(194, 10, 98, .12),
        transparent 70%
    );
    top: -180px;
    right: -120px;
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 4rem 0 3rem;
}


/* ----- Brand column ----- */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;

    color: var(--c-white);
    font-weight: 800;
    font-size: 1.15rem;

    margin-bottom: 1.25rem;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;

    background: rgba(194, 10, 98, .18);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.footer-logo-text {
    letter-spacing: -.01em;
}

.footer-tagline {
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, .75);
    margin-bottom: 1.5rem;
}

/* Social row */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;

    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #CBD5E1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.footer-social-link:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
    transform: translateY(-2px);
}


/* ----- Column headings ----- */
.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-white);
    margin-bottom: 1.25rem;
}


/* ----- Platform links ----- */
.footer-platforms {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.footer-platform {
    display: flex;
    align-items: flex-start;
    gap: .75rem;

    padding: .55rem .5rem;
    border-radius: 10px;

    color: #CBD5E1;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.footer-platform:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--c-white);
}

.footer-platform-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;

    background: rgba(194, 10, 98, .15);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .9rem;
    margin-top: .1rem;
}

.footer-platform-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-platform-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
}

.footer-platform-desc {
    font-size: .78rem;
    color: rgba(148, 163, 184, .85);
    margin-top: .1rem;
}


/* ----- Contact block ----- */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .7rem;

    font-style: normal;
    margin: 0;
}

.footer-contact-item {
    display: inline-flex;
    align-items: flex-start;
    gap: .55rem;

    color: #CBD5E1;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.5;

    transition: color .2s ease;
}

.footer-contact-item i {
    color: var(--c-primary);
    font-size: .95rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

a.footer-contact-item:hover {
    color: var(--c-white);
}


/* ----- Newsletter ----- */
.footer-newsletter-desc {
    font-size: .85rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, .7);
    margin-bottom: 1rem;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.footer-newsletter-input {
    position: relative;
}

.footer-newsletter-input i {
    position: absolute;
    top: 50%;
    left: .85rem;
    transform: translateY(-50%);

    color: rgba(148, 163, 184, .7);
    font-size: .9rem;
    pointer-events: none;
}

.footer-newsletter-input input {
    width: 100%;

    padding: .7rem .9rem .7rem 2.5rem;

    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;

    color: var(--c-white);
    font-size: .88rem;

    transition: border-color .2s ease, background .2s ease;
}

.footer-newsletter-input input::placeholder {
    color: rgba(148, 163, 184, .6);
}

.footer-newsletter-input input:focus {
    outline: none;
    border-color: var(--c-primary);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .2);
}

.footer-newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .7rem 1rem;
    border: 0;
    border-radius: 10px;

    background: var(--c-primary);
    color: var(--c-white);

    font-size: .88rem;
    font-weight: 600;

    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.footer-newsletter-btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(194, 10, 98, .3);
}


/* ----- Bottom bar ----- */
.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-copy {
    font-size: .82rem;
    color: rgba(148, 163, 184, .9);
}

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

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.25rem;

    font-size: .82rem;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal a {
    color: rgba(203, 213, 225, .85);
    text-decoration: none;

    transition: color .2s ease;
}

.footer-legal a:hover {
    color: var(--c-primary);
}

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.footer-top-link i {
    font-size: .8rem;
}


/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    .footer-social-link,
    .footer-platform,
    .footer-newsletter-btn {
        transition: none;
    }

    .footer-social-link:hover,
    .footer-newsletter-btn:hover {
        transform: none;
    }
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .footer-main {
        padding: 3rem 0 2.5rem;
    }
}

@media (max-width: 575px) {
    .footer-main {
        padding: 2.5rem 0 2rem;
    }

    .footer-legal {
        gap: .75rem;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}





/* Logo wrapper with CSS-driven fallback (no inline JS) */
.brand-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--nav-logo-h);
}

/* Default state: logo visible, text hidden */
.brand-logo-wrap .brand-text {
    display: none;
}

/* Fallback state: logo hidden, text visible */
.brand-logo-wrap.logo-failed .brand-logo {
    display: none;
}

.brand-logo-wrap.logo-failed .brand-text {
    display: inline-block;
}



/* =====================================================
   COMMUNITY — CREATE POST FORM
===================================================== */

.community-form-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Header */
.community-form-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);

    background: linear-gradient(
        135deg,
        var(--c-white),
        var(--c-grey-50)
    );
}

.community-form-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}

/* Body */
.community-form-body {
    padding: 1.5rem;
}

.community-form-body .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--c-navy);
    margin-bottom: .35rem;
}

.community-form-body .form-control,
.community-form-body .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    font-size: .95rem;
    padding: .65rem .85rem;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.community-form-body .form-control:focus,
.community-form-body .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.community-form-body .form-text {
    font-size: .78rem;
    color: var(--c-grey-600);
}

/* Character counters */
.cf-char-count {
    font-size: .75rem;
    color: var(--c-grey-500);
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}

.cf-char-count.is-warn  { color: #A96A00; }
.cf-char-count.is-limit { color: #B02A37; font-weight: 600; }


/* Tag preview */
.cf-tag-preview {
    display: none;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .6rem;
}

.cf-tag-preview.has-tags {
    display: flex;
}

.cf-tag-pill {
    display: inline-block;

    padding: .22rem .65rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Body toolbar */
.cf-body-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-bottom: .35rem;
}

.cf-body-hint {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .75rem;
    color: var(--c-grey-500);
}

.cf-body-input {
    font-family: var(--font-sans);
    line-height: 1.65;
    resize: vertical;
    min-height: 260px;
}


/* Actions */
.community-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;

    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(16, 31, 72, .08);

    background: var(--c-grey-50);
}

.cf-draft-hint {
    font-size: .78rem;
    color: var(--c-grey-600);
    min-height: 1.1rem;
}

.cf-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.35rem;
    font-weight: 600;
}

.cf-submit-btn:disabled {
    opacity: .85;
}

.cf-submit-spinner {
    vertical-align: middle;
}


/* Responsive */
@media (max-width: 575px) {
    .community-form-head,
    .community-form-body,
    .community-form-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .community-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

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

    .cf-draft-hint {
        text-align: center;
    }
}



/* =====================================================
   COMMUNITY FEED
===================================================== */

/* ----- Hero ----- */
.community-hero {
    position: relative;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #F8F9FC 55%,
        #F7EAF1 100%
    );
}

.community-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(16, 31, 72, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 31, 72, .05) 1px, transparent 1px);
    background-size: 48px 48px;

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse at center,
        #000 30%,
        transparent 75%
    );
}

.community-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.community-stat {
    text-align: right;
}

.community-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
}

.community-stat-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);
    margin-top: .35rem;
}


/* ----- Sidebar ----- */
.community-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.community-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.community-panel-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    margin-bottom: .75rem;
}

.community-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.community-cat-link {
    display: flex;
    align-items: center;
    gap: .6rem;

    padding: .5rem .65rem;
    border-radius: 8px;

    color: var(--c-charcoal);
    font-size: .9rem;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.community-cat-link:hover {
    background: var(--c-grey-50);
    color: var(--c-primary);
}

.community-cat-link.is-active {
    background: var(--c-primary-light);
    color: var(--c-primary);
    font-weight: 600;
}

.community-cat-icon {
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: .95rem;
}

.community-cat-name {
    flex-grow: 1;
}

.community-cat-count {
    font-size: .75rem;
    color: var(--c-grey-500);
    font-variant-numeric: tabular-nums;
}


/* Mobile categories bar */
.community-mobile-cats {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    -webkit-overflow-scrolling: touch;
}

.community-mobile-cats::-webkit-scrollbar {
    display: none;
}

.community-mobile-cat {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .45rem .85rem;
    border-radius: 999px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .1);

    color: var(--c-charcoal);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.community-mobile-cat.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
}


/* ----- Toolbar ----- */
.community-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: .85rem 1rem;

    margin-bottom: 1rem;
}

.community-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.community-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.community-toolbar-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.community-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.community-toolbar-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.community-toolbar-sort label {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.community-toolbar-sort .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    min-width: 140px;
}


/* ----- Active filter chips ----- */
.community-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.community-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.community-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.community-chip:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.community-clear-all {
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.community-clear-all:hover {
    color: var(--c-primary);
}


/* ----- Feed ----- */
.community-feed {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.community-post {
    position: relative;
    display: flex;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .07);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.community-post:hover {
    transform: translateY(-2px);
    border-color: rgba(194, 10, 98, .2);
    box-shadow: var(--shadow-sm);
}

/* Pinned accent */
.community-post.is-pinned::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #E0A100;
}

/* Avatar */
.community-post-avatar {
    flex-shrink: 0;
}

.community-post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.community-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .03em;
}

/* Body */
.community-post-body {
    flex-grow: 1;
    min-width: 0;
}

.community-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .5rem;
}

.community-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;

    padding: .18rem .55rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.community-tag.is-pinned {
    background: #FFF4E0;
    color: #A96A00;
}

.community-tag.is-unanswered {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

/* Title */
.community-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .35rem;
}

.community-post-title a {
    color: var(--c-navy);
    text-decoration: none;
}

.community-post-title a:hover {
    color: var(--c-primary);
}

/* Meta */
.community-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;

    font-size: .82rem;
    color: var(--c-grey-600);
    margin-bottom: .5rem;
}

.community-dot {
    color: var(--c-grey-300);
}

/* Excerpt */
.community-post-excerpt {
    color: var(--c-grey-600);
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: .75rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats */
.community-post-stats {
    display: flex;
    gap: 1.15rem;
    font-size: .82rem;
    color: var(--c-grey-600);
}

.community-stat-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.community-stat-item i {
    color: var(--c-primary);
    font-size: .9rem;
}

.community-stat-item.is-empty i {
    color: var(--c-grey-400, #9CA3AF);
}


/* ----- Empty state ----- */
.community-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.community-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .community-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .community-post {
        padding: 1rem;
    }

    .community-post-title {
        font-size: 1rem;
    }

    .community-post-excerpt {
        -webkit-line-clamp: 3;
    }

    .community-toolbar {
        padding: .75rem;
    }
}



/* =====================================================
   COMMUNITY — POST DETAIL
===================================================== */

/* ----- Article ----- */
.post-article {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
    .post-article { padding: 2.5rem 2.75rem; }
}

/* Header */
.post-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .85rem;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .25rem .65rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}

.post-tag.is-category {
    background: var(--c-primary-light);
    color: var(--c-primary);
    transition: background .2s ease;
}

.post-tag.is-category:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.post-tag.is-locked {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

.post-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--c-navy);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.post-meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);
    font-weight: 700;
    font-size: .78rem;
}

.post-meta-author-name {
    display: block;
    font-weight: 700;
    color: var(--c-navy);
    font-size: .92rem;
}

.post-meta-author-time {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;

    color: var(--c-grey-600);
    font-size: .8rem;
}

.post-meta-author-time > span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

/* Body */
.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text);
    margin-bottom: 1.75rem;

    white-space: pre-line;
    word-wrap: break-word;
}

/* Tag row */
.post-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

.post-footer-tag {
    display: inline-flex;
    align-items: center;

    padding: .25rem .6rem;
    border-radius: 8px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.post-footer-tag:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}


/* Action bar */
.post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    padding-top: 1.25rem;
    border-top: 1px solid rgba(16, 31, 72, .08);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .5rem 1rem;
    border-radius: 10px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .15);

    color: var(--c-navy);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    transition: all .2s ease;
}

.post-action-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.post-action-btn.is-active {
    background: var(--c-primary-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.post-action-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.post-action-static {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .5rem 1rem;
    font-size: .85rem;
    color: var(--c-grey-600);
}


/* =====================================================
   COMMENTS
===================================================== */
.post-comments {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
}

.post-comments-head {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.post-comments-title {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 0;
}

.post-comments-title i {
    color: var(--c-primary);
}

.post-comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 26px;
    padding: 0 .6rem;

    border-radius: 999px;
    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 700;
}


/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: .9rem;
}

.comment-reply {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(16, 31, 72, .08);
}

@media (max-width: 575px) {
    .comment-reply {
        margin-left: 1rem;
    }
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    border-radius: 50%;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    font-weight: 700;
    font-size: .82rem;
}

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

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    margin-bottom: .35rem;
}

.comment-author {
    color: var(--c-navy);
    font-size: .92rem;
}

.comment-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;

    padding: .15rem .55rem;
    border-radius: 999px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.comment-time {
    font-size: .78rem;
    color: var(--c-grey-500);
    margin-left: auto;
}

.comment-text {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--c-text);
    white-space: pre-line;
}

.comment-reply-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    background: transparent;
    border: 0;
    padding: 0;

    color: var(--c-primary);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;

    margin-top: .5rem;

    transition: gap .2s ease;
}

.comment-reply-toggle:hover {
    gap: .5rem;
}

.comment-reply-form {
    margin-top: .75rem;
}

.comment-reply-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    justify-content: flex-end;
}


/* Empty comments */
.post-comments-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.post-comments-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-grey-100);
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* New comment form */
.comment-form-wrap {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.comment-form-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1rem;
}

.comment-form-wrap .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.comment-form-wrap .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: .75rem;
}


/* Locked / signin notice */
.post-locked-notice,
.post-signin-notice {
    display: flex;
    align-items: flex-start;
    gap: .85rem;

    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);

    margin-top: 1.5rem;
    font-size: .92rem;
}

.post-locked-notice {
    background: var(--c-grey-50);
    border: 1px dashed rgba(16, 31, 72, .15);
    color: var(--c-grey-600);
}

.post-locked-notice i {
    color: var(--c-primary);
    font-size: 1.25rem;
    margin-top: .1rem;
}

.post-signin-notice {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.post-signin-notice i {
    font-size: 1.25rem;
    margin-top: .1rem;
}


/* =====================================================
   SIDEBAR
===================================================== */
.post-sidebar {
    position: sticky;
    top: 90px;
}

.post-author-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    text-align: center;
}

.post-author-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.post-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid var(--c-primary-light);
}

.post-author-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    font-weight: 800;
    font-size: 1.5rem;
}

.post-author-info {
    margin-bottom: 1.25rem;
}

.post-author-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-grey-500);
    margin-bottom: .25rem;
}

.post-author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: .25rem;
}

.post-author-title {
    font-size: .85rem;
    color: var(--c-grey-600);
    margin-bottom: 0;
}


/* Sidebar panels */
.post-sidebar-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.post-sidebar-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    margin-bottom: .75rem;
}

.post-sidebar-stats {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.post-sidebar-stats li {
    display: flex;
    align-items: center;
    gap: .6rem;

    font-size: .88rem;
    color: var(--c-grey-600);
}

.post-sidebar-stats i {
    color: var(--c-primary);
    width: 20px;
    text-align: center;
}


/* Sidebar CTA */
.post-sidebar-cta {
    background: linear-gradient(
        145deg,
        var(--c-navy-light),
        var(--c-primary-light)
    );
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;

    text-align: center;
}

.post-sidebar-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
}


/* Responsive */
@media (max-width: 991px) {
    .post-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .post-article,
    .post-comments {
        padding: 1.25rem;
    }

    .comment-time {
        margin-left: 0;
        flex-basis: 100%;
    }
}



/* =====================================================
   AUTH — LOGIN FORM
===================================================== */

/* Header */
.auth-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        #A40853
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    box-shadow: 0 12px 30px rgba(194, 10, 98, .25);
}

.auth-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .35rem;
}

.auth-form-subtitle {
    color: var(--c-grey-600);
    font-size: .9rem;
    margin-bottom: 0;
}


/* Error summary */
.auth-error-summary {
    display: flex;
    align-items: center;
    gap: .6rem;

    background: #FBE9E7;
    color: #8A1F1A;

    border: 1px solid rgba(176, 42, 55, .25);
    border-radius: 12px;

    padding: .75rem 1rem;
    margin-bottom: 1.25rem;

    font-size: .88rem;
    font-weight: 500;
}

.auth-error-summary i {
    color: #B02A37;
    font-size: 1rem;
    flex-shrink: 0;
}


/* Fields */
.auth-form .auth-field + .auth-field {
    margin-top: .9rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--c-navy);
    margin-bottom: .35rem;
}

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

/* Leading icon */
.auth-input-wrap > i:first-child {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
    z-index: 1;
}

.auth-input-wrap:focus-within > i:first-child {
    color: var(--c-primary);
}

/* Inputs get left padding for the icon and right padding for the toggle */
.auth-form .form-control {
    padding: .75rem 2.75rem .75rem 2.5rem;

    border: 1px solid rgba(16, 31, 72, .15);
    border-radius: 12px;

    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

.auth-form .form-control.is-invalid {
    border-color: #B02A37;
    background-image: none; /* kill Bootstrap's default icon — we have our own */
}

.auth-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(176, 42, 55, .15);
}


/* Password visibility toggle */
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .65rem;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    border-radius: 8px;

    color: var(--c-grey-500);

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.auth-password-toggle:hover {
    background: var(--c-grey-100);
    color: var(--c-navy);
}

.auth-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .25);
}


/* Invalid feedback */
.auth-form .invalid-feedback {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    color: #B02A37;
}


/* Remember + Forgot row */
.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    margin: 1rem 0 1.25rem;
    flex-wrap: wrap;
}

.auth-row-between .form-check {
    margin-bottom: 0;
}

.auth-row-between .form-check-input:checked {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
}

.auth-row-between .form-check-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .2);
}

.auth-forgot-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.auth-forgot-link:hover {
    color: var(--c-primary-dark);
    text-decoration: underline;
}


/* Submit */
.auth-submit {
    padding: .8rem 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(194, 10, 98, .25);
}

.auth-submit:disabled {
    opacity: .8;
    cursor: wait;
}


/* Alt action */
.auth-alt-action {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .9rem;
    color: var(--c-grey-600);
}

.auth-alt-action a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-alt-action a:hover {
    text-decoration: underline;
}


/* Secure note */
.auth-secure-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);

    text-align: center;
    font-size: .75rem;
    color: var(--c-grey-500);
    letter-spacing: .02em;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.auth-secure-note i {
    color: var(--c-primary);
    font-size: .85rem;
}


/* Responsive */
@media (max-width: 575px) {
    .auth-row-between {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }
}



/* =====================================================
   AUTH — REGISTER
===================================================== */

.auth-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(
        135deg,
        var(--c-grey-50),
        var(--c-primary-light)
    );

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}


/* ----- Left value-prop panel ----- */
.auth-aside {
    background: linear-gradient(
        135deg,
        var(--c-navy),
        #0C1838
    );
    color: var(--c-white);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(194, 10, 98, .35),
        transparent 70%
    );
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.auth-aside-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-logo {
    height: 36px;
    width: auto;
}

.auth-aside-body {
    flex-grow: 1;
}

.auth-aside-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.75rem;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;

    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
    line-height: 1.5;
}

.auth-benefit-icon {
    flex-shrink: 0;
    color: #6EE7B7;
    font-size: 1rem;
    margin-top: .15rem;
}

.auth-aside-footer {
    font-size: .85rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.auth-aside-footer a {
    color: var(--c-white);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .4);
}

.auth-aside-footer a:hover {
    text-decoration-color: var(--c-white);
}


/* ----- Right form panel ----- */
.auth-main {
    padding: 2.5rem 2rem;
    background: var(--c-white);
}

.auth-main-inner {
    max-width: 520px;
    margin: 0 auto;
}

.auth-brand-mobile {
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .4rem;
}

.auth-sub {
    color: var(--c-grey-600);
    font-size: .92rem;
    margin-bottom: 1.75rem;
}


/* ----- Form sections ----- */
.auth-section + .auth-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.auth-section-title {
    display: block;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);

    margin-bottom: 1rem;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--c-navy);
    margin-bottom: .35rem;
}


/* ----- Input with leading icon + trailing toggle ----- */
.auth-input {
    position: relative;
}

.auth-input > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    font-size: .95rem;
    pointer-events: none;
    transition: color .2s ease;
}

.auth-input .form-control {
    padding: .7rem .9rem .7rem 2.5rem;
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 10px;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus-within > i {
    color: var(--c-primary);
}

.auth-input .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
    outline: none;
}

/* Trailing password toggle */
.auth-input-toggle {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 8px;

    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.auth-input-toggle:hover {
    background: var(--c-grey-100);
    color: var(--c-primary);
}

/* Reserve right space in password fields */
.auth-input:has(.auth-input-toggle) .form-control {
    padding-right: 3rem;
}


/* ----- Field error ----- */
.auth-field-error {
    display: flex;
    align-items: center;
    gap: .35rem;

    margin-top: .35rem;
    color: #B02A37;
    font-size: .82rem;
}


/* ----- Password strength ----- */
.auth-strength {
    margin-top: .5rem;
}

.auth-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--c-grey-200);
    overflow: hidden;
}

.auth-strength-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: var(--c-grey-400, #9CA3AF);
    transition: width .25s ease, background .25s ease;
}

.auth-strength-fill[data-tone="weak"]    { background: #B02A37; }
.auth-strength-fill[data-tone="fair"]    { background: #A96A00; }
.auth-strength-fill[data-tone="good"]    { background: #193A7A; }
.auth-strength-fill[data-tone="strong"]  { background: #12805C; }

.auth-strength-label {
    display: block;
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .35rem;
}

/* Match indicator */
.auth-match {
    margin-top: .35rem;
    font-size: .8rem;
}

.auth-match.is-match {
    color: #12805C;
}

.auth-match.is-mismatch {
    color: #A96A00;
}


/* ----- Account type radio cards ----- */
.auth-account-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

@media (max-width: 575px) {
    .auth-account-types {
        grid-template-columns: 1fr;
    }
}

.auth-account-type {
    position: relative;
    cursor: pointer;
}

.auth-account-type input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-account-type-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 12px;

    padding: 1rem;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.auth-account-type:hover .auth-account-type-inner {
    border-color: rgba(194, 10, 98, .3);
    background: var(--c-grey-50);
}

.auth-account-type input:checked + .auth-account-type-inner {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .12);
}

.auth-account-type input:focus-visible + .auth-account-type-inner {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.auth-account-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;

    transition: background .2s ease, color .2s ease;
}

.auth-account-type input:checked + .auth-account-type-inner .auth-account-type-icon {
    background: var(--c-primary);
    color: var(--c-white);
}

.auth-account-type-text strong {
    display: block;
    font-size: .9rem;
    color: var(--c-navy);
}

.auth-account-type-text small {
    display: block;
    font-size: .78rem;
    color: var(--c-grey-600);
    line-height: 1.4;
    margin-top: .15rem;
}


/* ----- Terms + submit ----- */
.auth-terms {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.auth-terms a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-submit {
    margin-top: 1.5rem;
    padding: .85rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ----- Mobile ----- */
@media (max-width: 991px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-main {
        padding: 1.75rem 1.25rem;
    }
}


/* =====================================================
   ADMIN — APPLICATIONS LIST
===================================================== */

/* Page shell */
.admin-page {
    padding: 1.5rem 0 3rem;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;

    margin-bottom: 1.25rem;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-navy);
    margin: 0 0 .2rem;
}

.admin-page-subtitle {
    font-size: .9rem;
    color: var(--c-grey-600);
    margin: 0;
}

.admin-page-actions {
    display: flex;
    gap: .5rem;
}


/* ----- Toolbar ----- */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: .85rem 1rem;

    margin-bottom: 1rem;
}

.admin-toolbar-search {
    position: relative;
    flex: 1 1 240px;
}

.admin-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.admin-toolbar-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.admin-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-field {
    flex: 0 1 auto;
    min-width: 150px;
}

.admin-toolbar-field .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.admin-toolbar-field .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Active filter chips ----- */
.admin-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.admin-active-filters-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-grey-600);
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.admin-chip:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.admin-clear-all {
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.admin-clear-all:hover {
    color: var(--c-primary);
}


/* ----- Table ----- */
.admin-table-wrap {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: .92rem;
}

.admin-table thead th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);

    padding: .85rem 1.25rem;
    background: var(--c-grey-50);
    border-bottom: 1px solid rgba(16, 31, 72, .08);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .06);
    vertical-align: middle;
    color: var(--c-text);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr {
    transition: background .15s ease;
}

.admin-table tbody tr:hover {
    background: var(--c-grey-50);
}


/* ----- Applicant cell ----- */
.admin-applicant {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.admin-applicant-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
}

.admin-applicant-info {
    min-width: 0;
}

.admin-applicant-name {
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.2;
}

.admin-applicant-email {
    display: block;
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: none;
    margin-top: .1rem;
    word-break: break-all;
}

.admin-applicant-email:hover {
    color: var(--c-primary);
}


/* ----- Job cell ----- */
.admin-job-title {
    color: var(--c-navy);
    font-weight: 500;
}


/* ----- Status badges ----- */
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .65rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-status-badge.is-primary {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.admin-status-badge.is-info {
    background: #E8EEF9;
    color: #193A7A;
}

.admin-status-badge.is-navy {
    background: var(--c-navy-light);
    color: var(--c-navy);
}

.admin-status-badge.is-success {
    background: #E7F7EE;
    color: #12805C;
}

.admin-status-badge.is-danger {
    background: #FBE9E7;
    color: #B02A37;
}

.admin-status-badge.is-muted {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Date cell ----- */
.admin-date {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-date-hint {
    font-size: .75rem;
    color: var(--c-grey-500);
    margin-top: .15rem;
}


/* ----- Empty state ----- */
.admin-empty {
    background: var(--c-white);
    border: 1px dashed rgba(16, 31, 72, .15);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
}

.admin-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.75rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-toolbar {
        padding: .75rem;
    }

    .admin-toolbar-field {
        flex: 1 1 140px;
    }

    .admin-toolbar button[type="submit"] {
        flex: 1 1 100%;
    }
}


/* =====================================================
   ADMIN — APPLICATION DETAIL
===================================================== */

.admin-app-page {
    /* wrapper */
}

/* ----- Header ----- */
.admin-app-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.admin-app-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    font-size: .85rem;
    color: var(--c-grey-600);
    text-decoration: none;
    font-weight: 600;

    margin-bottom: 1rem;
}

.admin-app-back:hover {
    color: var(--c-primary);
}

.admin-app-headline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-app-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .03em;
}

.admin-app-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-navy);
    margin: 0 0 .35rem;
    line-height: 1.25;
}

.admin-app-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;

    font-size: .85rem;
    color: var(--c-grey-600);
}

.admin-app-applied {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* Status pill */
.admin-app-status {
    display: inline-flex;
    align-items: center;

    padding: .25rem .7rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-app-status-neutral { background: var(--c-grey-100); color: var(--c-grey-600); }
.admin-app-status-info    { background: #E8EEF9; color: #193A7A; }
.admin-app-status-primary { background: var(--c-primary-light); color: var(--c-primary); }
.admin-app-status-success { background: #E7F7EE; color: #12805C; }
.admin-app-status-danger  { background: #FBE9E7; color: #B02A37; }
.admin-app-status-muted   { background: var(--c-grey-100); color: var(--c-grey-500); }


/* ----- Cards ----- */
.admin-app-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.admin-app-card-title {
    display: flex;
    align-items: center;
    gap: .55rem;

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);

    margin-bottom: 1rem;
}

.admin-app-card-title i {
    color: var(--c-primary);
    font-size: 1rem;
}


/* ----- Info grid ----- */
.admin-app-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 575px) {
    .admin-app-info-grid { grid-template-columns: 1fr; }
}

.admin-app-info-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);

    margin-bottom: .25rem;
}

.admin-app-info-value {
    display: inline-block;

    color: var(--c-navy);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;

    word-break: break-word;
}

a.admin-app-info-value:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.admin-app-info-value.is-empty {
    color: var(--c-grey-400, #9CA3AF);
    font-weight: 400;
    font-style: italic;
}


/* ----- Job context ----- */
.admin-app-job {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        var(--c-grey-50),
        var(--c-white)
    );
    border: 1px solid rgba(16, 31, 72, .06);
}

.admin-app-job-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: .15rem;
}

.admin-app-job-company {
    color: var(--c-grey-600);
    font-size: .9rem;
    margin-bottom: .75rem;
}

.admin-app-job-link {
    display: inline-flex;
    align-items: center;

    font-size: .85rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.admin-app-job-link:hover {
    text-decoration: underline;
}


/* ----- Resume file ----- */
.admin-app-file {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1rem 1.15rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);

    text-decoration: none;

    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.admin-app-file:hover {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .25);
    transform: translateY(-2px);
}

.admin-app-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}

.admin-app-file-body {
    flex-grow: 1;
    min-width: 0;
}

.admin-app-file-name {
    color: var(--c-navy);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .1rem;
}

.admin-app-file-meta {
    font-size: .78rem;
    color: var(--c-grey-600);
}

.admin-app-file-arrow {
    color: var(--c-grey-400, #9CA3AF);
    font-size: 1rem;
    transition: color .2s ease, transform .2s ease;
}

.admin-app-file:hover .admin-app-file-arrow {
    color: var(--c-primary);
    transform: translateY(2px);
}


/* ----- Cover letter ----- */
.admin-app-cover {
    background: var(--c-grey-50);
    border-left: 3px solid var(--c-primary);
    border-radius: 8px;

    padding: 1rem 1.15rem;

    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.75;

    max-height: 380px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* ----- Sidebar ----- */
.admin-app-sidebar {
    position: sticky;
    top: 90px;
}

.admin-app-form .form-label {
    color: var(--c-navy);
}

.admin-app-form .form-control,
.admin-app-form .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    font-size: .92rem;
}

.admin-app-form .form-control:focus,
.admin-app-form .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-app-notes-meta {
    font-size: .75rem;
    color: var(--c-grey-500);
    text-align: right;
}

.admin-app-form-hint {
    margin: .75rem 0 0;
    font-size: .78rem;
    color: var(--c-grey-600);
    line-height: 1.5;

    display: flex;
    gap: .4rem;
    align-items: flex-start;
}

.admin-app-form-hint i {
    color: var(--c-primary);
    margin-top: .15rem;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .admin-app-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .admin-app-name {
        font-size: 1.25rem;
    }

    .admin-app-avatar {
        width: 48px;
        height: 48px;
        font-size: .95rem;
    }

    .admin-app-card {
        padding: 1.15rem;
    }
}



/* =====================================================
   ADMIN PANELS & TABLES
===================================================== */

/* ----- Panel shell ----- */
.admin-panel {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.admin-panel-sticky {
    position: sticky;
    top: 90px;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.admin-panel-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
}

.admin-panel-icon.is-accent {
    background: linear-gradient(135deg, var(--c-primary), #A40853);
    color: var(--c-white);
    box-shadow: 0 8px 20px rgba(194, 10, 98, .25);
}

.admin-panel-count {
    min-width: 32px;
    height: 32px;
    padding: 0 .6rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* ----- Table ----- */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -.5rem;
    padding: 0 .5rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    font-size: .9rem;
}

.admin-table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;

    color: var(--c-grey-600);
    background: var(--c-grey-50);

    padding: .7rem .85rem;

    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.admin-table thead th:first-child { border-top-left-radius: 10px; }
.admin-table thead th:last-child  { border-top-right-radius: 10px; }

.admin-table tbody td {
    padding: .85rem;

    border-bottom: 1px solid rgba(16, 31, 72, .06);
    vertical-align: middle;

    color: var(--c-text);
}

.admin-table tbody tr:hover {
    background: var(--c-grey-50);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ----- Category cell ----- */
.admin-cat-name {
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.35;
}

.admin-cat-desc {
    font-size: .8rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-slug {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .15rem .5rem;
    border-radius: 4px;

    font-size: .78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-count-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    padding: .15rem .5rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-navy);

    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.admin-count-link:hover {
    background: var(--c-primary);
    color: var(--c-white);
}


/* ----- Action buttons ----- */
.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    color: var(--c-grey-600);

    font-size: .85rem;
    cursor: pointer;

    transition: all .2s ease;
}

.admin-action-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: var(--c-primary-light);
}

.admin-action-btn.is-danger:hover {
    border-color: #B02A37;
    color: #B02A37;
    background: #FBE9E7;
}


/* ----- Inline edit row ----- */
.admin-edit-row td {
    background: var(--c-primary-light) !important;
    border-bottom: 1px solid rgba(194, 10, 98, .15) !important;
    padding: 1rem !important;
}

.admin-edit-form .form-label {
    color: var(--c-navy);
}

.admin-edit-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
}

.admin-edit-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Add form ----- */
.admin-add-form .form-label {
    color: var(--c-navy);
}

.admin-add-form .form-control {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.admin-add-form .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-slug-preview {
    display: flex;
    align-items: center;
    gap: .4rem;

    padding: .4rem .6rem;
    border-radius: 8px;

    background: var(--c-grey-50);
    font-size: .8rem;
}

.admin-slug-preview code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .1rem .45rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
}


/* ----- Empty state ----- */
.admin-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.admin-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .admin-panel-sticky {
        position: static;
    }
}

@media (max-width: 575px) {
    .admin-table thead th,
    .admin-table tbody td {
        padding: .65rem;
    }

    .admin-cat-desc {
        white-space: normal;
    }
}


/* =====================================================
   ADMIN — BLOG POST EDITOR
===================================================== */

/* ----- Sticky action bar ----- */
.post-editor-bar {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    margin: -1rem -1rem 1.5rem;
    padding: .85rem 1.25rem;

    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.post-editor-bar-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.post-editor-bar-meta {
    font-size: .8rem;
    color: var(--c-grey-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40ch;
}

.post-editor-bar-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}


/* ----- Grid ----- */
.post-editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .post-editor-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
}

.post-editor-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.post-editor-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    position: sticky;
    top: 80px;
}

@media (max-width: 991px) {
    .post-editor-aside {
        position: static;
    }
}


/* ----- Fields ----- */
.post-editor-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.post-editor-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
}

.post-editor-counter {
    font-size: .75rem;
    color: var(--c-grey-500);
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}

.post-editor-counter.is-over {
    color: #A96A00;
    font-weight: 600;
}

.post-editor-hint {
    font-size: .78rem;
}

.post-editor-hint kbd {
    background: var(--c-grey-100);
    border: 1px solid rgba(16, 31, 72, .1);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: .05rem .35rem;
    font-size: .72rem;
    color: var(--c-navy);
    font-family: inherit;
}

.post-editor .form-control,
.post-editor .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.post-editor .form-control:focus,
.post-editor .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.post-editor .rich-editor {
    min-height: 320px;
    font-family: var(--font-sans);
}


/* ----- Slug preview ----- */
.post-editor-slug {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .25rem;
    font-size: .8rem;
}

.post-editor-slug code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .1rem .45rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* ----- Image upload ----- */
.post-editor-image {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.post-editor-image-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-grey-100);
    border: 1px solid rgba(16, 31, 72, .1);
}

.post-editor-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-editor-image-remove {
    position: absolute;
    top: .5rem;
    right: .5rem;

    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: rgba(16, 31, 72, .7);
    color: var(--c-white);
    border: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .75rem;
    cursor: pointer;

    transition: background .2s ease;
}

.post-editor-image-remove:hover {
    background: var(--c-primary);
}

.post-editor-image-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;

    padding: 1.5rem 1rem;
    border: 2px dashed rgba(16, 31, 72, .15);
    border-radius: 12px;

    color: var(--c-grey-600);
    font-size: .85rem;
    text-align: center;
    cursor: pointer;

    transition: border-color .2s ease, background .2s ease;
}

.post-editor-image-drop:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.post-editor-image-drop i {
    font-size: 1.5rem;
    color: var(--c-primary);
}

.post-editor-image-drop small {
    font-size: .75rem;
}

.post-editor-image-remove-existing {
    font-size: .82rem;
    color: var(--c-grey-600);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}


/* ----- Sidebar cards ----- */
.post-editor-card {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.post-editor-card-title {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-navy);

    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.post-editor-card-title i {
    color: var(--c-primary);
    font-size: .95rem;
}

.post-editor-card .post-editor-field + .post-editor-field {
    margin-top: .9rem;
}


/* ----- Status warning ----- */
.post-editor-warning {
    display: flex;
    align-items: flex-start;
    gap: .5rem;

    margin-top: .85rem;
    padding: .6rem .75rem;

    background: #FFF4E0;
    border-left: 3px solid #E0A100;
    border-radius: 8px;

    font-size: .8rem;
    color: #7A4E00;
    line-height: 1.5;
}

.post-editor-warning i {
    color: #A96A00;
    margin-top: .1rem;
    flex-shrink: 0;
}


/* ----- SEO preview ----- */
.post-editor-seo-preview {
    margin-top: 1.25rem;
    padding: 1rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);
    border-radius: 12px;
}

.post-editor-seo-url {
    font-size: .75rem;
    color: #12805C;
    margin-bottom: .35rem;
    word-break: break-all;
}

.post-editor-seo-title {
    font-size: .95rem;
    font-weight: 600;
    color: #1A0DAB;
    margin-bottom: .25rem;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-editor-seo-desc {
    font-size: .82rem;
    color: var(--c-grey-600);
    line-height: 1.5;

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


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .post-editor-bar {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }

    .post-editor-bar-actions {
        justify-content: flex-end;
    }
}


/* =====================================================
   ADMIN PAGE HEADER & TOOLBAR
===================================================== */

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.admin-page-head-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-page-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
    flex-shrink: 0;
}

.admin-page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}


/* ----- Toolbar ----- */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: .85rem 1rem;

    margin-bottom: 1rem;
}

.admin-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.admin-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
}

.admin-toolbar-search .form-control {
    padding-left: 2.5rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.admin-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-select {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.admin-toolbar-select label {
    font-size: .85rem;
    color: var(--c-grey-600);
}

.admin-toolbar-select .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
    min-width: 150px;
}


/* ----- Active filters ----- */
.admin-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.admin-active-filters-label {
    font-size: .8rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.admin-chip:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

.admin-clear-all {
    font-size: .8rem;
    color: var(--c-grey-600);
    text-decoration: underline;
    margin-left: .25rem;
}

.admin-clear-all:hover {
    color: var(--c-primary);
}


/* =====================================================
   ADMIN BLOG POST ROWS
===================================================== */

.admin-post-title {
    font-weight: 600;
    color: var(--c-navy);
    text-decoration: none;
    line-height: 1.4;
}

.admin-post-title:hover {
    color: var(--c-primary);
}

.admin-post-excerpt {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-cat-pill {
    display: inline-block;

    padding: .18rem .6rem;
    border-radius: 999px;

    background: var(--c-grey-100);
    color: var(--c-grey-600);

    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.admin-cat-pill:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}


/* ----- Status pills ----- */
.admin-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .65rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-status i {
    font-size: .7rem;
}

.admin-status-success {
    background: #E7F7EE;
    color: #12805C;
}

.admin-status-info {
    background: #E8EEF9;
    color: #193A7A;
}

.admin-status-warning {
    background: #FFF4E0;
    color: #A96A00;
}

.admin-status-muted {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Views ----- */
.admin-views {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    font-size: .85rem;
    color: var(--c-navy);
    font-weight: 600;
}

.admin-views i {
    color: var(--c-grey-500);
    font-size: .8rem;
}


/* ----- Publish date ----- */
.admin-table-posts time {
    font-size: .85rem;
    color: var(--c-grey-600);
}


/* ----- Row hover highlight for clickable rows ----- */
.admin-table-posts tbody tr[data-row-link]:hover {
    background: var(--c-grey-50);
}

.admin-table-posts tbody tr[data-row-link]:hover .admin-post-title {
    color: var(--c-primary);
}


/* ----- Pagination ----- */
.admin-pagination {
    display: flex;
    justify-content: center;
}



/* =====================================================
   ADMIN — CERTIFICATES TABLE
===================================================== */

/* Reuse .admin-panel, .admin-table from the categories screen. */

/* ----- Toolbar ----- */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    padding: .75rem .9rem;
    margin-bottom: 1rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);
    border-radius: 12px;
}

.admin-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.admin-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .8rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
    font-size: .85rem;
}

.admin-toolbar-search .form-control {
    padding-left: 2.2rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background: var(--c-white);
}

.admin-toolbar-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-select .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background-color: var(--c-white);
    min-width: 150px;
}

.admin-toolbar-select .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-clear {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .35rem .7rem;
    border-radius: 8px;

    color: var(--c-grey-600);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.admin-toolbar-clear:hover {
    background: var(--c-grey-100);
    color: var(--c-navy);
}


/* ----- Certificate number with copy ----- */
.cert-number {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.cert-copy {
    width: 26px;
    height: 26px;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid transparent;
    color: var(--c-grey-500);

    font-size: .8rem;
    cursor: pointer;

    transition: all .2s ease;
}

.cert-copy:hover {
    background: var(--c-grey-100);
    border-color: rgba(16, 31, 72, .1);
    color: var(--c-navy);
}

.cert-copy.is-copied {
    background: #E7F7EE;
    border-color: #12805C;
    color: #12805C;
}


/* ----- Holder / Training cells ----- */
.cert-holder {
    font-weight: 600;
    color: var(--c-navy);
}

.cert-training {
    color: var(--c-text);
    font-size: .88rem;
}


/* ----- Status pills ----- */
.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .3rem .75rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cert-pill.is-active {
    background: #E7F7EE;
    color: #12805C;
}

.cert-pill.is-revoked {
    background: #FBE9E7;
    color: #B02A37;
}

.cert-revoked-at {
    font-size: .75rem;
    color: var(--c-grey-500);
    margin-top: .2rem;
    padding-left: .2rem;
}


/* ----- Success action button variant ----- */
.admin-action-btn.is-success:hover {
    border-color: #12805C;
    color: #12805C;
    background: #E7F7EE;
}


/* ----- Toast ----- */
.cert-copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    padding: .6rem 1.1rem;
    border-radius: 10px;

    background: var(--c-navy);
    color: var(--c-white);

    font-size: .85rem;
    font-weight: 600;

    box-shadow: var(--shadow-md);
    z-index: 1080;

    opacity: 0;
    animation: certToastIn .25s ease forwards;
}

@keyframes certToastIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


/* ----- Pagination ----- */
.admin-pagination {
    display: flex;
    justify-content: center;
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .admin-table-certs thead th,
    .admin-table-certs tbody td {
        padding: .65rem .55rem;
    }

    .cert-training,
    .cert-holder {
        font-size: .85rem;
    }

    .admin-toolbar {
        padding: .6rem;
    }
}




/* =====================================================================
   INNOVTECH — ADMIN STYLESHEET
   =====================================================================
   1.  Layout
   2.  Sidebar
   3.  Main / Topbar
   4.  Breadcrumb
   5.  Flash messages
   6.  Content wrapper
   7.  Mobile drawer
   8.  Admin panels (shared with categories / certificates screens)
   9.  Admin tables
  10.  Admin toolbar
  11.  Buttons & actions
  12.  Empty states
  13.  Responsive
   ===================================================================== */


/* =====================================================
   1. LAYOUT
===================================================== */
.admin-body {
    background: var(--c-grey-50, #F8F9FB);
    margin: 0;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--c-text, #343434);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}


/* =====================================================
   2. SIDEBAR
===================================================== */
.admin-sidebar {
    background: linear-gradient(180deg, #101F48 0%, #0C1838 100%);
    color: #FFFFFF;

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;

    border-right: 1px solid rgba(255, 255, 255, .05);
}

/* Custom scrollbar */
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 3px;
}

/* Brand */
.admin-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.15rem 1.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.admin-brand a {
    display: flex;
    align-items: center;
    gap: .65rem;

    color: #FFFFFF;
    text-decoration: none;

    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.admin-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;

    background: linear-gradient(135deg, #C20A62, #A40853);
    color: #FFFFFF;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(194, 10, 98, .35);
}

.admin-brand-text { font-weight: 600; }
.admin-brand-text strong { font-weight: 800; }

.admin-sidebar-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    cursor: pointer;
    padding: .25rem;
}

/* Nav */
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: .1rem;

    padding: .85rem .75rem 1rem;
    flex-grow: 1;
}

.admin-nav-group {
    padding: 1rem .5rem .35rem;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;

    color: rgba(255, 255, 255, .4);

    transition: color .2s ease;
}

.admin-nav-group:first-child { padding-top: .25rem; }

.admin-nav-group.is-active {
    color: #FF7CB5;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;

    padding: .55rem .75rem;
    border-radius: 8px;

    color: rgba(255, 255, 255, .75);
    text-decoration: none;

    font-size: .9rem;
    font-weight: 500;
    line-height: 1.35;

    transition:
        background .2s ease,
        color .2s ease,
        transform .15s ease;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #FFFFFF;
}

.admin-nav-link.active {
    background: linear-gradient(
        90deg,
        rgba(194, 10, 98, .28),
        rgba(194, 10, 98, .12)
    );
    color: #FFFFFF;
    font-weight: 600;
}

.admin-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: .4rem;
    bottom: .4rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #C20A62;
}

/* Sidebar footer */
.admin-sidebar-foot {
    padding: .85rem 1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: .7rem;

    padding: .55rem .6rem;
    border-radius: 10px;

    background: rgba(255, 255, 255, .04);
}

.admin-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;

    background: linear-gradient(135deg, #C20A62, #101F48);
    color: #FFFFFF;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .02em;

    flex-shrink: 0;
}

.admin-sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-sidebar-user-meta strong {
    color: #FFFFFF;
    font-size: .85rem;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-user-meta span {
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
}


/* =====================================================
   3. MAIN / TOPBAR
===================================================== */
.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow flex children to shrink */
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: .9rem 1.75rem;

    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(16, 31, 72, .08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--c-white, #fff);
    border: 1px solid rgba(16, 31, 72, .12);
    color: #101F48;

    font-size: 1.15rem;
    cursor: pointer;

    transition: all .2s ease;
}

.admin-menu-toggle:hover {
    background: #F8E7F0;
    border-color: #C20A62;
    color: #C20A62;
}

.admin-topbar-title {
    flex-grow: 1;
    min-width: 0;
}

.admin-topbar-title h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #101F48;
    margin: 0;
    line-height: 1.25;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .45rem .85rem;
    border-radius: 8px;

    background: var(--c-white, #fff);
    border: 1px solid rgba(16, 31, 72, .12);
    color: #101F48;

    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.admin-topbar-btn:hover {
    border-color: #C20A62;
    color: #C20A62;
    background: #F8E7F0;
}

.admin-topbar-btn.is-danger:hover {
    border-color: #B02A37;
    color: #B02A37;
    background: #FBE9E7;
}


/* =====================================================
   4. BREADCRUMB
===================================================== */
.admin-breadcrumb {
    margin-top: .2rem;
}

.admin-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;

    list-style: none;
    padding: 0;
    margin: 0;

    font-size: .78rem;
    color: #6B7280;
}

.admin-breadcrumb li + li::before {
    content: "/";
    margin-right: .35rem;
    color: #D1D5DB;
}

.admin-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    color: #C20A62;
}

.admin-breadcrumb [aria-current="page"] {
    color: #101F48;
    font-weight: 600;
}


/* =====================================================
   5. FLASH MESSAGES
===================================================== */
.admin-flash {
    margin: 1rem 1.75rem .25rem;
    border-radius: 12px;
}


/* =====================================================
   6. CONTENT WRAPPER
===================================================== */
.admin-content {
    padding: 1.5rem 1.75rem 3rem;
    flex-grow: 1;
}


/* =====================================================
   7. MOBILE DRAWER
===================================================== */
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(16, 31, 72, .5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;

    z-index: 1040;
}

body.admin-sidebar-open .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

body.admin-sidebar-open {
    overflow: hidden;
}


/* =====================================================
   8. ADMIN PANELS
===================================================== */
.admin-panel {
    background: var(--c-white, #fff);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: 20px;
    padding: 1.5rem;
}

.admin-panel-sticky {
    position: sticky;
    top: 90px;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.admin-panel-title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    background: #F8E7F0;
    color: #C20A62;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
}

.admin-panel-icon.is-accent {
    background: linear-gradient(135deg, #C20A62, #A40853);
    color: #fff;
    box-shadow: 0 8px 20px rgba(194, 10, 98, .25);
}

.admin-panel-count {
    min-width: 32px;
    height: 32px;
    padding: 0 .6rem;
    border-radius: 999px;

    background: #F8E7F0;
    color: #C20A62;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* =====================================================
   9. ADMIN TABLES
===================================================== */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -.5rem;
    padding: 0 .5rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
}

.admin-table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;

    color: #6B7280;
    background: #F8F9FB;

    padding: .7rem .85rem;

    border-bottom: 1px solid rgba(16, 31, 72, .08);
}

.admin-table thead th:first-child { border-top-left-radius: 10px; }
.admin-table thead th:last-child  { border-top-right-radius: 10px; }

.admin-table tbody td {
    padding: .85rem;
    border-bottom: 1px solid rgba(16, 31, 72, .06);
    vertical-align: middle;
    color: #343434;
}

.admin-table tbody tr:hover { background: #F8F9FB; }
.admin-table tbody tr:last-child td { border-bottom: 0; }


/* =====================================================
   10. ADMIN TOOLBAR
===================================================== */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;

    padding: .75rem .9rem;
    margin-bottom: 1rem;

    background: #F8F9FB;
    border: 1px solid rgba(16, 31, 72, .06);
    border-radius: 12px;
}

.admin-toolbar-search {
    position: relative;
    flex: 1 1 220px;
}

.admin-toolbar-search > i {
    position: absolute;
    top: 50%;
    left: .8rem;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
    font-size: .85rem;
}

.admin-toolbar-search .form-control {
    padding-left: 2.2rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background: #fff;
}

.admin-toolbar-search .form-control:focus {
    border-color: #C20A62;
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-select .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background-color: #fff;
    min-width: 150px;
}

.admin-toolbar-select .form-select:focus {
    border-color: #C20A62;
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-toolbar-clear {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .35rem .7rem;
    border-radius: 8px;

    color: #6B7280;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.admin-toolbar-clear:hover {
    background: #F1F3F6;
    color: #101F48;
}


/* =====================================================
   11. BUTTONS & ACTIONS
===================================================== */
.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid rgba(16, 31, 72, .12);
    color: #6B7280;

    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;

    transition: all .2s ease;
}

.admin-action-btn:hover {
    border-color: #C20A62;
    color: #C20A62;
    background: #F8E7F0;
}

.admin-action-btn.is-danger:hover {
    border-color: #B02A37;
    color: #B02A37;
    background: #FBE9E7;
}

.admin-action-btn.is-success:hover {
    border-color: #12805C;
    color: #12805C;
    background: #E7F7EE;
}

.admin-slug {
    background: #F1F3F6;
    color: #101F48;
    padding: .15rem .5rem;
    border-radius: 4px;

    font-size: .78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* =====================================================
   12. EMPTY STATES
===================================================== */
.admin-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.admin-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: #F8E7F0;
    color: #C20A62;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* =====================================================
   13. RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;

        width: 260px;
        max-width: 85vw;

        transform: translateX(-100%);
        transition: transform .25s ease;

        z-index: 1050;
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, .3);
    }

    .admin-topbar {
        padding: .75rem 1rem;
    }

    .admin-content {
        padding: 1rem 1rem 2.5rem;
    }

    .admin-flash {
        margin: .75rem 1rem .25rem;
    }
}

@media (max-width: 575px) {
    .admin-topbar-title h1 {
        font-size: 1rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: .6rem .5rem;
    }
}



/* =====================================================
   TECHNICIAN PROFILE — DIRECTORY VARIANT
===================================================== */

/* ----- Availability pill (header) ----- */
.tech-availability {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    margin: 0 auto 1.25rem;
    padding: .4rem .9rem;
    border-radius: 999px;

    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.tech-availability.is-success   { background: #E7F7EE; color: #12805C; }
.tech-availability.is-info      { background: #E8EEF9; color: #193A7A; }
.tech-availability.is-secondary { background: var(--c-grey-100); color: var(--c-grey-600); }
.tech-availability.is-muted     { background: var(--c-grey-100); color: var(--c-grey-500); }

.tech-availability i {
    font-size: .85rem;
}


/* ----- Verified strip ----- */
.profile-verified-strip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .5rem .9rem;
    border-radius: 10px;

    background: #E7F7EE;
    color: #12805C;

    font-size: .82rem;
    font-weight: 700;
}

.profile-verified-strip i {
    font-size: .9rem;
}


/* ----- Panel head icon variants ----- */
.profile-panel-icon.is-amber {
    background: #FFF4E0;
    color: #A96A00;
}

.profile-panel-icon.is-done {
    background: #E7F7EE;
    color: #12805C;
}

.profile-panel-icon.is-info {
    background: #E8EEF9;
    color: #193A7A;
}


/* ----- Certifications list ----- */
.profile-cert-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.profile-cert {
    display: flex;
    gap: .75rem;

    padding: .75rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid transparent;

    transition: background .2s ease, border-color .2s ease;
}

.profile-cert:hover {
    background: var(--c-white);
    border-color: rgba(16, 31, 72, .1);
}

.profile-cert-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;

    background: #FFF4E0;
    color: #A96A00;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .95rem;
}

.profile-cert-body {
    min-width: 0;
    flex-grow: 1;
}

.profile-cert-title {
    font-weight: 600;
    color: var(--c-navy);
    font-size: .88rem;
    line-height: 1.35;
    margin-bottom: .2rem;
}

.profile-cert-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;

    font-size: .75rem;
    color: var(--c-grey-600);
}

.profile-cert-number {
    background: var(--c-white);
    color: var(--c-navy);
    padding: .1rem .4rem;
    border-radius: 4px;

    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .72rem;
}

.profile-cert-dot {
    color: var(--c-grey-300);
}


/* ----- Looking for ----- */
.profile-look-list {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.profile-look-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;

    padding: .55rem 0;
    border-bottom: 1px dashed rgba(16, 31, 72, .08);
}

.profile-look-row:last-child {
    border-bottom: 0;
}

.profile-look-row dt {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-grey-600);
}

.profile-look-row dd {
    margin: 0;
    text-align: right;

    font-size: .9rem;
    font-weight: 600;
    color: var(--c-navy);
}


/* ----- Completed trainings ----- */
.profile-training-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.profile-training {
    display: flex;
    align-items: center;
    gap: .55rem;

    padding: .55rem .75rem;
    border-radius: 10px;

    background: var(--c-grey-50);
    font-size: .88rem;
}

.profile-training i {
    color: #12805C;
    font-size: .9rem;
    flex-shrink: 0;
}

.profile-training-title {
    flex-grow: 1;
    color: var(--c-navy);
    font-weight: 500;
}

.profile-training-date {
    font-size: .78rem;
    color: var(--c-grey-500);
    font-weight: 600;
    white-space: nowrap;
}


/* ----- Community activity ----- */
.profile-post-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.profile-post {
    padding: .75rem;
    border-radius: 10px;

    background: var(--c-grey-50);
    transition: background .2s ease;
}

.profile-post:hover {
    background: var(--c-white);
    box-shadow: var(--shadow-xs);
}

.profile-post-title {
    display: block;
    font-weight: 600;
    color: var(--c-navy);
    text-decoration: none;
    font-size: .92rem;
    line-height: 1.4;
    margin-bottom: .25rem;
}

.profile-post-title:hover {
    color: var(--c-primary);
}

.profile-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;

    font-size: .78rem;
    color: var(--c-grey-600);
}

.profile-post-meta i {
    color: var(--c-primary);
    font-size: .8rem;
}

.profile-post-dot {
    color: var(--c-grey-300);
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .profile-look-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
    }

    .profile-look-row dd {
        text-align: left;
    }

    .profile-training {
        flex-wrap: wrap;
    }

    .profile-training-date {
        width: 100%;
        padding-left: 1.45rem;
    }
}



/* =====================================================
   PROFILE EDITOR
===================================================== */

/* ----- Onboarding banner ----- */
.profile-onboarding {
    display: flex;
    align-items: center;
    gap: 1.25rem;

    background: linear-gradient(135deg, var(--c-navy), #0C1838);
    color: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;

    position: relative;
    overflow: hidden;
}

.profile-onboarding::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(194,10,98,.3), transparent 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.profile-onboarding-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;

    background: rgba(255,255,255,.1);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    position: relative;
}

.profile-onboarding-body {
    flex-grow: 1;
    position: relative;
}

.profile-onboarding-progress {
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.profile-progress-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;

    background:
        conic-gradient(
            var(--c-primary) calc(var(--percent) * 1%),
            rgba(255,255,255,.12) 0
        );

    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
    font-weight: 800;
    font-size: .95rem;
}

.profile-progress-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #0C1838;
}

.profile-progress-ring span {
    position: relative;
    z-index: 1;
}

.profile-onboarding-progress-label {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    margin-top: .4rem;
}


/* ----- Stat cards ----- */
.profile-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 10, 98, .18);
    box-shadow: var(--shadow-sm);
}

.profile-stat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
}

.profile-stat-icon.is-primary { background: var(--c-primary-light); color: var(--c-primary); }
.profile-stat-icon.is-info    { background: #E8EEF9;                 color: #193A7A; }
.profile-stat-icon.is-success { background: #E7F7EE;                 color: #12805C; }
.profile-stat-icon.is-muted   { background: var(--c-grey-100);       color: var(--c-grey-600); }

.profile-stat-body {
    flex-grow: 1;
    min-width: 0;
}

.profile-stat-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);
    margin-bottom: .35rem;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.15;
    margin-bottom: .5rem;
}

.profile-stat-hint {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin: .35rem 0 0;
}

.profile-stat-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    font-size: .82rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.profile-stat-link:hover { color: var(--c-primary-dark); }

.profile-stat-bar {
    height: 5px;
    background: var(--c-grey-100);
    border-radius: 3px;
    overflow: hidden;
}

.profile-stat-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), #D71874);
    border-radius: inherit;
    transition: width .4s ease;
}

.profile-stat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}


/* ----- Next steps ----- */
.profile-next-steps {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
}

.profile-next-steps-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.profile-next-steps-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
}

.profile-next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.profile-next-step {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: .6rem .75rem;
    border-radius: 8px;

    color: var(--c-charcoal);
    text-decoration: none;
    font-size: .9rem;

    transition: background .2s ease, color .2s ease;
}

.profile-next-step:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.profile-next-step > i:first-child {
    color: var(--c-grey-300);
    font-size: .9rem;
}

.profile-next-step:hover > i:first-child {
    color: var(--c-primary);
}

.profile-next-step-arrow {
    margin-left: auto;
    opacity: 0;
    color: var(--c-primary);
    transition: opacity .2s ease, transform .2s ease;
}

.profile-next-step:hover .profile-next-step-arrow {
    opacity: 1;
    transform: translateX(2px);
}


/* ----- Editor layout ----- */
.profile-editor {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-editor-nav {
    position: sticky;
    top: 90px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.profile-editor-nav-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);
    margin-bottom: .85rem;
}

.profile-editor-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.profile-editor-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;

    padding: .5rem .65rem;
    border-radius: 8px;

    color: var(--c-charcoal);
    font-size: .85rem;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.profile-editor-nav-link:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.profile-editor-nav-link i {
    color: var(--c-grey-400, #9CA3AF);
    font-size: .9rem;
    width: 16px;
    text-align: center;
}

.profile-editor-nav-link:hover i {
    color: var(--c-primary);
}


/* ----- Sections ----- */
.profile-section {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;

    scroll-margin-top: 90px;
}

.profile-section-head {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.profile-section-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;

    background: var(--c-grey-100);
    color: var(--c-navy);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.05rem;
}

.profile-section-icon.is-accent {
    background: linear-gradient(135deg, var(--c-primary), #A40853);
    color: var(--c-white);
    box-shadow: 0 8px 20px rgba(194, 10, 98, .25);
}

.profile-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: .1rem;
}

.profile-section-sub {
    font-size: .8rem;
    color: var(--c-grey-600);
    margin: 0;
}

.profile-section .form-label {
    color: var(--c-navy);
}

.profile-section .form-control,
.profile-section .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.profile-section .form-control:focus,
.profile-section .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Availability quick-set ----- */
.availability-quick {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.availability-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .55rem 1rem;
    border-radius: 10px;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    color: var(--c-navy);

    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;

    transition: all .2s ease;
}

.availability-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.availability-btn.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-white);
    box-shadow: 0 6px 16px rgba(194, 10, 98, .25);
}

.availability-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.availability-feedback {
    min-height: 1.15rem;
    margin-top: .65rem;
    font-size: .82rem;
}

.availability-feedback.is-success { color: #12805C; }
.availability-feedback.is-error   { color: #B02A37; }


/* ----- Specialization chips ----- */
.spec-check {
    display: flex;
    align-items: center;
    gap: .55rem;

    padding: .55rem .85rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 31, 72, .1);

    cursor: pointer;
    font-size: .88rem;

    transition: all .2s ease;
}

.spec-check:hover {
    border-color: rgba(194, 10, 98, .3);
    background: var(--c-primary-light);
}

.spec-check input[type="checkbox"] {
    margin: 0;
    accent-color: var(--c-primary);
}


/* ----- Character count ----- */
.profile-char-count {
    font-size: .75rem;
    color: var(--c-grey-500);
    text-align: right;
    margin-top: .3rem;
}


/* ----- Current resume ----- */
.profile-current-file {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    margin-top: .6rem;
    padding: .5rem .85rem;
    border-radius: 10px;

    background: var(--c-grey-50);
    border: 1px dashed rgba(16, 31, 72, .12);

    font-size: .85rem;
    color: var(--c-grey-600);
}

.profile-current-file > i {
    color: var(--c-primary);
    font-size: 1rem;
}

.profile-current-file-link {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: .35rem;
}

.profile-current-file-link:hover {
    text-decoration: underline;
}


/* ----- Visibility toggle ----- */
.profile-visibility-toggle {
    display: flex;
    align-items: flex-start;
    gap: .85rem;

    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 31, 72, .12);
    background: var(--c-grey-50);

    cursor: pointer;
    transition: all .2s ease;
}

.profile-visibility-toggle:hover {
    border-color: rgba(194, 10, 98, .3);
    background: var(--c-primary-light);
}

.profile-visibility-toggle input {
    margin-top: .2rem;
    accent-color: var(--c-primary);
}

.profile-visibility-toggle strong {
    display: block;
    color: var(--c-navy);
    font-size: .95rem;
    margin-bottom: .15rem;
}

.profile-visibility-toggle small {
    color: var(--c-grey-600);
    font-size: .82rem;
}


/* ----- Form actions ----- */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;

    padding: 1.5rem 0 2rem;
}


/* ----- Sticky save bar ----- */
.profile-save-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    background: var(--c-navy);
    color: var(--c-white);

    padding: .85rem 1.25rem;
    box-shadow: 0 -8px 24px rgba(16, 31, 72, .15);

    z-index: 1040;
    animation: profileSaveBarIn .25s ease;
}

.profile-save-bar-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.profile-save-bar-text {
    font-size: .9rem;
    font-weight: 600;
}

.profile-save-bar-actions {
    display: flex;
    gap: .5rem;
}

@keyframes profileSaveBarIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Give the page bottom padding so the bar doesn't cover the actions */
body:has(.profile-save-bar:not([hidden])) {
    padding-bottom: 90px;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .profile-editor {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-editor-nav {
        display: none;
    }

    .profile-onboarding {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .profile-section {
        padding: 1.15rem;
    }

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

    .profile-actions .btn {
        width: 100%;
    }

    .profile-save-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-save-bar-actions {
        justify-content: flex-end;
    }
}



/* =====================================================
   DASHBOARD — PROFILE ANALYTICS
===================================================== */

/* Reuses .stat-card from the previous block. Adds: */

/* ----- Sparkline ----- */
.stat-card-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 2px;

    height: 32px;
    margin: .6rem 0 .35rem;
}

.stat-card-sparkline span {
    flex: 1 1 0;
    min-width: 3px;

    background: linear-gradient(
        180deg,
        var(--c-primary),
        rgba(194, 10, 98, .35)
    );
    border-radius: 2px 2px 0 0;

    transition: opacity .2s ease;
}

.stat-card-sparkline span:hover {
    opacity: .75;
}


/* ----- Stat card link ----- */
.stat-card-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    margin-top: .6rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;

    transition: gap .2s ease;
}

.stat-card-link:hover {
    gap: .5rem;
    color: var(--c-primary-dark);
}

.stat-card-link i {
    font-size: .75rem;
}


/* ----- Viewers panel ----- */
.profile-viewers {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.profile-viewers-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;

    padding-bottom: 1rem;
    margin-bottom: 1rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}


/* ----- Viewer list ----- */
.profile-viewers-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.profile-viewer {
    display: flex;
    align-items: center;
    gap: .85rem;

    padding: .65rem .75rem;
    border-radius: 12px;

    transition: background .2s ease;
}

.profile-viewer:hover {
    background: var(--c-grey-50);
}

/* Avatar */
.profile-viewer-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--c-primary),
        var(--c-navy)
    );
    color: var(--c-white);

    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;

    overflow: hidden;
}

.profile-viewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-viewer-avatar.is-anon {
    background: var(--c-grey-100);
    color: var(--c-grey-500);
    font-weight: 600;
    font-size: 1rem;
}

/* Body */
.profile-viewer-body {
    flex-grow: 1;
    min-width: 0;
}

.profile-viewer-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;

    font-size: .9rem;
    color: var(--c-navy);
    line-height: 1.3;
}

.profile-viewer-name em {
    color: var(--c-grey-600);
    font-style: italic;
}

.profile-viewer-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;

    padding: .15rem .5rem;
    border-radius: 999px;

    background: #E8EEF9;
    color: #193A7A;

    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-viewer-tag i {
    font-size: .7rem;
}

.profile-viewer-meta {
    font-size: .78rem;
    color: var(--c-grey-500);
    margin-top: .15rem;
}


/* ----- Empty state ----- */
.profile-viewers-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.profile-viewers-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    margin: 0 auto;
}


/* ----- Share input ----- */
.profile-share {
    display: flex;
    align-items: stretch;

    max-width: 420px;
    margin: 0 auto;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .12);
    border-radius: 12px;
    overflow: hidden;
}

.profile-share input {
    flex-grow: 1;
    border: 0;
    padding: .65rem .9rem;

    font-size: .82rem;
    color: var(--c-navy);
    background: transparent;

    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.profile-share-copy {
    width: 44px;
    border: 0;
    border-left: 1px solid rgba(16, 31, 72, .08);

    background: transparent;
    color: var(--c-grey-500);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all .2s ease;
}

.profile-share-copy:hover {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

.profile-share-copy.is-copied {
    background: #E7F7EE;
    color: #12805C;
}


/* ----- Responsive ----- */
@media (max-width: 575px) {
    .profile-viewers {
        padding: 1.25rem;
    }

    .profile-viewer {
        padding: .55rem .5rem;
    }

    .profile-share input {
        font-size: .78rem;
    }
}


/* =====================================================
   ADMIN — FILTERS, BULK BAR, TECHNICIANS TABLE
===================================================== */

/* ----- Filter form ----- */
.admin-filters {
    padding: .85rem 1rem;
    margin-bottom: 1rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);
    border-radius: 12px;
}

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

.admin-filters-search {
    position: relative;
    flex: 1 1 220px;
}

.admin-filters-search > i {
    position: absolute;
    top: 50%;
    left: .8rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
    font-size: .85rem;
}

.admin-filters-search .form-control {
    padding-left: 2.2rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background: var(--c-white);
}

.admin-filters-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-filters .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
    background-color: var(--c-white);
    flex: 0 1 auto;
    min-width: 140px;
}

.admin-filters .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-filters-clear {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .35rem .7rem;
    border-radius: 8px;

    color: var(--c-grey-600);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.admin-filters-clear:hover {
    background: var(--c-grey-100);
    color: var(--c-navy);
}


/* ----- Filter chips ----- */
.admin-filters-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;

    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.admin-filters-chips-label {
    font-size: .78rem;
    color: var(--c-grey-600);
    font-weight: 600;
}

.admin-chip {
    display: inline-flex;
    align-items: center;

    padding: .22rem .65rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .75rem;
    font-weight: 600;
}


/* ----- Bulk action bar ----- */
.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;

    padding: .7rem 1rem;
    margin-bottom: 1rem;

    background: linear-gradient(
        135deg,
        var(--c-navy),
        #0C1838
    );
    color: var(--c-white);

    border-radius: 12px;

    animation: bulkSlideIn .25s ease;
}

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

.admin-bulk-count {
    display: flex;
    align-items: baseline;
    gap: .3rem;

    font-size: .88rem;
    font-weight: 600;
}

.admin-bulk-count strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c-white);
}

.admin-bulk-count span {
    color: rgba(255, 255, 255, .7);
}

.admin-bulk-select {
    background: rgba(255, 255, 255, .1) !important;
    color: var(--c-white) !important;
    border-color: rgba(255, 255, 255, .2) !important;
    min-width: 180px;
}

.admin-bulk-select option {
    color: var(--c-navy);
    background: var(--c-white);
}

.admin-bulk-clear {
    margin-left: auto;

    width: 32px;
    height: 32px;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--c-white);

    cursor: pointer;
    transition: all .2s ease;
}

.admin-bulk-clear:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .5);
}


/* ----- Table checkbox column ----- */
.admin-table-check {
    width: 44px;
    text-align: center;
}

.admin-table-check .form-check-input {
    cursor: pointer;
}


/* ----- Technician cell ----- */
.admin-tech-name {
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.3;
}

.admin-tech-sub {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}

.admin-tech-sub code {
    background: var(--c-grey-100);
    color: var(--c-navy);
    padding: .05rem .4rem;
    border-radius: 4px;
    font-size: .72rem;
}

.admin-cell-muted {
    color: var(--c-grey-600);
}


/* ----- Profile progress ----- */
.admin-progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 100px;
}

.admin-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--c-grey-100);
    border-radius: 6px;
    overflow: hidden;
}

.admin-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), #D71874);
    border-radius: inherit;
    transition: width .35s ease;
}

.admin-progress-value {
    font-size: .72rem;
    font-weight: 700;
    color: var(--c-grey-600);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
}


/* ----- Verified cell ----- */
.admin-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    border-radius: 8px;

    font-size: .95rem;
}

.admin-verified.is-yes {
    background: #E7F7EE;
    color: #12805C;
}

.admin-verified.is-no {
    background: var(--c-grey-100);
    color: var(--c-grey-500);
}


/* ----- Status pills ----- */
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .28rem .7rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-status-pill.is-success   { background: #E7F7EE; color: #12805C; }
.admin-status-pill.is-secondary { background: var(--c-grey-100); color: var(--c-grey-600); }
.admin-status-pill.is-danger    { background: #FBE9E7; color: #B02A37; }


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .admin-filters .form-select {
        min-width: 120px;
    }
}

@media (max-width: 767px) {
    .admin-filters-row {
        gap: .4rem;
    }

    .admin-filters-search {
        flex-basis: 100%;
    }

    .admin-bulk-bar {
        padding: .6rem .75rem;
    }

    .admin-bulk-select {
        min-width: 0;
        flex: 1 1 100%;
    }
}




/* =====================================================
   ADMIN — TECHNICIAN DETAIL
===================================================== */

/* ----- Breadcrumb ----- */
.admin-breadcrumb {
    margin-bottom: 1.25rem;
    font-size: .85rem;
    color: var(--c-grey-600);
}

.admin-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-breadcrumb li + li::before {
    content: "/";
    margin-right: .5rem;
    color: var(--c-grey-300);
}

.admin-breadcrumb a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    color: var(--c-primary);
}

.admin-breadcrumb [aria-current="page"] {
    color: var(--c-navy);
    font-weight: 600;
}


/* ----- Panel subtitle (reuses .admin-panel) ----- */
.admin-panel-subtitle {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-600);
    margin-bottom: .75rem;
}

.admin-panel-icon.is-success {
    background: #E7F7EE;
    color: #12805C;
}


/* ----- Avatar ----- */
.tech-profile-avatar {
    margin-bottom: 1rem;
}

.tech-profile-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;

    border: 4px solid var(--c-white);
    box-shadow: var(--shadow-md);
}

.tech-profile-avatar-fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: .03em;
    margin: 0 auto;

    border: 4px solid var(--c-white);
    box-shadow: var(--shadow-md);
}

.tech-profile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-navy);
    margin-bottom: .25rem;
    line-height: 1.3;

    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tech-profile-title {
    font-size: .85rem;
    color: var(--c-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-profile-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;

    display: flex;
    flex-direction: column;
    gap: .4rem;

    font-size: .85rem;
    color: var(--c-grey-600);
}

.tech-profile-meta li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.tech-profile-meta i {
    color: var(--c-primary);
}

.tech-profile-meta a {
    color: var(--c-grey-600);
    text-decoration: none;
}

.tech-profile-meta a:hover {
    color: var(--c-primary);
}

/* Profile status pill */
.tech-profile-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .35rem .85rem;
    border-radius: 999px;

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tech-profile-status.is-active {
    background: #E7F7EE;
    color: #12805C;
}

.tech-profile-status.is-suspended {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}

/* Public URL */
.tech-profile-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;

    margin-top: 1rem;
    padding: .55rem .7rem;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);
    border-radius: 10px;

    font-size: .8rem;
}

.tech-profile-url > i {
    color: var(--c-primary);
}

.tech-profile-url a {
    color: var(--c-navy);
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.tech-profile-url a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.tech-copy-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid transparent;
    color: var(--c-grey-500);

    font-size: .8rem;
    cursor: pointer;
    transition: all .2s ease;
}

.tech-copy-btn:hover {
    background: var(--c-white);
    border-color: rgba(16, 31, 72, .12);
    color: var(--c-navy);
}

.tech-copy-btn.is-copied {
    background: #E7F7EE;
    border-color: #12805C;
    color: #12805C;
}


/* ----- Action stack ----- */
.admin-actions-stack {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.admin-actions-stack .btn {
    text-align: left;
    justify-content: flex-start;
}


/* ----- Quick stats ----- */
.tech-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.tech-stats-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.tech-stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.tech-stats-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1.1;
}

.tech-stats-unit {
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-grey-500);
    margin-left: .15rem;
}

.tech-stats-label {
    font-size: .78rem;
    color: var(--c-grey-600);
    margin-top: .15rem;
}


/* ----- Detail grid ----- */
.tech-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin: 0;
}

.tech-details-grid > div {
    min-width: 0;
}

.tech-details-grid dt {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-grey-500);
    margin-bottom: .2rem;
}

.tech-details-grid dd {
    font-size: .92rem;
    color: var(--c-navy);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

/* Inline pills for detail values */
.tech-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .18rem .6rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 600;
}

.tech-inline-pill.is-public,
.tech-inline-pill.is-verified {
    background: #E7F7EE;
    color: #12805C;
}

.tech-inline-pill.is-private,
.tech-inline-pill.is-unverified {
    background: var(--c-grey-100);
    color: var(--c-grey-600);
}


/* ----- Bio ----- */
.tech-bio {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(16, 31, 72, .1);
}

.tech-bio-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-500);
    margin-bottom: .5rem;
}

.tech-bio p {
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.7;
    margin: 0;
}


/* ----- Tag cloud ----- */
.tech-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.tech-tag {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 8px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .08);

    color: var(--c-navy);
    font-size: .82rem;
    font-weight: 500;
}


/* ----- Status pill (registrations, applications) ----- */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;

    padding: .22rem .65rem;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tech-pill i {
    font-size: .75rem;
}

.tech-pill.is-success   { background: #E7F7EE; color: #12805C; }
.tech-pill.is-warning   { background: #FFF4E0; color: #A96A00; }
.tech-pill.is-danger    { background: #FBE9E7; color: #B02A37; }
.tech-pill.is-info      { background: #E8EEF9; color: #193A7A; }
.tech-pill.is-primary   { background: var(--c-primary-light); color: var(--c-primary); }
.tech-pill.is-muted     { background: var(--c-grey-100); color: var(--c-grey-600); }


/* ----- Certificates grid ----- */
.tech-cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tech-cert-tile {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    padding: .45rem .85rem;
    border-radius: 10px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .08);

    color: var(--c-navy);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.tech-cert-tile:hover {
    background: var(--c-primary-light);
    border-color: rgba(194, 10, 98, .25);
    color: var(--c-primary);
}

.tech-cert-tile i {
    color: var(--c-primary);
}


/* ----- Table link ----- */
.tech-table-link {
    color: var(--c-navy);
    text-decoration: none;
    font-weight: 600;
}

.tech-table-link:hover {
    color: var(--c-primary);
}


/* ----- Recent viewers ----- */
.tech-viewers-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tech-viewer {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: .6rem .75rem;
    border-radius: 10px;
    background: var(--c-grey-50);
}

.tech-viewer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;

    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.tech-viewer-body {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.tech-viewer-body strong {
    color: var(--c-navy);
    font-size: .88rem;
}

.tech-viewer-tag {
    padding: .12rem .5rem;
    border-radius: 999px;

    background: var(--c-primary-light);
    color: var(--c-primary);

    font-size: .68rem;
    font-weight: 700;
    text-transform: capitalize;
}

.tech-viewer-time {
    font-size: .75rem;
    color: var(--c-grey-500);
    white-space: nowrap;
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .tech-details-grid {
        grid-template-columns: 1fr;
    }

    .tech-viewer {
        flex-wrap: wrap;
    }

    .tech-viewer-time {
        width: 100%;
        padding-left: 42px;
    }
}



/* =====================================================
   ADMIN — TECHNICIAN EDIT FORM
===================================================== */

/* ----- Header ----- */
.admin-edit-header {
    display: flex;
    align-items: center;
    gap: 1rem;

    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-edit-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-edit-avatar img,
.admin-edit-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--c-white);
    box-shadow: var(--shadow-sm);
}

.admin-edit-avatar-fallback {
    background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
    color: var(--c-white);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .03em;
}

.admin-edit-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-navy);
    margin: 0;
    line-height: 1.3;

    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.admin-edit-verified {
    color: #12805C;
    font-size: .9em;
}

.admin-edit-sub {
    font-size: .82rem;
    color: var(--c-grey-600);
    margin: .15rem 0 0;
}


/* ----- Sections ----- */
.admin-edit-form {
    padding-bottom: 6rem; /* leave room for the sticky bar */
}

.admin-edit-section {
    background: var(--c-white);
    border: 1px solid rgba(16, 31, 72, .08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-edit-section-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;

    padding-bottom: 1rem;
    margin-bottom: 1.25rem;

    border-bottom: 1px dashed rgba(16, 31, 72, .1);
}

.admin-edit-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;

    background: var(--c-primary-light);
    color: var(--c-primary);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.admin-edit-section-icon.is-accent {
    background: linear-gradient(135deg, var(--c-primary), #A40853);
    color: var(--c-white);
    box-shadow: 0 8px 20px rgba(194, 10, 98, .25);
}


/* ----- Form controls ----- */
.admin-edit-form .form-label {
    color: var(--c-navy);
}

.admin-edit-form .form-control,
.admin-edit-form .form-select {
    border-color: rgba(16, 31, 72, .12);
    border-radius: 10px;
}

.admin-edit-form .form-control:focus,
.admin-edit-form .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}

.admin-edit-form textarea {
    resize: vertical;
    min-height: 80px;
}


/* ----- Character counter ----- */
.admin-edit-count {
    font-variant-numeric: tabular-nums;
    color: var(--c-grey-500);
}

.admin-edit-count.is-over {
    color: #A96A00;
    font-weight: 600;
}


/* ----- Specialization search ----- */
.admin-edit-spec-search {
    position: relative;
}

.admin-edit-spec-search > i {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    color: var(--c-grey-500);
    pointer-events: none;
    font-size: .85rem;
}

.admin-edit-spec-search .form-control {
    padding-left: 2.1rem;
    border-color: rgba(16, 31, 72, .12);
    border-radius: 8px;
}

.admin-edit-spec-search .form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(194, 10, 98, .15);
}


/* ----- Toggle rows (visibility section) ----- */
.admin-edit-toggles {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.admin-edit-toggle {
    display: flex;
    align-items: flex-start;
    gap: .85rem;

    padding: 1rem 1.15rem;
    border-radius: 12px;

    background: var(--c-grey-50);
    border: 1px solid rgba(16, 31, 72, .06);

    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.admin-edit-toggle:hover {
    background: var(--c-white);
    border-color: rgba(194, 10, 98, .18);
}

.admin-edit-toggle input {
    margin-top: .25rem;
    flex-shrink: 0;
}

.admin-edit-toggle input:checked + span strong {
    color: var(--c-primary);
}

.admin-edit-toggle span {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.admin-edit-toggle strong {
    color: var(--c-navy);
    font-size: .92rem;
}

.admin-edit-toggle small {
    color: var(--c-grey-600);
    font-size: .8rem;
    line-height: 1.5;
}

.admin-edit-toggle small a {
    color: var(--c-primary);
    text-decoration: none;
}

.admin-edit-toggle small a:hover {
    text-decoration: underline;
}


/* ----- Sticky action bar ----- */
.admin-edit-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;

    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(16, 31, 72, .08);
    box-shadow: 0 -8px 20px rgba(16, 31, 72, .06);
}

.admin-edit-actions-inner {
    max-width: 1140px;
    margin: 0 auto;

    padding: .85rem 1rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-edit-actions-hint {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    color: #A96A00;
    font-size: .82rem;
    font-weight: 600;
}

.admin-edit-actions-buttons {
    display: flex;
    gap: .5rem;
    margin-left: auto;
}


/* ----- Responsive ----- */
@media (max-width: 767px) {
    .admin-edit-header {
        padding: 1rem 1.25rem;
    }

    .admin-edit-section {
        padding: 1.25rem;
    }

    .admin-edit-actions-inner {
        flex-wrap: wrap;
    }

    .admin-edit-actions-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .admin-edit-actions-buttons .btn {
        flex: 1 1 auto;
    }
}

/* Honeypot fields — invisible to humans, visible to bots */
.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}