:root {
    --forest: #173B2C;
    --forest-2: #1F5C43;
    --forest-3: #2C7A5B;
    --forest-deep: #0D2118;

    --cream: #FAF8F1;
    --panel: #FFFFFF;
    --line: #E7E3D8;
    --ink: #1C2620;
    --muted: #6E7C72;

    --gold: #D2A23E;
    --gold-soft: #E8CD8C;

    --radius: 14px;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.01em;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.hidden {
    display: none !important;
}

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

/* =========================================================
   LOGO
========================================================= */

.text-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #F8F6EE;

    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .01em;

    white-space: nowrap;
}

.text-logo::before {
    content: "";

    width: 18px;
    height: 18px;

    border: 1.5px solid var(--gold-soft);
    border-radius: 70% 30% 70% 30%;

    transform: rotate(-35deg);
}

.lp-brand .text-logo {
    color: var(--forest);
    font-size: 27px;
}

.auth-side .text-logo,
.sidebar .text-logo {
    color: #fff;
}
.logo-image {
    width: 140px;
    height: auto;
    display: block;
}



/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 22px;

    border-radius: 9px;

    font-size: 14.5px;
    font-weight: 700;

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

.btn-primary {
    position: relative;
    overflow: hidden;

    background: var(--forest-2);
    color: #fff;

    border: 1px solid rgba(234,211,154,.38);

    box-shadow:
        0 14px 35px -22px rgba(0,0,0,.8);
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 20px 45px -22px rgba(0,0,0,.85);
}

.btn-primary::after {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    transform: skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.22),
            transparent
        );

    transition: left .6s ease;
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-outline {
    background: transparent;
    color: var(--cream);

    border: 1.5px solid rgba(250,248,241,.55);
}

.btn-outline:hover {
    background: rgba(250,248,241,.12);
}

.btn-block {
    width: 100%;
}

/* =========================================================
   LANDING
========================================================= */

#landing {
    min-height: 100vh;
}

.lp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 48px;

    background: var(--cream);
}
.sidebar-logo {
    width: 155px;
    height: auto;
    display: block;
    object-fit: contain;
}
/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 680px;

    padding: 86px 48px 110px;

    /*
        CSS ONLY BACKGROUND
        No external image.
    */
    background:
        radial-gradient(
            40% 55% at 88% 12%,
            rgba(214,173,85,.18),
            transparent 70%
        ),
        radial-gradient(
            32% 48% at 70% 78%,
            rgba(44,122,91,.28),
            transparent 72%
        ),
        linear-gradient(
            115deg,
            #071D14 0%,
            #123C2B 45%,
            #315A49 72%,
            #DCE5DC 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 16% 42% at 82% 32%,
            rgba(225,238,228,.14) 0 35%,
            transparent 36%
        ),
        radial-gradient(
            ellipse 13% 35% at 91% 58%,
            rgba(225,238,228,.10) 0 35%,
            transparent 36%
        ),
        linear-gradient(
            90deg,
            rgba(4,18,12,.35),
            transparent 65%
        );
}

.hero::after {
    content: "";

    position: absolute;

    right: -8%;
    bottom: -18%;

    width: 55%;
    height: 75%;

    z-index: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 9% 30% at 18% 52%,
            rgba(240,245,238,.18) 0 42%,
            transparent 43%
        ),
        radial-gradient(
            ellipse 8% 28% at 38% 34%,
            rgba(240,245,238,.15) 0 42%,
            transparent 43%
        ),
        radial-gradient(
            ellipse 9% 31% at 58% 62%,
            rgba(240,245,238,.12) 0 42%,
            transparent 43%
        );

    transform: rotate(-18deg);
}

.hero-inner {
    position: relative;
    z-index: 2;

    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr .95fr;

    gap: 56px;

    align-items: center;
}

.hero-veins {
    position: absolute;
    inset: 0;

    z-index: 0;

    opacity: .55;

    pointer-events: none;
}

