/* Bloom Marketplace — Pure CSS Design System
   Zero JavaScript. Tor Browser Safest mode compatible.
   Dark-first, responsive, glassmorphism accents. */

/* ═══ FONTS ═══ */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ═══ TOKENS ═══ */
:root {
  --bg:       #08080d;
  --bg-2:     #0f0f17;
  --bg-3:     #16161f;
  --surface:  #1b1b28;
  --surface-2:#222233;
  --glass:    rgba(30,30,50,0.6);
  --glass-b:  rgba(255,255,255,0.03);
  --border:   rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.12);
  --ink:      #e6e6f0;
  --ink-2:    #a8a8c0;
  --muted:    #606078;
  --accent:   #ff2d55;
  --accent-2: #ff5c7c;
  --accent-soft: rgba(255,45,85,0.12);
  --accent-glow: rgba(255,45,85,0.25);
  --green:    #22c55e;
  --green-soft: rgba(34,197,94,0.12);
  --amber:    #f59e0b;
  --amber-soft: rgba(245,158,11,0.12);
  --red:      #ef4444;
  --red-soft: rgba(239,68,68,0.12);
  --sans:     'Inter', system-ui, -apple-system, sans-serif;
  --display:  'Bricolage', 'Inter', system-ui, sans-serif;
  --mono:     'Space Mono', 'Courier New', monospace;
  --r:        12px;
  --r-lg:     18px;
  --r-xl:     24px;
  --ink-3:    #606078;
  --shadow:   0 2px 12px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  --glow-header: 0 1px 30px rgba(255,45,85,0.08);
  --glow-card: 0 0 40px rgba(255,45,85,0.05);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme: follows OS preference unless user chose dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:       #f8f6f3;
    --bg-2:     #f0ede8;
    --bg-3:     #e8e4de;
    --surface:  #ffffff;
    --surface-2:#f5f2ee;
    --glass:    rgba(255,255,255,0.75);
    --glass-b:  rgba(0,0,0,0.025);
    --border:   rgba(0,0,0,0.08);
    --border-h: rgba(0,0,0,0.16);
    --ink:      #1a1a2e;
    --ink-2:    #4a4a60;
    --ink-3:    #7a7a95;
    --muted:    #8888a0;
    --accent:   #e01545;
    --accent-2: #c41040;
    --accent-soft: rgba(224,21,69,0.07);
    --accent-glow: rgba(224,21,69,0.12);
    --green:    #16a34a;
    --green-soft: rgba(22,163,74,0.07);
    --amber:    #d97706;
    --amber-soft: rgba(217,119,6,0.07);
    --red:      #dc2626;
    --red-soft: rgba(220,38,38,0.07);
    --shadow:   0 2px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
    --shadow-lg:0 8px 32px rgba(0,0,0,0.10), 0 0 0 1px var(--border);
    --glow-header: 0 1px 20px rgba(224,21,69,0.06);
    --glow-card: 0 0 30px rgba(224,21,69,0.04);
  }
}
/* Light theme: explicit user choice */
:root[data-theme="light"] {
  --bg:       #f8f6f3;
  --bg-2:     #f0ede8;
  --bg-3:     #e8e4de;
  --surface:  #ffffff;
  --surface-2:#f5f2ee;
  --glass:    rgba(255,255,255,0.75);
  --glass-b:  rgba(0,0,0,0.025);
  --border:   rgba(0,0,0,0.08);
  --border-h: rgba(0,0,0,0.16);
  --ink:      #1a1a2e;
  --ink-2:    #4a4a60;
  --ink-3:    #7a7a95;
  --muted:    #8888a0;
  --accent:   #e01545;
  --accent-2: #c41040;
  --accent-soft: rgba(224,21,69,0.07);
  --accent-glow: rgba(224,21,69,0.12);
  --green:    #16a34a;
  --green-soft: rgba(22,163,74,0.07);
  --amber:    #d97706;
  --amber-soft: rgba(217,119,6,0.07);
  --red:      #dc2626;
  --red-soft: rgba(220,38,38,0.07);
  --shadow:   0 2px 16px rgba(0,0,0,0.06), 0 0 0 1px var(--border);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.10), 0 0 0 1px var(--border);
  --glow-header: 0 1px 20px rgba(224,21,69,0.06);
  --glow-card: 0 0 30px rgba(224,21,69,0.04);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
input, textarea, select, button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; font-weight: 700; }

/* ═══ LAYOUT ═══ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.page { padding: 40px 0 80px; min-height: calc(100vh - 160px); }

/* ═══ HEADER ═══ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); border-bottom: 1px solid var(--border); box-shadow: var(--glow-header); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.logo { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav-btn { font-size: 0.875rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: all var(--transition); border: none; background: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav-btn:hover { color: var(--ink); background: var(--glass-b); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.nav-accent { background: var(--accent) !important; color: #fff !important; font-weight: 600; }
.nav-accent:hover { background: var(--accent-2) !important; }
.cart-count { background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ═══ HERO ═══ */
.hero { padding: 80px 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent), radial-gradient(ellipse 40% 60% at 20% 100%, rgba(99,50,255,0.08), transparent), radial-gradient(ellipse 40% 60% at 80% 100%, rgba(255,140,50,0.06), transparent); pointer-events: none; }
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 480px; margin: 0 auto 32px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ═══ BADGES / PILLS ═══ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--border); background: var(--surface); }
.badge-accent { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); }
.badge-green { border-color: var(--green-soft); background: var(--green-soft); color: var(--green); }
.badge-amber { border-color: var(--amber-soft); background: var(--amber-soft); color: var(--amber); }
.badge-red { border-color: var(--red-soft); background: var(--red-soft); color: var(--red); }

