/* ==========================================================================
   CHRONOS — site stylesheet
   White + cobalt theme. Display: Marcellus. Body/UI: Manrope.
   Mobile-first: base styles are for phones, min-width queries scale up.
   ========================================================================== */

:root {
    --ink: #0b1b33;
    --ink-soft: #12305f;
    --muted: #5a6a84;
    --line: #dce4f2;
    --paper: #ffffff;
    --mist: #f4f7fc;
    --tint: #e6edfb;
    --accent: #1f4fd8;
    --accent-deep: #173dae;
    --accent-soft: #eaf0ff;
    --success: #1c8a56;
    --success-soft: #e3f5ec;
    --warn: #a86a00;
    --warn-soft: #fff3da;
    --danger: #c0392b;
    --danger-soft: #fdeceb;

    --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;
    --shadow: 0 14px 34px rgba(11, 27, 51, .09);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: .005em;
}

:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 2px; }

.text-muted-c { color: var(--muted); }
.text-danger, .field-validation-error { color: var(--danger) !important; font-size: .85rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Buttons ---------- */
.btn-brand, .btn-outline-brand, .btn-quiet, .btn-danger-c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.5rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn-brand { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-brand:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: 0 8px 20px rgba(31, 79, 216, .25); }

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

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

.btn-danger-c { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-c:hover { background: #a02e22; border-color: #a02e22; color: #fff; }

.btn-brand:disabled, .btn-brand.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; pointer-events: none; }

.btn-sm-c { padding: .4rem .85rem; font-size: .8rem; }
.btn-block { width: 100%; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: all .2s;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-nav .navbar { padding: .7rem 0; }

.brand-mark { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-mark:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .22em; }
.brand-tagline { font-size: .6rem; letter-spacing: .16em; color: var(--muted); margin-top: .3rem; }

.site-nav .navbar-toggler { border: 1px solid var(--line); padding: .45rem .65rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(31, 79, 216, .25); }

.nav-link-c {
    display: block;
    padding: .65rem .25rem;
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid transparent;
}
.nav-link-c:hover, .nav-link-c.active { color: var(--accent); }

.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem 0 .5rem; }
.nav-actions form { margin: 0; }

@media (min-width: 992px) {
    .nav-link-c { padding: .5rem .9rem; }
    .nav-link-c.active { border-bottom-color: var(--accent); }
    .nav-actions { padding: 0 0 0 1rem; }
}

/* ---------- Layout helpers ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--mist); }
.section-tight { padding: 2.5rem 0; }
@media (min-width: 992px) { .section { padding: 5rem 0; } }

.section-head { max-width: 640px; margin: 0 auto 2.25rem; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); margin: 0; }

.main-wrap { min-height: 60vh; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
    padding: 2.5rem 0 3.5rem;
    overflow: hidden;
}
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats { display: flex; gap: 1.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero-stat span { font-size: .82rem; color: var(--muted); }

.dial-wrap { display: grid; place-items: center; padding: 1rem 0; }
.dial { width: min(420px, 86vw); height: auto; filter: drop-shadow(0 24px 40px rgba(11, 27, 51, .18)); }
.dial .hand-sec { transform-origin: 200px 200px; animation: dial-sweep 60s linear infinite; }

@keyframes dial-sweep { to { transform: rotate(360deg); } }

@media (min-width: 992px) { .hero { padding: 4.5rem 0 5rem; } }

/* ---------- Brand strip ---------- */
.brand-strip { border-block: 1px solid var(--line); background: #fff; }
.brand-strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.25rem; }
.brand-strip li { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .12em; color: var(--muted); }

/* ---------- Watch cards ---------- */
.watch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.watch-card:hover { border-color: #b9c8ec; box-shadow: var(--shadow); }

.watch-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--mist); overflow: hidden; }
.watch-card-img img { width: 100%; height: 100%; object-fit: cover; }

.watch-card-tag {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
}

.watch-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.watch-brand { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.watch-name { font-family: var(--font-display); font-size: 1.25rem; margin: .15rem 0 .1rem; color: var(--ink); }
.watch-name a { color: inherit; }
.watch-ref { font-size: .82rem; color: var(--muted); }
.watch-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }

.price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-lg { font-size: 1.9rem; }

.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tint); color: #9bb0e0; font-size: 2.5rem; min-height: 120px; }

