@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   FRESH GROCERS - design system (loaded on every page)
   1 Tokens   2 Base   3 Buttons & forms   4 Chips & alerts   5 Header/footer
   6 Home     7 Auth pages   8 Account chooser   9 Customer dashboard
===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --g-950: #072b1b;
    --g-900: #0b3d27;
    --g-800: #0e5636;
    --g-700: #0f6b42;
    --g-600: #12824f;
    --g-500: #16a05f;
    --g-300: #7fd1a4;
    --g-200: #bfe8d0;
    --g-100: #e1f4e9;
    --g-50:  #f2faf5;
    --lime:  #7dbb3f;

    --ink:   #12241a;
    --ink-2: #33473b;
    --muted: #68796e;
    --line:  #e3eae5;
    --line-2:#eef3ef;
    --bg:    #f6f8f5;
    --card:  #ffffff;

    --coral: #e8706f;  --coral-50: #fdeeee;
    --amber: #f2a516;  --amber-50: #fff4dc;  --amber-ink: #8a5a00;
    --blue:  #2f6fdb;  --blue-50:  #e8f0fd;
    --violet:#6d49d6;  --violet-50:#efeafc;
    --red:   #d64545;  --red-50:   #fdecec;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(16,40,28,.06), 0 1px 3px rgba(16,40,28,.05);
    --shadow:    0 6px 24px rgba(16,40,28,.08);
    --shadow-lg: 0 18px 50px rgba(16,40,28,.14);

    --font:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* old names, so any leftover markup keeps working */
    --green: var(--g-600);
    --nav:   var(--g-100);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote) { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--g-700); }
[hidden] { display: none !important; }
.ico { flex-shrink: 0; vertical-align: middle; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- 3. Buttons & forms ---------- */
.fbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border-radius: 12px; border: 1.5px solid transparent;
    font: 700 .95rem var(--font);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.fbtn:hover { transform: translateY(-1px); }
.fbtn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.fbtn-primary { background: var(--g-600); color: #fff; box-shadow: 0 6px 16px rgba(18,130,79,.28); }
.fbtn-primary:hover { background: var(--g-700); color: #fff; box-shadow: 0 10px 22px rgba(18,130,79,.32); }
.fbtn-soft  { background: var(--g-100); color: var(--g-800); }
.fbtn-soft:hover { background: var(--g-200); color: var(--g-900); }
.fbtn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.fbtn-ghost:hover { border-color: var(--g-500); color: var(--g-700); }
.fbtn-dark  { background: var(--g-900); color: #fff; }
.fbtn-dark:hover { background: var(--g-800); color: #fff; }
.fbtn-danger { background: #fff; border-color: #f1c9c9; color: var(--red); }
.fbtn-danger:hover { background: var(--red-50); color: var(--red); }
.fbtn-lg { height: 54px; padding: 0 30px; font-size: 1rem; border-radius: 14px; }
.fbtn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.fbtn-block { width: 100%; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field > span .req { color: var(--red); }
.input, .field input, .field select, .field textarea {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink);
    font: 500 .95rem var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px rgba(22,160,95,.15);
}
.input::placeholder, .field input::placeholder { color: #9aa99f; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 4. Chips, status badges & alerts ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: 999px;
    background: var(--g-100); color: var(--g-800);
    font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.chip-amber  { background: var(--amber-50);  color: var(--amber-ink); }
.chip-red    { background: var(--red-50);    color: var(--red); }
.chip-blue   { background: var(--blue-50);   color: var(--blue); }
.chip-violet { background: var(--violet-50); color: var(--violet); }
.chip-grey   { background: #eef1ef; color: #55655b; }

/* order status (customer, admin and rider pages) */
.status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; white-space: nowrap;
    background: var(--amber-50); color: var(--amber-ink);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-confirmed        { background: var(--blue-50);   color: var(--blue); }
.st-out_for_delivery { background: var(--violet-50); color: var(--violet); }
.st-delivered        { background: var(--g-100);     color: var(--g-700); }
.st-cancelled        { background: var(--red-50);    color: var(--red); }

.note, .of-error {
    padding: 12px 16px; border-radius: 12px;
    font-size: .92rem; font-weight: 600; margin-bottom: 14px;
    background: var(--red-50); color: #a12d2d; border: 1px solid #f4cfcf;
}
.note-ok   { background: var(--g-50);   color: var(--g-800);   border-color: var(--g-200); }
.note-info { background: var(--blue-50);color: #214f9c;        border-color: #cfdcf7; }

/* ---------- 5. Header & footer ---------- */
.promo-bar {
    background: var(--g-900); color: #cfe9d9;
    font-size: .8rem; font-weight: 600; text-align: center; padding: 8px 16px;
}
.promo-bar b { color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; color: var(--g-900); }
.brand img { height: 48px; width: auto; display: block; }
.logo-text { font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--g-900); }
.logo-text small { display: block; font-size: .55rem; letter-spacing: .3em; color: var(--lime); margin-top: 4px; }

.site-nav { display: flex; gap: 4px; margin-left: 10px; }
.site-nav a {
    padding: 9px 16px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; color: var(--ink-2);
    text-decoration: none; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--g-50); color: var(--g-800); }
.site-nav a.active { background: var(--g-100); color: var(--g-800); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    font: 700 .9rem var(--font); text-decoration: none; cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover, .icon-btn.active { border-color: var(--g-500); color: var(--g-700); background: var(--g-50); }
.icon-btn.icon-only { width: 44px; padding: 0; justify-content: center; }
.cart-badge {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--coral); color: #fff;
    font-size: .72rem; font-weight: 800;
    display: inline-grid; place-items: center;
}
.avatar-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--g-600); color: #fff;
    display: grid; place-items: center; font-size: .82rem; font-weight: 800;
}
.user-chip { padding-left: 8px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
    place-items: center;
}

.site-footer { background: var(--g-950); color: #a9c7b8; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.foot-about .brand { background: #fff; padding: 10px 16px; border-radius: 14px; display: inline-flex; margin-bottom: 16px; }
.foot-about .brand img { height: 40px; }
.foot-about p { font-size: .92rem; max-width: 340px; line-height: 1.65; }
.site-footer h4 { color: #fff; font-size: .9rem; margin: 0 0 14px; letter-spacing: .04em; }
.site-footer a { display: block; color: #a9c7b8; text-decoration: none; font-size: .92rem; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.foot-base {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
}

/* ---------- 6. Home page ---------- */
.hero {
    position: relative; padding: 56px 0 84px;
    background:
        radial-gradient(900px 480px at 88% 0%, var(--g-100), transparent 62%),
        linear-gradient(#fff, var(--bg));
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--g-100); color: var(--g-800);
    font-weight: 700; font-size: .82rem;
}
.hero h1 {
    font-family: var(--serif); font-weight: 700;
    font-size: clamp(2.7rem, 5.8vw, 4.7rem); line-height: 1.04; letter-spacing: -.02em;
    color: var(--g-900); margin: 20px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--g-600); }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--g-900); }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }

.hero-art { position: relative; padding: 0 0 8px; }
.hero-panel {
    position: relative; aspect-ratio: 1 / .94; border-radius: 40px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.16), transparent 42%),
        linear-gradient(150deg, var(--g-500), var(--g-800));
    box-shadow: var(--shadow-lg);
}
.hero-panel::before, .hero-panel::after {
    content: ''; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.14);
}
.hero-panel::before { width: 68%; aspect-ratio: 1; right: -10%; top: -12%; }
.hero-panel::after  { width: 44%; aspect-ratio: 1; left: -8%; bottom: 6%; }
.hero-panel img.bag {
    position: absolute; left: 50%; bottom: 3%; width: 112%; max-width: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 22px 30px rgba(0,0,0,.28));
}
.cashback {
    position: absolute; top: -26px; right: -12px; z-index: 3;
    width: 116px; height: 134px;
    background: var(--coral);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    color: #fff; text-align: center; line-height: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: float 3.2s ease-in-out infinite;
    filter: drop-shadow(0 10px 14px rgba(232,112,111,.4));
}
.cashback span { font-size: .75rem; font-weight: 800; }
.cashback strong { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; margin: 4px 0; }
.cashback em { font-size: .5rem; font-style: normal; letter-spacing: 1px; font-weight: 700; }
@keyframes float { 50% { transform: translateY(-7px); } }