/* ═══ CARDS ═══ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: all var(--transition); box-shadow: var(--glow-card); }
.card:hover { border-color: var(--border-h); box-shadow: var(--shadow), var(--glow-card); }
.card-glass { background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); border-radius: 2px; }

/* ═══ PRODUCT GRID ═══ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all var(--transition); box-shadow: var(--glow-card); }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow); border-color: var(--border-h); }
.product-img { aspect-ratio: 4/3; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2rem; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; }
.product-body h3 { font-size: 1rem; margin-bottom: 4px; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--accent); }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.product-price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.product-seller { font-size: 0.8rem; color: var(--muted); }
.product-trust { font-size: 0.75rem; color: var(--muted); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.form-input { width: 100%; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); font-size: 1rem; color: var(--ink); transition: all var(--transition); outline: none; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow); }
.form-input::placeholder { color: var(--muted); }
textarea.form-input { resize: vertical; min-height: 120px; font-family: var(--mono); font-size: 0.88rem; line-height: 1.5; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606078' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px rgba(255,45,85,0.1); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-h); background: var(--bg-3); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--glass-b); border-color: var(--border-h); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ═══ PGP / AUTH ═══ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: 2.2rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 32px; }
.eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 8px; }

.pgp-block { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; word-break: break-all; white-space: pre-wrap; color: var(--ink-2); max-height: 280px; overflow-y: auto; }
.pgp-block::before { content: 'PGP ENCRYPTED'; position: absolute; top: 8px; right: 12px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; font-family: var(--sans); }

.sealed-envelope { background: linear-gradient(135deg, var(--surface) 0%, var(--bg-3) 100%); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; text-align: center; position: relative; overflow: hidden; }
.sealed-envelope::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #9333ea, var(--accent)); }
.sealed-envelope h3 { margin-bottom: 16px; }

.challenge-download { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--surface-2); border: 1px dashed var(--border-h); border-radius: var(--r); color: var(--ink-2); font-size: 0.88rem; margin: 16px 0; transition: all var(--transition); }
.challenge-download:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ═══ SEED PHRASE GRID ═══ */
.seed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
@media (max-width: 520px) { .seed-grid { grid-template-columns: repeat(3, 1fr); } }
.seed-word { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-family: var(--mono); font-size: 0.82rem; color: var(--ink); }
.seed-num { font-size: 0.65rem; color: var(--ink-3); min-width: 18px; }

/* ═══ VISUAL KEYPRINT ═══ */
.keyprint { display: inline-grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.keyprint-cell { border-radius: 2px; }
.keyprint-lg { width: 72px; height: 72px; gap: 3px; border-radius: 12px; }
.keyprint-lg .keyprint-cell { border-radius: 3px; }
.keyprint-row { display: flex; align-items: center; gap: 14px; }

/* ═══ CANARY ═══ */
.canary-bar { background: var(--green-soft); border: 1px solid rgba(34,197,94,0.15); border-radius: var(--r); padding: 14px 18px; font-size: 0.82rem; color: var(--green); display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.canary-bar .canary-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: canary-pulse 2s ease-in-out infinite; }
@keyframes canary-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ TABLES ═══ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: left; padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--glass-b); }

/* ═══ FLASH MESSAGES ═══ */
.flash { padding: 14px 20px; border-radius: var(--r); margin-bottom: 20px; font-size: 0.9rem; animation: flash-in 0.3s ease-out; }
.flash-success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,94,0.15); }
.flash-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }
.flash-warning { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,158,11,0.15); }
.flash-info { background: rgba(59,130,246,0.08); color: #3b82f6; border: 1px solid rgba(59,130,246,0.15); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ═══ STATUS DOTS ═══ */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.status-dot.pending { background: var(--amber); }
.status-dot.active, .status-dot.paid { background: var(--green); }
.status-dot.failed, .status-dot.cancelled { background: var(--red); }
.status-dot.processing { background: var(--accent); animation: canary-pulse 1.4s ease-in-out infinite; }

/* ═══ ORDER STATUS ═══ */
.order-status-bar { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 24px; box-shadow: var(--glow-card); }
.order-status-bar h2 { font-size: 1.3rem; }
.order-status-bar .status-label { font-size: 0.85rem; color: var(--ink-2); }

/* ═══ CART ═══ */
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-name { font-weight: 600; }
.cart-item-variant { font-size: 0.82rem; color: var(--muted); }
.cart-item-price { font-family: var(--mono); font-weight: 700; color: var(--accent); white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 2px solid var(--border); margin-top: 8px; }
.cart-total-label { font-size: 1.1rem; font-weight: 600; }
.cart-total-price { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* ═══ SELLER PROFILE ═══ */
.seller-header { display: flex; gap: 24px; align-items: center; padding: 32px 0; }
.seller-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); }
.seller-info h1 { font-size: 1.6rem; margin-bottom: 4px; }
.seller-stats { display: flex; gap: 20px; margin-top: 8px; }
.seller-stat { font-size: 0.82rem; color: var(--muted); }
.seller-stat strong { color: var(--ink); font-weight: 700; }

/* ═══ SUPPORT ═══ */
.ticket-list .ticket { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ticket:hover { background: var(--glass-b); }
.ticket h4 { font-size: 0.95rem; }
.ticket h4 a { color: var(--ink); }
.ticket-meta { font-size: 0.78rem; color: var(--muted); }
.message-thread { padding: 24px 0; }
.message { padding: 16px; margin-bottom: 12px; border-radius: var(--r); }
.message-user { background: var(--surface); border: 1px solid var(--border); }
.message-staff { background: var(--accent-soft); border: 1px solid rgba(255,45,85,0.1); }
.message-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.82rem; }
.message-author { font-weight: 700; }
.message-time { color: var(--muted); }
.message-body { white-space: pre-wrap; word-wrap: break-word; }

/* ═══ ADMIN ═══ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 24px 0; }
.admin-sidebar a { display: block; padding: 10px 24px; font-size: 0.88rem; color: var(--ink-2); transition: all var(--transition); }
.admin-sidebar a:hover { background: var(--glass-b); color: var(--ink); }
.admin-sidebar a.active { color: var(--accent); background: var(--accent-soft); border-right: 2px solid var(--accent); }
.admin-content { padding: 32px; }
.admin-content h1 { font-size: 1.6rem; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--glow-card); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }
.stat-card .stat-value { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* ═══ DETAILS/SUMMARY (no-JS accordions) ═══ */
details { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
details + details { margin-top: 8px; }
summary { padding: 14px 18px; cursor: pointer; font-weight: 600; background: var(--surface); transition: background var(--transition); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--muted); transition: transform var(--transition); }
details[open] summary::after { content: '-'; }
details[open] summary { border-bottom: 1px solid var(--border); }
.details-body { padding: 18px; }

