/* ==========================================================================
   Origins Supply Chain — design system
   Deep-forest canvas, white rounded surfaces, black pill controls.
   Loaded after Bootstrap, so selectors here intentionally override it.
   ========================================================================== */

:root {
    /* Canvas */
    --green-900: #14271A;
    --green-800: #1E3A26;
    --green-700: #274A31;
    --green-600: #33603F;
    --green-300: #9DBCA4;

    /* Surfaces */
    --surface: #FFFFFF;
    --surface-2: #F4F2ED;   /* warm well behind product photos */
    --surface-3: #EAE7E0;

    /* Ink */
    --ink: #14201A;
    --ink-70: #4A564F;
    --ink-45: #7E8882;
    --line: #E4E1DA;

    /* Accents */
    --accent: #D96B2B;      /* terracotta */
    --accent-soft: #FBEDE3;
    --ok: #2F7A46;
    --ok-soft: #E6F1E9;
    --warn: #B5821F;
    --warn-soft: #FBF1DC;
    --danger: #B4472F;
    --danger-soft: #FAE9E5;

    /* Geometry */
    --r-xl: 32px;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 10px;
    --pill: 999px;

    --shadow-sm: 0 2px 8px rgba(10, 25, 15, .06);
    --shadow-md: 0 12px 32px rgba(10, 25, 15, .12);
    --shadow-lg: 0 24px 60px rgba(10, 25, 15, .20);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- base ---- */

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--green-800);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Display type — the oversized headline treatment on green */
.display-xl,
.display-lg {
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .95;
    color: #fff;
    margin: 0;
}
.display-xl { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.display-lg { font-size: clamp(2rem, 4.4vw, 3.1rem); }

.eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green-300);
}

.lede {
    color: rgba(255, 255, 255, .72);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 46ch;
}