/* ---------- Collections / features / quotes ---------- */
.collection-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
}
.collection-tile:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.collection-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.collection-name { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.collection-count { font-size: .83rem; color: var(--muted); }

.feature-item { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.feature-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature-item p { margin: 0; font-size: .92rem; color: var(--muted); }

.quote-card { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.quote-stars { color: var(--accent); letter-spacing: .15em; margin-bottom: .75rem; }
.quote-card p { font-size: .96rem; color: var(--ink); }
.quote-author { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
.quote-author strong { display: block; font-size: .92rem; line-height: 1.2; }
.quote-author span { font-size: .8rem; color: var(--muted); }

.cta-band { background: var(--accent); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0 auto 1.5rem; }
.cta-band .btn-light-c { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn-light-c:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Page header band ---------- */
.page-head { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); color: #fff; padding: 2.5rem 0; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.page-head p { color: rgba(255, 255, 255, .78); max-width: 56ch; margin: .6rem 0 0; }
.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .65); margin-bottom: .75rem; }
.crumbs a { color: rgba(255, 255, 255, .88); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .4rem; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a { color: var(--muted); }
.crumbs-dark a:hover { color: var(--accent); }

/* ---------- Panels, forms ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.panel-title { font-size: 1.3rem; margin-bottom: 1.1rem; }
@media (min-width: 768px) { .panel { padding: 1.75rem; } }

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

.form-control, .form-select {
    padding: .72rem .9rem;
    border: 1px solid #c8d3e8;
    border-radius: var(--r-sm);
    background-color: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}
.form-control::placeholder { color: #8d9ab3; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); color: var(--ink); }
.form-control.input-validation-error { border-color: var(--danger); }
textarea.form-control { resize: vertical; }

.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(31, 79, 216, .2); border-color: var(--accent); }

.input-icon { position: relative; }
.input-icon .form-control { padding-right: 2.75rem; }
.input-icon .toggle-btn { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); padding: .45rem .6rem; border: 0; background: none; color: var(--muted); }
.input-icon .toggle-btn:hover { color: var(--accent); }

.alert-c { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1.25rem; border-radius: var(--r-sm); font-size: .92rem; border: 1px solid transparent; }
.alert-c.is-success { background: var(--success-soft); border-color: #b7e3cc; color: #135c39; }
.alert-c.is-error { background: var(--danger-soft); border-color: #f3c3be; color: #8a2a20; }
.alert-c.is-info { background: var(--accent-soft); border-color: #c6d5fb; color: var(--accent-deep); }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: .85rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.contact-card .collection-icon { width: 42px; height: 42px; font-size: 1rem; }
.contact-card strong { display: block; font-size: .92rem; }
.contact-card span, .contact-card a { font-size: .9rem; color: var(--muted); word-break: break-word; }

/* ---------- Products listing ---------- */
.filters-toggle { display: flex; }
.filters-body { padding-top: 1rem; }
@media (min-width: 992px) {
    .filters-toggle { display: none; }
    .filters-body.collapse:not(.show) { display: block; }
    .filters-body { padding-top: 0; }
}

.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
@media (min-width: 992px) { .filter-card { position: sticky; top: 92px; } }
.filter-heading { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; font-family: var(--font-body); }
.filter-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.filter-list label { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; font-size: .92rem; cursor: pointer; }
.filter-list input { accent-color: var(--accent); width: 1rem; height: 1rem; }
.filter-count { margin-left: auto; font-size: .78rem; color: var(--muted); }
.filter-card input[type=range] { width: 100%; accent-color: var(--accent); }

.products-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.products-count { font-size: .9rem; color: var(--muted); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: #9bb0e0; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: .4rem; }

/* ---------- Product detail ---------- */
.gallery { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.detail-title { font-size: clamp(2rem, 5vw, 2.8rem); margin: .35rem 0 .75rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); }
.detail-meta strong { color: var(--ink); }
.buy-box { margin-top: 1.75rem; padding: 1.4rem; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); }
.buy-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }

/* ---------- Status badges ---------- */
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--warn-soft); color: var(--warn); }
.status-badge.is-ok { background: var(--success-soft); color: var(--success); }
.status-badge.is-bad { background: var(--danger-soft); color: var(--danger); }
.status-badge.is-info { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Cart & checkout ---------- */
.cart-line {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-areas: "img info" "qty total";
    gap: .75rem 1rem;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line .l-img { grid-area: img; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--mist); }
.cart-line .l-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .l-info { grid-area: info; min-width: 0; }
.cart-line .l-info h3 { font-size: 1.1rem; margin: .1rem 0; }
.cart-line .l-qty { grid-area: qty; }
.cart-line .l-total { grid-area: total; text-align: right; }

@media (min-width: 768px) {
    .cart-line { grid-template-columns: 110px 1fr auto 140px; grid-template-areas: "img info qty total"; gap: 1rem 1.5rem; }
}

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty form { margin: 0; display: flex; }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: var(--ink); font-size: 1.1rem; line-height: 1; }
.qty button:hover { background: var(--accent-soft); color: var(--accent); }
.qty .qty-num { min-width: 34px; text-align: center; font-weight: 700; }

.link-danger-c { border: 0; background: none; padding: 0; margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--danger); }
.link-danger-c:hover { text-decoration: underline; }