/* ═══ FOOTER ═══ */
.site-footer { border-top: 1px solid var(--border); padding: 40px 20px; text-align: center; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ═══ UTILITIES ═══ */
.mono { font-family: var(--mono); }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.space-between { display: flex; justify-content: space-between; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink-2); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-open { background: var(--green-soft); color: var(--green); }
.tag-closed { background: var(--red-soft); color: var(--red); }
.tag-pending { background: var(--amber-soft); color: var(--amber); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hero { padding: 48px 16px; }
  .hero h1 { font-size: 2rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 0; }
  .admin-sidebar a { white-space: nowrap; padding: 12px 16px; border-right: none !important; }
  .admin-sidebar a.active { border-bottom: 2px solid var(--accent); border-right: none !important; }
  .admin-content { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr auto; }
  .seller-header { flex-direction: column; text-align: center; }
  .header-inner { padding: 10px 16px; }
  .nav { gap: 2px; }
  .nav a, .nav-btn { padding: 6px 10px; font-size: 0.8rem; }
}

/* ═══ PRINT ═══ */
@media print {
  .site-header, .site-footer, .nav, .btn, form { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .card-glass { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ VAULT DOOR (unauthenticated landing) ═══ */
.vault-body { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.vault-body .page { width: 100%; margin: auto; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.vault-door {
  text-align: center; padding: 48px 32px; max-width: 440px; width: 100%; position: relative;
}
.vault-ring {
  width: 180px; height: 180px; margin: 0 auto 32px; border-radius: 50%;
  border: 3px solid var(--glass); position: relative;
  background: radial-gradient(circle at 40% 40%, var(--surface-2), var(--bg));
  box-shadow: 0 0 60px rgba(255,59,108,0.08), inset 0 0 30px rgba(0,0,0,0.5);
}
.vault-ring::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.3;
  animation: vault-pulse 3s ease-in-out infinite;
}
.vault-ring::after {
  content: ''; position: absolute; inset: 28px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.15;
  animation: vault-pulse 3s ease-in-out 1s infinite;
}
@keyframes vault-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.04); }
}
.vault-title {
  font-family: var(--heading); font-size: 2.8rem; font-weight: 700;
  letter-spacing: -1px; color: var(--ink); margin: 0;
}
.vault-title span { color: var(--accent); }
.vault-sub { color: var(--ink-2); font-size: 0.95rem; margin: 8px 0 0; max-width: 320px; margin-left: auto; margin-right: auto; }
.vault-links { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.vault-links .btn { min-width: 220px; }
.vault-canary { margin-top: 48px; }
.vault-canary a { color: var(--ink-3); font-size: 0.75rem; text-decoration: none; }
.vault-canary a:hover { color: var(--ink-2); }
.vault-badge { display: inline-block; margin-top: 24px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--glass); color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; }

/* ═══ THEME TOGGLE ═══ */
.theme-toggle { display: inline-flex; }
.theme-toggle button {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 0.75rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.04em;
}
.theme-toggle button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.vault-theme-toggle { position: fixed; top: 16px; right: 16px; z-index: 200; }

/* ═══ AMBIENT PAGE GLOW ═══ */
.page::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 300px;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, var(--accent-glow), transparent);
  pointer-events: none; z-index: -1; opacity: 0.3;
}

/* ═══ SHOP HERO ═══ */
.shop-hero {
  position: relative; padding: 56px 20px 48px; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 20%, rgba(255,45,85,0.07), transparent),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(147,51,234,0.06), transparent),
    radial-gradient(ellipse 60% 60% at 50% 90%, rgba(255,140,50,0.04), transparent);
  pointer-events: none;
}
.shop-hero::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.shop-hero-content { position: relative; max-width: 600px; margin: 0 auto; }
.shop-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; margin-bottom: 8px; }
.shop-hero h1 em { font-style: normal; color: var(--accent); }
.shop-hero-sub { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 28px; }

/* ─── Search bar (in hero) ─── */
.shop-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.shop-search-input {
  flex: 1; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.92rem; color: var(--ink); outline: none;
  transition: all var(--transition);
}
.shop-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shop-search-input::placeholder { color: var(--muted); }
.shop-search-btn {
  padding: 14px 24px; background: var(--accent); color: #fff; border: none; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all var(--transition);
}
.shop-search-btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }

/* ─── Category strip ─── */
.cat-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cat-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); text-decoration: none; letter-spacing: 0.02em;
}
.cat-chip:hover { color: var(--ink); border-color: var(--border-h); background: var(--surface-2); }
.cat-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ─── Section headings ─── */
.shop-section { margin-bottom: 12px; }
.shop-section-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.shop-section-count { font-size: 0.82rem; color: var(--muted); margin-left: 8px; }

/* ═══ ENHANCED PRODUCT CARDS ═══ */
.product-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.product-card-img {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-cat {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--glass); backdrop-filter: blur(8px); color: var(--ink-2); border: 1px solid var(--border);
}
.product-card-stock-low {
  position: absolute; bottom: 12px; right: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; background: rgba(239,68,68,0.85); color: #fff;
}
.product-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.product-card-seller { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: auto; }
.product-card-footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.product-card-price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); }
.product-card-rating { font-size: 0.78rem; color: var(--ink-2); }

/* ─── Trust pips ─── */
.trust-pips { letter-spacing: 1px; font-size: 0.6rem; }
.trust-pip-on { color: var(--green); }
.trust-pip-off { color: var(--border-h); }

