/* ==========================================================================
   Fredicare Logistics — Design System
   Palette: Deep Teal (trust / healthcare) + Energetic Orange (speed / logistics)
   Every colour lives in a CSS variable so the Superadmin can rebrand later.
   ========================================================================== */

:root {
    /* Brand */
    --fc-teal-900: #063F3A;
    --fc-teal-800: #08544D;
    --fc-teal-700: #0B6B62;
    --fc-teal-600: #0E857A;
    --fc-teal-500: #14A394;
    --fc-teal-100: #D6F1EE;
    --fc-teal-50: #EEF9F8;

    --fc-orange-700: #D14A11;
    --fc-orange-600: #F05A21;
    --fc-orange-500: #FF6A2B;
    --fc-orange-400: #FF8A56;
    --fc-orange-100: #FFE3D6;

    --fc-ink: #0F1B1E;
    --fc-body: #46565B;
    --fc-muted: #7A8A8F;
    --fc-line: #E3EAEB;
    --fc-surface: #FFFFFF;
    --fc-surface-2: #F6F9F9;

    /* Semantic aliases (overridable from dashboard brand settings) */
    --fc-primary: var(--fc-teal-700);
    --fc-primary-dark: var(--fc-teal-900);
    --fc-primary-light: var(--fc-teal-500);
    --fc-accent: var(--fc-orange-500);
    --fc-accent-dark: var(--fc-orange-600);

    /* Gradients */
    --fc-gradient: linear-gradient(135deg, #063F3A 0%, #0B6B62 45%, #14A394 100%);
    --fc-gradient-accent: linear-gradient(135deg, #FF6A2B 0%, #FF8A56 100%);
    --fc-gradient-mesh: radial-gradient(circle at 18% 20%, rgba(255, 106, 43, .18), transparent 42%),
                        radial-gradient(circle at 82% 12%, rgba(20, 163, 148, .22), transparent 46%),
                        linear-gradient(140deg, #04322E 0%, #08544D 55%, #0E857A 100%);

    /* Elevation */
    --fc-shadow-xs: 0 1px 2px rgba(15, 27, 30, .05);
    --fc-shadow-sm: 0 4px 12px rgba(15, 27, 30, .06);
    --fc-shadow: 0 12px 32px rgba(15, 27, 30, .09);
    --fc-shadow-lg: 0 24px 60px rgba(15, 27, 30, .14);
    --fc-shadow-accent: 0 14px 34px rgba(255, 106, 43, .28);
    --fc-shadow-primary: 0 14px 34px rgba(11, 107, 98, .25);

    /* Geometry */
    --fc-radius-sm: 10px;
    --fc-radius: 16px;
    --fc-radius-lg: 24px;
    --fc-radius-xl: 32px;
    --fc-nav-h: 76px;

    --fc-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fc-nav-h) + 16px); }

body {
    font-family: var(--fc-font);
    color: var(--fc-body);
    background: var(--fc-surface);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .fc-display {
    color: var(--fc-ink);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1, .fc-display { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

a { color: var(--fc-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--fc-accent); }

p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; }

::selection { background: var(--fc-accent); color: #fff; }

.text-ink { color: var(--fc-ink) !important; }
.text-body-soft { color: var(--fc-body) !important; }
.text-muted-soft { color: var(--fc-muted) !important; }
.text-teal { color: var(--fc-primary) !important; }
.text-accent { color: var(--fc-accent) !important; }
.bg-teal { background: var(--fc-primary) !important; }
.bg-teal-soft { background: var(--fc-teal-50) !important; }
.bg-accent { background: var(--fc-accent) !important; }
.bg-surface-2 { background: var(--fc-surface-2) !important; }
.bg-gradient-brand { background: var(--fc-gradient) !important; }
.bg-gradient-mesh { background: var(--fc-gradient-mesh) !important; }
.fw-800 { font-weight: 800 !important; }
.fw-700 { font-weight: 700 !important; }
.lh-lg { line-height: 1.75 !important; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fc-primary);
    background: var(--fc-teal-50);
    border: 1px solid var(--fc-teal-100);
    padding: .45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.eyebrow.on-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.eyebrow.accent { background: var(--fc-orange-100); border-color: rgba(255, 106, 43, .25); color: var(--fc-orange-700); }

.section-title { margin-bottom: .65rem; }
.section-lead { font-size: 1.06rem; color: var(--fc-body); max-width: 640px; }
.mx-auto-lead { margin-left: auto; margin-right: auto; }

.gradient-text {
    background: var(--fc-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-teal {
    background: linear-gradient(120deg, var(--fc-teal-500), var(--fc-teal-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn {
    font-weight: 700;
    border-radius: 100px;
    padding: .72rem 1.6rem;
    transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .18s ease;
    border-width: 2px;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-fc-primary {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: #fff;
    box-shadow: var(--fc-shadow-primary);
}
.btn-fc-primary:hover, .btn-fc-primary:focus {
    background: var(--fc-primary-dark);
    border-color: var(--fc-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(11, 107, 98, .32);
}

.btn-fc-accent {
    background: var(--fc-gradient-accent);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--fc-shadow-accent);
}
.btn-fc-accent:hover, .btn-fc-accent:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(255, 106, 43, .38);
}

.btn-fc-outline {
    background: transparent;
    border-color: var(--fc-line);
    color: var(--fc-ink);
}
.btn-fc-outline:hover { border-color: var(--fc-primary); color: var(--fc-primary); background: var(--fc-teal-50); }

.btn-fc-ghost-light {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-fc-ghost-light:hover { background: #fff; color: var(--fc-primary-dark); border-color: #fff; }

.btn-fc-white { background: #fff; border-color: #fff; color: var(--fc-primary-dark); }
.btn-fc-white:hover { background: var(--fc-orange-500); border-color: var(--fc-orange-500); color: #fff; }

.btn-lg { padding: .9rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1rem; font-size: .84rem; }

.btn-link-accent { color: var(--fc-accent); font-weight: 700; padding: 0; }
.btn-link-accent:hover { color: var(--fc-orange-700); }

/* ------------------------------------------------------------------ */
/* Navbar                                                             */
/* ------------------------------------------------------------------ */

.fc-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--fc-nav-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--fc-line);
    transition: box-shadow .25s ease, background .25s ease;
}
.fc-navbar.scrolled { box-shadow: var(--fc-shadow-sm); }

.fc-navbar .navbar-brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--fc-ink); }
.fc-logo {
    height: 46px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}
.fc-logo-mark {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--fc-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--fc-shadow-primary);
    flex: 0 0 auto;
}
.fc-brand-text { line-height: 1.05; }
.fc-brand-name { font-size: 1.14rem; font-weight: 800; color: var(--fc-ink); letter-spacing: -.02em; }
.fc-brand-tag { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fc-accent); }

.fc-navbar .nav-link {
    font-weight: 600;
    color: var(--fc-ink);
    padding: .55rem .9rem !important;
    border-radius: 100px;
    font-size: .95rem;
}
.fc-navbar .nav-link:hover,
.fc-navbar .nav-link.active { color: var(--fc-primary); background: var(--fc-teal-50); }

.fc-navbar .dropdown-menu {
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: .5rem;
    min-width: 250px;
}
.fc-navbar .dropdown-item {
    border-radius: var(--fc-radius-sm);
    font-weight: 600;
    padding: .6rem .8rem;
    color: var(--fc-ink);
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.fc-navbar .dropdown-item:hover { background: var(--fc-teal-50); color: var(--fc-primary); }
.fc-navbar .dropdown-item i { font-size: 1.05rem; color: var(--fc-accent); margin-top: .15rem; }

.fc-topbar {
    background: var(--fc-gradient);
    color: rgba(255, 255, 255, .92);
    font-size: .84rem;
    padding: .5rem 0;
}
.fc-topbar a { color: #fff; font-weight: 600; }
.fc-topbar a:hover { color: var(--fc-orange-400); }
.fc-topbar .divider { opacity: .35; }

/* ------------------------------------------------------------------ */
/* Cards                                                              */
/* ------------------------------------------------------------------ */

.fc-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-lg);
    box-shadow: var(--fc-shadow-xs);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s ease, border-color .28s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.fc-card:hover { transform: translateY(-6px); box-shadow: var(--fc-shadow-lg); border-color: var(--fc-teal-100); }
.fc-card-body { padding: 1.6rem; }

.fc-card-icon {
    width: 58px; height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--fc-teal-50);
    color: var(--fc-primary);
    margin-bottom: 1rem;
    flex: 0 0 auto;
}
.fc-card-icon.accent { background: var(--fc-orange-100); color: var(--fc-orange-600); }
.fc-card-icon.solid { background: var(--fc-gradient); color: #fff; }
.fc-card-icon.solid-accent { background: var(--fc-gradient-accent); color: #fff; }

.fc-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem;
    border-radius: var(--fc-radius);
    transition: background .2s ease;
}
.fc-feature:hover { background: var(--fc-surface-2); }
.fc-feature i { color: var(--fc-accent); font-size: 1.4rem; flex: 0 0 auto; margin-top: .15rem; }
.fc-feature h4 { font-size: 1.02rem; margin-bottom: .25rem; font-weight: 700; }
.fc-feature p { font-size: .92rem; margin-bottom: 0; color: var(--fc-body); }

/* Accent bar card */
.fc-card-bordered { border-top: 4px solid var(--fc-accent); }
.fc-card-bordered.teal { border-top-color: var(--fc-primary); }

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */

.fc-hero {
    position: relative;
    background: var(--fc-gradient-mesh);
    color: #fff;
    padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 9vw, 132px);
    overflow: hidden;
}
.fc-hero h1, .fc-hero h2, .fc-hero h3 { color: #fff; }
.fc-hero p { color: rgba(255, 255, 255, .88); }

.fc-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -55% -10%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(20, 163, 148, .35), transparent 70%);
    pointer-events: none;
}

.fc-hero-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 43, .3), transparent 65%);
    top: -120px; right: -80px;
    pointer-events: none;
}

.fc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px;
    padding: .5rem 1.1rem;
    font-size: .85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    margin-bottom: 1.4rem;
}
.fc-hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
    animation: fc-pulse 2s infinite;
}
@keyframes fc-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
    50% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
}

