/* ═══════════════════════════════════════════════════
   Rated — Design System
   Hyper-modern, clean, dark-first
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ─────────────────────────────── */
:root {
    /* Colors */
    --bg:           #08080f;
    --bg2:          #0d0d18;
    --surface:      #111120;
    --surface2:     #181830;
    --surface3:     #20203c;
    --border:       rgba(255,255,255,.07);
    --border-hover: rgba(255,255,255,.14);

    /* Brand */
    --primary:      #7c6dfa;
    --primary-light:#9d91fb;
    --primary-dark: #5a4de0;
    --primary-glow: rgba(124,109,250,.2);

    /* Accents */
    --amber:        #f59e0b;
    --amber-light:  #fbbf24;
    --green:        #22c55e;
    --green-light:  #4ade80;
    --red:          #ef4444;
    --red-light:    #f87171;
    --teal:         #14b8a6;
    --blue:         #3b82f6;

    /* Text */
    --text:         #e8e8f4;
    --text-muted:   #7878a0;
    --text-dim:     #4a4a6a;

    /* Radius */
    --radius:       10px;
    --radius-lg:    16px;
    --radius-xl:    22px;
    --radius-full:  9999px;

    /* Shadow */
    --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
    --shadow:       0 8px 24px rgba(0,0,0,.4);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.6);

    /* Spacing */
    --gap:          1.5rem;

    /* Transition */
    --ease:         cubic-bezier(.4,0,.2,1);
    --duration:     200ms;
}

/* Light mode */
[data-theme="light"] {
    --bg:           #f4f4f8;
    --bg2:          #ebebf2;
    --surface:      #ffffff;
    --surface2:     #f0f0f7;
    --surface3:     #e5e5f0;
    --border:       rgba(0,0,0,.08);
    --border-hover: rgba(0,0,0,.15);
    --text:         #1a1a2e;
    --text-muted:   #5a5a7a;
    --text-dim:     #9898b8;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
    --shadow:       0 8px 24px rgba(0,0,0,.10);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.14);
}

/* ── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 600; }
p { color: var(--text-muted); }

/* ── Layout ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Grid ──────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Flex helpers ──────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-xs { gap: .4rem; }
.gap-sm { gap: .75rem; }
.gap-md { gap: 1.2rem; }
.gap-lg { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── Navbar ────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8,8,15,.85);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}
[data-theme="light"] .navbar { background: rgba(244,244,248,.9); }

.navbar .container { display: flex; align-items: center; gap: 1rem; width: 100%; }
.navbar-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff 30%, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .navbar-brand { background: linear-gradient(135deg, #1a1a2e 20%, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.navbar-nav { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
.navbar-nav a { padding: .45rem .85rem; border-radius: var(--radius-full); font-size: .88rem; font-weight: 500;
    color: var(--text-muted); transition: all var(--duration) var(--ease); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--text); background: var(--surface2); }

.navbar-end { margin-left: auto; display: flex; align-items: center; gap: .75rem; }

.avatar-btn { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--primary-glow);
    border: 1.5px solid var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; color: var(--primary); cursor: pointer;
    transition: all var(--duration) var(--ease); }
.avatar-btn:hover { background: var(--primary); color: white; }

/* ── Cards ─────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface2); }

/* Business card */
.business-card { cursor: pointer; }
.business-card .cover {
    height: 180px;
    background: var(--surface2);
    position: relative;
    overflow: hidden;
}
.business-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.business-card .cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--surface2), var(--surface3)); font-size: 2.5rem; opacity: .3; }
.business-card .card-body { padding: 1.2rem; }
.business-card .biz-name { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: .3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-card .biz-meta { font-size: .82rem; color: var(--text-muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.business-card .biz-rating { margin-top: .8rem; display: flex; align-items: center; gap: .5rem; }
.business-card .price-range { color: var(--amber); font-size: .8rem; font-weight: 600; }

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.2rem;
    font-family: inherit; font-size: .88rem; font-weight: 500;
    border: none; border-radius: var(--radius);
    cursor: pointer; text-decoration: none;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-primary:focus { outline: 2px solid var(--primary-glow); }

.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-danger { background: rgba(239,68,68,.15); color: var(--red-light); border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: var(--red); color: white; }

.btn-success { background: rgba(34,197,94,.15); color: var(--green-light); border: 1px solid rgba(34,197,94,.2); }
.btn-success:hover { background: var(--green); color: white; }

.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; font-weight: 600; }
.btn-full { width: 100%; }
.btn-icon { padding: .55rem; width: 36px; height: 36px; border-radius: var(--radius); }

/* ── Forms ─────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted);
    margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .06em; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="tel"], input[type="date"], input[type="search"],
textarea, select {
    width: 100%;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .7rem 1rem;
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 100px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237878a0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select option { background: var(--surface2); }

.input-group { position: relative; }
.input-group .input-prefix, .input-group .input-suffix {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: .85rem; pointer-events: none;
}
.input-group .input-prefix { left: 1rem; }
.input-group .input-suffix { right: 1rem; }
.input-group input { padding-left: 2.4rem; }
.input-group.has-suffix input { padding-right: 2.4rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Alerts ────────────────────────────────────── */
.alert {
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin-bottom: 1.2rem;
    font-size: .9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.2);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.2);  color: #86efac; }
.alert-warn    { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2);  color: #93c5fd; }

/* ── Badges ────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .65rem;
    border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    white-space: nowrap;
}
.badge-primary  { background: var(--primary-glow);          color: var(--primary); }
.badge-amber    { background: rgba(245,158,11,.15);          color: var(--amber-light); }
.badge-green    { background: rgba(34,197,94,.12);           color: var(--green-light); }
.badge-red      { background: rgba(239,68,68,.12);           color: var(--red-light); }
.badge-muted    { background: var(--surface3);               color: var(--text-muted); }
.badge-teal     { background: rgba(20,184,166,.12);          color: var(--teal); }

/* Price range */
.price-dot { color: var(--amber-light); font-size: .85rem; }

/* ── Rating Stars ──────────────────────────────── */
.rating-display { display: inline-flex; align-items: center; gap: .4rem; }
.rating-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.rating-stars { color: var(--amber); font-size: .85rem; }
.rating-count { font-size: .8rem; color: var(--text-muted); }

.star-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.star-label { font-size: .8rem; color: var(--text-muted); width: 80px; flex-shrink: 0; }
.star-track { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.star-fill  { height: 100%; background: var(--amber); border-radius: 3px; transition: width .5s var(--ease); }
.star-pct   { font-size: .78rem; color: var(--text-muted); width: 36px; text-align: right; }

/* ── Value Score ───────────────────────────────── */
.value-score {
    display: inline-flex; flex-direction: column; align-items: center;
    gap: .15rem;
}
.value-circle {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800;
    border: 2.5px solid;
}
.value-score-number { font-weight: 700; }
.value-exceptional  { border-color: var(--green);  color: var(--green); }
.value-great        { border-color: var(--teal);   color: var(--teal); }
.value-fair         { border-color: var(--amber);  color: var(--amber); }
.value-premium      { border-color: var(--blue);   color: var(--blue); }
.value-overpriced   { border-color: var(--red);    color: var(--red); }

/* ── Tabs ──────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { padding: .6rem 1rem; font-size: .88rem; font-weight: 500; color: var(--text-muted);
    background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
    margin-bottom: -1px; transition: all var(--duration) var(--ease); font-family: inherit; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Tables ────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th { background: var(--surface2); padding: .85rem 1.1rem; text-align: left;
    font-size: .73rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .07em; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--duration) var(--ease); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
td { padding: .85rem 1.1rem; color: var(--text-muted); vertical-align: middle; }
td strong, td .td-name { color: var(--text); font-weight: 500; }

/* ── Sidebar layout ────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-logo span { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff 30%, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar-nav { padding: 1rem .75rem; flex: 1; }
.sidebar-section { font-size: .68rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase;
    letter-spacing: .1em; padding: .5rem .6rem; margin-top: .5rem; }
.sidebar-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .85rem; border-radius: var(--radius);
    font-size: .88rem; font-weight: 500; color: var(--text-muted);
    transition: all var(--duration) var(--ease); cursor: pointer; text-decoration: none;
    margin-bottom: .15rem;
}
.sidebar-link i { width: 16px; text-align: center; font-size: .85rem; }
.sidebar-link:hover { color: var(--text); background: var(--surface2); }
.sidebar-link.active { color: var(--primary); background: var(--primary-glow); }
.sidebar-footer { padding: 1rem .75rem; border-top: 1px solid var(--border); }

.main-content { flex: 1; overflow-x: hidden; }
.page-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header p { color: var(--text-muted); margin-top: .25rem; font-size: .9rem; }
.page-body { padding: 2rem; }

/* ── Stat Cards ────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.stat-card.amber::before { background: var(--amber); }
.stat-card.green::before { background: var(--green); }
.stat-card.red::before   { background: var(--red); }
.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: .75rem; opacity: .6; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.stat-card .stat-change { font-size: .75rem; margin-top: .5rem; }
.stat-card .stat-change.up { color: var(--green-light); }
.stat-card .stat-change.down { color: var(--red-light); }

/* ── Modal ─────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 560px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    transform: translateY(20px) scale(.97);
    transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; font-weight: 600; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Toast / Notifications ─────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; display: flex; flex-direction: column; gap: .6rem; }
.toast {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1.2rem;
    font-size: .88rem;
    display: flex; align-items: center; gap: .7rem;
    box-shadow: var(--shadow-lg);
    max-width: 360px;
    animation: toastIn .3s var(--ease) forwards;
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error   { border-color: rgba(239,68,68,.3); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

/* ── Search bar ────────────────────────────────── */
.search-bar {
    position: relative;
    flex: 1;
}
.search-bar input {
    padding-left: 2.8rem;
    height: 42px;
    border-radius: var(--radius-full);
}
.search-bar .search-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); font-size: .9rem; pointer-events: none;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,109,250,.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--primary) 20%, var(--amber)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin: 1rem auto 2rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Filter bar ────────────────────────────────── */
.filter-bar {
    display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.filter-chip {
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 500;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.filter-chip:hover, .filter-chip.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

/* ── Comparison table ──────────────────────────── */
.compare-table { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.compare-table table { border-collapse: separate; border-spacing: 0; }
.compare-table thead th { border-right: 1px solid var(--border); }
.compare-table tbody td { border-right: 1px solid var(--border); border-top: 1px solid var(--border); padding: .9rem 1.1rem; }
.compare-table tbody td:last-child, .compare-table thead th:last-child { border-right: none; }
.compare-winner { background: var(--primary-glow) !important; font-weight: 600; color: var(--primary) !important; }

/* ── Ingredient list ───────────────────────────── */
.ingredient-list { list-style: none; }
.ingredient-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 0; border-bottom: 1px solid var(--border);
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-name { flex: 1; font-weight: 500; color: var(--text); }
.ingredient-qty  { font-size: .85rem; color: var(--text-muted); font-family: monospace; }
.ingredient-tag  { }
.ingredient-note { font-size: .78rem; color: var(--text-dim); margin-top: .15rem; }

/* ── Pagination ────────────────────────────────── */
.pagination { display: flex; gap: .4rem; align-items: center; margin-top: 2rem; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 .7rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: .85rem; font-weight: 500;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; text-decoration: none;
    transition: all var(--duration) var(--ease);
}
.page-btn:hover { border-color: var(--border-hover); color: var(--text); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── Empty state ───────────────────────────────── */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .3; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; }

/* ── Progress / value bar ──────────────────────── */
.value-bar-wrap { display: flex; align-items: center; gap: .75rem; }
.value-bar-track { flex: 1; height: 8px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.value-bar-fill { height: 100%; border-radius: 4px; transition: width .5s var(--ease); }
.fill-primary  { background: var(--primary); }
.fill-green    { background: var(--green); }
.fill-amber    { background: var(--amber); }
.fill-red      { background: var(--red); }
.fill-teal     { background: var(--teal); }

/* ── Skeleton loading ──────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Dropdown ──────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + .5rem); right: 0; z-index: 500;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: all .18s var(--ease);
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: none; }
.dropdown-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem 1rem; font-size: .88rem; color: var(--text-muted);
    transition: all var(--duration) var(--ease); cursor: pointer; text-decoration: none;
}
.dropdown-item:hover { background: var(--surface3); color: var(--text); }
.dropdown-item.danger { color: var(--red-light); }
.dropdown-item.danger:hover { background: rgba(239,68,68,.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: .25rem 0; }

/* ── Verification badges ───────────────────────── */
.verify-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; }
.verify-self { color: var(--blue); }
.verify-verified { color: var(--green); }
.verify-flagged { color: var(--red-light); }

/* ── Utility ───────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-green  { color: var(--green); }
.text-amber  { color: var(--amber); }
.text-red    { color: var(--red-light); }
.font-mono   { font-family: monospace; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .page-body { padding: 1.25rem; }
    .page-header { padding: 1.25rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3rem 0 2.5rem; }
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