/* ─── Product placeholder gradients (no image) ─── */
.ph { display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.ph-roses { background: radial-gradient(ellipse at 30% 35%, rgba(255,45,85,0.18), transparent 55%), radial-gradient(ellipse at 75% 65%, rgba(200,30,60,0.12), transparent 50%), var(--bg-3); }
.ph-bouquets { background: radial-gradient(ellipse at 35% 30%, rgba(147,51,234,0.15), transparent 55%), radial-gradient(ellipse at 65% 70%, rgba(255,45,85,0.10), transparent 50%), var(--bg-3); }
.ph-arrangements { background: radial-gradient(ellipse at 25% 40%, rgba(255,140,50,0.12), transparent 55%), radial-gradient(ellipse at 70% 55%, rgba(245,158,11,0.10), transparent 50%), var(--bg-3); }
.ph-succulents { background: radial-gradient(ellipse at 40% 30%, rgba(34,197,94,0.14), transparent 55%), radial-gradient(ellipse at 60% 70%, rgba(20,184,166,0.10), transparent 50%), var(--bg-3); }
.ph-wildflowers { background: radial-gradient(ellipse at 50% 35%, rgba(59,130,246,0.12), transparent 55%), radial-gradient(ellipse at 30% 70%, rgba(147,51,234,0.10), transparent 50%), var(--bg-3); }
.ph-default { background: radial-gradient(ellipse at 40% 40%, var(--accent-glow), transparent 60%), var(--bg-3); }

/* ─── Product detail hero ─── */
.pdp { max-width: 900px; margin: 0 auto; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.pdp-gallery { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.pdp-gallery img { width: 100%; display: block; }
.pdp-gallery .ph { aspect-ratio: 1; font-size: 4rem; }
.pdp-info h1 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.pdp-price { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 16px 0; }
.pdp-seller {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 16px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; color: var(--ink); transition: all var(--transition);
}
.pdp-seller:hover { border-color: var(--border-h); box-shadow: var(--shadow); }
.pdp-seller-name { font-weight: 600; font-size: 0.9rem; }
.pdp-seller-meta { font-size: 0.78rem; color: var(--muted); }
.pdp-desc { color: var(--ink-2); line-height: 1.7; margin: 20px 0; }
.pdp-add { margin-top: 24px; }
.pdp-stock { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 768px) { .pdp-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ─── Beautiful empty state ─── */
.empty-bloom { text-align: center; padding: 64px 24px; }
.empty-bloom-icon {
  width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--surface-2), var(--bg-2));
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--muted); box-shadow: 0 0 40px rgba(255,45,85,0.05);
}
.empty-bloom h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.empty-bloom p { color: var(--muted); max-width: 320px; margin: 0 auto 24px; }

/* ─── Seller card enhanced ─── */
.seller-card {
  display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  transition: all var(--transition); box-shadow: var(--glow-card);
}
.seller-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--glow-card); border-color: var(--border-h); }
.seller-card-info { flex: 1; }
.seller-card-info h3 { font-size: 1rem; margin-bottom: 4px; }
.seller-card-info p { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.seller-card-stats { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══ INTERIOR PAGE HERO ═══ */
.page-hero {
  position: relative; padding: 48px 20px 40px; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 25% 25%, rgba(255,45,85,0.06), transparent),
    radial-gradient(ellipse 50% 60% at 75% 35%, rgba(147,51,234,0.05), transparent),
    radial-gradient(ellipse 50% 50% at 50% 85%, rgba(34,197,94,0.03), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.page-hero-content { position: relative; max-width: 560px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero-sub { color: var(--ink-2); font-size: 0.92rem; }

/* ═══ SELLERS — Premium Cards ═══ */
.sellers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.seller-tile {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; transition: all var(--transition); box-shadow: var(--glow-card);
  position: relative; overflow: hidden;
}
.seller-tile::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.seller-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--glow-card); border-color: var(--border-h); }
.seller-tile:hover::before { opacity: 1; }
.seller-tile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.seller-tile-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, var(--surface-2), var(--bg-3));
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent); font-weight: 700; font-family: var(--display);
}
.seller-tile-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.seller-tile-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.seller-tile-footer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.seller-tile-stat {
  font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); letter-spacing: 0.02em;
}
.seller-tile-stat.trust { background: var(--green-soft); color: var(--green); }
.seller-tile-stat.active { background: var(--accent-soft); color: var(--accent); }
.seller-tile-lively {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  display: inline-block; margin-right: 4px; animation: canary-pulse 2s ease-in-out infinite;
}

/* ═══ SELLER DETAIL — Profile Hero ═══ */
.seller-profile-hero {
  position: relative; padding: 48px 20px 40px; overflow: hidden;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.seller-profile-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 30%, rgba(34,197,94,0.06), transparent),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(147,51,234,0.05), transparent);
  pointer-events: none;
}
.seller-profile-hero::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-soft), transparent);
}
.seller-profile-inner { position: relative; max-width: 700px; margin: 0 auto; display: flex; gap: 28px; align-items: center; }
.seller-profile-avatar {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, var(--surface-2), var(--bg));
  border: 3px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--accent); font-weight: 700; font-family: var(--display);
  box-shadow: 0 0 40px rgba(34,197,94,0.08);
}
.seller-profile-info h1 { font-size: 1.8rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.seller-profile-info .trust-meta { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ═══ CART — Premium ═══ */
.cart-hero {
  position: relative; padding: 40px 20px 36px; text-align: center; overflow: hidden;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.cart-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(255,45,85,0.05), transparent);
  pointer-events: none;
}
.cart-hero::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.cart-hero h1 { position: relative; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.cart-hero-count { position: relative; font-size: 0.88rem; color: var(--ink-2); margin-top: 4px; }

.cart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--glow-card);
}
.cart-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--glass-b); }
.cart-row-product h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.cart-row-product h3 a { color: var(--ink); text-decoration: none; }
.cart-row-product h3 a:hover { color: var(--accent); }
.cart-row-seller { font-size: 0.78rem; color: var(--muted); }
.cart-row-actions { display: flex; align-items: center; gap: 8px; }
.cart-row-price { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1rem; text-align: right; white-space: nowrap; }
.cart-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px; background: var(--bg-2); border-top: 2px solid var(--border);
}
.cart-summary-label { font-size: 1.1rem; font-weight: 600; }
.cart-summary-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 16px; flex-wrap: wrap; }