.muted { color: var(--ink-45); }
.muted-light { color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------- navigation --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(30, 58, 38, .82);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.03em;
    margin-right: .5rem;
}
.brand:hover { color: #fff; opacity: .85; }

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-tagline {
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-top: .28rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    flex: none;
    padding: 4px;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: .5rem .95rem;
    border-radius: var(--pill);
    color: rgba(255, 255, 255, .78);
    font-size: .93rem;
    font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-links a.is-active { background: #fff; color: var(--ink); font-weight: 600; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

/* Circular icon button — the pill/circle language from the reference */
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    position: relative;
    flex: none;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.icon-btn--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.icon-btn--solid:hover { background: #000; color: #fff; }

.icon-btn--light {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}
.icon-btn--light:hover { background: var(--ink); color: #fff; }

.count-bubble {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--pill);
    background: var(--accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--green-800);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    padding: .4rem;
}

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-collapse {
        display: none;
        width: 100%;
        order: 10;
        padding: .5rem 0 1rem;
    }
    .nav-collapse.is-open { display: block; }
    .site-header .container { flex-wrap: wrap; }
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-links a { padding: .7rem 1rem; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
    border-radius: var(--pill);
    font-weight: 600;
    font-size: .93rem;
    padding: .7rem 1.4rem;
    border: 1px solid transparent;
    transition: transform .18s var(--ease), background .18s var(--ease),
                color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }

/* Primary action = solid black pill */
.btn-ink,
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn-ink:hover,
.btn-primary:hover,
.btn-ink:focus,
.btn-primary:focus {
    background: #000;
    border-color: #000;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover { background: #c25c22; border-color: #c25c22; color: #fff; }

/* Outline on white surfaces */
.btn-outline,
.btn-outline-primary,
.btn-outline-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Outline on the green canvas */
.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-white {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}
.btn-white:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }

.btn-outline-danger {
    background: transparent;
    border-color: var(--line);
    color: var(--danger);
}
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding-left: 0;
    padding-right: 0;
}
.btn-link:hover { color: var(--accent); }

.btn:disabled, .btn.disabled { opacity: .4; }

/* --------------------------------------------------------------- chips --- */

.chip-row {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.15rem;
    border-radius: var(--pill);
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { transform: translateY(-1px); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip.is-active:hover { color: #fff; }

/* Chips rendered on a white panel instead of the green canvas */
.panel .chip { background: var(--surface-2); }
.panel .chip.is-active { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ surfaces --- */

.panel {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.25rem; }
.panel-tight { padding: 1.25rem; }

.panel-green {
    background: var(--green-700);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    color: #fff;
}
.panel-green h1, .panel-green h2, .panel-green h3,
.panel-green h4, .panel-green h5 { color: #fff; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.section-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}
.panel .section-title { color: var(--ink); }

/* --------------------------------------------------- network background -- */
/* Original inline-SVG artwork (routes/nodes/containers) — no stock imagery. */

.network-section {
    position: relative;
    background: var(--green-700);
    border-radius: var(--r-xl);
    overflow: hidden;
    padding: 2.5rem 1.75rem;
}
.network-section > .section-head,
.network-section > .row {
    position: relative;
    z-index: 1;
}
.network-section .choice-card {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(3px);
}
.network-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.network-route {
    fill: none;
    stroke: rgba(255, 255, 255, .14);
    stroke-width: 2;
    stroke-dasharray: 2 10;
    stroke-linecap: round;
}
.network-route--main {
    stroke: rgba(217, 107, 43, .38);
    stroke-width: 2.5;
    stroke-dasharray: 1 9;
}
.network-node { fill: rgba(255, 255, 255, .5); }
.network-node--hub {
    fill: var(--accent);
    animation: networkPulse 2.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.network-node--hub:nth-of-type(2) { animation-delay: 1.1s; }
.network-container { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.network-container-line { stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }

@keyframes networkPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
    .network-node--hub { animation: none; }
}
@media (max-width: 767.98px) {
    .network-section { padding: 2rem 1rem; }
    .network-bg { opacity: .6; }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
    padding: 3.5rem 0 2.5rem;
}

[id] { scroll-margin-top: 96px; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 991.98px) {
    .hero { padding: 2.25rem 0 1.5rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (min-width: 992px) {
    .hero-search-col { align-self: start; margin-top: .25rem; }
}

@keyframes heroSlideInLeft {
    from { opacity: 0; transform: translateX(-48px); }
    to { opacity: 1; transform: translateX(0); }
}
.hero-slide-in {
    animation: heroSlideInLeft .75s cubic-bezier(.22, .61, .36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide-in { animation: none; }
}

.hero-stats {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}
.stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    min-width: 120px;
}
.stat-value {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.stat-label {
    font-size: .74rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}

/* --------------------------------------------------------------- search -- */

.search-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border-radius: var(--pill);
    padding: .4rem .4rem .4rem 1.15rem;
    box-shadow: var(--shadow-sm);
}
.search-bar svg { width: 18px; height: 18px; color: var(--ink-45); flex: none; }
.search-bar input[type="text"],
.search-bar input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .55rem .25rem;
    font-size: .95rem;
    color: var(--ink);
    min-width: 0;
}
.search-bar input:focus { outline: none; box-shadow: none; }
.search-bar input::placeholder { color: var(--ink-45); }
.search-bar .btn { flex: none; }

/* -------------------------------------------------------- product cards -- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
}

.p-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: .75rem .75rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.p-card-media {
    position: relative;
    border-radius: var(--r-md);
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.p-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}
.p-card:hover .p-card-media img { transform: scale(1.05); }

.p-card-body {
    text-align: center;
    padding: .95rem .5rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.p-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 .2rem;
    letter-spacing: -.01em;
}
.p-card-meta {
    font-size: .76rem;
    color: var(--ink-45);
    margin-bottom: .5rem;
}
.p-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0;
}
.p-card-price small {
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-45);
    letter-spacing: 0;
}
.price-was {
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-45);
    text-decoration: line-through;
    letter-spacing: 0;
    margin-right: .35rem;
}
.price-was--lg { font-size: 1rem; }

/* Floating circular action, half-overlapping the card foot */
.p-card-action {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .22s var(--ease), bottom .22s var(--ease);
}
.p-card:hover .p-card-action,
.p-card:focus-within .p-card-action { opacity: 1; bottom: -21px; }

@media (hover: none) {
    .p-card-action { opacity: 1; bottom: -21px; }
}

/* Corner tag on the media well ("-5%" slot in the reference) */
.p-tag {
    position: absolute;
    top: .6rem;
    right: .6rem;
    padding: .3rem .7rem;
    border-radius: var(--pill);
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.p-tag--accent { background: var(--accent); }
.p-tag--muted { background: rgba(20, 32, 26, .55); backdrop-filter: blur(4px); }
.p-tag--sale { background: var(--danger); }

.media-empty {
    color: var(--ink-45);
    font-size: .82rem;
    font-weight: 500;
}

/* ------------------------------------------------------- product detail -- */

.detail-media {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 1rem;
}
.detail-media-main {
    border-radius: var(--r-lg);
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    position: relative;
}
.detail-media-main img { width: 100%; height: 100%; object-fit: cover; }

.thumb-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .55rem;
    margin-top: .7rem;
}
.thumb {
    border-radius: var(--r-sm);
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .2s var(--ease);
}
.thumb:hover { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-panel {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 2rem;
}
.detail-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: .75rem 0 .5rem;
}
.detail-price {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0;
}
.detail-price small {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-45);
    letter-spacing: 0;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    border-top: 1px solid var(--line);
}
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.spec-list dt, .spec-list .spec-key { color: var(--ink-45); }
.spec-list .spec-val { font-weight: 600; text-align: right; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--surface-2);
    border-radius: var(--pill);
    padding: .25rem;
}
.qty-stepper select {
    border: 0;
    background: transparent;
    font-weight: 700;
    padding: .5rem 1.6rem .5rem .9rem;
    border-radius: var(--pill);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314201A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    cursor: pointer;
}
.qty-stepper select:focus { outline: none; box-shadow: none; }

/* ---------------------------------------------------------------- forms -- */

.form-label,
label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-70);
    margin-bottom: .35rem;
    display: block;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="url"],
input[type="search"], input[type="date"], input[type="file"],
select, textarea,
.form-control, .form-select {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .7rem .9rem;
    font-family: inherit;
    font-size: .94rem;
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus,
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(20, 32, 26, .1);
}
input::placeholder, textarea::placeholder { color: var(--ink-45); }
textarea { resize: vertical; min-height: 90px; }

input[type="checkbox"], input[type="radio"] {
    width: auto;
    accent-color: var(--ink);
}

.form-text, .helptext {
    display: block;
    font-size: .78rem;
    color: var(--ink-45);
    margin-top: .3rem;
    font-weight: 400;
}
.helptext ul { padding-left: 1.1rem; margin: .3rem 0 0; }

.field-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; font-weight: 500; }

.form-stack > * + * { margin-top: 1.1rem; }

.auth-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------- badges -- */

.badge,
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    border-radius: var(--pill);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: -.005em;
    background: var(--surface-2);
    color: var(--ink);
}
.pill-badge--ink { background: var(--ink); color: #fff; }
.pill-badge--ok { background: var(--ok-soft); color: var(--ok); }
.pill-badge--warn { background: var(--warn-soft); color: var(--warn); }
.pill-badge--danger { background: var(--danger-soft); color: var(--danger); }
.pill-badge--accent { background: var(--accent-soft); color: var(--accent); }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

/* Bootstrap badge colour classes, remapped to the palette */
.badge.bg-secondary { background: var(--surface-2) !important; color: var(--ink); }
.badge.bg-primary { background: var(--ink) !important; color: #fff; }
.badge.bg-danger { background: var(--danger-soft) !important; color: var(--danger); }
.badge.bg-success { background: var(--ok-soft) !important; color: var(--ok); }

/* --------------------------------------------------------------- tables -- */

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    color: var(--ink);
}
.table > thead th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-45);
    border-bottom: 1px solid var(--line);
    padding: .75rem .85rem;
    background: transparent;
}
.table > tbody td {
    padding: 1rem .85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: .93rem;
}
.table > tbody tr:last-child td { border-bottom: 0; }
.table > tfoot th {
    padding: 1rem .85rem;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.cell-product {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.cell-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    object-fit: cover;
    flex: none;
}

/* ------------------------------------------------------------ line list -- */

.line-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.line-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}
.line-list li:last-child { border-bottom: 0; }

.total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: .5rem;
    border-top: 2px solid var(--ink);
}
.total-row .total-label { font-weight: 600; color: var(--ink-70); }
.total-row .total-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

/* ------------------------------------------------------------- timeline -- */

.timeline {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.timeline li {
    position: relative;
    padding: 0 0 1.5rem 1.9rem;
    border-left: 2px solid var(--line);
    margin-left: .5rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--line);
}
.timeline li.is-current::before,
.timeline li.current::before {
    background: var(--ok);
    border-color: var(--ok-soft);
    box-shadow: 0 0 0 4px var(--ok-soft);
}
.timeline-title { font-weight: 700; font-size: .95rem; }
.timeline-meta { font-size: .78rem; color: var(--ink-45); margin-top: .15rem; }
.timeline-note { font-size: .85rem; color: var(--ink-70); margin-top: .3rem; }

/* ------------------------------------------------------- method / cards -- */

.choice-card {
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--r-lg);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.choice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.choice-card.is-disabled:hover { transform: none; box-shadow: none; border-color: transparent; }
.choice-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    margin-bottom: .9rem;
}
.choice-icon svg { width: 20px; height: 20px; }
.choice-card h5 { font-size: 1.05rem; margin-bottom: .35rem; }
.choice-card p { font-size: .86rem; color: var(--ink-45); flex: 1; }

/* ---------------------------------------------------------- fee / steps -- */

.fee-section + .fee-section { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.fee-section-title {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .6rem;
}
.fee-section-p { font-size: .88rem; line-height: 1.65; margin-bottom: .6rem; }
.fee-section-p:last-child { margin-bottom: 0; }

.process-list { list-style: none; padding: 0; margin: 0; }
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-step:first-child { padding-top: 0; }
.process-step-num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-45);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: -.02em;
    display: grid;
    place-items: center;
}
.process-step-title { font-weight: 700; font-size: .92rem; margin: 0 0 .2rem; }
.process-step-body { font-size: .87rem; line-height: 1.55; color: var(--ink-70); margin: 0; }