.hero-illustration {
    display: none !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;

    color: var(--gold-soft);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow .dash {
    width: 22px;
    height: 1.5px;

    background: var(--gold-soft);
}

.hero h1 {
    max-width: 820px;

    color: #F8F6EE;

    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    font-weight: 700;

    line-height: .94;

    letter-spacing: -.055em;

    text-shadow:
        0 8px 35px rgba(0,0,0,.28);
}

/* Requested second line */

.hero h1 .hero-destination {
    display: block;

    margin-top: 8px;

    color: var(--gold-soft);

    font-family: var(--font-display);

    font-style: italic;
    font-weight: 600;

    letter-spacing: -.035em;
}

.hero p.lede {
    max-width: 460px;

    margin: 22px 0 32px;

    color: #C9D5CC;

    font-size: 16.5px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

/* =========================================================
   DECORATIVE VINE
========================================================= */

.vine-wrap {
    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    z-index: 1;

    pointer-events: none;
}

.vine-path {
    fill: none;

    stroke: var(--gold-soft);
    stroke-width: 1.4;

    opacity: .65;

    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;

    animation:
        drawVine 3.2s ease-out forwards .3s;
}

.vine-bloom {
    opacity: 0;

    transform-origin: center;

    animation:
        bloomIn .6s ease-out forwards 3.1s;
}

@keyframes drawVine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bloomIn {
    from {
        opacity: 0;
        transform: scale(.3);
    }

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

/* =========================================================
   TRACKING CARD
========================================================= */

.track-card {
    position: relative;
    z-index: 2;

    overflow: hidden;

    background: rgba(255,255,255,.97);

    border:
        1px solid rgba(255,255,255,.58);

    border-radius: 24px;

    box-shadow:
        0 35px 90px -35px rgba(0,0,0,.72);
}

.track-card-head {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 24px 28px;

    background:
        linear-gradient(
            110deg,
            #081F15,
            #173B2C
        );
}

.track-card-head::after {
    content: "";

    position: absolute;

    right: 20px;

    width: 70px;
    height: 70px;

    border:
        1px solid rgba(210,162,62,.35);

    border-radius: 50%;

    box-shadow:
        inset 0 0 30px rgba(210,162,62,.10);
}

.track-card-head .tc-label {
    color: #EFEFE6;

    font-size: 12.5px;
    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    opacity: .8;
}

.track-card-body {
    padding: 30px;
}

.track-card-body h3 {
    margin-bottom: 4px;

    color: var(--forest);

    font-size: 2.45rem;

    line-height: 1;
}

.track-card-body .hint {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: flex;
    justify-content: space-between;

    margin-bottom: 6px;

    color: var(--ink);

    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    color: var(--ink);

    font-size: 14px;

    background: #F5F3EA;

    border:
        1.5px solid var(--line);

    border-radius: 12px;

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

.field input::placeholder {
    color: #9AA79E;
}

.field input:focus {
    outline: none;

    border-color: var(--gold);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(214,173,85,.10);
}

.field input.invalid {
    border-color: #C0392B;
    background: #FFF7F7;
}

.field-error {
    display: block;

    margin-top: 5px;

    color: #C0392B;

    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   STATUS
========================================================= */

.status-box {
    margin-top: 18px;

    padding: 18px;

    background: rgba(248,246,238,.72);

    border:
        1px solid rgba(23,59,44,.09);

    border-radius: 16px;
}

.status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.status-eyebrow {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .05em;
    text-transform: uppercase;
}

.status-title {
    margin-top: 2px;

    color: var(--forest);

    font-size: 18px;
    font-weight: 700;
}

.pill {
    padding: 5px 12px;

    color: #fff;

    background: var(--forest-3);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

.vine-track {
    position: relative;

    height: 8px;

    margin: 16px 0 8px;

    background: #DCE7DA;

    border-radius: 99px;
}

.vine-fill {
    position: absolute;
    inset: 0;

    width: 72%;

    background:
        linear-gradient(
            90deg,
            var(--forest-3),
            var(--forest)
        );

    border-radius: 99px;
}

.status-pct {
    margin-bottom: 12px;

    color: var(--forest-3);

    font-size: 12px;
    font-weight: 700;

    text-align: right;
}

.status-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}

.status-meta b {
    display: block;

    color: var(--ink);

    font-size: 13px;
}

/* =========================================================
   HOW IT WORKS
========================================================= */

.section {
    position: relative;

    max-width: 1180px;

    margin: 0 auto;

    padding:
        clamp(78px,9vw,128px)
        48px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;
}

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

    width: 24px;
    height: 1px;

    background: var(--gold);
}

.section-title {
    position: relative;

    margin-bottom: 38px;

    color: var(--forest);

    font-size: clamp(2.6rem,4vw,4.4rem);
}

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

    display: block;

    width: 54px;
    height: 2px;

    margin-top: 13px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}

.steps {
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 22px;
}

.step-card {
    position: relative;

    overflow: hidden;

    padding: 30px 28px;

    background:
        linear-gradient(
            180deg,
            #FFFFFF,
            #F8F6EE
        );

    border:
        1px solid rgba(23,59,44,.09);

    border-radius: 20px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 24px 55px -30px rgba(11,36,25,.48);
}

.step-mark {
    margin-bottom: 14px;

    color: var(--gold);

    font-family: var(--font-display);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-bottom: 16px;

    background:
        linear-gradient(
            135deg,
            var(--forest-2),
            var(--forest)
        );

    border-radius: 12px;

    box-shadow:
        0 10px 20px -10px rgba(23,59,44,.5);
}

.step-icon svg {
    width: 24px;
    height: 24px;

    fill: none;

    stroke: #F8F6EE;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-card h4 {
    margin-bottom: 8px;

    color: var(--forest);

    font-size: 17px;
}

.step-card p {
    color: var(--muted);

    font-size: 13.5px;
    line-height: 1.6;
}

.lp-footer {
    padding: 34px 48px;

    color: var(--muted);

    font-size: 12.5px;

    text-align: center;

    border-top:
        1px solid var(--line);
}


/* =========================================================
   CUSTOMER PORTAL
========================================================= */

#customer {
    display: none;
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0%, rgba(210,162,62,.08), transparent 22%),
        var(--cream);
}

#customer.active {
    display: block;
}

.customer-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 34px 50px;
}

.customer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 40px -32px rgba(11,36,25,.45);
    backdrop-filter: blur(10px);
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-brand img {
    width: 138px;
    height: auto;
}

.customer-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg,var(--forest-2),var(--forest));
    border-radius: 50%;
    font-weight: 800;
}

.customer-user-info b {
    display: block;
    color: var(--ink);
    font-size: 13.5px;
}

.customer-user-info span {
    color: var(--muted);
    font-size: 11.5px;
}

.customer-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 20px;
    margin-bottom: 22px;
}

.customer-welcome {
    position: relative;
    overflow: hidden;
    padding: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(232,205,140,.18), transparent 24%),
        linear-gradient(125deg,#071D14,#1F5C43 68%,#2C7A5B);
    border-radius: 24px;
    box-shadow: 0 24px 55px -35px rgba(10,33,23,.8);
}

.customer-welcome::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(232,205,140,.3);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(232,205,140,.035);
}

.customer-welcome .eyebrow {
    margin-bottom: 12px;
}

.customer-welcome h1 {
    max-width: 680px;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem,4vw,3.6rem);
    line-height: 1;
}

.customer-welcome p {
    max-width: 620px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.7;
}

.customer-summary {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.customer-mini-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px -32px rgba(11,36,25,.55);
}

.customer-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.customer-mini-card b {
    display: block;
    margin-top: 7px;
    color: var(--forest);
    font-family: var(--font-display);
    font-size: 28px;
}

.customer-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin: 26px 0 14px;
}

.customer-section-head h2 {
    color: var(--forest);
    font-size: 26px;
}

.customer-section-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.customer-orders {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.customer-order-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 40px -32px rgba(11,36,25,.55);
    transition: transform .2s ease, box-shadow .2s ease;
}

.customer-order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -30px rgba(11,36,25,.6);
}

