/* =========================================================================
   STOCKSETU DESIGN SYSTEM v2 — "Modern Business OS"
   Palette: deep teal-green (trust, growth, money) + marigold accent
   (warm, Indian, energetic) on a clean off-white canvas.
   ========================================================================= */

:root {
    --ink:        #14213D;
    --ink-soft:   #4B5566;
    --bg:         #FBFBF9;
    --surface:    #FFFFFF;
    --border:     #E8E6DE;

    --primary:    #0F6E5C;
    --primary-dk: #0A4F42;
    --primary-lt: #E7F3EF;

    --accent:     #F2A93B;
    --accent-dk:  #D88E1F;

    --danger:     #C1443A;
    --success:    #1E8E5A;

    --font-display: 'Sora', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(20,33,61,0.06);
    --shadow-md: 0 8px 24px rgba(20,33,61,0.08);
    --shadow-lg: 0 20px 48px rgba(20,33,61,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

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

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

/* ---------- Header ---------- */
.site-header {
    background: rgba(251,251,249,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.brand .dot { color: var(--accent); }
.nav-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-menu a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 60px; overflow: hidden; }
.hero::before {
    content: '';
    position: absolute;
    top: -180px; right: -200px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, var(--primary-lt) 0%, transparent 70%);
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--primary-dk);
    background: var(--primary-lt); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ink); }
.hero h1 .accent-underline { position: relative; white-space: nowrap; }
.hero h1 .accent-underline::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
    background: var(--accent); opacity: 0.35; z-index: -1; border-radius: 4px;
}
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 460px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-note .tick { color: var(--success); font-weight: 700; }

/* Signature element: live dashboard preview widget */
.dash-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.dash-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-preview-head .title { font-weight: 700; font-size: 15px; }
.dash-preview-head .live {
    font-size: 11px; font-weight: 700; color: var(--success); background: #E9F7EF;
    padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 5px;
}
.dash-preview-head .live::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.dash-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-stat { background: #FAFAF7; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.dash-stat .label { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.dash-stat .value { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.dash-stat .value.up { color: var(--success); }
.dash-stat .delta { font-size: 11px; color: var(--success); font-weight: 600; margin-top: 2px; }

.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 18px 0 6px; padding: 0 2px; }
.dash-bars .bar { flex: 1; background: var(--primary-lt); border-radius: 4px 4px 0 0; }
.dash-bars .bar.active { background: var(--primary); }