.fc-hero-media {
    border-radius: var(--fc-radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
}

/* Floating stat cards over hero */
.fc-float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow-lg);
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--fc-ink);
    animation: fc-float 5s ease-in-out infinite;
}
.fc-float-card .icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fc-teal-50); color: var(--fc-primary); font-size: 1.15rem;
}
.fc-float-card .value { font-weight: 800; font-size: 1rem; line-height: 1.1; }
.fc-float-card .label { font-size: .72rem; color: var(--fc-muted); font-weight: 600; }
@keyframes fc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Wave divider */
.fc-wave { display: block; width: 100%; height: auto; margin-bottom: -1px; }

/* ------------------------------------------------------------------ */
/* Stats / counters                                                   */
/* ------------------------------------------------------------------ */

.fc-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--fc-radius);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    height: 100%;
}
.fc-stat .value {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.fc-stat .label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
}
.fc-stat.on-light { background: var(--fc-surface-2); border-color: var(--fc-line); }
.fc-stat.on-light .value { color: var(--fc-primary); }
.fc-stat.on-light .label { color: var(--fc-muted); }

/* ------------------------------------------------------------------ */
/* Quick track bar                                                    */
/* ------------------------------------------------------------------ */

.fc-track-bar {
    background: #fff;
    border-radius: var(--fc-radius-lg);
    box-shadow: var(--fc-shadow-lg);
    padding: 1.1rem;
    border: 1px solid var(--fc-line);
}
.fc-track-bar .form-control {
    border: none;
    background: var(--fc-surface-2);
    border-radius: 100px;
    padding: .85rem 1.3rem;
    font-weight: 600;
}
.fc-track-bar .form-control:focus { box-shadow: 0 0 0 3px rgba(11, 107, 98, .14); background: #fff; }

/* ------------------------------------------------------------------ */
/* Forms                                                              */
/* ------------------------------------------------------------------ */

.form-label { font-weight: 700; font-size: .88rem; color: var(--fc-ink); margin-bottom: .4rem; }
.form-control, .form-select {
    border: 1.5px solid var(--fc-line);
    border-radius: var(--fc-radius-sm);
    padding: .72rem 1rem;
    font-size: .95rem;
    color: var(--fc-ink);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--fc-primary-light);
    box-shadow: 0 0 0 4px rgba(20, 163, 148, .13);
    color: var(--fc-ink);
}
.form-control::placeholder { color: #A7B4B8; font-weight: 400; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #E5484D; }
.invalid-feedback { font-weight: 600; font-size: .82rem; }
.form-text { font-size: .82rem; color: var(--fc-muted); }
.form-check-input { border-color: #C9D6D8; }
.form-check-input:checked { background-color: var(--fc-primary); border-color: var(--fc-primary); }
.form-check-input:focus { border-color: var(--fc-primary-light); box-shadow: 0 0 0 3px rgba(20, 163, 148, .16); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }

.input-group-text { background: var(--fc-surface-2); border-color: var(--fc-line); font-weight: 700; }

/* File drop zone */
.fc-dropzone {
    border: 2px dashed var(--fc-line);
    border-radius: var(--fc-radius);
    padding: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    background: var(--fc-surface-2);
}
.fc-dropzone:hover, .fc-dropzone.dragover { border-color: var(--fc-primary-light); background: var(--fc-teal-50); }
.fc-dropzone i { font-size: 2rem; color: var(--fc-primary); display: block; margin-bottom: .5rem; }
.fc-dropzone .hint { font-size: .82rem; color: var(--fc-muted); }

.fc-avatar-preview {
    width: 108px; height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--fc-shadow);
    background: var(--fc-surface-2);
}

/* ------------------------------------------------------------------ */
/* Badges & pills                                                     */
/* ------------------------------------------------------------------ */

.badge { font-weight: 700; letter-spacing: .01em; padding: .42em .8em; border-radius: 100px; font-size: .74rem; }
.badge-soft-success { background: #DCFCE7; color: #15803D; }
.badge-soft-danger { background: #FEE2E2; color: #B91C1C; }
.badge-soft-warning { background: #FEF3C7; color: #B45309; }
.badge-soft-info { background: var(--fc-teal-100); color: var(--fc-teal-800); }
.badge-soft-secondary { background: #EFF3F4; color: #55666B; }
.badge-soft-primary { background: #E0EAFF; color: #1D4ED8; }
.badge-soft-teal { background: var(--fc-teal-100); color: var(--fc-teal-800); }
.badge-soft-orange { background: #FFE8DC; color: #C2410C; }
.badge-accent { background: var(--fc-orange-100); color: var(--fc-orange-700); }

.fc-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .85rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    background: var(--fc-teal-50);
    color: var(--fc-primary);
    border: 1px solid var(--fc-teal-100);
}
.fc-pill.accent { background: var(--fc-orange-100); color: var(--fc-orange-700); border-color: rgba(255, 106, 43, .22); }

/* ------------------------------------------------------------------ */
/* Timeline (tracking)                                                */
/* ------------------------------------------------------------------ */

.fc-timeline { position: relative; padding-left: 34px; }
.fc-timeline::before {
    content: '';
    position: absolute;
    left: 13px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--fc-primary), var(--fc-teal-100));
}
.fc-timeline-item { position: relative; padding-bottom: 1.6rem; }
.fc-timeline-item:last-child { padding-bottom: 0; }
.fc-timeline-item::before {
    content: '';
    position: absolute;
    left: -27px; top: 5px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--fc-line);
}
.fc-timeline-item.done::before { border-color: var(--fc-primary); background: var(--fc-primary); }
.fc-timeline-item.current::before {
    border-color: var(--fc-accent);
    background: var(--fc-accent);
    box-shadow: 0 0 0 5px rgba(255, 106, 43, .18);
    animation: fc-pulse 2s infinite;
}
.fc-timeline-item .time { font-size: .78rem; color: var(--fc-muted); font-weight: 600; }
.fc-timeline-item .title { font-weight: 700; color: var(--fc-ink); font-size: .97rem; }
.fc-timeline-item .note { font-size: .88rem; color: var(--fc-body); }

/* Progress */
.fc-progress { height: 9px; border-radius: 100px; background: var(--fc-line); overflow: hidden; }
.fc-progress .bar {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--fc-primary), var(--fc-teal-500));
    transition: width .8s cubic-bezier(.2, .8, .3, 1);
}
.fc-progress .bar.accent { background: var(--fc-gradient-accent); }

/* ------------------------------------------------------------------ */
/* Steps (booking / rider onboarding)                                 */
/* ------------------------------------------------------------------ */

.fc-steps { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.fc-step {
    flex: 1 1 0;
    min-width: 130px;
    padding: .9rem 1rem;
    border-radius: var(--fc-radius);
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-line);
    display: flex;
    align-items: center;
    gap: .7rem;
}
.fc-step .num {
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; color: var(--fc-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; flex: 0 0 auto;
    border: 1px solid var(--fc-line);
}
.fc-step .txt { font-size: .85rem; font-weight: 700; color: var(--fc-muted); }
.fc-step.active { background: var(--fc-gradient); border-color: transparent; }
.fc-step.active .num { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
.fc-step.active .txt { color: #fff; }
.fc-step.done { border-color: var(--fc-teal-100); background: var(--fc-teal-50); }
.fc-step.done .num { background: var(--fc-primary); color: #fff; border-color: transparent; }
.fc-step.done .txt { color: var(--fc-primary); }

/* ------------------------------------------------------------------ */
/* Testimonials                                                       */
/* ------------------------------------------------------------------ */

.fc-quote {
    background: #fff;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-lg);
    padding: 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease;
}
.fc-quote:hover { transform: translateY(-5px); box-shadow: var(--fc-shadow); }
.fc-quote::before {
    content: '\201C';
    position: absolute;
    top: .5rem; right: 1.4rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--fc-teal-100);
    font-family: Georgia, serif;
}
.fc-quote .stars { color: #F59E0B; font-size: .9rem; margin-bottom: .8rem; }
.fc-quote blockquote { font-size: .98rem; color: var(--fc-body); flex: 1; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.fc-quote .author { display: flex; align-items: center; gap: .8rem; }
.fc-quote .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.fc-quote .author .name { font-weight: 700; color: var(--fc-ink); font-size: .95rem; }
.fc-quote .author .role { font-size: .8rem; color: var(--fc-muted); }

/* ------------------------------------------------------------------ */
/* Accordion (FAQ)                                                    */
/* ------------------------------------------------------------------ */

.fc-accordion .accordion-item {
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
}
.fc-accordion .accordion-button {
    font-weight: 700;
    color: var(--fc-ink);
    padding: 1.15rem 1.4rem;
    font-size: 1rem;
    background: #fff;
}
.fc-accordion .accordion-button:not(.collapsed) { background: var(--fc-teal-50); color: var(--fc-primary); box-shadow: none; }
.fc-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(20, 163, 148, .13); }
.fc-accordion .accordion-body { padding: 1.3rem 1.4rem; color: var(--fc-body); font-size: .95rem; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.fc-footer {
    background: linear-gradient(180deg, #063F3A 0%, #042824 100%);
    color: rgba(255, 255, 255, .72);
    padding-top: clamp(48px, 6vw, 76px);
    font-size: .93rem;
}
.fc-footer h5 {
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.2rem;
    font-weight: 800;
}
.fc-footer a { color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: .45rem; }
.fc-footer a:hover { color: var(--fc-orange-400); transform: translateX(3px); }
.fc-footer .fc-logo { filter: brightness(0) invert(1); }
.fc-footer ul { list-style: none; padding: 0; margin: 0; }
.fc-footer ul li { margin-bottom: .6rem; }
.fc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 3rem;
    padding: 1.4rem 0;
    font-size: .86rem;
}
.fc-social {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .14);
}
.fc-social:hover { background: var(--fc-accent); border-color: var(--fc-accent); transform: translateY(-3px); }

.fc-newsletter .form-control {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    border-radius: 100px;
}
.fc-newsletter .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.fc-newsletter .form-control:focus { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------ */
/* Floating WhatsApp + back to top                                    */
/* ------------------------------------------------------------------ */

.fc-float-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    align-items: flex-end;
}

.fc-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: #25D366;
    color: #fff !important;
    border-radius: 100px;
    padding: .8rem 1.15rem .8rem .9rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    font-weight: 800;
    font-size: .95rem;
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
}
.fc-whatsapp:hover { transform: translateY(-3px) scale(1.02); color: #fff; box-shadow: 0 18px 40px rgba(37, 211, 102, .5); }
.fc-whatsapp i { font-size: 1.5rem; }
.fc-whatsapp .fc-wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: #25D366;
    opacity: .4;
    animation: fc-wa-ring 2.4s cubic-bezier(.2, .8, .3, 1) infinite;
    z-index: -1;
}
@keyframes fc-wa-ring {
    0% { transform: scale(1); opacity: .45; }
    70% { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

.fc-to-top {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--fc-primary);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fc-shadow-primary);
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}
.fc-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fc-to-top:hover { background: var(--fc-accent-dark); }

/* Collapsed WhatsApp on very small screens */
@media (max-width: 575.98px) {
    .fc-whatsapp .label { display: none; }
    .fc-whatsapp { padding: .95rem; border-radius: 50%; }
    .fc-whatsapp i { font-size: 1.6rem; }
}

/* ------------------------------------------------------------------ */
/* Dashboard shell                                                    */
/* ------------------------------------------------------------------ */

.fc-shell { display: flex; min-height: 100vh; background: var(--fc-surface-2); }

.fc-sidebar {
    width: 268px;
    flex: 0 0 268px;
    background: linear-gradient(180deg, #063F3A 0%, #042824 100%);
    color: rgba(255, 255, 255, .78);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1040;
    scrollbar-width: thin;
    transition: transform .3s ease;
}
.fc-sidebar::-webkit-scrollbar { width: 6px; }
.fc-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 100px; }

.fc-sidebar .brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    position: sticky;
    top: 0;
    background: #063F3A;
    z-index: 2;
}
.fc-sidebar .brand .fc-logo { height: 38px; filter: brightness(0) invert(1); }
.fc-sidebar .brand-name { color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.1; }
.fc-sidebar .brand-sub { color: var(--fc-orange-400); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

.fc-sidebar .nav-section {
    padding: 1.1rem 1.3rem .4rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    color: rgba(255, 255, 255, .38);
}
.fc-sidebar .nav-link {
    color: rgba(255, 255, 255, .78);
    padding: .68rem 1.3rem;
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .8rem;
    border-left: 3px solid transparent;
    transition: all .18s ease;
}
.fc-sidebar .nav-link i { font-size: 1.08rem; width: 20px; text-align: center; flex: 0 0 auto; opacity: .9; }
.fc-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.fc-sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 106, 43, .22), transparent);
    border-left-color: var(--fc-accent);
}
.fc-sidebar .nav-link.active i { color: var(--fc-orange-400); opacity: 1; }
.fc-sidebar .nav-link .badge { margin-left: auto; }
.fc-sidebar .sidebar-footer {
    padding: 1rem 1.3rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 1rem;
}

.fc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.fc-topnav {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--fc-line);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(14px, 2.4vw, 28px);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.fc-topnav .page-title { font-size: 1.06rem; font-weight: 800; color: var(--fc-ink); margin: 0; line-height: 1.2; }
.fc-topnav .page-sub { font-size: .78rem; color: var(--fc-muted); }

.fc-content { padding: clamp(16px, 2.4vw, 30px); flex: 1 1 auto; }

.fc-menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--fc-line);
    background: #fff;
    color: var(--fc-ink);
    font-size: 1.2rem;
}