.summary-card { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 992px) { .summary-card { position: sticky; top: 92px; } }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .85rem; }
.summary-row.total { padding-top: 1rem; margin-top: .25rem; border-top: 1px solid var(--line); font-size: 1.1rem; }
.text-free { color: var(--success); font-weight: 700; }

.pay-option { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:hover { border-color: var(--accent); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ---------- Orders ---------- */
.order-card { margin-bottom: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.order-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--mist); border-bottom: 1px solid var(--line); }
.order-head small { display: block; font-size: .78rem; color: var(--muted); }
.order-head strong { font-size: .95rem; }
@media (min-width: 768px) { .order-head { grid-template-columns: repeat(4, 1fr); padding: 1.1rem 1.75rem; } .order-head > div:last-child { text-align: right; } }

.order-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line .thumb { width: 72px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--mist); }
.order-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-line h3 { font-size: 1.05rem; margin: 0; }
.order-line .l-meta { font-size: .85rem; color: var(--muted); }
.order-line .l-price { text-align: right; }
@media (min-width: 768px) { .order-line { padding: 1rem 1.75rem; } }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; align-items: center; min-height: calc(100vh - 150px); padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--mist), #fff); }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; padding: 2rem 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(11, 27, 51, .08); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: .35rem; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.auth-foot { text-align: center; margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.auth-foot a { font-weight: 700; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-size: .88rem; }
@media (min-width: 576px) { .auth-card { padding: 2.5rem; } }

/* ---------- About ---------- */
.about-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ink), var(--ink-soft)); border-radius: var(--r-lg); color: rgba(255, 255, 255, .22); font-size: 6rem; }
.about-badge { position: absolute; right: 1rem; bottom: -1.25rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); font-size: .82rem; line-height: 1.3; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); line-height: 1; margin-bottom: .2rem; }

.timeline { list-style: none; margin: 1.75rem 0 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--tint); }
.timeline li { position: relative; padding: 0 0 1.25rem 1rem; }
.timeline li::before { content: ''; position: absolute; left: -1.7rem; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); }
.timeline span { color: var(--muted); font-size: .92rem; }

.mission-card, .team-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.mission-card h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.mission-card p, .team-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.team-card { text-align: center; }
.team-card .avatar { width: 64px; height: 64px; margin: 0 auto 1rem; font-size: 1.4rem; }
.team-card h3 { font-size: 1.15rem; margin: 0; }
.team-role { display: block; margin: .15rem 0 .6rem; font-size: .82rem; font-weight: 700; color: var(--accent); }

.stat-strip { background: var(--ink); color: #fff; padding: 2.5rem 0; }
.stat-strip strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; }
.stat-strip span { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 1.5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: rgba(255, 255, 255, .55); }
.site-footer p { font-size: .92rem; max-width: 38ch; margin-top: 1rem; }
.footer-heading { margin-bottom: .85rem; font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }

/* ==========================================================================
   Admin
   ========================================================================== */
body.admin { background: var(--mist); }

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: 272px;
    max-width: 85vw;
    background: var(--ink);
    color: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
}
.admin-sidebar.is-open { transform: none; }
.admin-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(11, 27, 51, .55); opacity: 0; visibility: hidden; transition: opacity .25s; }
.admin-backdrop.is-open { opacity: 1; visibility: visible; }