/* ═══ CHECKOUT — Premium ═══ */
.checkout-layout { max-width: 640px; margin: 0 auto; }
.checkout-step {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.checkout-step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.checkout-step-label { font-weight: 600; font-size: 0.95rem; }
.checkout-items {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 28px;
}
.checkout-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-name { font-size: 0.9rem; font-weight: 500; }
.checkout-item-qty { font-size: 0.78rem; color: var(--muted); }
.checkout-item-price { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.checkout-total-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 20px; background: var(--bg-2); border-top: 2px solid var(--border);
}
.checkout-total-bar span:first-child { font-weight: 700; font-size: 1rem; }
.checkout-total-bar span:last-child { font-family: var(--mono); font-weight: 700; font-size: 1.2rem; color: var(--accent); }
.checkout-privacy {
  text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 16px;
  padding: 12px; background: var(--green-soft); border-radius: var(--r); border: 1px solid rgba(34,197,94,0.1);
}

/* ═══ ORDERS — Timeline Cards ═══ */
.order-grid { display: grid; gap: 12px; }
.order-tile {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  transition: all var(--transition); box-shadow: var(--glow-card);
}
.order-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--glow-card); border-color: var(--border-h); }
.order-tile-status {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.order-tile-status.pending { background: var(--amber); box-shadow: 0 0 8px var(--amber-soft); }
.order-tile-status.processing { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); animation: canary-pulse 1.4s ease-in-out infinite; }
.order-tile-status.shipped { background: var(--green); box-shadow: 0 0 8px var(--green-soft); }
.order-tile-status.delivered { background: var(--green); box-shadow: 0 0 8px var(--green-soft); }
.order-tile-status.cancelled, .order-tile-status.refunded { background: var(--red); box-shadow: 0 0 8px var(--red-soft); }
.order-tile-info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.order-tile-date { font-size: 0.78rem; color: var(--muted); }
.order-tile-amount { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1rem; white-space: nowrap; }
.order-tile-badge {
  font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.order-tile-badge.pending { background: var(--amber-soft); color: var(--amber); }
.order-tile-badge.processing { background: var(--accent-soft); color: var(--accent); }
.order-tile-badge.shipped, .order-tile-badge.delivered { background: var(--green-soft); color: var(--green); }
.order-tile-badge.cancelled, .order-tile-badge.refunded { background: var(--red-soft); color: var(--red); }

/* ─── Order detail ─── */
.order-detail { max-width: 640px; margin: 0 auto; }
.order-header-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; box-shadow: var(--glow-card);
}
.order-header-card::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.order-header-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.order-header-id { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.order-header-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.order-header-meta { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.order-payment-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; margin-top: 20px; text-align: center;
}
.order-payment-card h3 { font-size: 1rem; margin-bottom: 8px; }
.order-payment-card p { color: var(--muted); font-size: 0.88rem; }
.order-payment-amount { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 8px 0; }

/* ═══ ACCOUNT — Premium Profile ═══ */
.account-layout { max-width: 640px; margin: 0 auto; }
.account-profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px; position: relative; overflow: hidden; box-shadow: var(--glow-card); margin-bottom: 20px;
}
.account-profile-card::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--surface-2), var(--bg));
  border: 3px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent); font-weight: 700; font-family: var(--display);
  box-shadow: 0 0 30px rgba(255,45,85,0.06);
}
.account-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.account-header h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 2px; }
.account-fingerprint { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.account-tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.account-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 16px; box-shadow: var(--glow-card);
}
.account-section-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
.account-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.account-dl dt { font-size: 0.82rem; color: var(--muted); }
.account-dl dd { font-size: 0.88rem; }
.account-danger {
  background: var(--surface); border: 1px solid var(--red-soft); border-radius: var(--r-lg);
  padding: 24px; margin-top: 16px; position: relative; overflow: hidden;
}
.account-danger::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-soft), transparent);
}
.account-danger h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 12px; }

/* ═══ SUPPORT — Premium Tickets ═══ */
.ticket-grid { display: grid; gap: 10px; }
.ticket-tile {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 24px; transition: all var(--transition); box-shadow: var(--glow-card);
}
.ticket-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--glow-card); border-color: var(--border-h); }
.ticket-tile-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-tile h3 { font-size: 0.95rem; font-weight: 600; }
.ticket-tile-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* ─── Support thread ─── */
.thread-container { max-width: 640px; margin: 0 auto; }
.thread-header { margin-bottom: 24px; }
.thread-header h1 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.thread-msgs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.thread-msg {
  padding: 18px 20px; border-radius: var(--r-lg); max-width: 85%;
}
.thread-msg-own {
  background: var(--surface); border: 1px solid var(--border); align-self: flex-end;
}
.thread-msg-staff {
  background: var(--accent-soft); border: 1px solid rgba(255,45,85,0.08); align-self: flex-start;
  position: relative;
}
.thread-msg-staff::before {
  content: 'STAFF'; position: absolute; top: 8px; right: 12px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
  background: rgba(255,45,85,0.08); padding: 2px 8px; border-radius: 4px;
}
.thread-msg-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; }
.thread-msg-body { font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

/* ─── Qty input mini ─── */
.qty-input {
  width: 60px; padding: 8px 10px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 0.88rem; color: var(--ink); font-family: var(--mono);
}
.qty-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); outline: none; }

@media (max-width: 768px) {
  .sellers-grid { grid-template-columns: 1fr; }
  .seller-profile-inner { flex-direction: column; text-align: center; }
  .seller-profile-info .trust-meta { justify-content: center; }
  .cart-row { grid-template-columns: 1fr; gap: 12px; }
  .cart-row-price { text-align: left; }
  .order-tile { grid-template-columns: auto 1fr auto; }
  .order-tile-badge { display: none; }
  .account-header { flex-direction: column; text-align: center; }
}

