* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #fffaf0;
    color: #2f2f2f;
    line-height: 1.55;
}

button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    color: #1f7a3f;
    letter-spacing: 0.3px;
}

.nav-logo { font-size: 24px; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover { color: #1f7a3f; }

.nav-cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
    background:
        linear-gradient(135deg, rgba(26,102,53,0.92), rgba(31,122,63,0.85)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1400') center/cover;
    color: white;
    padding: 96px 20px 104px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 19px;
    opacity: 0.95;
    margin: 0 auto 32px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #f4a261;
    color: white;
    border: none;
    padding: 16px 38px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(244,162,97,0.45);
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244,162,97,0.55); }

.btn-hero-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
}

.btn-hero-ghost:hover { background: rgba(255,255,255,0.15); border-color: white; }

.hero-toast {
    margin-top: 22px !important;
    font-size: 15px !important;
    font-weight: 600;
    min-height: 22px;
    color: #ffe9d3;
}

/* ═══════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: -52px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.trust-item {
    background: white;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item span { font-size: 28px; }
.trust-item strong { display: block; font-size: 15px; color: #1a1a1a; }
.trust-item p { margin: 2px 0 0; font-size: 13px; color: #888; }

/* ═══════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════ */
.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: 36px;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.section-title p {
    color: #888;
    font-size: 16px;
    margin: 0;
}

.products {
    padding: 72px 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f3f3f3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f4a261;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
}

.product-tag.tag-green { background: #1f7a3f; }

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    margin: 0 0 4px;
    font-size: 19px;
    color: #1a1a1a;
}

.product-desc {
    color: #888;
    font-size: 13px;
    margin: 0 0 10px;
    flex: 1;
}

.product-price {
    margin: 0 0 14px;
    font-size: 14px;
    color: #666;
}

.product-price strong {
    color: #1f7a3f;
    font-size: 18px;
}

.product-body label {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-body select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
    margin-bottom: 14px;
    cursor: pointer;
}