.admin-brand { padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.admin-brand .brand-name { color: #fff; font-size: 1.3rem; }
.admin-brand .brand-tagline { color: rgba(255, 255, 255, .55); }
.admin-nav { flex: 1; padding: .75rem 0; }
.admin-nav-title { padding: .85rem 1.5rem .3rem; font-size: .75rem; font-weight: 700; color: rgba(255, 255, 255, .45); }
.admin-nav-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; border-left: 3px solid transparent; color: rgba(255, 255, 255, .75); font-size: .92rem; font-weight: 600; }
.admin-nav-link i { width: 18px; text-align: center; opacity: .8; }
.admin-nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav-link.active { background: rgba(255, 255, 255, .1); border-left-color: #7ea1ff; color: #fff; }
.admin-nav-badge { margin-left: auto; padding: .1rem .5rem; border-radius: 999px; background: #7ea1ff; color: var(--ink); font-size: .72rem; font-weight: 800; }
.admin-user { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.admin-user .avatar { background: rgba(255, 255, 255, .14); }
.admin-user small { display: block; color: rgba(255, 255, 255, .55); }

.admin-mobilebar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; padding: .65rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.admin-mobilebar .brand-name { font-size: 1.15rem; }

.admin-main { padding: 1.25rem 1rem 2.5rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-title { font-size: clamp(1.6rem, 4vw, 2rem); margin: 0; }
.admin-sub { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-actions form { margin: 0; }

@media (min-width: 992px) {
    .admin-sidebar { transform: none; }
    .admin-backdrop { display: none; }
    .admin-mobilebar { display: none; }
    .admin-main { margin-left: 272px; padding: 2rem 2.25rem 3rem; }
}

.stat { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.stat-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.stat-icon.is-green { background: var(--success-soft); color: var(--success); }
.stat-icon.is-amber { background: var(--warn-soft); color: var(--warn); }
.stat-icon.is-ink { background: var(--tint); color: var(--ink); }
.stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .83rem; color: var(--muted); }

.admin-panel { height: 100%; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-panel-head h2 { font-size: 1.25rem; margin: 0; }

.bars { display: flex; align-items: flex-end; gap: .35rem; height: 190px; padding-top: .5rem; }
.bar { flex: 1; min-height: 3px; background: #c9d7f6; border-radius: 4px 4px 0 0; }
.bar.is-current { background: var(--accent); }
.bar-labels { display: flex; gap: .35rem; margin-top: .4rem; }
.bar-labels span { flex: 1; text-align: center; font-size: .66rem; color: var(--muted); }
@media (min-width: 576px) { .bar-labels span { font-size: .75rem; } .bars { gap: .6rem; } .bar-labels { gap: .6rem; } }

.meter-row { margin-bottom: .95rem; }
.meter-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .88rem; }
.meter { height: 7px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.data-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--mist); }
.data-table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.data-table .actions { display: flex; gap: .4rem; flex-wrap: wrap; }

@media (max-width: 767.98px) {
    .data-table.is-stacked thead { display: none; }
    .data-table.is-stacked, .data-table.is-stacked tbody { display: block; }
    .data-table.is-stacked tr { display: block; margin-bottom: .9rem; padding: .35rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
    .data-table.is-stacked td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem .95rem; border: 0; text-align: right; }
    .data-table.is-stacked td::before { content: attr(data-label); flex: none; font-size: .78rem; font-weight: 700; color: var(--muted); text-align: left; }
    .data-table.is-stacked td.cell-image::before, .data-table.is-stacked td.cell-image .thumb { display: none; }
}

.admin-search { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1.1rem; }
@media (min-width: 768px) { .admin-search { grid-template-columns: minmax(220px, 1fr) 180px 180px; } }

.upload-zone { position: relative; padding: 1.75rem 1rem; text-align: center; background: var(--mist); border: 2px dashed #b9c8ec; border-radius: var(--r); color: var(--muted); transition: border-color .2s, background .2s; }
.upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone i { font-size: 2rem; color: var(--accent); margin-bottom: .4rem; }
.upload-zone img { max-height: 200px; margin: .75rem auto 0; border-radius: var(--r-sm); }

.msg-list { display: flex; flex-direction: column; gap: .6rem; }
.msg-item { display: block; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.msg-item:hover { border-color: #b9c8ec; color: var(--ink); }
.msg-item.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .12); }
.msg-item .msg-top { display: flex; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.msg-item .msg-name { font-weight: 600; }
.msg-item.is-unread .msg-name { font-weight: 800; }
.msg-item.is-unread .msg-name::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--accent); }
.msg-item .msg-time { flex: none; color: var(--muted); font-size: .78rem; }
.msg-item .msg-subject { margin-top: .15rem; font-size: .9rem; font-weight: 600; }
.msg-item .msg-preview { margin-top: .1rem; font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-body { white-space: pre-wrap; word-break: break-word; padding: 1.1rem 1.25rem; margin: 1.25rem 0; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); line-height: 1.8; }

.confirm-card { max-width: 560px; margin: 1rem auto 0; padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.confirm-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 1.5rem; }
.confirm-product { display: flex; align-items: center; gap: 1rem; padding: .9rem; margin: 1.25rem 0 1.5rem; text-align: left; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); }
.confirm-product .thumb { flex: none; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: #fff; }
.confirm-product .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dial .hand-sec { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* Small thumbnails: shrink the placeholder so it fits */
.thumb .img-fallback, .l-img .img-fallback { min-height: 0; font-size: 1.1rem; }