.customer-order-top,
.customer-order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customer-order-id {
    color: var(--forest);
    font-size: 13px;
    font-weight: 800;
}

.customer-order-product {
    margin: 14px 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 21px;
}

.customer-order-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.customer-order-meta b {
    color: var(--ink);
}

.customer-empty {
    grid-column: 1 / -1;
    padding: 42px 24px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
}

.customer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn-light {
    color: var(--forest);
    background: #F4F5EE;
    border: 1px solid var(--line);
}

.btn-light:hover {
    background: #fff;
    border-color: var(--forest-3);
}

.auth-admin-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    color: var(--forest-2);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.auth-admin-link:hover {
    color: var(--gold);
}

.auth-role-note {
    padding: 10px 13px;
    margin-bottom: 18px;
    color: var(--forest-2);
    background: #F1F6F0;
    border: 1px solid #D8E7D8;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

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

    .customer-shell {
        padding: 20px 18px 40px;
    }
}

@media (max-width: 560px) {
    .customer-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-user {
        width: 100%;
        justify-content: space-between;
    }

    .customer-welcome {
        padding: 25px;
    }

    .customer-summary {
        grid-template-columns: 1fr 1fr;
    }
}

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

#auth {
    display: none;

    grid-template-columns: 1fr 1fr;

    min-height: 100vh;
}

#auth.active {
    display: grid;
}

.auth-side {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    padding: 48px;

    color: #EFEFE6;

    background:
        linear-gradient(
            135deg,
            #071D14,
            #173B2C
        );
}

.auth-side::after {
    content: "";

    position: absolute;

    right: 7%;
    bottom: 9%;

    width: 170px;
    height: 170px;

    border:
        1px solid rgba(210,162,62,.32);

    border-radius: 50%;

    box-shadow:
        0 0 0 18px rgba(210,162,62,.035),
        0 0 0 38px rgba(210,162,62,.025);
}

.auth-side-content {
    position: relative;
    z-index: 1;
}

.auth-side h1 {
    position: relative;
    z-index: 1;

    max-width: 420px;

    color: #F7F5EC;

    font-size: 34px;
    line-height: 1.2;
}

.auth-side p.lede {
    position: relative;
    z-index: 1;

    max-width: 380px;

    margin-top: 18px;

    color: #C9D5CC;

    font-size: 15px;
    line-height: 1.6;
}

.auth-side .footline {
    position: relative;
    z-index: 1;

    color: #9FB2A6;

    font-size: 13px;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

/* Customer Portal logo */
.auth-form .header-logo {
    width: 190px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
    object-fit: contain;
}


.back-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 26px;

    color: var(--muted);

    font-size: 13.5px;
    font-weight: 600;

    cursor: pointer;
}

.auth-form h2 {
    margin-bottom: 8px;

    color: var(--ink);

    font-size: 26px;
}

.auth-form > p {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 14px;
}

.tabs {
    display: flex;

    padding: 4px;

    margin-bottom: 22px;

    background: #F1EEE3;

    border-radius: 10px;
}

.tabs button {
    flex: 1;

    padding: 10px;

    color: var(--muted);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
}

.tabs button.active {
    color: var(--ink);

    background: var(--panel);

    box-shadow:
        0 1px 3px rgba(0,0,0,.08);
}

.form-error {
    padding: 10px 14px;

    margin-bottom: 16px;

    color: #B23A3A;

    background: #FBEAEA;

    border:
        1px solid #E9B4B4;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;
}

.demo-hint {
    padding: 10px 14px;

    margin-bottom: 18px;

    color: var(--forest-2);

    background: #F1F6F0;

    border:
        1px dashed var(--forest-3);

    border-radius: 10px;

    font-size: 12.5px;
}

/* =========================================================
   ADMIN
========================================================= */

#admin {
    display: none;

    grid-template-columns: 250px 1fr;

    min-height: 100vh;
}

#admin.active {
    display: grid;
}

.sidebar {
    display: flex;
    flex-direction: column;

    padding: 22px 18px;

    color: #DCE6DF;

    background:
        linear-gradient(
            180deg,
            #0D2118,
            #173B2C
        );

    box-shadow:
        12px 0 45px -42px rgba(0,0,0,.8);
}

.sidebar .brand {
    margin-bottom: 30px;
}

.nav {
    display: flex;
    flex: 1;
    flex-direction: column;

    gap: 3px;

    list-style: none;
}

.nav li {
    padding: 11px 14px;

    color: #B9C7BC;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s,
        color .15s;
}

.nav li:hover {
    color: #EFEFE6;

    background:
        rgba(255,255,255,.06);
}

.nav li {
    position: relative;
    padding: 12px 14px 12px 18px;
    color: #B9C7BC;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color .25s ease,
        transform .25s ease,
        padding-left .25s ease;
    overflow: hidden;
}

.nav li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 0 8px 8px 0;
    background: #D6AD55;
    transform: translateY(-50%);
    transition: height .25s ease;
}

.nav li:hover {
    color: #EFEFE6;
    background: rgba(255,255,255,.06);
    transform: translateX(3px);
}

.nav li.active {
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 8px 20px rgba(0,0,0,.08);
}

.nav li.active::before {
    height: 28px;
}

.nav li.active {
    padding-left: 22px;
}
.sidebar-foot {
    padding-top: 14px;

    border-top:
        1px solid rgba(255,255,255,.14);
}

.sidebar-user {
    display: flex;
    flex-direction: column;

    margin-bottom: 10px;
}

.sidebar-user b {
    color: #fff;

    font-size: 14px;
}

.sidebar-user span {
    color: #9FB2A6;

    font-size: 12px;
}

.signout {
    color: #B9C7BC;

    font-size: 13.5px;
    font-weight: 600;

    cursor: pointer;
}

.signout:hover {
    color: #fff;
}

.main {
    max-width: 1500px;

    padding: 32px 36px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(210,162,62,.075),
            transparent 20%
        ),
        var(--cream);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 24px;
}

.page-head h2 {
    color: var(--ink);

    font-size: 27px;
}