.dash-preview-list { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.dash-preview-list .row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: var(--ink-soft); }
.dash-preview-list .row span:first-child { color: var(--ink); }
.dash-preview-list .row .amt { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.section-subtitle { color: var(--ink-soft); margin-bottom: 44px; max-width: 560px; font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon-badge {
    width: 42px; height: 42px; background: var(--primary-lt); color: var(--primary-dk);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.audience-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.audience-chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::before {
    content: 'Popular'; position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price-card .plan-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.price-card .plan-price { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 12px 0; }
.price-card .plan-price span { font-size: 14px; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0; flex: 1; }
.price-card li { padding: 7px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.price-card li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ---------- Forms ---------- */
.auth-wrap { max-width: 440px; margin: 60px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.auth-wrap h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-top: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: var(--font-body); background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.alert-error { background: #FDECEA; border: 1px solid var(--danger); color: var(--danger); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7CCD9; padding: 60px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9CA3B5; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2A3352; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #7B8299; }
.social-icons { display: flex; gap: 16px; }
.social-icons a { color: #9CA3B5; }

/* ---------- Dashboard shell ---------- */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }
.app-sidebar { width: 250px; background: var(--surface); border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; }
.app-sidebar .brand { color: var(--ink); padding: 0 24px 28px; font-size: 20px; }
.app-sidebar nav a { display: block; padding: 11px 24px; color: var(--ink-soft); font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.app-sidebar nav a:hover, .app-sidebar nav a.active { background: var(--primary-lt); color: var(--primary-dk); border-left-color: var(--primary); }

/* ---------- Mobile top bar + off-canvas nav drawer ---------- */
.mobile-topbar {
    display: none;
    align-items: center;
    gap: 14px;
    height: 56px;
    padding: 0 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 60;
}
.hamburger-btn {
    width: 34px; height: 34px;
    border: none; background: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    padding: 0;
}
.hamburger-btn span { display: block; height: 2px; width: 22px; background: var(--ink); border-radius: 2px; }
.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20,33,61,0.4);
    z-index: 70;
}
.nav-overlay.show { display: block; }
.app-main { flex: 1; padding: 32px 36px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card .label { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.stat-card .value.profit { color: var(--success); }
.stat-card .value.debit { color: var(--danger); }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }

    /* Dashboard/app shell: sidebar becomes a slide-in drawer, opened via the mobile top bar hamburger button. */
    .mobile-topbar { display: flex; }
    .app-shell { flex-direction: column; }
    .app-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 80;
        overflow-y: auto;
    }
    .app-sidebar.open { transform: translateX(0); }
    .app-sidebar .brand { display: none; } /* already shown in mobile-topbar */
    .app-main { padding: 20px 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Forms: 16px input font stops iOS Safari from auto-zooming on focus,
       which is one of the most common "feels broken" mobile complaints. */
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; padding: 12px 14px; }
    .form-group label { font-size: 13px; }

    /* Headings/sections: desktop sizes are too large on a phone screen. */
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; margin-bottom: 28px; }
    .hero { padding: 28px 0 32px; }
    .hero-eyebrow { font-size: 12px; }
    .auth-wrap { margin: 24px 16px; padding: 24px 20px; }
    .auth-wrap h1 { font-size: 22px; }

    /* Cards: tighten padding so more fits without feeling cramped-scroll-y. */
    .feature-card, .price-card { padding: 20px; }
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 21px; }

    /* Buttons: full-width on mobile for primary form actions = easier tapping. */
    .stat-card form .btn-primary,
    .stat-card form .btn-outline { width: 100%; text-align: center; margin-top: 4px; }

    /* Item-entry tables (sale/purchase forms): keep inputs touch-friendly
       even inside a horizontally scrolling table. */
    table input, table select { min-height: 40px; font-size: 15px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .dash-stat-row { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 16px; }
}

@media (min-width: 901px) {
    .mobile-topbar { display: none; }
    .nav-overlay { display: none !important; }
    .bottom-nav { display: none !important; }
}

/* ---------- Bottom navigation bar (mobile) ---------- */
/* Pure link-based, no JS dependency for the main 4 tabs - always works
   even if something else on the page fails to load. */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 65;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(20,33,61,0.06);
}
.bottom-nav-inner { display: flex; justify-content: space-around; align-items: flex-end; }
.bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; color: var(--ink-soft); text-decoration: none;
    background: none; border: none; padding: 4px 6px; flex: 1;
    font-family: var(--font-body); cursor: pointer;
}
.bottom-nav a.active { color: var(--primary); font-weight: 600; }
.bottom-nav .icon { font-size: 21px; line-height: 1; }
.bottom-nav .sale-tab { margin-top: -22px; }
.bottom-nav .sale-btn {
    background: var(--primary); color: #fff;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 24px;
}
.bottom-nav .sale-tab span:last-child { color: var(--primary); font-weight: 700; margin-top: 2px; }

@media (max-width: 900px) {
    .bottom-nav { display: block; }
    .app-main { padding-bottom: 92px; }
}

/* =========================================================================
   DASHBOARD REDESIGN v3 — matching modern SaaS mockup
   ========================================================================= */

/* Sidebar section grouping */
.nav-section-label {
    padding: 16px 24px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #9CA3B5;
}
.app-sidebar nav a.nav-sub { font-size: 13px; padding-left: 44px; }

/* Layout: sidebar + content column (topbar sits above main, inside content column) */
.app-shell { align-items: stretch; }
.app-content-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Desktop top bar */
.desktop-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 28px; background: var(--surface);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40;
}
.desktop-search-stub {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 14px; color: var(--ink-soft); font-size: 14px; cursor: pointer;
    width: 320px; max-width: 40vw; font-family: var(--font-body);
}
.desktop-search-stub .kbd-hint {
    margin-left: auto; font-size: 11px; background: var(--surface); border: 1px solid var(--border);
    padding: 2px 6px; border-radius: 5px; color: var(--ink-soft);
}
.desktop-topbar-right { display: flex; align-items: center; gap: 16px; }
.business-pill {
    display: inline-flex; align-items: center; gap: 6px; background: var(--primary-lt); color: var(--primary-dk);
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.soon-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.icon-btn-bell {
    position: relative; background: none; border: none; font-size: 19px; cursor: pointer; padding: 4px;
}
.bell-badge {
    position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--danger);
    border-radius: 50%; font-size: 0;
}
.avatar-circle {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
    font-family: var(--font-display);
}

/* Coming Soon toast */
.soon-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
    font-size: 13px; font-weight: 600; z-index: 300; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.soon-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 901px) { .soon-toast { bottom: 24px; } }