.fc-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 63, 58, .5);
    backdrop-filter: blur(2px);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .fc-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        height: 100vh;
        box-shadow: var(--fc-shadow-lg);
    }
    .fc-sidebar.open { transform: translateX(0); }
    .fc-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .fc-sidebar-backdrop.show { display: block; }
}

/* Stat cards in dashboards */
.fc-kpi {
    background: #fff;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.fc-kpi:hover { transform: translateY(-3px); box-shadow: var(--fc-shadow-sm); }
.fc-kpi .kpi-label {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
    color: var(--fc-muted);
    margin-bottom: .4rem;
}
.fc-kpi .kpi-value {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: var(--fc-ink);
    line-height: 1.1;
    letter-spacing: -.02em;
}
.fc-kpi .kpi-meta { font-size: .78rem; color: var(--fc-muted); font-weight: 600; }
.fc-kpi .kpi-icon {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 42px; height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.fc-kpi::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--fc-primary);
}
.fc-kpi.accent::after { background: var(--fc-accent); }
.fc-kpi.warn::after { background: #F59E0B; }
.fc-kpi.danger::after { background: #EF4444; }

.ki-teal { background: var(--fc-teal-50); color: var(--fc-primary); }
.ki-orange { background: var(--fc-orange-100); color: var(--fc-orange-600); }
.ki-blue { background: #E0EAFF; color: #1D4ED8; }
.ki-amber { background: #FEF3C7; color: #B45309; }
.ki-green { background: #DCFCE7; color: #15803D; }
.ki-red { background: #FEE2E2; color: #B91C1C; }

/* Panel / table card */
.fc-panel {
    background: #fff;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    overflow: hidden;
}
.fc-panel-head {
    padding: 1.05rem 1.3rem;
    border-bottom: 1px solid var(--fc-line);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.fc-panel-head h5 { margin: 0; font-size: 1rem; font-weight: 800; }
.fc-panel-body { padding: 1.3rem; }

.table > :not(caption) > * > * { padding: .85rem .9rem; }
.table thead th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 800;
    color: var(--fc-muted);
    background: var(--fc-surface-2);
    border-bottom: 1px solid var(--fc-line);
    white-space: nowrap;
}
.table tbody tr { border-color: var(--fc-line); }
.table tbody tr:hover { background: var(--fc-teal-50); }
.table td { vertical-align: middle; font-size: .9rem; }

.fc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* User chips */
.fc-user-chip { display: flex; align-items: center; gap: .65rem; }
.fc-user-chip img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--fc-surface-2);
    border: 2px solid #fff;
    box-shadow: var(--fc-shadow-xs);
}
.fc-user-chip .name { font-weight: 700; color: var(--fc-ink); font-size: .9rem; line-height: 1.2; }
.fc-user-chip .meta { font-size: .78rem; color: var(--fc-muted); }

/* Avatar circle fallback */
.fc-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--fc-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex: 0 0 auto;
}
.fc-avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.fc-avatar.xl { width: 96px; height: 96px; font-size: 2rem; }

/* Kanban board */
.fc-kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.fc-kanban-col {
    flex: 0 0 290px;
    min-width: 290px;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
}
.fc-kanban-col .col-head {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--fc-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: .86rem;
    color: var(--fc-ink);
    position: sticky;
    top: 0;
    background: var(--fc-surface-2);
    border-radius: var(--fc-radius) var(--fc-radius) 0 0;
    z-index: 1;
}
.fc-kanban-col .col-body { padding: .75rem; overflow-y: auto; flex: 1; }
.fc-kanban-card {
    background: #fff;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-sm);
    padding: .85rem;
    margin-bottom: .65rem;
    cursor: grab;
    transition: box-shadow .18s ease, transform .18s ease;
}
.fc-kanban-card:hover { box-shadow: var(--fc-shadow-sm); transform: translateY(-2px); }
.fc-kanban-card.dragging { opacity: .5; }
.fc-kanban-col.drop-target { border-color: var(--fc-primary-light); background: var(--fc-teal-50); }
.fc-kanban-card .title { font-weight: 700; font-size: .88rem; color: var(--fc-ink); }
.fc-kanban-card .meta { font-size: .76rem; color: var(--fc-muted); }

/* Auth pages */
.fc-auth-wrap { min-height: 100vh; display: flex; }
.fc-auth-side {
    flex: 1 1 46%;
    background: var(--fc-gradient-mesh);
    color: #fff;
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.fc-auth-side::before {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 43, .28), transparent 68%);
    bottom: -160px; left: -120px;
}
.fc-auth-side h2 { color: #fff; }
.fc-auth-form { flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px) 20px; background: #fff; }
.fc-auth-card { width: 100%; max-width: 460px; }
@media (max-width: 991.98px) { .fc-auth-side { display: none; } }

/* Alerts */
.alert { border: none; border-radius: var(--fc-radius); font-weight: 600; font-size: .92rem; display: flex; align-items: flex-start; gap: .7rem; }
.alert i { font-size: 1.15rem; flex: 0 0 auto; margin-top: .1rem; }
.alert-success { background: #DCFCE7; color: #15803D; }
.alert-danger { background: #FEE2E2; color: #B91C1C; }
.alert-warning { background: #FEF3C7; color: #B45309; }
.alert-info { background: var(--fc-teal-50); color: var(--fc-teal-800); }

/* Toasts */
.fc-toast-wrap { position: fixed; top: 84px; right: 18px; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.fc-toast {
    background: #fff;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow-lg);
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--fc-primary);
    display: flex;
    gap: .7rem;
    animation: fc-slide-in .3s ease;
    font-size: .9rem;
    font-weight: 600;
}
.fc-toast.error { border-left-color: #EF4444; }
.fc-toast.success { border-left-color: #22C55E; }
@keyframes fc-slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Pagination */
.pagination { gap: .25rem; flex-wrap: wrap; }
.page-link {
    border: 1px solid var(--fc-line);
    border-radius: 10px !important;
    color: var(--fc-ink);
    font-weight: 700;
    font-size: .88rem;
    padding: .5rem .8rem;
    margin: 0;
}
.page-link:hover { background: var(--fc-teal-50); color: var(--fc-primary); border-color: var(--fc-teal-100); }
.page-item.active .page-link { background: var(--fc-primary); border-color: var(--fc-primary); color: #fff; }
.page-item.disabled .page-link { color: var(--fc-muted); background: var(--fc-surface-2); }

/* Empty state */
.fc-empty { text-align: center; padding: 3rem 1.5rem; }
.fc-empty .icon {
    width: 78px; height: 78px;
    border-radius: 24px;
    background: var(--fc-teal-50);
    color: var(--fc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin-bottom: 1.1rem;
}
.fc-empty h5 { margin-bottom: .4rem; }
.fc-empty p { color: var(--fc-muted); max-width: 420px; margin: 0 auto 1.3rem; font-size: .93rem; }

/* Misc */
.fc-divider { height: 1px; background: var(--fc-line); margin: 1.5rem 0; border: 0; }
.fc-soft-hr { border-top: 1px dashed var(--fc-line); }
.fc-hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.fc-hover-lift:hover { transform: translateY(-5px); box-shadow: var(--fc-shadow); }
.object-cover { object-fit: cover; }
.fc-sticky-lg { position: sticky; top: calc(var(--fc-nav-h) + 20px); }
.fc-map { width: 100%; border-radius: var(--fc-radius); border: 1px solid var(--fc-line); min-height: 340px; }
.fc-chip-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.fc-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc-scroll-x::-webkit-scrollbar { height: 6px; }
.fc-scroll-x::-webkit-scrollbar-thumb { background: var(--fc-line); border-radius: 100px; }
.fc-mini-bar { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.fc-mini-bar span { flex: 1; background: var(--fc-teal-100); border-radius: 3px 3px 0 0; min-height: 3px; }

/* Reveal on scroll */
.fc-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.fc-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .fc-reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
    .fc-navbar, .fc-footer, .fc-float-stack, .fc-sidebar, .fc-topnav, .no-print { display: none !important; }
    body { background: #fff; }
    .fc-content { padding: 0; }
    .fc-panel { border: none; box-shadow: none; }
}