.page-head p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 14px;
}

.toast {
    padding: 10px 18px;

    color: #237041;

    background: #E6F5E9;

    border:
        1px solid #BEE3C6;

    border-radius: 10px;

    font-size: 13.5px;
    font-weight: 700;
}

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

.dashboard-visual-hero {
    position: relative;

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

    min-height: 210px;

    padding: 30px 34px;

    margin: -4px 0 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 84% 45%,
            rgba(214,173,85,.20),
            transparent 24%
        ),
        linear-gradient(
            120deg,
            #071C13,
            #174936 58%,
            #2D6750
        );

    border:
        1px solid rgba(214,173,85,.20);

    border-radius: 24px;

    box-shadow:
        0 24px 55px -35px rgba(10,33,23,.8);
}

.dashboard-visual-copy {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 10px;

    color: #EAD39A;

    font-size: 10.5px;
    font-weight: 700;

    letter-spacing: .20em;
}

.dashboard-kicker::before {
    content: "";

    width: 25px;
    height: 1px;

    background: #D6AD55;
}

.dashboard-visual-copy h3 {
    margin-bottom: 10px;

    color: #fff;

    font-size: 34px;
    line-height: 1.02;
}

.dashboard-visual-copy p {
    max-width: 560px;

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

    font-size: 13.5px;
    line-height: 1.65;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 22px;

    margin-top: 18px;

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

    font-size: 11.5px;
}

.dashboard-hero-meta b {
    margin-right: 4px;

    color: #F0D58A;

    font-size: 15px;
}

.dashboard-visual-orb {
    flex: 0 0 175px;

    width: 175px;
    height: 175px;

    margin-right: 7%;

    border:
        1px solid rgba(240,213,138,.42);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #5F8C72 0 8%,
            #2B624B 30%,
            #0B2419 72%
        );

    box-shadow:
        0 0 0 12px rgba(214,173,85,.05),
        0 24px 55px -20px rgba(0,0,0,.7),
        inset -20px -25px 45px rgba(0,0,0,.3);
}

/* =========================================================
   STAT CARDS
========================================================= */

.stat-grid {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 16px;

    margin-bottom: 22px;
}