/* --------------------------------------------------------------- alerts -- */

.alert {
    border: 0;
    border-radius: var(--r-md);
    padding: .95rem 1.2rem;
    font-size: .92rem;
    font-weight: 500;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error, .alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: #fff; color: var(--ink); }
.alert .btn-close { filter: none; opacity: .5; }

/* ----------------------------------------------------------- pagination -- */

.pagination {
    display: flex;
    gap: .4rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 1rem;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.page-link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-item.disabled .page-link {
    background: transparent;
    color: rgba(255, 255, 255, .55);
    border-color: transparent;
}

/* ------------------------------------------------------------ empty box -- */

.empty-state {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 3rem 2rem;
    text-align: center;
}
.empty-state .empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
}
.empty-state h4 { margin-bottom: .4rem; }
.empty-state p { color: var(--ink-45); font-size: .92rem; margin-bottom: 1.2rem; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, .65);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    font-size: .89rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 479.98px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li:last-child { margin-bottom: 0; }
.site-footer a { color: rgba(255, 255, 255, .65); }
.site-footer a:hover { color: #fff; }

.footer-card {
    height: 100%;
    padding: 1.25rem 1.3rem;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.footer-card-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin: 0 0 .95rem;
}
.footer-contact-socials {
    display: flex;
    gap: .5rem;
    margin-bottom: .95rem;
}
.footer-contact-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    flex: none;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-contact-socials a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.footer-contact-socials svg { width: 16px; height: 16px; }
.footer-hotline {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    font-weight: 700;
    font-size: .87rem;
    letter-spacing: -.01em;
}
.footer-hotline:hover { color: var(--green-300); }
.footer-hotline svg { width: 15px; height: 15px; flex: none; color: rgba(255, 255, 255, .5); }
.footer-hotline + .footer-hotline { margin-top: .45rem; }
.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255, 255, 255, .45);
}

/* ------------------------------------------------------------ utilities -- */

.stack-sm > * + * { margin-top: .5rem; }
.text-accent { color: var(--accent); }
.link-underline { text-decoration: underline; text-underline-offset: 3px; }
.on-green a { color: #fff; }
.on-green a:hover { color: var(--green-300); }