.product-body select:focus { outline: none; border-color: #1f7a3f; }

.btn-add {
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
    border: none;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-add:hover { opacity: 0.92; }
.btn-add:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════
   CART
═══════════════════════════════════════════════ */
#cart {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

#cart > h2,
.cart-main h2 {
    font-size: 30px;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 385px;   /* summary ~13% wider */
    gap: 28px;
    align-items: center;                /* vertically centre summary vs cart content */
}

.cart-main {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* Cart header: title + "X Products • Y Total Items" subline */
.cart-header { margin-bottom: 18px; }
.cart-header .cart-heading { margin: 0; }
.cart-subline {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7178;
}

/* ═══════════════ PRODUCT-GROUPED CART (compact nested tables) ═══════════════ */
#cart-items { display: flex; flex-direction: column; gap: 10px; }

/* One card per PRODUCT (all weight variants grouped inside) */
.cart-product {
    background: #fff;
    border: 1px solid #eef0ee;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.cart-product:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); border-color: #e2e8e3; }

/* Product header: image + name (compact) */
.cp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 13px 4px;   /* tighter; less gap to first weight row */
    border-bottom: 1px solid #f3f5f3;
}
.cart-thumb {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-name {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #1f2429;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nested variant table — aligned columns */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cp-table th {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #9aa0a6;
    text-align: left;
    padding: 5px 14px;
    border-bottom: 1px solid #f1f3f1;
}
.cp-table td {
    padding: 3.4px 14px;   /* ~15% tighter rows */
    border-bottom: 1px solid #f5f7f5;
    vertical-align: middle;
}
.cp-table tbody tr:last-child td { border-bottom: none; }
.cp-table tbody tr:hover td { background: #fafcfa; }

/* Single column-header strip at the top of the cart (shown once) */
.cart-colhead { margin-bottom: 2px; }
.cart-colhead th {
    padding-top: 2px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef0ee;
}

/* Column widths + alignment */
.cv-weight-cell { width: 24%; }
.cv-qty-cell    { width: 27%; }
.cv-unit-cell   { width: 21%; text-align: right; }
.cv-total-cell  { width: 20%; text-align: right; }
.cv-remove-cell { width: 8%; text-align: center; }
.cp-table th.cv-unit-cell, .cp-table th.cv-total-cell { text-align: right; }

.cv-weight {
    font-size: 12.5px;
    font-weight: 700;
    color: #1f7a3f;
    background: #e8f5ec;
    padding: 2px 9px;
    border-radius: 16px;
    white-space: nowrap;
}
.cv-unit-cell  { font-size: 13px; color: #5b616a; }
.cv-total-cell { font-size: 13.5px; font-weight: 800; color: #1f2429; }

/* Bordered quantity pill — [-] 4 [+] (compact, touch-friendly) */
.cart-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #d8e0da;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    height: 30px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cart-qty:hover { border-color: #bcd9c6; box-shadow: 0 1px 4px rgba(31,122,63,0.10); }
.cart-qty .qbtn {
    width: 30px;
    border: none;
    background: transparent;
    color: #1f7a3f;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.cart-qty .qbtn:hover { background: #e8f5ec; }
.cart-qty .qbtn:active { background: #d6ecdd; }
.cart-qty .qval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 4px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1f2429;
    border-left: 1.5px solid #eef0ee;
    border-right: 1.5px solid #eef0ee;
}

/* Remove (per variant) — clean trash icon, red on hover */
.cart-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #aab0b6;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.12s;
}
.cart-trash svg { display: block; width: 15px; height: 15px; }
.cart-trash:hover { background: #fdecea; color: #c0392b; transform: translateY(-1px); }
.cart-trash:active { background: #f7d9d5; }

/* Product subtotal — thin divider row (no heavy section) */
.cp-foot {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    padding: 4px 14px;
    background: #fff;
    border-top: 1px solid #eef0ee;
}
.cp-foot-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #8a9097;
}
.cp-foot-val { font-size: 14px; font-weight: 800; color: #1f7a3f; }

/* ── Empty state ── */
.cart-empty { text-align: center; padding: 46px 20px; }
.cart-empty-ico { font-size: 52px; margin-bottom: 8px; }
.cart-empty h3 { margin: 6px 0; font-size: 20px; color: #1f2429; }
.cart-empty p { margin: 0 0 20px; color: #8a9097; font-size: 14.5px; }
.btn-continue {
    display: inline-block;
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 26px;
    border-radius: 10px;
    transition: opacity 0.2s;
}
.btn-continue:hover { opacity: 0.92; }

/* ═══════════════ MOBILE: stack table cells into rows ═══════════════ */
@media (max-width: 640px) {
    .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; width: 100%; }
    .cp-table thead { display: none; }
    .cart-colhead { display: none; } /* top header strip hidden when rows stack */
    .cp-table tr {
        padding: 10px 18px;
        border-bottom: 1px solid #f1f3f1;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "weight total"
            "qty    remove";
        gap: 8px 12px;
        align-items: center;
    }
    .cp-table tbody tr:last-child { border-bottom: none; }
    .cp-table td { padding: 0; border: none; }
    .cv-weight-cell { grid-area: weight; }
    .cv-qty-cell    { grid-area: qty; }
    .cv-unit-cell   { display: none; }
    .cv-total-cell  { grid-area: total; justify-self: end; text-align: right; }
    .cv-total-cell::before {
        content: attr(data-label) ": ";
        font-size: 11px; font-weight: 700; text-transform: uppercase;
        color: #9aa0a6; letter-spacing: 0.4px;
    }
    .cv-remove-cell { grid-area: remove; justify-self: end; }
}
@media (max-width: 420px) {
    .cart-thumb { flex-basis: 44px; width: 44px; height: 44px; }
    .cp-name { font-size: 15px; }
}

.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    margin: 0 0 20px;
    font-size: 19px;
    color: #1a1a1a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.summary-grand {
    border-bottom: none;
    align-items: baseline;
    font-weight: 800;
    font-size: 15px;
    color: #1a1a1a;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px solid #eef0ee;
}
.summary-grand #grand-total {
    font-size: 26px;            /* ~8% larger, same green */
    font-weight: 900;
    color: #1f7a3f;
    letter-spacing: -0.3px;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(31,122,63,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31,122,63,0.30);
    filter: brightness(1.03);
}
.btn-checkout:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(31,122,63,0.22); }

.btn-clear {
    width: 100%;
    background: transparent;
    color: #c0392b;
    border: 1.5px solid #f0d0cc;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-clear:hover { background: #fff5f5; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
    background: #1a2b1f;
    color: #cfe0d4;
    padding: 56px 40px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 36px;
}

.footer-grid h4 { margin: 0 0 12px; font-size: 19px; color: white; }
.footer-grid h5 { margin: 0 0 14px; font-size: 14px; color: white; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-grid p { margin: 0; font-size: 14px; opacity: 0.8; max-width: 320px; }
.footer-grid a { display: block; color: #cfe0d4; text-decoration: none; font-size: 14px; margin-bottom: 8px; opacity: 0.85; transition: opacity 0.2s; }
.footer-grid a:hover { opacity: 1; color: #f4a261; }

.footer-bottom {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   CHECKOUT (preserved)
═══════════════════════════════════════════════ */
#checkout {
    margin-top: 50px;
    padding: 20px;
}

#checkout label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

#checkout input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════
   ACCOUNT DROPDOWN MENU
═══════════════════════════════════════════════ */
#account-menu {
    position: relative;
    z-index: 9999;
}

#account-icon {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s, box-shadow 0.2s;
}

#account-icon:hover { background: #eaeaea; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

#account-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    width: 248px;
    background: white;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    border: 1px solid #eef0ee;
}

#account-dropdown a {
    display: block;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

#account-dropdown a:hover { background: #f6faf7; color: #1f7a3f; }

/* Profile header inside the avatar dropdown */
#account-dropdown .dd-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 12px 12px;
}
#account-dropdown .dd-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
#account-dropdown .dd-id { min-width: 0; display: flex; flex-direction: column; }
#account-dropdown .dd-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #23272b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#account-dropdown .dd-email {
    font-size: 12px;
    color: #9aa0a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#account-dropdown .dd-divider {
    height: 1px;
    background: #eef0ee;
    margin: 4px 6px 6px;
}
#account-dropdown a.dd-logout { color: #c0392b; font-weight: 600; }
#account-dropdown a.dd-logout:hover { background: #fdecea; color: #c0392b; }

/* ═══════════════════════════════════════════════
   HOMEPAGE RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-strip  { grid-template-columns: repeat(2, 1fr); }
    .cart-wrapper { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .navbar       { padding: 12px 18px; }
    .nav-actions  { gap: 14px; }
    .nav-link:not(.nav-cart-link) { display: none; }
    .hero         { padding: 64px 18px 80px; }
    .hero h1      { font-size: 36px; }
    .hero p       { font-size: 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .trust-strip  { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; }
    .products     { padding: 48px 18px; }
}


/* ═══════════════════════════════════════════════
   ACCOUNT DASHBOARD — PREMIUM LAYOUT
═══════════════════════════════════════════════ */

/* Account page header */
.account-header {
    background: linear-gradient(135deg, #1a6635 0%, #1f7a3f 100%);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.brand-link {
    text-decoration: none;
    color: white;
}

.brand-link h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.account-header #account-menu {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

/* Main account wrapper */
#account {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

/* ── Profile Header ─────────────────────────── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d88b36, #f4a261);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216,139,54,0.35);
}

.profile-details {
    flex: 1;
    min-width: 200px;
}

.profile-details h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #1a1a1a;
    text-align: left;
}

.welcome-text {
    color: #1f7a3f;
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 12px;
}

.profile-meta p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

.profile-meta strong {
    color: #1a1a1a;
}

.logout-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.logout-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff5f5;
}

/* ── Section Divider ────────────────────────── */
.section-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 32px 0;
}

/* ── Stats Dashboard ────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.dashboard-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 22px 24px;
    border-top: 3px solid #f4a261;
    transition: transform 0.18s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.stat-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.stat-label {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
}

.stat-value {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Order History ──────────────────────────── */
.order-history-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    padding: 28px 32px;
}

#order-history-panel { margin-top: 36px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
    text-align: left;
}

.order-badge {
    background: #1f7a3f;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

#order-history {
    display: block;   /* compact rows stack full-width; the header + rows align as one table */
}

/* (Removed dead legacy order-card / order-date / order-status / order-totals rules —
   the My Orders styling now lives in ONE block further down.) */

/* Empty orders */
.empty-orders {
    text-align: center;
    padding: 48px 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-orders p {
    color: #999;
    font-size: 16px;
    margin: 0 0 16px;
}

.shop-link {
    display: inline-block;
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

.shop-link:hover { opacity: 0.88; }

/* ── Auth Section ───────────────────────────── */
.auth-hero {
    text-align: center;
    padding: 48px 20px 32px;
}

.auth-hero-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 14px;
}

.auth-hero h2 {
    margin: 0 0 8px;
    font-size: 30px;
    color: #1a1a1a;
    text-align: center;
}

.auth-hero p {
    color: #777;
    font-size: 16px;
    margin: 0;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.auth-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #1a1a1a;
}

.auth-subtitle {
    color: #999;
    font-size: 14px;
    margin: 0 0 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1f7a3f;
    background: white;
    box-shadow: 0 0 0 3px rgba(31,122,63,0.1);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 6px;
}

.auth-btn:hover { opacity: 0.9; }
.auth-btn:active { transform: scale(0.99); }

.auth-btn.primary {
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
}

.auth-btn.secondary {
    background: linear-gradient(135deg, #d88b36, #f4a261);
    color: white;
}

/* ── Toast ──────────────────────────────────── */
.ftk-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    z-index: 99999;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    display: none;
}

.toast-success { background: #1f7a3f; }
.toast-error   { background: #c0392b; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 700px) {
    .dashboard-grid  { grid-template-columns: 1fr; }
    .auth-grid       { grid-template-columns: 1fr; }
    #order-history   { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .order-card-body { grid-template-columns: 1fr; }
    .order-totals    { border-left: none; padding-left: 0; border-top: 1px solid #f0f0f0; padding-top: 16px; }
    .profile-header  { flex-direction: column; align-items: flex-start; }
    .logout-btn      { margin-left: 0; width: 100%; }
    #account         { margin: 16px auto; }
    .order-history-section { padding: 20px 16px; }
    .auth-card       { padding: 24px 20px; }
}

/* ===============================================
   PAYMENT - PREMIUM CHECKOUT
=============================================== */
.payment-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 20%, rgba(31,122,63,0.07), transparent 26%),
        radial-gradient(circle at 92% 85%, rgba(244,162,97,0.09), transparent 28%),
        #f7f8f5;
}

.payment-nav { position: relative; }

.payment-secure-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #5d675f;
    font-size: 13px;
    font-weight: 700;
}

.payment-secure-label svg,
.payment-protection svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 590px;
    margin: 28px auto 0;
    padding: 0 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa09c;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.step-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid #d7dcd8;
    border-radius: 50%;
    background: white;
    font-size: 12px;
}

.step.done { color: #477654; }
.step.done .step-num { color: white; background: #477654; border-color: #477654; }
.step.active { color: #173e26; }
.step.active .step-num { color: white; background: #173e26; border-color: #173e26; box-shadow: 0 0 0 5px rgba(31,122,63,0.1); }

.step-line {
    width: 80px;
    height: 1px;
    margin: 0 12px;
    background: #d7dcd8;
}

.step-line.done { background: #78a685; }

.payment-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 24px 80px;
}

.payment-heading { margin-bottom: 28px; }
.payment-heading .eyebrow,
.summary-kicker {
    color: #1f7a3f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.payment-heading h1 {
    margin: 5px 0 5px;
    color: #14291c;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.1px;
}

.payment-heading p { margin: 0; color: #748078; font-size: 15px; }

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.payment-card,
.payment-summary {
    background: rgba(255,255,255,0.97);
    border: 1px solid #e9ede9;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(27,54,35,0.08);
}

.payment-card { padding: 30px; }
.payment-card-header,
.summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.payment-card h2,
.payment-summary h2 { margin: 0; color: #17251c; font-size: 21px; }
.payment-card-header p { margin: 4px 0 0; color: #8a938d; font-size: 13px; }

.card-marks { display: flex; gap: 5px; }
.card-marks span {
    min-width: 38px;
    padding: 4px 6px;
    border: 1px solid #e3e7e4;
    border-radius: 5px;
    color: #314c75;
    background: #fafbfa;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 25px 0;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78px;
    gap: 10px;
    padding: 13px;
    border: 1.5px solid #e6ebe7;
    border-radius: 12px;
    background: #fbfcfb;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.payment-option:hover { transform: translateY(-1px); border-color: #a8c7b1; }
.payment-option.selected { border-color: #1f7a3f; background: #f1f8f3; box-shadow: 0 0 0 3px rgba(31,122,63,0.08); }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }

.payment-option-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    background: white;
    color: #41664d;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.payment-option-icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-option-copy { min-width: 0; }
.payment-option-copy strong { display: block; color: #27332b; font-size: 12px; line-height: 1.25; }
.payment-option-copy small { display: block; margin-top: 3px; color: #909993; font-size: 10px; line-height: 1.3; }

.radio-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 13px;
    height: 13px;
    border: 1.5px solid #c7ceca;
    border-radius: 50%;
    background: white;
}

.selected .radio-dot { border: 4px solid #1f7a3f; }

.payment-details {
    min-height: 172px;
    padding: 22px;
    border: 1px solid #edf0ed;
    border-radius: 14px;
    background: #fafbf9;
}

.card-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-field.full { grid-column: 1 / -1; }
.payment-field label { display: block; margin-bottom: 6px; color: #465049; font-size: 12px; font-weight: 700; }
.payment-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1.5px solid #dde3de;
    border-radius: 9px;
    outline: none;
    color: #1b2b20;
    background: white;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.payment-field input:focus { border-color: #1f7a3f; box-shadow: 0 0 0 3px rgba(31,122,63,.1); }
.payment-field input::placeholder { color: #b0b7b2; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 55px; }
.input-with-icon span { position: absolute; top: 14px; right: 13px; color: #39598b; font-size: 10px; font-weight: 900; }

.method-note { display: flex; gap: 14px; align-items: flex-start; padding: 20px 10px; }
.method-note-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    color: white;
    background: #1f7a3f;
    font-size: 12px;
    font-weight: 800;
}
.method-note strong { color: #25332a; font-size: 14px; }
.method-note p { max-width: 460px; margin: 5px 0 0; color: #778079; font-size: 13px; line-height: 1.6; }

.payment-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; color: #9d2e24; background: #fff1ef; font-size: 13px; }
.btn-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    padding: 16px 20px;
    border: none;
    border-radius: 11px;
    color: white;
    background: linear-gradient(135deg, #195e34, #238a49);
    box-shadow: 0 10px 24px rgba(31,122,63,.25);
    font-size: 15px;
    font-weight: 800;
    transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-pay:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(31,122,63,.3); }
.btn-pay:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.payment-protection { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 14px 0 0; color: #8a948d; font-size: 11px; }
.payment-protection svg { width: 15px; color: #4e795a; }

.payment-summary { position: sticky; top: 24px; padding: 27px; }
.summary-top { align-items: center; padding-bottom: 20px; border-bottom: 1px solid #edf0ed; }
.summary-top h2 { margin-top: 3px; font-size: 20px; }
.summary-top a { color: #1f7a3f; font-size: 12px; font-weight: 800; text-decoration: none; }
.payment-summary-items { padding: 12px 0; border-bottom: 1px solid #edf0ed; }
.payment-summary-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 9px 0; color: #4e5951; font-size: 12px; }
.payment-summary-item strong { color: #26342b; font-size: 12px; }
.item-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #42604b; background: #eef4ef; font-size: 10px; font-weight: 800; }
.payment-empty { color: #7b847e; font-size: 13px; }
.payment-empty a { color: #1f7a3f; font-weight: 700; }
.payment-summary-totals { padding: 14px 0 2px; }
.payment-summary-totals > div { display: flex; justify-content: space-between; padding: 7px 0; color: #707b73; font-size: 13px; }
.payment-summary-totals .payment-total { margin-top: 7px; padding-top: 15px; border-top: 1px dashed #dfe4e0; color: #1d2d22; font-size: 15px; font-weight: 800; }
.payment-total strong { color: #195e34; font-size: 21px; }

.delivery-promise { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px; border-radius: 11px; background: #f2f7f3; }
.delivery-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; color: white; background: #4d8b5e; font-size: 11px; font-weight: 800; }
.delivery-promise strong { color: #36523e; font-size: 12px; }
.delivery-promise p { margin: 2px 0 0; color: #7b8c80; font-size: 10px; line-height: 1.4; }

/* ── Read-only delivery details (left card top) ── */
.delivery-details { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #edf0ed; }
.delivery-details .dd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.delivery-details .dd-head h2 { margin: 0; font-size: 17px; color: #17251c; }
.dd-change { color: #1f7a3f; font-size: 12px; font-weight: 800; text-decoration: none; padding: 6px 12px; border: 1.5px solid #cfe6d6; border-radius: 20px; transition: background .15s, border-color .15s; }
.dd-change:hover { background: #eaf5ee; border-color: #1f7a3f; }
.dd-list { list-style: none; margin: 0; padding: 0; }
.dd-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.dd-list .dd-k { color: #8a938d; font-weight: 600; }
.dd-list .dd-v { color: #1f2e24; font-weight: 700; }

/* ── Grouped order review (right summary) ── */
.psg-product { padding: 11px 0; border-bottom: 1px solid #f1f4f1; }
.psg-product:last-child { border-bottom: none; }
.psg-name { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: #1d2d22; }
.psg-variant { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0 3px 12px; font-size: 12.5px; color: #5b6b60; }
.psg-v-label { position: relative; }
.psg-v-label::before { content: "•"; position: absolute; left: -12px; color: #bcd0c2; }
.psg-v-total { font-weight: 800; color: #26342b; white-space: nowrap; }

/* ── Delivery Information (right summary footer) ── */
.delivery-info { margin-top: 18px; padding: 15px 16px; border-radius: 12px; background: #f2f7f3; border: 1px solid #e4efe7; }
.delivery-info .di-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.delivery-info .di-ico { font-size: 16px; }
.delivery-info .di-head strong { font-size: 13.5px; color: #2c4836; }
.di-eta { display: flex; flex-direction: column; gap: 1px; margin-bottom: 9px; }
.di-eta .di-label, .di-fee-row .di-label { color: #8a948d; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.di-eta .di-value { color: #2c4836; font-size: 13px; font-weight: 700; }
.di-fee-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 9px; border-top: 1px solid #e0ece3; }
.di-fee-row strong { color: #195e34; font-size: 15px; font-weight: 800; }

/* ── Secure Checkout (left card, under button) ── */
.secure-checkout { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f6f9f6; border: 1px solid #ebf0eb; }
.secure-checkout .sc-title { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #1d2d22; display: flex; align-items: center; gap: 7px; }
.secure-checkout .sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.secure-checkout .sc-list li { position: relative; padding-left: 22px; font-size: 12.5px; color: #5b6b60; }
.secure-checkout .sc-list li::before { content: "✓"; position: absolute; left: 0; color: #1f7a3f; font-weight: 900; }

/* Button reads "Complete Order — ₦X" as one centred phrase */
.btn-pay { justify-content: center; gap: 8px; }

.payment-success { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(15,35,21,.62); backdrop-filter: blur(5px); }
.payment-success[hidden] { display: none; }
.success-card { width: min(400px, 100%); padding: 40px 30px; border-radius: 20px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.25); text-align: center; animation: success-in .3s ease-out; }
.success-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; color: white; background: #1f7a3f; font-size: 25px; font-weight: 900; }
.success-card h2 { margin: 0 0 8px; color: #17271c; font-size: 25px; }
.success-card p { margin: 0; color: #758078; font-size: 14px; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

@media (max-width: 860px) {
    .payment-layout { grid-template-columns: 1fr; }
    .payment-summary { position: static; grid-row: 1; }
}

@media (max-width: 620px) {
    .payment-nav { padding: 13px 17px; }
    .payment-nav .nav-brand { font-size: 17px; }
    .payment-secure-label { font-size: 11px; }
    .checkout-steps { margin-top: 20px; }
    .step { font-size: 0; gap: 0; }
    .step.active { font-size: 12px; gap: 7px; }
    .step-line { width: 45px; margin: 0 7px; }
    .payment-shell { padding: 28px 14px 50px; }
    .payment-heading { margin-left: 3px; }
    .payment-heading h1 { font-size: 30px; letter-spacing: -.7px; }
    .payment-card, .payment-summary { border-radius: 16px; }
    .payment-card { padding: 21px 16px; }
    .payment-summary { padding: 21px; }
    .payment-options { grid-template-columns: 1fr; }
    .payment-option { min-height: 68px; }
    .payment-details { min-height: 0; padding: 17px 14px; }
    .card-form { gap: 13px; }
    .payment-protection { text-align: center; }
}
/* ═══════════════════════════════════════════════
   CHECKOUT PAGE — PREMIUM
═══════════════════════════════════════════════ */

/* Step indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 20px 8px;
    max-width: 560px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.step.active { color: #1f7a3f; }
.step.active .step-num { background: #1f7a3f; color: white; }

.step.done { color: #1f7a3f; }
.step.done .step-num { background: #27a352; color: white; }

.step-line {
    flex: 1;
    height: 2px;
    background: #e6e6e6;
    max-width: 60px;
}

/* Layout */
#checkout-page {
    max-width: 1020px;
    margin: 24px auto 80px;
    padding: 0 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.checkout-form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.checkout-form-card h2 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #1a1a1a;
}

.checkout-sub {
    color: #999;
    font-size: 14px;
    margin: 0 0 24px;
}

.checkout-note {
    font-size: 13px;
    color: #888;
    background: #f6faf7;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 0;
}

/* ── Read-only customer information ── */
.cust-readonly { margin-top: 6px; }
.ro-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f4f2; font-size: 14.5px; }
.ro-row .ro-k { color: #8a938d; font-weight: 600; }
.ro-row .ro-v { color: #1f2e24; font-weight: 700; word-break: break-word; }
.ro-addr-block { padding: 14px 0 4px; }
.ro-addr-head { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #9aa0a6; margin-bottom: 5px; }
.ro-addr { display: block; font-size: 14.5px; font-weight: 700; color: #1f2e24; line-height: 1.45; }
.btn-change-addr {
    margin-top: 16px;
    background: #fff;
    color: #1f7a3f;
    border: 1.5px solid #cfe6d6;
    border-radius: 22px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.btn-change-addr:hover { background: #eaf5ee; border-color: #1f7a3f; transform: translateY(-1px); }

.cust-edit { margin-top: 4px; }
.btn-save-addr {
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-save-addr:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,122,63,0.25); }

/* ── Grouped order summary (checkout) ── */
.cs-product { padding: 12px 0; border-bottom: 1px solid #f0f2f0; }
.cs-product:last-child { border-bottom: none; }
.cs-name { margin: 0 0 7px; font-size: 14.5px; font-weight: 800; color: #1d2d22; }
.cs-variant { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0 3px 14px; position: relative; font-size: 13px; color: #5b6b60; }
.cs-variant .cs-v-label::before { content: "•"; position: absolute; left: 0; color: #bcd0c2; }
.cs-variant .cs-v-total { font-weight: 800; color: #26342b; white-space: nowrap; }
.cs-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; padding-top: 8px; border-top: 1px dashed #e3e8e3; }
.cs-subtotal span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #8a948d; }
.cs-subtotal strong { font-size: 15px; font-weight: 800; color: #1f7a3f; }

/* ── Delivery Information (checkout summary) ── */
.checkout-delivery-info { margin: 18px 0; padding: 15px 16px; border-radius: 12px; background: #f2f7f3; border: 1px solid #e4efe7; }
.checkout-delivery-info .cdi-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.checkout-delivery-info .cdi-ico { font-size: 17px; }
.checkout-delivery-info .cdi-head strong { font-size: 14px; color: #2c4836; }
.cdi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.cdi-row .cdi-label { color: #8a948d; font-size: 12px; font-weight: 600; }
.cdi-row .cdi-value { color: #2c4836; font-size: 13px; font-weight: 700; text-align: right; }
.cdi-row.cdi-fee { margin-top: 5px; padding-top: 9px; border-top: 1px solid #e0ece3; }
.cdi-row.cdi-fee strong { color: #195e34; font-size: 15px; font-weight: 800; }

/* Summary card */
.checkout-summary-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: sticky;
    top: 24px;
}

.checkout-summary-card h3 {
    margin: 0 0 18px;
    font-size: 19px;
    color: #1a1a1a;
}

.summary-items {
    margin-bottom: 18px;
}

.summary-line {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.summary-line-name {
    font-size: 14px;
    color: #444;
}

.summary-totals {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.summary-empty {
    text-align: center;
    padding: 24px 10px;
    color: #999;
}

.summary-empty span { font-size: 36px; display: block; margin-bottom: 8px; }
.summary-empty p { margin: 0 0 10px; font-size: 14px; }
.summary-empty a { color: #1f7a3f; font-weight: 600; text-decoration: none; }
.summary-empty a:hover { text-decoration: underline; }

.btn-confirm {
    width: 100%;
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 20px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-confirm:hover { opacity: 0.92; }
.btn-confirm:active { transform: scale(0.99); }

.back-cart-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.back-cart-link:hover { color: #1f7a3f; }

@media (max-width: 800px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary-card { position: static; }
    .checkout-form-card { padding: 24px 20px; }
}

/* Payment progress overrides live here so checkout's legacy rules stay isolated. */
.payment-page .checkout-steps {
    gap: 0;
    max-width: 590px;
    margin: 28px auto 0;
    padding: 0 20px;
}

.payment-page .step {
    gap: 8px;
    color: #9aa09c;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-page .step-num {
    width: 28px;
    height: 28px;
    border: 1.5px solid #d7dcd8;
    background: white;
    color: #9aa09c;
    font-size: 12px;
}

.payment-page .step.done { color: #477654; }
.payment-page .step.done .step-num { color: white; background: #477654; border-color: #477654; }
.payment-page .step.active { color: #173e26; }
.payment-page .step.active .step-num { color: white; background: #173e26; border-color: #173e26; }
.payment-page .step-line { flex: none; width: 80px; max-width: none; height: 1px; margin: 0 12px; background: #d7dcd8; }
.payment-page .step-line.done { background: #78a685; }

@media (max-width: 620px) {
    .payment-page .checkout-steps { margin-top: 20px; }
    .payment-page .step { gap: 0; font-size: 0; }
    .payment-page .step.active { gap: 7px; font-size: 12px; }
    .payment-page .step-line { width: 45px; margin: 0 7px; }
}

/* ═══════════════════════════════════════════════
   ADMIN DASHBOARD
═══════════════════════════════════════════════ */
.admin-pill {
    background: #1f7a3f;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 6px;
    margin-left: 4px;
}

#admin-page {
    max-width: 1180px;
    margin: 32px auto 80px;
    padding: 0 20px;
}

.admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.admin-head h1 {
    margin: 0 0 4px;
    font-size: 30px;
    color: #1a1a1a;
}

.admin-head p {
    margin: 0;
    color: #888;
    font-size: 15px;
}

.admin-updated {
    font-size: 13px;
    color: #aaa;
}

/* Stat cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.18s, box-shadow 0.2s;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.icon-blue  { background: #e8f1ff; }
.icon-green { background: #e8f5ec; }
.icon-gold  { background: #fdf3e3; }
.icon-amber { background: #fff4e0; }

.admin-stat-label {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #999;
    font-weight: 700;
}

.admin-stat-value {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Activity grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.admin-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 24px 26px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-panel-head h2 {
    margin: 0;
    font-size: 19px;
    color: #1a1a1a;
}

.admin-count {
    font-size: 13px;
    color: #aaa;
    font-weight: 600;
}

/* Orders table */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    font-weight: 700;
    padding: 0 12px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f6f6f6;
    color: #444;
    vertical-align: middle;
}

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

.cust-name { display: block; font-weight: 600; color: #1a1a1a; }
.cust-sub  { display: block; font-size: 12px; color: #999; margin-top: 2px; }
.muted     { color: #999; font-size: 13px; }

.status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-badge.paid    { background: #e8f5e9; color: #1f7a3f; }
.status-badge.pending { background: #fff4e0; color: #c87f0a; }

/* Customer list */
.customer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.15s;
}

.customer-row:hover { background: #fafafa; }

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d88b36, #f4a261);
    color: white;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-info { flex: 1; min-width: 0; }
.customer-info .cust-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.customer-meta {
    text-align: right;
    flex-shrink: 0;
}

.cust-orders { display: block; font-size: 12px; color: #999; }
.cust-spent  { display: block; font-weight: 700; color: #1f7a3f; font-size: 14px; }

.admin-empty {
    text-align: center;
    color: #aaa;
    padding: 28px 10px;
    font-size: 14px;
}

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

@media (max-width: 520px) {
    .admin-stats { grid-template-columns: 1fr; }
}

/* ── Admin login gate ───────────────────────── */
.admin-gate {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.admin-gate-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-gate-icon { font-size: 46px; display: block; margin-bottom: 14px; }

.admin-gate-card h1 { margin: 0 0 6px; font-size: 26px; color: #1a1a1a; }
.admin-gate-card p  { margin: 0 0 24px; color: #888; font-size: 14px; }
.admin-gate-card .form-group { text-align: left; }

.admin-gate-error {
    color: #c0392b;
    font-size: 13px;
    margin: 0 0 14px;
    font-weight: 600;
}

.admin-gate-back {
    display: block;
    margin-top: 18px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-gate-back:hover { color: #1f7a3f; }

.admin-logout-btn {
    background: transparent;
    border: 1.5px solid #e0e0e0;
    color: #666;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-logout-btn:hover { border-color: #c0392b; color: #c0392b; background: #fff5f5; }

/* Admin nav link — subtle staff entry point */
.nav-admin-link {
    border: 1.5px solid #e3e3e3;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #777;
}

.nav-admin-link:hover { border-color: #1f7a3f; color: #1f7a3f; }

/* ═══════════════════════════════════════════════
   ADMIN PANEL V2 — full multi-section dashboard
═══════════════════════════════════════════════ */
.admin-body { background: #f6f7f9; }

/* ── Section 1: Navigation ── */
.admin-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 28px;
    background: white;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.admin-tab:hover { background: #f3f5f3; color: #1a1a1a; }
.admin-tab.active { background: #e8f5ec; color: #1f7a3f; }

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ── Section 8: Global search ── */
.global-search-wrap { position: relative; }

.global-search {
    width: 280px;
    max-width: 40vw;
    padding: 10px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    background: #fafafa;
}

.global-search:focus { outline: none; border-color: #1f7a3f; background: white; }

.global-results {
    position: absolute;
    top: 48px;
    right: 0;
    width: 340px;
    max-width: 80vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    border: 1px solid #f0f0f0;
    padding: 8px;
    max-height: 70vh;
    overflow-y: auto;
}

.gr-group { padding: 6px 4px; }
.gr-title { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: #aaa; font-weight: 700; }
.gr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.gr-item:hover { background: #f6faf7; }
.gr-meta { font-size: 12px; color: #999; }
.gr-empty { padding: 18px; text-align: center; color: #aaa; font-size: 14px; }

/* ── Main + sections ── */
.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Section 3: Analytics cards ── */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.admin-stat-value.sm { font-size: 18px; }

/* ── Toolbars / inputs / filters ── */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    box-sizing: border-box;
}
.admin-input:focus { outline: none; border-color: #1f7a3f; }
.admin-toolbar > .admin-input { flex: 1; min-width: 220px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
    background: white;
    border: 1.5px solid #e8e8e8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    transition: all 0.15s;
}
.filter-pill:hover { border-color: #1f7a3f; color: #1f7a3f; }
.filter-pill.active { background: #1f7a3f; border-color: #1f7a3f; color: white; }

/* ── Section 2: Order status colours ── */
.status-badge.status-pending,
.status-select.status-pending    { background: #fff4e0; color: #c87f0a; }
.status-badge.status-processing,
.status-select.status-processing { background: #e8f1ff; color: #2563eb; }
.status-badge.status-delivered,
.status-select.status-delivered  { background: #e8f5e9; color: #1f7a3f; }
.status-badge.status-cancelled,
.status-select.status-cancelled  { background: #fdeaea; color: #c0392b; }

.status-select {
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}
.status-select:focus { outline: 2px solid rgba(31,122,63,0.3); }

/* customer table cell */
.cust-cell { display: flex; align-items: center; gap: 10px; }
.customer-avatar.sm { width: 32px; height: 32px; font-size: 13px; }

/* ── Section 7: Products grid ── */
.btn-add-product {
    background: linear-gradient(135deg, #1f7a3f, #27a352);
    color: white;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: opacity 0.2s;
}
.btn-add-product:hover { opacity: 0.92; }

.admin-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.admin-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.18s, box-shadow 0.2s;
}
.admin-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.apc-image { position: relative; height: 150px; background: #f3f3f3; }
.apc-image img { width: 100%; height: 100%; object-fit: cover; }
.apc-low {
    position: absolute; top: 10px; left: 10px;
    background: #c0392b; color: white;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.apc-body { padding: 16px 18px; }
.apc-body h3 { margin: 0 0 4px; font-size: 17px; color: #1a1a1a; }
.apc-desc { margin: 0 0 12px; font-size: 13px; color: #999; min-height: 18px; }
.apc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.apc-price { font-size: 18px; font-weight: 800; color: #1f7a3f; }
.apc-stock { font-size: 13px; color: #777; }
.apc-actions { display: flex; gap: 8px; }
.btn-edit, .btn-del {
    flex: 1; padding: 9px; font-size: 13px; font-weight: 700; border-radius: 8px; border: 1.5px solid;
    background: white; transition: all 0.15s;
}
.btn-edit { border-color: #cfe0d4; color: #1f7a3f; }
.btn-edit:hover { background: #f0faf3; }
.btn-del { border-color: #f0d0cc; color: #c0392b; }
.btn-del:hover { background: #fff5f5; }

/* ── Section 4: Charts ── */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.chart-card { padding: 22px 24px; }
.chart-card canvas { height: 280px !important; width: 100% !important; }
.chart-wide { grid-column: 1 / -1; }

/* ── Settings ── */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}
.settings-saved { color: #1f7a3f; font-weight: 700; font-size: 14px; margin: 12px 0 0; }
.danger-zone { border: 1px solid #f3dcd8; }
.danger-note { color: #999; font-size: 13px; margin: 0 0 16px; }
.btn-danger {
    display: block; width: 100%;
    background: white; border: 1.5px solid #f0d0cc; color: #c0392b;
    padding: 12px; font-size: 14px; font-weight: 700; border-radius: 10px; margin-bottom: 10px;
    transition: background 0.15s;
}
.btn-danger:hover { background: #fff5f5; }

/* ── Section 7: Product modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(20,30,22,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 5000; padding: 20px;
    backdrop-filter: blur(3px);
}
/* Make the hidden attribute win over display:flex above */
.modal-overlay[hidden] { display: none; }
.modal-card {
    background: white; border-radius: 18px; width: 100%; max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden;
    animation: fadeIn 0.2s ease;
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
}
.modal-head h2 { margin: 0; font-size: 19px; color: #1a1a1a; }
.modal-close { background: transparent; border: none; font-size: 18px; color: #999; }
.modal-close:hover { color: #1a1a1a; }
.modal-body { padding: 22px 24px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 12px;
    padding: 18px 24px; border-top: 1px solid #f0f0f0;
}
.modal-foot .auth-btn, .modal-foot .btn-clear { width: auto; padding: 12px 24px; margin: 0; }
.pm-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-top: 10px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .admin-nav { gap: 12px; padding: 10px 16px; }
    .admin-tabs { order: 3; width: 100%; }
    .global-search { width: 200px; }
    .admin-main { padding: 20px 14px 60px; }
}

/* ═══════════════════════════════════════════════
   ORDER MANAGEMENT V2 — shipped status, activity, details
═══════════════════════════════════════════════ */

/* Section 6: Shipped status = Purple (badges + selects + account page) */
.status-badge.status-shipped,
.status-select.status-shipped { background: #f3e8ff; color: #7c3aed; }

/* Orders table: clickable order id + view button */
.order-link { color: #1f7a3f; font-weight: 700; cursor: pointer; text-decoration: none; }
.order-link:hover { text-decoration: underline; }
.order-items-cell { max-width: 260px; }

.btn-view {
    background: white;
    border: 1.5px solid #cfe0d4;
    color: #1f7a3f;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.15s;
}
.btn-view:hover { background: #f0faf3; }

/* Section 11: Recent Activity feed */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid #f4f4f4;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f3f5f3;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.activity-msg { flex: 1; font-size: 14px; color: #333; }
.activity-time { font-size: 12px; color: #aaa; white-space: nowrap; }

/* Section 7: Order Details modal */
.od-status { margin-bottom: 18px; }
.od-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.od-cell { display: flex; flex-direction: column; gap: 2px; }
.od-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: #aaa; font-weight: 700; }
.od-value { font-size: 14px; color: #1a1a1a; font-weight: 600; word-break: break-word; }
.od-section { margin-bottom: 18px; }
.od-items {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.od-items li {
    padding: 10px 14px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f4f4f4;
}
.od-items li:last-child { border-bottom: none; }
.od-totals { border-top: 1px solid #f0f0f0; padding-top: 14px; }
.od-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 6px 0;
}
.od-total-row.grand { font-weight: 800; font-size: 16px; color: #1a1a1a; border-top: 1px solid #f0f0f0; margin-top: 6px; padding-top: 12px; }

@media (max-width: 480px) {
    .od-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   INVENTORY CENTER
═══════════════════════════════════════════════ */
.inv-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-export {
    background: white;
    border: 1.5px solid #cfe0d4;
    color: #1f7a3f;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.15s;
}
.btn-export:hover { background: #f0faf3; }

.inv-summary { margin-bottom: 24px; }
.inv-toolbar { gap: 14px; }

/* View toggle */
.view-toggle {
    display: inline-flex;
    background: #f0f1f0;
    border-radius: 10px;
    padding: 4px;
}
.view-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #777;
    border-radius: 8px;
    transition: all 0.15s;
}
.view-btn.active { background: white; color: #1f7a3f; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* Stock status badges (admin + storefront) */
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}
.stock-badge.stk-in  { background: #e8f5e9; color: #1f7a3f; }
.stock-badge.stk-low { background: #fff4e0; color: #c87f0a; }
.stock-badge.stk-out { background: #fdeaea; color: #c0392b; }

/* Product card SKU line + stock controls */
.apc-sku { font-size: 12px; color: #999; margin: 0 0 12px; letter-spacing: 0.3px; }
.stock-controls { display: flex; gap: 8px; margin-bottom: 10px; }
.stk-btn {
    flex: 1;
    background: #f6faf7;
    border: 1.5px solid #e0ece4;
    color: #1f7a3f;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: background 0.15s;
}
.stk-btn:hover { background: #e8f5ec; }
.stk-btn.minus { color: #c0392b; border-color: #f0d8d4; background: #fdf6f5; }
.stk-btn.minus:hover { background: #fbeae8; }

/* Inventory table */
.inv-table-panel { margin-bottom: 24px; }
.inv-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.inv-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-row-actions .stk-btn { flex: 0 0 auto; min-width: 34px; padding: 6px 10px; }
.inv-row-actions .btn-edit,
.inv-row-actions .btn-del { flex: 0 0 auto; padding: 6px 12px; font-size: 12px; }

.inv-charts { margin-top: 24px; }

@media (max-width: 720px) {
    .inv-toolbar { flex-direction: column; align-items: stretch; }
    .view-toggle { align-self: flex-start; }
}

/* ═══════════════════════════════════════════════
   STOREFRONT PRODUCT SEARCH
═══════════════════════════════════════════════ */
.product-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search {
    width: 200px;
    max-width: 38vw;
    padding: 9px 38px 9px 14px;
    border: 1.5px solid #e3e3e3;
    border-radius: 22px;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s, width 0.2s, background 0.2s;
}
.product-search:focus { outline: none; border-color: #1f7a3f; background: white; width: 240px; }

.product-search-btn {
    position: absolute;
    right: 4px;
    background: transparent;
    border: none;
    font-size: 15px;
    padding: 6px 8px;
    border-radius: 50%;
    line-height: 1;
}
.product-search-btn:hover { background: #eef3ef; }

.product-search-results {
    position: absolute;
    top: 46px;
    left: 0;
    width: 300px;
    max-width: 80vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.16);
    border: 1px solid #f0f0f0;
    padding: 6px;
    z-index: 1200;
    max-height: 60vh;
    overflow-y: auto;
}

.ps-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
}
.ps-item:hover { background: #f6faf7; }
.ps-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ps-name { flex: 1; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ps-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.ps-badge.stk-in  { background: #e8f5e9; color: #1f7a3f; }
.ps-badge.stk-low { background: #fff4e0; color: #c87f0a; }
.ps-badge.stk-out { background: #fdeaea; color: #c0392b; }
.ps-empty { padding: 16px; text-align: center; color: #aaa; font-size: 14px; }

/* Highlight the product card the user searched for */
.product-highlight {
    animation: productPulse 1.6s ease;
}
@keyframes productPulse {
    0%   { box-shadow: 0 0 0 0 rgba(31,122,63,0.5); }
    30%  { box-shadow: 0 0 0 6px rgba(31,122,63,0.25); transform: translateY(-6px); }
    100% { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }
}

@media (max-width: 600px) {
    .product-search { width: 140px; }
    .product-search:focus { width: 160px; }
}

/* ═══════════════════════════════════════════════
   PAYSTACK PAYMENT SYSTEM
═══════════════════════════════════════════════ */

/* New order-status colours (badges + selects) */
.status-badge.status-awaiting-payment,
.status-select.status-awaiting-payment { background: #fff4e0; color: #c87f0a; }
.status-badge.status-paid,
.status-select.status-paid { background: #e8f5e9; color: #1f7a3f; }

/* Payment tag (Paid / Unpaid) used in admin orders + account page */
.pay-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
}
.pay-tag.pay-paid   { background: #e8f5e9; color: #1f7a3f; }
.pay-tag.pay-unpaid { background: #fff4e0; color: #c87f0a; }

/* ── Checkout payment buttons ── */
.btn-paystack {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0aa1dd, #011b33);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 18px;
    box-shadow: 0 8px 22px rgba(10,161,221,0.35);
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-paystack:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,161,221,0.45); }

.btn-cod {
    width: 100%;
    background: white;
    color: #1f7a3f;
    border: 1.5px solid #cfe0d4;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-cod:hover { background: #f0faf3; }

.paystack-badge { text-align: center; font-size: 12px; color: #999; margin: 14px 0 0; }
.paystack-badge strong { color: #0aa1dd; }

/* ── Receipt modal ── */
.receipt-card { max-width: 440px; }
.receipt { padding: 28px 30px 8px; }
.receipt-head { text-align: center; margin-bottom: 20px; }
.receipt-logo { font-size: 38px; }
.receipt-head h2 { margin: 6px 0 4px; font-size: 22px; color: #1f7a3f; }
.receipt-paid { color: #1f7a3f; font-weight: 700; font-size: 14px; margin: 0; }
.receipt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8faf8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.receipt-meta div { display: flex; flex-direction: column; }
.receipt-meta span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #aaa; font-weight: 700; }
.receipt-meta strong { font-size: 13px; color: #1a1a1a; word-break: break-word; }
.receipt-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.receipt-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    color: #aaa; font-weight: 700; padding: 0 8px 8px; border-bottom: 1px solid #eee;
}
.receipt-table td { padding: 8px; font-size: 13px; color: #444; border-bottom: 1px solid #f5f5f5; }
.receipt-totals { border-top: 1px solid #eee; padding-top: 12px; }
.receipt-totals > div { display: flex; justify-content: space-between; font-size: 14px; color: #555; padding: 5px 0; }
.receipt-totals .rt-grand { font-weight: 800; font-size: 16px; color: #1a1a1a; border-top: 1px solid #eee; margin-top: 6px; padding-top: 10px; }
.receipt-foot { text-align: center; color: #999; font-size: 13px; margin: 16px 0 0; }

/* ═══════════════ MY ORDERS — single final order-card block ═══════════════ */
/* Simple stacked card. No table, no grid, no fixed/absolute widths → cannot overflow. */
.orders-rows { width: 100%; max-width: 100%; }

.order-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}
.order-card:last-child { margin-bottom: 0; }

.order-header { display: flex; flex-direction: column; }
.order-id { font-weight: 800; color: #111; font-size: 16px; }
.order-date { font-size: 13px; color: #777; margin-top: 4px; }

.order-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.order-footer { display: flex; flex-direction: column; }
.order-total { margin-top: 14px; font-size: 22px; font-weight: 800; color: #0b7a34; }

.receipt-btn {
    margin-top: 12px;
    width: 100%;
    height: 44px;
    background: #fff;
    color: #0b7a34;
    border: 1.5px solid #cfe6d6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.receipt-btn:hover { background: #e8f5ec; border-color: #0b7a34; }

.orders-more { display: flex; justify-content: center; margin-top: 18px; }
.btn-load-more {
    background: #fff; color: #1f7a3f; border: 1.5px solid #cfe6d6;
    border-radius: 22px; padding: 11px 26px; font-size: 13.5px; font-weight: 800; cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.btn-load-more:hover { background: #eaf5ee; border-color: #1f7a3f; transform: translateY(-1px); }

/* ── Receipt modal (Order History → View Receipt) ── */
.rcpt-overlay {
    position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(15,35,21,0.55); backdrop-filter: blur(4px);
}
.rcpt-overlay[hidden] { display: none; }
.rcpt-card {
    position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.rcpt-close {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border: none;
    border-radius: 50%; background: #f1f3f1; color: #555; font-size: 15px; cursor: pointer; line-height: 1;
    transition: background 0.15s;
}
.rcpt-close:hover { background: #e4e8e4; }
.rcpt-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; }
.rcpt-foot .btn-clear, .rcpt-foot .auth-btn { width: auto; padding: 11px 22px; margin: 0; }

.receipt-status { font-weight: 700; font-size: 14px; margin: 0; }
.receipt-status.rcpt-paid { color: #1f7a3f; }
.receipt-status.rcpt-pending { color: #b9770e; }
.receipt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.receipt-block { background: #f7faf8; border: 1px solid #eef2ef; border-radius: 11px; padding: 12px 14px; }
.receipt-block-title { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #9aa0a6; }
.receipt-block p { margin: 0 0 3px; font-size: 13px; color: #2b3530; word-break: break-word; }
.receipt-block .receipt-ship { margin-top: 6px; font-weight: 700; color: #1f7a3f; }
@media (max-width: 480px) { .receipt-cols { grid-template-columns: 1fr; } }

/* ── Account page payment meta row ── */
.order-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 10px 0 0;
    border-top: 1px solid #f2f2f2;
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}
/* (Removed legacy .order-id pill — it conflicted with the My Orders card.) */

/* ═══════════════════════════════════════════════
   CUSTOMER ACCOUNT — dashboard (sidebar + content panel)
═══════════════════════════════════════════════ */

.profile-edit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 28px 30px;
    max-width: 560px;
}
.profile-edit-card h3 { margin: 0 0 4px; font-size: 19px; color: #1a1a1a; }

/* Settings modal */
.settings-card { max-width: 520px; }
.settings-body { max-height: 65vh; overflow-y: auto; }
.settings-section {
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}
.settings-section:last-child { border-bottom: none; }
.settings-section h3 { margin: 0 0 8px; font-size: 15px; color: #1a1a1a; }
.settings-note { margin: 0; font-size: 14px; color: #777; line-height: 1.6; }
.settings-link { color: #1f7a3f; font-weight: 600; text-decoration: none; font-size: 14px; }
.settings-link:hover { text-decoration: underline; }
.settings-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; cursor: pointer; }
.settings-toggle input { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════
   CUSTOMER ACCOUNT — sidebar layout (Profile & Settings)
═══════════════════════════════════════════════ */
#account-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: start;
}

.account-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 18px;
    position: sticky;
    top: 20px;
}
.account-sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.side-id { min-width: 0; }
.side-name { margin: 0; font-weight: 800; font-size: 15px; color: #1a1a1a; }
.side-email { margin: 2px 0 0; font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-sidenav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.side-link:hover { background: #f4f6f4; color: #1a1a1a; }
.side-link.active { background: #e8f5ec; color: #1f7a3f; }
.side-link.logout-link { color: #c0392b; margin-top: 8px; border-top: 1px solid #f0f0f0; border-radius: 0 0 8px 8px; }
.side-link.logout-link:hover { background: #fff5f5; }

.account-content { min-width: 0; }
.acct-heading { font-size: 24px; color: #1a1a1a; margin: 0 0 6px; }

.settings-card-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    padding: 22px 24px;
    margin-bottom: 18px;
    max-width: 600px;
}
.settings-card-panel h3 { margin: 0 0 12px; font-size: 16px; color: #1a1a1a; }
.settings-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; cursor: pointer; padding: 8px 0; }
.settings-toggle input { width: 16px; height: 16px; }

/* Payment history table */
.ph-table-wrap { overflow-x: auto; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ph-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #aaa; font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid #f0f0f0; }
.ph-table td { padding: 12px 10px; border-bottom: 1px solid #f6f6f6; color: #444; }
.ph-table .muted { color: #999; font-size: 13px; }

/* Tablet: narrower sidebar (Req 3) */
@media (max-width: 1024px) {
    #account-shell { grid-template-columns: 220px 1fr; }
}
/* Mobile: collapsible slide-in drawer — still a VERTICAL list, never a button row */
@media (max-width: 760px) {
    #account-shell { grid-template-columns: 1fr; }
    .account-mobilebar { display: flex; }
    .account-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
        width: 264px; max-width: 84vw; border-radius: 0;
        transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto;
    }
    .account-sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.25); }
    .sidebar-backdrop.show { display: block; }
    .account-sidenav { flex-direction: column; }
}

/* ── Dark mode (account area; preference remembered per device) ── */
body.dark-mode { background: #14181c; color: #e6e6e6; }
body.dark-mode .acct-heading,
body.dark-mode .settings-card-panel h3,
body.dark-mode .profile-edit-card h3,
body.dark-mode .side-name,
body.dark-mode .stat-value { color: #f0f2f4; }
body.dark-mode .account-sidebar,
body.dark-mode .settings-card-panel,
body.dark-mode .profile-edit-card,
body.dark-mode .dashboard-card,
body.dark-mode .order-card,
body.dark-mode .order-history-section { background: #1e242b; box-shadow: none; border: 1px solid #2a323b; }
body.dark-mode .side-link { color: #c7cdd4; }
body.dark-mode .side-link:hover { background: #262d35; color: #fff; }
body.dark-mode .side-link.active { background: #14401f; color: #7fe0a3; }
body.dark-mode input,
body.dark-mode select { background: #262d35; color: #eaeaea; border-color: #39424d; }
body.dark-mode .settings-note,
body.dark-mode .side-email,
body.dark-mode .stat-label,
body.dark-mode .ph-table td,
body.dark-mode .welcome-text { color: #aab2bb; }
body.dark-mode .section-divider,
body.dark-mode .ph-table th,
body.dark-mode .ph-table td { border-color: #2a323b; }

/* ── Profile & Settings: overview landing + new bits ── */
.overview-welcome { font-size: 18px; font-weight: 700; color: #1f7a3f; margin: 0 0 6px; }
.overview-hint { font-size: 14px; color: #999; margin: 4px 0 20px; }
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    max-width: 760px;
}
.overview-card {
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.overview-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.overview-card span { font-size: 26px; }
.overview-card strong { font-size: 15px; color: #1a1a1a; }
.overview-card small { font-size: 12px; color: #999; }

.photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; background-position: center; }
.photo-btn {
    font-size: 13px; font-weight: 700; color: #1f7a3f;
    border: 1.5px solid #cfe0d4; padding: 9px 16px; border-radius: 9px; cursor: pointer;
}
.photo-btn:hover { background: #f0faf3; }

.address-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f2f2f2;
}
.address-row:last-child { border-bottom: none; }
.address-row .settings-note { margin: 4px 0 0; }
.addr-default { font-size: 11px; font-weight: 700; color: #1f7a3f; background: #e8f5e9; padding: 2px 8px; border-radius: 10px; }
.addr-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.settings-link.danger { color: #c0392b; }

body.dark-mode .overview-card { background: #1e242b; border-color: #2a323b; }
body.dark-mode .overview-card strong { color: #f0f2f4; }

/* ── Profile & Settings redesign: clean sidebar title + welcome landing ── */
.account-sidebar-title {
    font-weight: 800;
    font-size: 14px;
    color: #1f7a3f;
    letter-spacing: 0.2px;
    padding: 6px 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.account-welcome {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.06);
    padding: 56px 44px;
    text-align: center;
    max-width: 640px;
    margin: 18px auto;
}
.welcome-title { font-size: 27px; color: #1a1a1a; margin: 0 0 12px; }
.welcome-sub { font-size: 15px; color: #666; margin: 0 0 18px; line-height: 1.6; }
.welcome-hint { font-size: 14px; color: #1f7a3f; font-weight: 600; margin: 0; }

/* Keep the sidebar a vertical list on every screen size (never a button row) */
@media (max-width: 760px) {
    #account-shell { grid-template-columns: 1fr; }
    .account-sidenav { flex-direction: column; }
    .side-link { flex: none; }
    .account-welcome { padding: 40px 24px; }
}

/* Dark mode */
body.dark-mode .account-welcome { background: #1e242b; }
body.dark-mode .welcome-title { color: #f0f2f4; }
body.dark-mode .welcome-sub { color: #aab2bb; }
body.dark-mode .account-sidebar-title { border-color: #2a323b; }

/* ── Account mobile drawer bar (hidden on desktop) ── */
.account-mobilebar {
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.mobilebar-btn { background: #1f7a3f; color: #fff; border: none; width: 42px; height: 42px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.mobilebar-title { font-weight: 800; color: #1a1a1a; font-size: 15px; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1100; }
body.dark-mode .account-mobilebar { background: #1e242b; }
body.dark-mode .mobilebar-title { color: #f0f2f4; }
