/* ============================================================
   DATS'S WELL VENTURES — design system
   Palette: deep-sea navy + working teal + warm catch-gold.
   Display face: Fraunces (character, a little briny/artisanal).
   Body/UI face: Inter.
   ============================================================ */

:root {
    --navy-950: #071726;
    --navy-900: #0B2036;
    --navy-800: #123049;
    --ocean-700: #16496b;
    --teal-600: #12897c;
    --teal-500: #17a398;
    --teal-400: #2fc6b6;
    --gold-500: #c9971f;
    --gold-100: #fbf0d6;
    --white: #ffffff;
    --mist-50: #f6f8f9;
    --mist-100: #eef2f3;
    --line-100: #e3e9eb;
    --ink-900: #10202b;
    --ink-700: #34495a;
    --ink-500: #64798c;
    --danger-600: #b5312a;
    --danger-100: #fbe4e2;
    --success-600: #1e7a4c;
    --success-100: #e1f3e8;

    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(11, 32, 54, 0.06), 0 1px 3px rgba(11, 32, 54, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 32, 54, 0.08), 0 2px 4px rgba(11, 32, 54, 0.06);
    --shadow-lg: 0 12px 32px rgba(11, 32, 54, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--mist-50);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-500), var(--ocean-700));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--white); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.brand-tag { color: var(--teal-400); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.main-nav a.active { background: var(--teal-500); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.phone-chip {
    display: flex; align-items: center; gap: 6px;
    color: var(--gold-500);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
    white-space: nowrap;
}
.btn-primary { background: var(--teal-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-ghost { background: var(--white); border-color: var(--line-100); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

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

.hero-section {
    background: radial-gradient(circle at 15% 20%, rgba(23,163,152,0.25), transparent 45%), var(--navy-950);
    color: var(--white);
    padding: 64px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47,198,182,0.14);
    border: 1px solid rgba(47,198,182,0.35);
    color: var(--teal-400);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-heading {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    color: var(--white);
    margin-bottom: 18px;
    max-width: 14ch;
}

.hero-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    max-width: 46ch;
    margin-bottom: 30px;
}

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-block .stat-num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--white);
    font-weight: 700;
}
.stat-block .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Hero side card */
.hero-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(6px);
}
.hero-card-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--teal-400), var(--teal-600));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}
.hero-card h3 { color: var(--white); text-align: center; font-size: 1.25rem; margin-bottom: 6px; }
.hero-card p.hero-card-sub { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 20px; }

.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(23,163,152,0.16);
    border: 1px solid rgba(47,198,182,0.3);
    color: var(--teal-400);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.quick-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-tile {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
}
.quick-tile .qt-icon { font-size: 1.4rem; margin-bottom: 6px; }

/* Wave divider — signature transition from hero into the page body.
   Absolutely positioned at the bottom edge so it doesn't get pushed
   down by the hero-section's own bottom padding. */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 56px; }

/* ---------- Section shells ---------- */

main.container { padding: 48px 24px 64px; }
.full-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.page-section { margin-bottom: 56px; }
.section-head { margin-bottom: 28px; }
.section-eyebrow {
    color: var(--teal-600);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}
.section-title { font-size: 1.7rem; margin-bottom: 8px; }
.section-sub { color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Filter pills ---------- */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-100);
}
.filter-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line-100);
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--teal-500); color: var(--teal-600); }
.filter-pill.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--white);
    border: 1px solid var(--line-100);
    border-radius: 999px;
    padding: 8px 16px;
    flex: 1 1 220px;
    max-width: 320px;
}
.search-box input {
    border: none; outline: none; flex: 1; font-size: 0.85rem; font-family: inherit; background: transparent;
}

/* ---------- Product grid & cards ---------- */

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

.product-card {
    background: var(--white);
    border: 1px solid var(--line-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-card-link { text-decoration: none; color: inherit; display: block; }

.product-media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(150deg, var(--mist-100), var(--mist-50));
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media-icon { font-size: 2.6rem; opacity: 0.35; }

.badge-row { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
}
.badge-featured { background: var(--gold-100); color: var(--gold-500); }
.badge-stock-out { background: var(--danger-100); color: var(--danger-600); }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); }
.product-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-900); font-weight: 600; }
.product-desc { font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.price-now { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy-900); }
.price-unit { font-size: 0.72rem; color: var(--ink-500); }

.stock-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 600;
    padding: 3px 0;
}
.stock-pill.in::before { content: "●"; color: var(--success-600); font-size: 0.6rem; }
.stock-pill.out::before { content: "●"; color: var(--danger-600); font-size: 0.6rem; }
.stock-pill.in { color: var(--success-600); }
.stock-pill.out { color: var(--danger-600); }