.stat-card {
    position: relative;

    padding: 18px 20px;

    background: var(--panel);

    border:
        1px solid var(--line);

    border-top:
        3px solid var(--forest-3);

    border-radius: 20px;

    box-shadow:
        0 16px 40px -32px rgba(11,36,25,.55);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.amber {
    border-top-color: var(--gold);
}

.stat-card .label {
    color: var(--muted);

    font-size: 12.5px;
    font-weight: 600;
}

.stat-card .value {
    margin-top: 6px;

    color: var(--ink);

    font-family: var(--font-display);

    font-size: 24px;
    font-weight: 700;
}

/* =========================================================
   CHARTS / CARDS
========================================================= */

.chart-grid {
    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 18px;

    margin-bottom: 18px;
}

.card,
.settings-card {
    padding: 22px;

    background: var(--panel);

    border:
        1px solid rgba(23,59,44,.075);

    border-radius: 20px;

    box-shadow:
        0 16px 40px -32px rgba(11,36,25,.55);
}

.card h4 {
    margin-bottom: 16px;

    color: var(--ink);

    font-size: 15px;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 12.5px;
}

.mini-stats b {
    color: var(--ink);
}

/* =========================================================
   TABLE
========================================================= */

.table-wrap {
    overflow-x: auto;

    background: var(--panel);

    border:
        1px solid var(--line);

    border-radius: 20px;
}

table {
    width: 100%;

    min-width: 820px;

    border-collapse: collapse;
}

th {
    padding: 14px 16px;

    color: var(--muted);

    border-bottom:
        1px solid var(--line);

    font-size: 11.5px;

    letter-spacing: .05em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

td {
    padding: 14px 16px;

    border-bottom:
        1px solid var(--line);

    font-size: 13.5px;

    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

.mono-strong {
    color: var(--ink);
    font-weight: 700;
}

.sub {
    color: var(--muted);

    font-size: 12px;
    font-style: italic;
}

.view-btn {
    display: inline-block;

    padding: 7px 14px;

    color: var(--forest-2);

    border:
        1.5px solid var(--line);

    border-radius: 8px;

    font-size: 12.5px;
    font-weight: 700;

    cursor: pointer;
}

.view-btn:hover {
    color: #fff;

    background: var(--forest-2);

    border-color: var(--forest-2);
}

/* =========================================================
   STATUS TAGS
========================================================= */

.tag {
    display: inline-block;

    padding: 5px 11px;

    border-radius: 999px;

    font-size: 11.5px;
    font-weight: 700;

    white-space: nowrap;
}

.tag-warehouse {
    color: #1F7A45;
    background: #E1F3E6;
}

.tag-transit {
    color: #B36A1D;
    background: #FBE7D2;
}

.tag-production {
    color: #2E5FA3;
    background: #DCEAFB;
}

.tag-delayed {
    color: #C2491D;
    background: #FBE0D2;
}

.tag-delivered {
    color: #237041;
    background: #DFF2E1;
}

.tag-qc {
    color: #6647A6;
    background: #E6E1F7;
}

.tag-confirmed {
    color: #4B7A55;
    background: #EAF2EA;
}

.tag-shipped {
    color: #1E7A72;
    background: #DDF0EE;
}

.tag-cancelled {
    color: #B23A3A;
    background: #FBE1E1;
}

.tag-active {
    color: #1F7A45;
    background: #E1F3E6;
}

/* =========================================================
   FILTERS
========================================================= */

.filter-tabs {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 18px;
}

.filter-tabs button {
    padding: 8px 16px;

    color: var(--muted);

    background: var(--panel);

    border:
        1px solid var(--line);

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
}

.filter-tabs button.active {
    color: #fff;

    background: var(--forest-2);

    border-color: var(--forest-2);
}

.filter-row {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    gap: 14px;

    padding: 18px;

    margin-bottom: 20px;

    background: var(--panel);

    border:
        1px solid var(--line);

    border-radius: 20px;
}

.filter-row .field {
    margin-bottom: 0;
}

.filter-row .field label {
    color: var(--muted);

    font-size: 12.5px;
    font-weight: 600;
}

.filter-row select,
.filter-row input[type="date"] {
    width: 100%;

    padding: 11px 14px;

    background: #fff;

    border:
        1.5px solid var(--line);

    border-radius: 9px;

    font-size: 14px;
}

.search-box {
    position: relative;

    max-width: 340px;

    margin-bottom: 18px;
}

.search-box input {
    width: 100%;

    padding: 11px 14px;

    background: var(--panel);

    border:
        1.5px solid var(--line);

    border-radius: 9px;

    font-size: 14px;
}

.btn-new {
    padding: 11px 18px;

    color: #fff;

    background: var(--forest-2);

    border-radius: 9px;

    font-size: 13.5px;
    font-weight: 700;
}

/* =========================================================
   SETTINGS
========================================================= */

.settings-card h3 {
    margin-bottom: 18px;

    font-size: 18px;
}

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.form-grid .field-full {
    grid-column: 1 / -1;
}

.form-grid input {
    width: 100%;

    padding: 11px 14px;

    background: #fff;

    border:
        1.5px solid var(--line);

    border-radius: 9px;

    font-size: 14px;
}

.toggle-row {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 18px 0;

    color: var(--ink);

    font-size: 13.5px;
}

.toggle {
    position: relative;

    display: inline-block;

    width: 38px;
    height: 22px;

    background: var(--forest-2);

    border-radius: 99px;
}

.toggle::after {
    content: "";

    position: absolute;

    top: 3px;
    right: 3px;

    width: 16px;
    height: 16px;

    background: #fff;

    border-radius: 50%;
}

.empty-state {
    padding: 40px 0;

    color: var(--muted);

    font-size: 14px;

    text-align: center;
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 100;

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

    padding: 5vh 20px;

    overflow-y: auto;

    background:
        rgba(13,33,24,.55);

    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.order-modal {
    width: 100%;
    max-width: 640px;

    overflow: hidden;

    background: var(--panel);

    border-radius: 20px;

    box-shadow:
        0 50px 90px -30px rgba(0,0,0,.55);

    animation:
        modalIn .25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

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

.modal-head {
    position: relative;

    padding: 24px 28px;

    color: #F8F6EE;

    background:
        linear-gradient(
            120deg,
            var(--forest-deep),
            var(--forest-2)
        );
}

.modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

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

    width: 30px;
    height: 30px;

    color: #fff;

    background:
        rgba(255,255,255,.12);

    border-radius: 50%;

    cursor: pointer;
}

.m-eyebrow {
    margin-bottom: 6px;

    color: var(--gold-soft);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.modal-head h3 {
    color: #fff;

    font-size: 24px;
}

.m-sub {
    margin-top: 4px;

    color: #C9D5CC;

    font-size: 13.5px;
}

.modal-body {
    padding: 26px 28px 28px;
}

.m-meta-grid {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 14px;

    margin-bottom: 22px;
}

.m-meta-grid div {
    padding: 12px 14px;

    background: #F5F3EA;

    border-radius: 12px;
}

.m-label {
    margin-bottom: 4px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;
}

.m-value {
    color: var(--ink);

    font-size: 14px;
    font-weight: 700;
}

.m-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.m-stepper {
    position: relative;

    display: flex;
    justify-content: space-between;

    margin: 26px 0 8px;
}

.m-stepper::before {
    content: "";

    position: absolute;

    top: 13px;
    left: 16px;
    right: 16px;

    height: 2px;

    background: var(--line);
}

.m-step {
    position: relative;
    z-index: 1;

    display: flex;
    flex: 1;

    flex-direction: column;
    align-items: center;

    gap: 8px;

    text-align: center;
}

.m-step .dot {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    color: var(--muted);

    background: #fff;

    border:
        2px solid var(--line);

    border-radius: 50%;

    font-size: 12px;
    font-weight: 700;
}

.m-step.done .dot {
    color: #fff;

    background: var(--forest-3);

    border-color: var(--forest-3);
}

.m-step.current .dot {
    color: #fff;

    background: var(--gold);

    border-color: var(--gold);

    box-shadow:
        0 0 0 4px rgba(210,162,62,.25);
}

.m-step-label {
    max-width: 64px;

    color: var(--muted);

    font-size: 10.5px;
    font-weight: 700;

    line-height: 1.3;
}

.m-alert {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    margin-bottom: 18px;

    color: #B36A1D;

    background: #FBE7D2;

    border:
        1px solid #EFC79B;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;
}

.m-alert.cancelled {
    color: #B23A3A;

    background: #FBE1E1;

    border-color: #F0BABA;
}

.m-docs {
    margin-top: 22px;
}

.m-docs h5 {
    margin-bottom: 12px;

    color: var(--muted);

    font-size: 12.5px;
    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;
}

.m-doc {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 14px;

    margin-bottom: 8px;

    color: var(--ink);

    border:
        1px solid var(--line);

    border-radius: 10px;

    font-size: 13.5px;
}

.doc-status {
    margin-left: auto;

    color: var(--forest-3);

    font-size: 11px;
    font-weight: 700;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    padding: 18px 28px 26px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .dashboard-visual-orb {
        width: 140px;
        height: 140px;

        flex-basis: 140px;

        margin-right: 2%;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 620px;

        padding:
            60px 22px 90px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(2.9rem,12vw,4.6rem);
    }

    .hero::after {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    #auth {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    #admin.active {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding:
            60px 22px;
    }

    .lp-header {
        padding: 18px 22px;
    }
}

@media (max-width: 700px) {
    .lp-brand .text-logo {
        font-size: 22px;
    }

    .dashboard-visual-hero {
        min-height: 250px;

        padding: 25px;
    }

    .dashboard-visual-orb {
        display: none;
    }

    .dashboard-visual-copy h3 {
        font-size: 29px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .m-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .m-stepper {
        flex-wrap: wrap;

        gap: 14px 0;
    }

    .m-stepper::before {
        display: none;
    }

    .m-step {
        flex: 0 0 25%;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 590px;
    }

    .track-card-body,
    .track-card-head {
        padding: 22px !important;
    }

    .lp-header {
        gap: 12px;
    }

    .lp-header .btn {
        padding: 11px 14px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vine-path {
        animation: none;

        stroke-dashoffset: 0;
    }

    .vine-bloom {
        animation: none;

        opacity: 1;
    }
}

/* =========================================================
   PREMIUM BOTANICAL VISUAL LAYER
   Added without changing existing layout/functionality.
========================================================= */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-1;
    opacity:.035;
    background-image:
      radial-gradient(circle at 20% 20%, rgba(44,122,91,.9) 0 1px, transparent 1.5px),
      radial-gradient(circle at 80% 70%, rgba(210,162,62,.9) 0 1px, transparent 1.5px);
    background-size:34px 34px,46px 46px;
}

/* Landing */
#landing{
    background:
      linear-gradient(rgba(250,248,241,.82),rgba(250,248,241,.88)),
      url("https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=2200&q=85")
      center/cover fixed;
}
.lp-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
    padding:14px 55px 14px 30px;
}
.lp-header .lp-brand{
    position:static;
    left:auto;
    transform:none;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex:0 0 auto;
}
.lp-header .logo-image{
    width:150px;
    height:auto;
    display:block;
}
.lp-header > .btn{
    margin-left:auto;
}
.hero{
    background:
      linear-gradient(90deg,rgba(7,29,20,.94) 0%,rgba(18,60,43,.84) 55%,rgba(18,60,43,.48) 100%),
      url("https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=2200&q=88")
      center/cover;
}
.section{
    max-width:none;
    background:
      linear-gradient(rgba(250,248,241,.92),rgba(250,248,241,.94)),
      url("https://images.unsplash.com/photo-1530968464165-7a1861cbaf9f?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}
.lp-footer{
    background:#173B2C;
    color:#E8CD8C;
}

/* Auth */
#auth{
    background:
      linear-gradient(90deg,rgba(7,29,20,.86),rgba(250,248,241,.94)),
      url("https://images.unsplash.com/photo-1473448912268-2022ce9509d8?auto=format&fit=crop&w=2200&q=85")
      center/cover fixed;
}
.auth-side{
    background:
      linear-gradient(135deg,rgba(7,29,20,.92),rgba(23,59,44,.78)),
      url("https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?auto=format&fit=crop&w=1400&q=85")
      center/cover;
}
.auth-form-wrap{
    background:rgba(250,248,241,.88);
    backdrop-filter:blur(8px);
}

/* Customer */
#customer {
    background:
      linear-gradient(rgba(250,248,241,.91), rgba(250,248,241,.94)),
      url("https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=2200&q=85")
      center / cover fixed;
}

/* Customer header: logo stays on the left, account controls on the right. */
.customer-topbar {
    justify-content: space-between;
    position: relative;
    min-height: 72px;
}

.customer-brand {
    position: static;
    flex-shrink: 0;
}

.customer-brand img {
    width: 138px;
    height: auto;
    display: block;
}

.customer-user {
    margin-left: auto;
}
.customer-welcome{
    background:
      linear-gradient(120deg,rgba(7,29,20,.94),rgba(31,92,67,.76)),
      url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1400&q=85")
      center/cover;
}

/* Admin */
#admin{
    background:
      linear-gradient(rgba(250,248,241,.93),rgba(250,248,241,.95)),
      url("https://images.unsplash.com/photo-1471879832106-c7ab9e0cee23?auto=format&fit=crop&w=2200&q=82")
      center/cover fixed;
}
.sidebar{
    background:
      linear-gradient(180deg,rgba(13,33,24,.94),rgba(23,59,44,.88)),
      url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1000&q=80")
      center/cover;
}
.sidebar .brand{
    display:flex;
    justify-content:center;
}
.sidebar-logo{
    margin:0 auto;
}
.main{
    background:
      linear-gradient(rgba(250,248,241,.91),rgba(250,248,241,.94)),
      url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=2200&q=82")
      center/cover fixed;
}
.dashboard-visual-hero{
    background:
      linear-gradient(105deg,rgba(7,28,19,.95),rgba(23,73,54,.80)),
      url("https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}

/* Admin pages get a subtle botanical image treatment while cards remain clean */
.page{
    position:relative;
}
.page::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.035;
    background:url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1800&q=70") center/cover;
}
.page > *{
    position:relative;
    z-index:1;
}

/* Modal */
.modal-head{
    background:
      linear-gradient(120deg,rgba(13,33,24,.94),rgba(31,92,67,.84)),
      url("https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

/* Responsive */
@media(max-width:900px){
    .lp-header{
        justify-content:space-between;
        padding:14px 22px;
    }
    .lp-header .lp-brand{
        position:static;
        transform:none;
    }
    .lp-header .logo-image{
        width:125px;
    }
    .customer-topbar {
        justify-content: space-between;
    }

    .customer-brand {
        position: static;
        transform: none;
    }

    .lp-header > .btn {
        margin-left: auto;
    }

    .customer-user {
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .customer-topbar {
        align-items: center;
        flex-direction: row;
    }

    .customer-brand img {
        width: 105px;
    }

    .customer-user {
        width: auto;
        justify-content: flex-end;
    }

    .customer-user-info {
        display: none;
    }
}


/* =========================================================
   DETAILED ORDER JOURNEY
========================================================= */

.m-stepper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 8px;
    padding: 0;
}

.m-stepper::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 20px;
    width: 2px;
    background: #E3E8E2;
}

.m-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.m-step:hover {
    border-color: #C9D8CD;
    box-shadow: 0 8px 24px -18px rgba(13,33,24,.35);
}

.m-step.done {
    background: #FBFDFC;
}

.m-step.current {
    background: #FFFCF3;
    border-color: #E8D39E;
    box-shadow: 0 10px 28px -20px rgba(210,162,62,.45);
}

.m-step.cancelled {
    opacity: .7;
}

.m-step-marker {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.m-step .dot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    background: #fff;
    border: 2px solid #DDE4DE;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.m-step.done .dot {
    color: #fff;
    background: var(--forest-3);
    border-color: var(--forest-3);
}

.m-step.current .dot {
    color: #fff;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(210,162,62,.18);
}

.m-step-content {
    min-width: 0;
}

.m-step-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.m-step-number {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.m-step-title {
    margin-top: 2px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.m-step-state {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--muted);
    background: #F1F4F1;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.m-step.done .m-step-state {
    color: var(--forest-3);
    background: #E8F1EA;
}

.m-step.current .m-step-state {
    color: #9A6B10;
    background: #F8EBC9;
}

.m-substeps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 18px;
    padding-top: 2px;
}

.m-substep {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #7A847D;
    font-size: 11px;
    line-height: 1.45;
}

.m-substep::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    background: #D9E0DA;
    border-radius: 50%;
}

.m-substep.done {
    color: #355A47;
}

.m-substep.done::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-top: 0;
    color: #fff;
    background: var(--forest-3);
    border-radius: 50%;
    font-size: 8px;
    font-weight: 800;
}

.m-substep.current {
    color: var(--ink);
    font-weight: 700;
}

.m-substep.current::before {
    width: 8px;
    height: 8px;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(210,162,62,.16);
}

@media (max-width: 640px) {
    .m-substeps {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DOCUMENT DOWNLOADS / FORMS / ADMIN DATA
========================================================= */

.m-docs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.m-docs-head h5 {
    margin: 0;
}

.m-docs-note {
    color: var(--muted);
    font-size: 10px;
}

.m-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.m-doc > div {
    min-width: 0;
}

.m-doc b {
    display: block;
    color: var(--ink);
}

.m-doc small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.doc-download {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: var(--forest-3);
    background: #EDF5EF;
    border: 1px solid #D6E5D9;
    border-radius: 8px;
    cursor: pointer;
    font: 700 11px Inter, sans-serif;
    transition: .2s ease;
}

.doc-download:hover {
    background: #E2EFE5;
    transform: translateY(-1px);
}

.forgot-link {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    color: var(--forest-3);
    background: transparent;
    border: 0;
    text-align: right;
    cursor: pointer;
    font: 700 11px Inter, sans-serif;
}

.forgot-link:hover,
.text-back:hover {
    text-decoration: underline;
}

.forgot-head {
    margin-bottom: 18px;
}

.forgot-head h3 {
    margin: 14px 0 5px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 25px;
}

.forgot-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.text-back {
    padding: 0;
    color: var(--forest-3);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: 700 11px Inter, sans-serif;
}

.form-success {
    margin-top: 12px;
    padding: 10px 12px;
    color: #2A684C;
    background: #EDF7F0;
    border: 1px solid #D5E8DA;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.5;
}

.page-head > .btn {
    flex: 0 0 auto;
}

.data-modal {
    width: min(720px, calc(100vw - 30px));
    max-height: calc(100vh - 30px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(7, 24, 16, .24);
}

.data-modal-head {
    position: relative;
    padding: 24px 26px 18px;
    background: linear-gradient(135deg, #123C2A, #1D5A40);
    color: #fff;
}

.data-modal-head h3 {
    margin: 5px 0;
    font-family: var(--font-display);
    font-size: 27px;
}

.data-modal-head p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}

.modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    cursor: pointer;
}

.data-modal-body {
    padding: 22px 26px 26px;
}

.data-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.data-form-grid .field:first-child {
    grid-column: span 1;
}

.data-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
    .data-form-grid {
        grid-template-columns: 1fr;
    }

    .m-doc {
        align-items: flex-start;
        flex-direction: column;
    }

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

/* Advanced modules added without changing the existing visual system */
#page-quality .table-wrap,#page-documents .table-wrap,#page-shipments .table-wrap,#page-audit .table-wrap{margin-top:4px}
#page-notifications .card{padding:18px}
#page-quality td,#page-documents td,#page-shipments td,#page-audit td{vertical-align:top}


/* Status editor uses the existing data-modal language without changing the site layout. */
#statusEditOverlay textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    font: 500 12px Inter, sans-serif;
    color: var(--ink);
    background: #fff;
    box-sizing: border-box;
}
#statusEditOverlay .field label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}


/* =========================================================
   FINAL POLISH — ORDER VIEW
========================================================= */

.modal-overlay {
    padding: 4vh 18px;
    background: rgba(8, 31, 21, .66);
    backdrop-filter: blur(10px);
}

.order-modal {
    max-width: 820px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 42px 110px rgba(0,0,0,.28);
}

.modal-head {
    padding: 30px 34px 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(210,162,62,.20), transparent 28%),
        linear-gradient(135deg, #071D14 0%, #173B2C 62%, #255440 100%);
}

.modal-head h3 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: -.02em;
}

.m-sub {
    max-width: 620px;
    margin-top: 8px;
    color: #D7E1DA;
}

.modal-close {
    top: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.10);
    transition: .2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,.20);
    transform: rotate(4deg);
}

.modal-body {
    padding: 30px 34px 24px;
}

.m-meta-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.m-meta-grid > div {
    min-height: 78px;
    padding: 15px 16px;
    background: linear-gradient(180deg,#faf9f5,#f3f1e9);
    border: 1px solid #e8e5db;
    border-radius: 15px;
}

.m-label {
    color: #718077;
    font-size: 10px;
    letter-spacing: .10em;
}

.m-value {
    margin-top: 5px;
    line-height: 1.45;
}

.m-progress-row {
    padding: 17px 18px 0;
    margin: 0;
    border: 1px solid #e6e3d8;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: #fbfaf6;
}

.m-progress-row .status-title {
    font-size: 20px;
}

.modal-body > .vine-track {
    height: 9px;
    margin: 0;
    padding: 0 18px;
    background: #fbfaf6;
    border-left: 1px solid #e6e3d8;
    border-right: 1px solid #e6e3d8;
    border-radius: 0;
}

.modal-body > .vine-track .vine-fill {
    left: 18px;
    width: calc(72% - 36px);
    max-width: calc(100% - 36px);
}

.modal-body > .status-pct {
    padding: 0 18px 14px;
    margin: 0;
    border: 1px solid #e6e3d8;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fbfaf6;
}

.m-stepper {
    margin: 28px 4px 20px;
    padding: 0 2px;
}

.m-stepper::before {
    top: 14px;
    left: 7%;
    right: 7%;
    background: #dfe5df;
}

.m-step .dot {
    width: 29px;
    height: 29px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.m-step.current .dot {
    box-shadow: 0 0 0 5px rgba(210,162,62,.18), 0 3px 10px rgba(0,0,0,.08);
}

.m-step-label {
    max-width: 88px;
    font-size: 10.5px;
}

.m-docs {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #ece9df;
}

.m-docs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.m-docs h5 {
    margin: 0;
    color: var(--forest);
    font-size: 13px;
}

.m-docs-note {
    color: var(--muted);
    font-size: 11px;
}

.m-doc {
    min-height: 58px;
    margin-bottom: 9px;
    padding: 12px 14px;
    background: #fff;
    border-color: #e5e2d8;
    border-radius: 13px;
    transition: .18s ease;
}

.m-doc:hover {
    transform: translateY(-1px);
    border-color: #cfc8b7;
    box-shadow: 0 8px 20px rgba(23,59,44,.06);
}

.m-doc b {
    display: block;
    margin-bottom: 2px;
}

.m-doc small {
    color: var(--muted);
}

.doc-download {
    margin-left: auto;
    padding: 8px 12px;
    color: var(--forest);
    background: #f4f1e7;
    border: 1px solid #ded8c9;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.doc-download:hover {
    background: #ebe5d5;
}

.modal-foot {
    padding: 16px 34px 26px;
    border-top: 1px solid #ece9df;
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
    }

    .order-modal {
        min-height: 100%;
        border-radius: 0;
    }

    .modal-head,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .m-meta-grid {
        grid-template-columns: 1fr;
    }

    .m-stepper {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
        padding-bottom: 8px;
    }

    .m-step {
        min-width: 72px;
    }

    .m-stepper::before {
        display: none;
    }

    .m-docs-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .modal-foot {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.danger-action{color:#a33b32!important}.danger-action:hover{background:#fff1ef!important}
.advanced-add-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.advanced-add-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--text,#233)}.advanced-add-form input,.advanced-add-form select,.advanced-add-form textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d9dfda;border-radius:10px;background:#fff;font:inherit;color:inherit}.advanced-add-form textarea{resize:vertical}.advanced-add-form .check-field{flex-direction:row;align-items:center;grid-column:1/-1}.advanced-add-form .check-field input{width:auto}@media(max-width:700px){.advanced-add-form{grid-template-columns:1fr}}

/* Specialized Add forms */
.advanced-add-modal{
    width:min(780px,calc(100vw - 28px));
    max-height:calc(100vh - 28px);
    overflow:hidden;
    background:#fff;
    border-radius:24px;
    box-shadow:0 34px 90px rgba(5,28,19,.34);
    animation:advancedAddIn .18s ease-out;
}
@keyframes advancedAddIn{
    from{opacity:0;transform:translateY(14px) scale(.985)}
    to{opacity:1;transform:none}
}
.advanced-add-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:27px 30px 23px;
    color:#fff;
    background:linear-gradient(135deg,#0c2c1f,#1d5b41);
}
.advanced-add-eyebrow{
    margin-bottom:7px;
    color:#e3c36d;
    font-size:10px;
    font-weight:800;
    letter-spacing:.16em;
}
.advanced-add-header h3{
    margin:0 0 6px;
    color:#fff;
    font-size:26px;
}
.advanced-add-header p{
    margin:0;
    color:rgba(255,255,255,.7);
    font-size:12px;
}
.advanced-add-close{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.1);
    font-size:22px;
    cursor:pointer;
}
.advanced-add-close:hover{background:rgba(255,255,255,.18)}
.advanced-add-form-wrap{
    max-height:calc(100vh - 180px);
    overflow:auto;
    padding:25px 30px 26px;
}
.advanced-add-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.adv-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}
.adv-field label,.advanced-add-grid>.adv-field>label{
    color:#18382a;
    font-size:12px;
    font-weight:800;
}
.adv-field input,.adv-field select,.adv-field textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid #d9e2dc;
    border-radius:12px;
    padding:12px 13px;
    outline:none;
    color:#17382a;
    background:#fafcfb;
    font:inherit;
    transition:border-color .16s,box-shadow .16s,background .16s;
}
.adv-field input:focus,.adv-field select:focus,.adv-field textarea:focus{
    border-color:#5f8b74;
    background:#fff;
    box-shadow:0 0 0 4px rgba(35,104,72,.09);
}
.adv-full{grid-column:1/-1}
.adv-check{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    color:#355343;
    font-size:12px;
    font-weight:700;
}
.adv-check input{
    width:17px;
    height:17px;
    accent-color:#164531;
}
.advanced-add-error{
    min-height:0;
    margin-top:14px;
    padding:0;
    border-radius:10px;
    color:#9a352d;
    background:#fff1ef;
    font-size:12px;
    font-weight:700;
}
.advanced-add-error:not(:empty){
    padding:11px 13px;
    border:1px solid #efc8c3;
}
.advanced-add-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
    padding-top:17px;
    border-top:1px solid #edf0ee;
}
.advanced-add-actions button:disabled{
    opacity:.65;
    cursor:wait;
}
@media(max-width:700px){
    .advanced-add-modal{width:calc(100vw - 16px);border-radius:18px}
    .advanced-add-header{padding:22px}
    .advanced-add-form-wrap{padding:21px 22px 22px}
    .advanced-add-grid{grid-template-columns:1fr}
    .adv-full{grid-column:auto}
}