.date-pill {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}

/* Hero stat card (Today's Sales) */
.hero-stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    border-radius: var(--radius-lg); padding: 22px 24px; color: #fff;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-bottom: 18px; box-shadow: var(--shadow-md);
}
.hero-stat-top { display: flex; align-items: center; gap: 16px; }
.hero-stat-icon {
    width: 52px; height: 52px; background: rgba(255,255,255,0.18); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.hero-stat-label { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.hero-stat-value { font-family: var(--font-mono); font-size: 28px; font-weight: 700; }
.hero-stat-delta { font-size: 12px; margin-top: 4px; opacity: 0.9; }
.hero-stat-link {
    background: rgba(255,255,255,0.15); color: #fff; padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.hero-stat-link:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Mini stat grids */
.stat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px;
}
.mini-stat-icon {
    width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-bottom: 10px;
}
.icon-blue { background: #E7F0FE; }
.icon-navy { background: #E9EBF5; }
.icon-orange { background: #FEF1E4; }
.icon-red { background: #FDECEA; }
.icon-purple { background: #F1EAFB; }
.icon-amber { background: #FEF6DC; }
.icon-green { background: var(--primary-lt); }
.icon-teal { background: #E1F5F1; }
.mini-stat-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.mini-stat-value { font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.mini-stat-delta { font-size: 11px; margin-top: 4px; font-weight: 600; }
.mini-stat-delta.up { color: var(--success); }
.mini-stat-delta.down { color: var(--danger); }
.mini-stat-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; }

/* Section headers */
.section-header-row { margin: 22px 0 12px; }
.section-header-row h2 { font-family: var(--font-display); font-size: 17px; margin: 0; }

/* Quick actions */
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qa-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
    font-family: var(--font-body); position: relative; text-decoration: none;
}
.qa-btn:hover { box-shadow: var(--shadow-sm); text-decoration: none; }
.qa-btn span { font-size: 22px; }
.qa-btn em {
    position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 9px; font-weight: 700;
    background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 999px;
}
.qa-muted { color: var(--ink-soft); }
.qa-green span { color: var(--success); } .qa-orange span { color: #D97706; }
.qa-blue span { color: #2563EB; } .qa-purple span { color: #7C3AED; }
.qa-red span { color: var(--danger); } .qa-teal span { color: var(--primary); }

/* Business overview row */
.biz-overview-row {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.biz-overview-item { display: flex; align-items: center; gap: 10px; }
.biz-label { font-size: 11px; color: var(--ink-soft); }
.biz-value { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }

/* Dashboard 2-column layout: chart + sidebar widgets */
.dashboard-2col { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 22px; align-items: start; }
.desktop-chart-card { padding: 20px; }
.chart-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.low-stock-row, .recent-txn-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.low-stock-row:last-child, .recent-txn-row:last-child { border-bottom: none; }
.recent-txn-row { justify-content: space-between; }
.low-stock-icon {
    width: 30px; height: 30px; background: #FDECEA; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}

/* ---------- Mobile responsiveness for the redesign ---------- */
@media (max-width: 900px) {
    .desktop-topbar { display: none; }
    .stat-grid-4 { grid-template-columns: 1fr 1fr; }
    .stat-grid-2 { grid-template-columns: 1fr; }
    .quick-actions-grid { grid-template-columns: repeat(3, 1fr); }
    .biz-overview-row { grid-template-columns: 1fr 1fr; }
    .dashboard-2col { grid-template-columns: 1fr; }
    .chart-stats-row { grid-template-columns: 1fr 1fr; }
    .hero-stat-value { font-size: 22px; }
    .hero-stat-card { padding: 18px; }
}
@media (max-width: 480px) {
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .biz-overview-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   FEATURE: Offline Mode v1.0 (Phase 1 - Read-Only Caching)
   ========================================================================= */
.offline-banner-v1 {
    background: var(--danger);
    color: #fff;
    text-align: center;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
}
.offline-banner-v1 strong { font-weight: 700; }