.float-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 16px; padding: 12px 16px;
    box-shadow: var(--shadow-lg);
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); }
.float-card b { display: block; font-size: .92rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.float-card.fc-a { left: -26px; top: 18%; }
.float-card.fc-b { right: -10px; bottom: 12%; }

.section { padding: 72px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--g-900); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--g-700); }
.link-arrow:hover { color: var(--g-900); gap: 10px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.cat-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--ink);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g-200); }
.cat-emoji { width: 54px; height: 54px; border-radius: 16px; background: var(--g-50); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 10px; }
.cat-tile b { font-size: 1.02rem; }
.cat-tile small { color: var(--muted); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step .num {
    position: absolute; top: 22px; right: 24px;
    font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--g-100); line-height: 1;
}
.step .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--g-100); color: var(--g-700); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

.cta-band {
    position: relative; overflow: hidden; margin-top: 72px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 44px 52px; border-radius: 30px; color: #fff;
    background: radial-gradient(500px 260px at 90% 0%, rgba(255,255,255,.14), transparent 70%), linear-gradient(135deg, var(--g-700), var(--g-900));
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 520px; line-height: 1.15; }
.cta-band p { color: #c4e3d2; margin-top: 8px; }
.cta-band .fbtn { background: #fff; color: var(--g-800); }
.cta-band .fbtn:hover { background: var(--g-100); }

/* ---------- 7. Auth pages (login, sign up, admin & rider log in) ---------- */
body.auth-body { display: block; background: #fff; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .85fr) 1.15fr; }
.auth-aside {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(160deg, var(--g-700), var(--g-950));
    padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-aside::before, .auth-aside::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); }
.auth-aside::before { width: 520px; height: 520px; right: -200px; top: -160px; }
.auth-aside::after  { width: 340px; height: 340px; left: -140px; bottom: -120px; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand { background: #fff; padding: 10px 18px; border-radius: 14px; align-self: flex-start; }
.auth-aside .brand img { height: 40px; }
.auth-aside h2 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.1; margin-bottom: 14px; }
.auth-aside p.lead { color: #bfe3cd; max-width: 380px; }
.auth-points { list-style: none; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.auth-points .tick { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; }
.auth-aside small { color: #8fbfa5; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: min(440px, 100%); }
.auth-card .eyebrow { margin-bottom: 16px; }
.auth-card h1 { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--g-900); margin-bottom: 8px; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .fbtn { width: 100%; height: 52px; margin-top: 6px; }
.auth-alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-alt a { font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: .88rem; text-decoration: none; font-weight: 600; }
.auth-back:hover { color: var(--g-700); }
.auth-card.wide { width: min(520px, 100%); }
.auth-aside.is-admin { background: linear-gradient(160deg, #1f4fa8, #0c1f4d); }
.auth-aside.is-rider { background: linear-gradient(160deg, #d9731f, #5a2a08); }

/* ---------- 8. Account chooser ---------- */
.acct { padding: 64px 0 0; }
.acct-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.acct-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--g-900); letter-spacing: -.01em; }
.acct-head p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acct-card {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 26px;
    transition: transform .2s, box-shadow .2s;
}
.acct-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.acct-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; }
.acct-card.customer .acct-icon { background: var(--g-100); color: var(--g-700); }
.acct-card.admin    .acct-icon { background: var(--blue-50); color: var(--blue); }
.acct-card.rider    .acct-icon { background: var(--amber-50); color: #c2631f; }
.acct-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.acct-card .role { color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.acct-card p.desc { color: var(--ink-2); font-size: .95rem; margin-bottom: 24px; flex: 1; }
.acct-actions { display: grid; gap: 10px; width: 100%; }
.acct-card.admin .fbtn-primary { background: var(--blue); box-shadow: 0 6px 16px rgba(47,111,219,.28); }
.acct-card.admin .fbtn-primary:hover { background: #2559b3; }
.acct-card.rider .fbtn-primary { background: #d9731f; box-shadow: 0 6px 16px rgba(217,115,31,.28); }
.acct-card.rider .fbtn-primary:hover { background: #b85c12; }

/* ---------- 9. Customer dashboard ---------- */
.page { padding: 36px 0 0; }
.dash-banner {
    position: relative; overflow: hidden;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 36px 42px; border-radius: 28px; color: #fff;
    background: radial-gradient(520px 280px at 92% -10%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, var(--g-600), var(--g-900));
}
.dash-banner .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.dash-banner h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 14px 0 6px; line-height: 1.1; }
.dash-banner p { color: #c8e6d5; }
.dash-banner .fbtn { background: #fff; color: var(--g-800); }
.dash-banner .fbtn:hover { background: var(--g-100); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.stat {
    display: flex; align-items: center; gap: 16px;
    padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.stat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--g-100); color: var(--g-700); flex-shrink: 0; }
.stat .ic.blue   { background: var(--blue-50);   color: var(--blue); }
.stat .ic.amber  { background: var(--amber-50);  color: #c2831a; }
.stat .ic.violet { background: var(--violet-50); color: var(--violet); }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.stat b { font-size: 1.55rem; line-height: 1.2; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.12rem; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.quick {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--ink); font-weight: 700;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick:hover { border-color: var(--g-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--g-100); color: var(--g-700); display: grid; place-items: center; }
.quick.is-logout .ic { background: var(--red-50); color: var(--red); }

/* shared simple table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--g-50); }
.tbl th:first-child { border-top-left-radius: 10px; } .tbl th:last-child { border-top-right-radius: 10px; }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line-2); font-size: .93rem; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td a { font-weight: 700; text-decoration: none; }
.tbl td a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-weight: 600; }
.empty a { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
    .float-card.fc-a { left: 0; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .acct-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .steps { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { padding: 28px 24px; gap: 22px; }
    .auth-aside .auth-points, .auth-aside small { display: none; }
    .auth-aside h2 { font-size: 1.7rem; }
}
@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    .site-nav { display: none; }
    .site-header.is-open .site-nav {
        display: flex; flex-direction: column; gap: 2px;
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        background: #fff; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .hide-sm { display: none; }
    .icon-btn { padding: 0 12px; }
    .user-chip { padding-left: 8px; }
}
@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
    .hero { padding-top: 32px; }
    .hero-stats { gap: 24px; }
    .cta-band { padding: 32px 26px; }
    .dash-banner { padding: 28px 24px; }
    .quick-grid { grid-template-columns: 1fr; }
    .cashback { width: 92px; height: 106px; right: -4px; top: -18px; }
    .cashback strong { font-size: 1.1rem; }
    .float-card.fc-b { right: 0; }
}

.empty .ic { width: 68px; height: 68px; border-radius: 20px; background: var(--g-100); color: var(--g-700); display: inline-grid; place-items: center; margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin: 6px 0; }