.product-footer { padding: 0 16px 16px; display: flex; gap: 8px; align-items: center; }
.qty-input {
    width: 56px; padding: 9px 8px;
    border: 1px solid var(--line-100);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Testimonials & gallery ---------- */

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line-100);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.testimonial-stars { color: var(--gold-500); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-quote { font-family: var(--font-display); font-size: 1rem; color: var(--ink-900); line-height: 1.45; }
.testimonial-author { font-size: 0.8rem; color: var(--ink-500); font-weight: 600; }

.gallery-tile { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Branch tiles ---------- */

.branch-tile {
    background: var(--white);
    border: 1px solid var(--line-100);
    border-radius: var(--radius-md);
    padding: 20px;
}
.branch-tile h3 { font-size: 1rem; margin-bottom: 4px; }
.branch-tile p { color: var(--ink-500); font-size: 0.82rem; }

/* ---------- Cards / tables shared across dashboard + public ---------- */

.inv-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-100);
}
.inv-table th, .inv-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-100); font-size: 0.85rem; }
.inv-table th { background: var(--navy-900); color: var(--white); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr.low-stock-row { background: var(--danger-100); }

/* ---------- Forms (shared) ---------- */

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-100);
}
.auth-card h1 { font-size: 1.3rem; margin-bottom: 20px; }

.form-group, .auth-card p, form.card-form p { margin-bottom: 16px; }
.form-group label, form p label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }
.field-hint { display: block; font-size: 0.75rem; color: var(--ink-500); margin-top: 5px; }
.field-error { display: block; font-size: 0.78rem; font-weight: 600; color: var(--danger-600); margin-top: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="tel"], input[type="url"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-100);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--white);
    color: var(--ink-900);
}
input:focus, textarea:focus, select:focus { border-color: var(--teal-500); outline: none; box-shadow: 0 0 0 3px rgba(23,163,152,0.15); }

.dashboard-welcome { background: var(--white); padding: 30px; border-radius: var(--radius-md); }
.dashboard-welcome h1 { margin-bottom: 12px; }
.dashboard-welcome p { margin-bottom: 10px; }

/* ---------- Checkout layout ---------- */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}
.checkout-section {
    background: var(--white);
    border: 1px solid var(--line-100);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 18px;
}
.checkout-section-head {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 0.95rem; color: var(--navy-900);
    margin-bottom: 18px;
}
.step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--teal-500); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}

.order-summary-card {
    background: var(--navy-950);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.order-summary-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 2px; }
.order-summary-sub { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-bottom: 18px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 8px 0; color: rgba(255,255,255,0.8); }
.summary-line.total { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.summary-item-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: center; }
.summary-item-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* ---------- Misc utility ---------- */

.messages { margin-bottom: 20px; }
.message { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 0.88rem; }
.message-success { background: var(--success-100); color: var(--success-600); }
.message-error { background: var(--danger-100); color: var(--danger-600); }
.message-warning { background: var(--gold-100); color: var(--gold-500); }
.message-info { background: var(--mist-100); color: var(--ink-700); }
.placeholder-note { color: var(--ink-500); font-style: italic; font-size: 0.85rem; }

.site-footer {
    background: var(--navy-950);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.82rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--white); font-size: 0.85rem;
}
.social-row a:hover { background: var(--teal-500); }

.chat-bubble {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--teal-500);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 50;
    transition: transform 0.15s;
}
.chat-bubble:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 10px; }
    .hero-section { padding: 40px 0 60px; }
    .stat-row { gap: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    main.container { padding: 32px 16px 48px; }
}

/* ---------- Dashboard support (KPI cards, bar charts, simple menu) ---------- */

.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.category-filters a {
    display: inline-block; padding: 7px 15px; border-radius: 999px;
    background: var(--white); color: var(--navy-900); text-decoration: none;
    font-size: 0.82rem; font-weight: 600; border: 1px solid var(--line-100);
}
.category-filters a.active, .category-filters a:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.kpi-card { background: var(--white); border: 1px solid var(--line-100); border-radius: var(--radius-md); padding: 18px; }
.kpi-card .kpi-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy-900); }
.kpi-card .kpi-label { font-size: 0.75rem; color: var(--ink-500); margin-top: 4px; }
.kpi-card.alert .kpi-value { color: var(--danger-600); }