/* ═══ BTC PRICE ═══ */
.btc-price { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.btc-price::before { content: '≈ '; }
.product-card-btc { font-size: 0.68rem; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }
.product-card-btc::before { content: '≈ '; }
.pdp-btc { font-family: var(--mono); font-size: 0.88rem; color: var(--muted); margin-top: -8px; margin-bottom: 16px; }
.pdp-btc::before { content: '≈ '; }
.rate-ticker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
  margin-top: 16px;
}
.rate-ticker-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: canary-pulse 2s ease-in-out infinite;
}
.rate-ticker-stale { color: var(--amber); }
.rate-ticker-stale .rate-ticker-dot { background: var(--amber); }
.cart-btc { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.cart-btc::before { content: '≈ '; }
.checkout-btc { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.checkout-btc::before { content: '≈ '; }
.product-card-xmr, .pdp-xmr, .cart-xmr, .checkout-xmr { color: #e8793a; }
[data-theme="light"] .product-card-xmr, [data-theme="light"] .pdp-xmr, [data-theme="light"] .cart-xmr, [data-theme="light"] .checkout-xmr { color: #c9622a; }

/* ═══ DASHBOARD: Shared panel styles ═══ */
.dash-layout { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-stat { background: var(--surface-2); border-radius: 16px; padding: 20px; border: 1px solid var(--border); }
.dash-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.dash-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.dash-stat-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.dash-stat-accent { border-top: 3px solid var(--crimson); }
.dash-stat-green .dash-stat-value { color: var(--green); }
.dash-stat-amber .dash-stat-value { color: var(--amber); }

.dash-section { margin-bottom: 32px; }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-section-title { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.dash-section-count { font-size: 0.78rem; color: var(--muted); }

.dash-table { width: 100%; border-collapse: collapse; background: var(--surface-2); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.dash-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); background: var(--surface); }
.dash-table td { padding: 12px 16px; font-size: 0.88rem; color: var(--ink-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--surface); }
.dash-table a { color: var(--crimson); text-decoration: none; }
.dash-table a:hover { text-decoration: underline; }

.dash-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-badge-green { background: rgba(0,200,83,0.15); color: #00c853; }
.dash-badge-amber { background: rgba(255,171,0,0.15); color: #ffab00; }
.dash-badge-red { background: rgba(231,76,60,0.15); color: #e74c3c; }
.dash-badge-blue { background: rgba(52,152,219,0.15); color: #3498db; }
.dash-badge-gray { background: rgba(127,140,141,0.15); color: #7f8c8d; }
.dash-badge-purple { background: rgba(155,89,182,0.15); color: #9b59b6; }

.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-actions form { display: inline; }

.dash-card { background: var(--surface-2); border-radius: 16px; padding: 24px; border: 1px solid var(--border); margin-bottom: 20px; }
.dash-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dash-card-title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.dash-card-accent { border-top: 3px solid var(--crimson); }

.dash-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-tab { padding: 8px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 500; color: var(--muted); text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.dash-tab:hover { color: var(--ink); border-color: var(--ink-3); }
.dash-tab-active { background: var(--crimson); color: #fff; border-color: var(--crimson); }

.dash-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.dash-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.dash-empty h3 { color: var(--ink); margin-bottom: 8px; }

.dash-form { max-width: 600px; }
.dash-form .form-group { margin-bottom: 16px; }
.dash-form label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.dash-form .form-input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 0.92rem; font-family: var(--sans); }
.dash-form .form-input:focus { outline: none; border-color: var(--crimson); }
.dash-form select.form-input { appearance: auto; }
.dash-form textarea.form-input { resize: vertical; min-height: 80px; }

.dash-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dash-detail-item { }
.dash-detail-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.dash-detail-value { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

.dash-alert { padding: 14px 18px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 16px; }
.dash-alert-red { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25); color: #e74c3c; }
.dash-alert-green { background: rgba(0,200,83,0.1); border: 1px solid rgba(0,200,83,0.25); color: #00c853; }
.dash-alert-amber { background: rgba(255,171,0,0.1); border: 1px solid rgba(255,171,0,0.25); color: #ffab00; }

.dash-hero { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); padding: 32px 0; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.dash-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.dash-hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.dash-hero h1 em { color: var(--crimson); font-style: normal; }
.dash-hero-sub { color: var(--muted); font-size: 0.88rem; }
.dash-hero-role { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--crimson); color: #fff; margin-left: 10px; vertical-align: middle; }

.btn-xs { padding: 4px 12px; font-size: 0.72rem; border-radius: 8px; }
.btn-green { background: #00c853; color: #fff; border: none; cursor: pointer; font-weight: 600; }
.btn-green:hover { background: #00b248; }
.btn-amber { background: #ffab00; color: #1a1a2e; border: none; cursor: pointer; font-weight: 600; }
.btn-amber:hover { background: #e69c00; }
.btn-red { background: #e74c3c; color: #fff; border: none; cursor: pointer; font-weight: 600; }
.btn-red:hover { background: #c0392b; }
.btn-blue { background: #3498db; color: #fff; border: none; cursor: pointer; font-weight: 600; }
.btn-blue:hover { background: #2980b9; }

@media (max-width: 768px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-table { font-size: 0.82rem; }
  .dash-table th, .dash-table td { padding: 8px 10px; }
  .dash-detail-grid { grid-template-columns: 1fr; }
  .dash-hero h1 { font-size: 1.3rem; }
  .dash-tabs { gap: 6px; }
}

/* ═══ WAVE 1: Shop controls — sort, filter, pagination ═══ */
.shop-controls { margin-bottom: 20px; }
.shop-controls-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-price-filter { display: flex; align-items: center; gap: 6px; }
.shop-control-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-right: 4px; }
.shop-select { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 0.85rem; font-family: var(--sans); }
.shop-price-input { width: 70px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 0.85rem; font-family: var(--mono); }
.shop-price-sep { color: var(--muted); font-size: 0.85rem; }

.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; padding: 16px 0; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all 0.15s; }
.page-link:hover { border-color: var(--crimson); color: var(--crimson); }
.page-active { background: var(--crimson); color: #fff; border-color: var(--crimson); pointer-events: none; }
.page-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* ═══ WAVE 1: CSS-only gallery ═══ */
.gallery-wrap { position: relative; }
.gallery-radio { display: none; }
.gallery-main { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.gallery-slide { display: none; }
.gallery-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
.gallery-radio:nth-of-type(1):checked ~ .gallery-main .gallery-slide:nth-child(1),
.gallery-radio:nth-of-type(2):checked ~ .gallery-main .gallery-slide:nth-child(2),
.gallery-radio:nth-of-type(3):checked ~ .gallery-main .gallery-slide:nth-child(3),
.gallery-radio:nth-of-type(4):checked ~ .gallery-main .gallery-slide:nth-child(4),
.gallery-radio:nth-of-type(5):checked ~ .gallery-main .gallery-slide:nth-child(5),
.gallery-radio:nth-of-type(6):checked ~ .gallery-main .gallery-slide:nth-child(6) { display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb { cursor: pointer; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.15s; flex: 0 0 60px; }
.gallery-thumb img { width: 60px; height: 60px; object-fit: cover; display: block; }
.gallery-radio:nth-of-type(1):checked ~ .gallery-thumbs .gallery-thumb:nth-child(1),
.gallery-radio:nth-of-type(2):checked ~ .gallery-thumbs .gallery-thumb:nth-child(2),
.gallery-radio:nth-of-type(3):checked ~ .gallery-thumbs .gallery-thumb:nth-child(3),
.gallery-radio:nth-of-type(4):checked ~ .gallery-thumbs .gallery-thumb:nth-child(4),
.gallery-radio:nth-of-type(5):checked ~ .gallery-thumbs .gallery-thumb:nth-child(5),
.gallery-radio:nth-of-type(6):checked ~ .gallery-thumbs .gallery-thumb:nth-child(6) { border-color: var(--crimson); }
.gallery-single { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }

/* ═══ WAVE 1: Reviews ═══ */
.pdp-reviews { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.pdp-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.review-summary { display: flex; gap: 32px; margin-bottom: 28px; align-items: flex-start; flex-wrap: wrap; }
.review-summary-score { text-align: center; min-width: 100px; }
.review-big-score { font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1; display: block; font-family: var(--mono); }
.review-stars-big { color: var(--crimson); font-size: 1.1rem; display: block; margin-top: 4px; }
.review-summary-count { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 4px; }
.review-breakdown { flex: 1; min-width: 200px; }
.review-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-bar-label { font-size: 0.78rem; color: var(--muted); min-width: 36px; text-align: right; }
.review-bar-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--crimson); border-radius: 4px; transition: width 0.3s; }
.review-bar-count { font-size: 0.72rem; color: var(--muted); min-width: 20px; }

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.review-card-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-stars { color: var(--crimson); font-size: 0.9rem; }
.review-author { font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.review-date { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.review-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.review-body { font-size: 0.88rem; color: var(--ink-3); line-height: 1.5; }
.review-verified { display: inline-block; font-size: 0.72rem; color: #00c853; font-weight: 600; margin-top: 8px; }
.review-empty { padding: 24px; text-align: center; }
.review-done { font-size: 0.72rem; color: var(--crimson); margin-left: 8px; }

/* review write */
.review-write-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.review-write-card h1 { font-size: 1.3rem; margin-bottom: 4px; }
.star-picker { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.star-pick-label { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); transition: all 0.15s; }
.star-pick-label:hover { border-color: var(--crimson); }
.star-pick-radio { display: none; }
.star-pick-radio:checked + .star-pick-star { color: var(--crimson); }
.star-pick-star { font-size: 1.1rem; color: var(--muted); }

/* ═══ WAVE 1: Breadcrumbs ═══ */
.breadcrumbs { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; padding: 8px 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--crimson); }
.bc-sep { margin: 0 6px; opacity: 0.5; }
.bc-current { color: var(--ink); font-weight: 500; }

/* ═══ WAVE 1: Wishlist ═══ */
.btn-wishlist { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.15s; margin: 8px 0; }
.btn-wishlist:hover { border-color: var(--crimson); color: var(--crimson); }
.btn-wishlist.wishlisted { color: var(--crimson); border-color: var(--crimson); }
.pdp-wishlist-form { display: inline; }

.wishlist-grid { display: flex; flex-direction: column; gap: 12px; }
.wishlist-card { display: flex; gap: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; align-items: center; }
.wishlist-card-img { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wishlist-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-card-body { flex: 1; min-width: 0; }
.wishlist-card-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.wishlist-card-name:hover { color: var(--crimson); }
.wishlist-card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.85rem; }
.wishlist-card-actions { display: flex; gap: 6px; }

/* ═══ WAVE 1: Related products grid (smaller) ═══ */
.pdp-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.product-grid-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.product-grid-scroll .product-card { min-width: 180px; flex-shrink: 0; }

@media (max-width: 768px) {
  .shop-controls-row { flex-direction: column; gap: 10px; }
  .shop-price-filter { flex-wrap: wrap; }
  .review-summary { flex-direction: column; gap: 16px; }
  .wishlist-card { flex-direction: column; text-align: center; }
  .wishlist-card-img { margin: 0 auto; }
  .wishlist-card-actions { justify-content: center; }
  .gallery-thumbs { overflow-x: auto; }
}

/* ═══ WAVE 2: Order Timeline ═══ */
.order-timeline { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 16px; margin: 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; flex-shrink: 0; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 2px solid var(--border); background: var(--bg); transition: all 0.2s; }
.tl-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; text-align: center; }
.tl-date { font-size: 0.65rem; color: var(--muted); font-family: var(--mono); }
.tl-line { flex: 1; min-width: 16px; height: 3px; background: var(--border); margin-top: 19px; border-radius: 2px; }
.tl-done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-done + .tl-line { background: var(--accent); }
.tl-active .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 0,200,83), 0.15); }
.tl-active .tl-label { color: var(--accent); }
.tl-pending .tl-dot { opacity: 0.4; }
.tl-pending .tl-label { opacity: 0.4; }
.timeline-cancelled { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin: 16px 0; background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.15); border-radius: var(--r-lg); }
.timeline-cancelled-icon { font-size: 1.6rem; }
.timeline-cancelled-text { font-weight: 600; color: #e74c3c; font-size: 0.95rem; text-transform: capitalize; }
.order-tracking-card { display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.order-tracking-icon { font-size: 1.5rem; }
.order-tracking-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
.order-tracking-value { font-family: var(--mono); font-size: 0.88rem; color: var(--ink); margin-top: 2px; }
.order-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ═══ WAVE 2: Notification System ═══ */
.notif-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 8px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
a.notif-item:hover { border-color: var(--accent); }
.notif-unread { background: rgba(var(--accent-rgb, 0,200,83), 0.04); border-left: 3px solid var(--accent); }
.notif-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 2px; }
.notif-text { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.notif-meta { font-size: 0.7rem; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.notif-mark { flex-shrink: 0; }
.notif-mark-btn { background: none; border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: var(--accent); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.notif-mark-btn:hover { background: var(--accent); color: #fff; }

/* ═══ WAVE 2: Messaging ═══ */
.msg-thread { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.msg-thread-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.msg-seller-name { font-weight: 600; color: var(--accent); text-decoration: none; }
.msg-seller-name:hover { text-decoration: underline; }
.msg-list { padding: 18px; min-height: 60px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { padding: 10px 14px; border-radius: 14px; max-width: 80%; font-size: 0.88rem; line-height: 1.45; }
.msg-mine { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-theirs { background: var(--bg); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-sender { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; opacity: 0.7; }
.msg-text { word-break: break-word; }
.msg-time { font-size: 0.62rem; margin-top: 4px; opacity: 0.5; font-family: var(--mono); }
.msg-empty { text-align: center; color: var(--muted); font-size: 0.88rem; padding: 20px; }
.msg-closed { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 12px; border-top: 1px solid var(--border); }
.msg-form { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); align-items: flex-end; }
.msg-input { flex: 1; resize: vertical; min-height: 36px; }

/* ═══ WAVE 2: Seller Analytics ═══ */
.analytics-chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 20px; }
.analytics-chart-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 16px; }
.css-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-bottom: 24px; position: relative; }
.css-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.css-bar { width: 100%; max-width: 40px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s; }
.css-bar:hover { opacity: 0.8; }
.css-bar-label { font-size: 0.62rem; color: var(--muted); font-family: var(--mono); position: absolute; bottom: -20px; white-space: nowrap; }
.status-bar-container { display: flex; height: 28px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.status-seg { min-width: 4px; transition: width 0.3s; }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.75rem; color: var(--muted); }
.status-legend-item { display: flex; align-items: center; gap: 4px; }
.status-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ═══ WAVE 2: Pagination ═══ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; }

@media (max-width: 768px) {
  .order-timeline { gap: 4px; padding: 16px 10px; }
  .tl-step { min-width: 48px; }
  .tl-dot { width: 32px; height: 32px; font-size: 0.9rem; }
  .tl-label { font-size: 0.6rem; }
  .tl-line { min-width: 8px; margin-top: 15px; }
  .msg-bubble { max-width: 90%; }
  .css-bar-chart { height: 120px; }
}

/* ═══ WAVE 3: Revenue Bars, Coupon Manager ═══ */
.rev-bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rev-bar-row:last-child { border-bottom: none; }
.rev-bar-label { min-width: 120px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-bar-label a { color: var(--fg); text-decoration: none; }
.rev-bar-label a:hover { color: var(--crimson); }
.rev-bar-track { flex: 1; height: 22px; background: var(--surface-alt); border-radius: 6px; overflow: hidden; }
.rev-bar-fill { height: 100%; background: linear-gradient(90deg, var(--crimson), #ff6b6b); border-radius: 6px; transition: width 0.3s ease; min-width: 2px; }
.rev-bar-fill-alt { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.rev-bar-val { min-width: 80px; text-align: right; font-size: 0.82rem; font-weight: 600; font-family: var(--mono); }

@media (max-width: 600px) {
  .rev-bar-row { flex-wrap: wrap; gap: 4px; }
  .rev-bar-label { min-width: 100%; font-size: 0.78rem; }
  .rev-bar-val { min-width: 100%; text-align: left; font-size: 0.75rem; }
}

/* ═══ WAVE 3: Revenue bars (owner analytics) ═══ */
.rev-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rev-bar-label { font-size: 0.78rem; min-width: 100px; text-align: right; }
.rev-bar-label a { color: var(--ink); text-decoration: none; }
.rev-bar-label a:hover { color: var(--accent); }
.rev-bar-track { flex: 1; height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.rev-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; transition: width 0.3s; }
.rev-bar-value { font-size: 0.72rem; color: var(--muted); min-width: 60px; font-family: var(--mono); }

/* ═══ WAVE 3: Mod tools ═══ */
.ban-card { background: rgba(231,76,60,0.05); border: 1px solid rgba(231,76,60,0.2); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.ban-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ban-card-user { font-weight: 600; color: var(--ink); }
.ban-card-reason { font-size: 0.85rem; color: var(--muted); }
.mod-action-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; align-items: center; }
.mod-action-badge { padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; }
.mod-action-ban { background: rgba(231,76,60,0.1); color: #e74c3c; }
.mod-action-warn { background: rgba(255,171,0,0.1); color: #ffab00; }
.mod-action-mute { background: rgba(52,152,219,0.1); color: #3498db; }

/* ═══ WAVE 4: Guide / onboarding ═══ */
.guide-steps { padding-left: 20px; line-height: 1.8; }
.guide-steps li { margin-bottom: 6px; }
.code-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-family: var(--mono); font-size: 0.82rem; overflow-x: auto; color: var(--ink); }

/* ═══ WAVE 4: Announcement banner ═══ */
.announcement-banner { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 10px 20px; text-align: center; font-size: 0.85rem; font-weight: 500; }
.announcement-banner a { color: #fff; text-decoration: underline; }
.announcement-info { background: linear-gradient(135deg, #3498db, #5dade2); }
.announcement-warning { background: linear-gradient(135deg, #f39c12, #f7dc6f); color: #1a1a2e; }
.announcement-danger { background: linear-gradient(135deg, #e74c3c, #ec7063); }

/* ═══ FORTRESS: honeypot trap ═══ */
div[aria-hidden="true"] { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