/* Clickable KPI cards — lift + reveal a caret so it reads as "tap to open". */
a.kpi-card { position: relative; display: block; text-decoration: none; color: inherit; cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
a.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--teal-500); }
a.kpi-card:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
a.kpi-card::after { content: "\203A"; position: absolute; top: 12px; right: 14px; font-size: 1.15rem; line-height: 1;
    color: var(--teal-600); opacity: 0; transform: translateX(-3px); transition: opacity 0.15s ease, transform 0.15s ease; }
a.kpi-card:hover::after { opacity: 1; transform: translateX(0); }

.branch-filter {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
    padding: 6px 8px 6px 14px; background: var(--white);
    border: 1px solid var(--line-100); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.branch-filter-icon { color: var(--teal-600); flex-shrink: 0; }
.branch-filter label { margin: 0; font-size: 0.68rem; font-weight: 700; color: var(--ink-500);
    text-transform: uppercase; letter-spacing: 0.06em; }
.branch-filter select {
    width: auto; min-width: 150px; border: none; background: transparent; box-shadow: none;
    padding: 6px 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-900); cursor: pointer;
}
.branch-filter select:focus { outline: none; }
.branch-filter-clear {
    font-size: 0.75rem; font-weight: 600; color: var(--ink-500); text-decoration: none;
    padding: 6px 12px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.branch-filter-clear:hover { background: var(--danger-100); color: var(--danger-600); }

.chart-section { background: var(--white); border: 1px solid var(--line-100); border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-link { font-size: 0.76rem; font-weight: 600; color: var(--teal-600); text-decoration: none; white-space: nowrap; }
.chart-link:hover { color: var(--teal-500); text-decoration: underline; }
.chart-section h3 { font-size: 0.95rem; margin-bottom: 14px; }
.bar-row { display: flex; align-items: center; margin-bottom: 8px; gap: 10px; }
.bar-label { width: 110px; font-size: 0.78rem; color: var(--ink-500); flex-shrink: 0; }
.bar-track { flex: 1; background: var(--mist-100); border-radius: 4px; overflow: hidden; height: 16px; }
.bar-fill { background: var(--teal-500); height: 100%; border-radius: 4px; }
.bar-value { font-size: 0.78rem; color: var(--ink-700); width: 90px; text-align: right; flex-shrink: 0; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .dashboard-grid { grid-template-columns: 1fr; } }

.simple-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 20px; }
.simple-menu a {
    display: block; background: var(--white); border: 1px solid var(--line-100); padding: 20px;
    border-radius: var(--radius-md); text-align: center; text-decoration: none; color: var(--navy-900); font-weight: 600;
}
.simple-menu a:hover { background: var(--teal-500); color: var(--white); border-color: var(--teal-500); }

.pos-wrapper { background: var(--white); border: 1px solid var(--line-100); border-radius: var(--radius-md); padding: 24px; }

/* ============================================================
   Dashboard shell — sidebar + topbar for internal staff pages.
   Separate chrome from the public marketing site: staff need a
   working tool, not a storefront header once they're signed in.
   ============================================================ */

.dash-shell { display: flex; min-height: 100vh; background: var(--mist-50); }

.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--navy-950);
    color: rgba(255,255,255,0.82);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.dash-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    padding: 6px 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.dash-sidebar-brand .brand-name { font-size: 0.85rem; }
.dash-sidebar-brand .brand-tag { font-size: 0.6rem; }

.dash-nav-group { margin-bottom: 18px; }
.dash-nav-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 0 10px 8px;
}
.dash-nav-group a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background 0.12s;
}
.dash-nav-group a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.dash-nav-group a.active { background: var(--teal-600); color: var(--white); }
.dash-nav-icon { width: 18px; text-align: center; flex-shrink: 0; }

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

.dash-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line-100);
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
}
.dash-topbar-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-900); }
.dash-topbar-actions { display: flex; align-items: center; gap: 14px; }
.dash-user-chip {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--ink-700); font-weight: 600;
    text-decoration: none;
}
.dash-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--teal-500); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.dash-bell {
    position: relative;
    color: var(--ink-700);
    text-decoration: none;
    font-size: 1.1rem;
}
.dash-bell .dot {
    position: absolute; top: -3px; right: -3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger-600);
}

.dash-content { padding: 28px; flex: 1; }

.dash-mobile-toggle { display: none; }

@media (max-width: 960px) {
    .dash-sidebar {
        position: fixed; left: 0; top: 0; z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.2s;
        box-shadow: var(--shadow-lg);
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-mobile-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: var(--radius-sm);
        border: 1px solid var(--line-100); background: var(--white);
        font-size: 1.1rem; cursor: pointer;
    }
    .dash-content { padding: 18px; }
    .dash-topbar { padding: 12px 16px; }
}
