/* =====================================================================
   SEOGiga.com — Design System
   Path: /var/www/seogiga_com_usr/data/www/seogiga.com/assets/css/app.css

   Tokens → base → layout → navigation → buttons → forms → cards →
   marketplace (gig cards, filters, ribbon) → badges & pills → tables →
   tabs → modals & dropdowns → toasts & alerts → orders (timeline, chat,
   countdown) → hubs & dashboards → misc utilities → print.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* type scale (1.2 minor third, 16px base) */
  --fs-xs: .75rem;   --fs-sm: .875rem;  --fs-base: 1rem;
  --fs-md: 1.125rem; --fs-lg: 1.375rem; --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem; --fs-3xl: clamp(2.25rem, 4.5vw, 3.5rem);

  --r-sm: 8px; --r-control: 10px; --r-card: 14px; --r-panel: 20px; --r-pill: 999px;
  --gap: 1rem;
  --container: 1240px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 140ms; --t-med: 240ms; --t-slow: 420ms;

  /* brand (shared) */
  --violet: #7c6cff;
  --blue: #3b82f6;
  --mint: #22c9a0;
  --gold: #f7c948;
  --grad-brand: linear-gradient(135deg, #7c6cff 0%, #5b6cff 45%, #3b82f6 100%);
  --grad-mint: linear-gradient(135deg, #22c9a0, #16a37f);
  --grad-gold: linear-gradient(135deg, #ffd96a, #f5a524);
}

/* Light theme (default) */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg-glow-1: rgba(124, 108, 255, .14);
  --bg-glow-2: rgba(59, 130, 246, .10);
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --surface-3: #e4e8f2;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .97);
  --border: #dde2ee;
  --border-strong: #c7cee0;
  --text: #0b1020;
  --text-2: #3a4360;
  --text-3: #5a6382;
  --accent: #5b4bf5;
  --accent-hover: #4a39ea;
  --accent-soft: rgba(91, 75, 245, .10);
  --accent-text: #4a39ea;
  --success: #0e9f7a;
  --success-soft: rgba(14, 159, 122, .12);
  --warning: #b77a06;
  --warning-soft: rgba(245, 165, 36, .16);
  --danger: #dc2e52;
  --danger-soft: rgba(220, 46, 82, .10);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, .10);
  --featured: #b7791f;
  --shadow-1: 0 1px 2px rgba(16, 24, 48, .06), 0 1px 1px rgba(16, 24, 48, .04);
  --shadow-2: 0 6px 20px -6px rgba(16, 24, 48, .14), 0 2px 6px -2px rgba(16, 24, 48, .06);
  --shadow-3: 0 24px 60px -18px rgba(22, 28, 66, .28), 0 8px 20px -8px rgba(22, 28, 66, .12);
  --ring: 0 0 0 3px rgba(91, 75, 245, .28);
  --glow: 0 8px 28px -6px rgba(91, 75, 245, .55);
}

/* Dark theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d1a;
  --bg-glow-1: rgba(124, 108, 255, .20);
  --bg-glow-2: rgba(59, 130, 246, .12);
  --surface: #0f1526;
  --surface-2: #151c31;
  --surface-3: #1c2540;
  --glass: rgba(15, 21, 38, .68);
  --glass-strong: rgba(15, 21, 38, .97);
  --border: rgba(148, 163, 209, .16);
  --border-strong: rgba(148, 163, 209, .28);
  --text: #eef1fa;
  --text-2: #c3cae0;
  --text-3: #9aa3c0;
  --accent: #8b7dff;
  --accent-hover: #a094ff;
  --accent-soft: rgba(139, 125, 255, .16);
  --accent-text: #b2a8ff;
  --success: #34d6ad;
  --success-soft: rgba(52, 214, 173, .14);
  --warning: #f5c25b;
  --warning-soft: rgba(245, 194, 91, .14);
  --danger: #ff6d89;
  --danger-soft: rgba(255, 109, 137, .14);
  --info: #6aa5ff;
  --info-soft: rgba(106, 165, 255, .14);
  --featured: #f7c948;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(148, 163, 209, .04);
  --shadow-3: 0 30px 70px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(148, 163, 209, .06);
  --ring: 0 0 0 3px rgba(139, 125, 255, .38);
  --glow: 0 10px 34px -6px rgba(124, 108, 255, .65);
}

/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, var(--bg-glow-1), transparent 62%),
    radial-gradient(900px 480px at 92% -12%, var(--bg-glow-2), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.022em; font-weight: 800; color: var(--text); }
h1 { font-size: var(--fs-3xl); letter-spacing: -.035em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, kbd, pre, .mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-control); padding: 1rem; overflow-x: auto; font-size: var(--fs-sm); }
pre code { background: none; border: 0; padding: 0; }
kbd { font-size: .78em; padding: .1em .45em; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: var(--r-control); font-weight: 700; transition: top var(--t-fast);
}
.skip-link:focus { top: .75rem; color: #fff; }

/* Money, hashes, order numbers */
.money, .hash, .order-no, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.money { font-weight: 600; }
.money-lg { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.03em; }
.money-pos { color: var(--success); }
.money-neg { color: var(--danger); }
.hash { font-size: .86em; word-break: break-all; color: var(--text-2); }

/* ---------------------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem); }
.container-narrow { max-width: 760px; }
.container-tight { max-width: 460px; }
.page { padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { font-size: var(--fs-2xl); margin: 0; }
.page-head p { margin: .35rem 0 0; color: var(--text-2); max-width: 62ch; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 1rem); }
.stack-sm { --stack-gap: .5rem; }
.stack-lg { --stack-gap: 1.75rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, .75rem); }
.cluster-sm { --cluster-gap: .4rem; }
.between { justify-content: space-between; }
.cluster-center { justify-content: center; }
.grid { display: grid; gap: var(--grid-gap, 1.25rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.layout-sidebar { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.75rem; align-items: start; }
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.text-1 { color: var(--text); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hide-sm { }
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (min-width: 721px) { .show-sm { display: none !important; } }

/* ---------------------------------------------------------------------
   4. NAVIGATION
   --------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: 0 6px 18px -6px rgba(91, 108, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark svg { width: 18px; height: 18px; }

.nav-search { flex: 1 1 220px; min-width: 200px; max-width: 420px; position: relative; }
.nav-search input {
  width: 100%; height: 40px; padding: 0 .9rem 0 2.4rem;
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-control);
  color: var(--text); font: inherit; font-size: var(--fs-sm);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.nav-search input::placeholder { color: var(--text-3); }
.nav-search input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: var(--ring); }
.nav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .85rem; pointer-events: none; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .8rem;
  border-radius: var(--r-control); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
button.nav-link { border: 0; background: none; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-control); border: 1px solid transparent; background: transparent;
  color: var(--text-2); cursor: pointer; font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--danger); color: #fff;
  font: 700 10px/18px var(--font-mono); text-align: center; border: 2px solid var(--bg);
  animation: pop var(--t-med) var(--ease-spring);
}
.icon-btn .count:empty, .icon-btn .count[data-count="0"] { display: none; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }

/* Theme toggle swaps icons */
.theme-toggle .fa-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Hub switcher (segmented) */
.hub-switch {
  display: inline-flex; padding: 3px; border-radius: var(--r-control);
  background: var(--surface-2); border: 1px solid var(--border);
}
.hub-switch button {
  border: 0; background: transparent; color: var(--text-2); font: 600 var(--fs-xs)/1 var(--font-sans);
  padding: .5rem .75rem; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.hub-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.hub-switch button[aria-pressed="true"][value="seller"] { color: var(--accent-text); }

/* Signature: the wallet pill */
.wallet-pill {
  --angle: 0deg;
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 .9rem 0 .7rem; border-radius: var(--r-pill);
  background: var(--glass-strong); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  isolation: isolate;
}
.wallet-pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--angle), #7c6cff, #3b82f6, #22c9a0, #7c6cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .85;
}
.wallet-pill:hover { color: var(--text); box-shadow: var(--glow); }
.wallet-pill:hover::before { animation: spin-angle 2.4s linear infinite; opacity: 1; }
.wallet-pill .lock { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: .7rem; }
.wallet-pill .money { font-size: var(--fs-sm); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-angle { to { --angle: 360deg; } }

.avatar {
  width: var(--av, 36px); height: var(--av, 36px); border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--grad-brand); color: #fff; display: inline-grid; place-items: center;
  font-weight: 700; font-size: calc(var(--av, 36px) * .4); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.avatar-sm { --av: 28px; } .avatar-lg { --av: 56px; } .avatar-xl { --av: 96px; }
button.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }

.nav-burger { display: none; }
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; overflow-y: auto;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 1rem clamp(1rem, 3vw, 1.5rem) 2rem;
  opacity: 0; transform: translateY(-8px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.mobile-menu.open { display: block; opacity: 1; transform: none; }
.mobile-menu a { display: flex; align-items: center; gap: .75rem; padding: .9rem .25rem; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
@media (max-width: 1180px) { .nav-search { display: none; } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; }
}
@media (max-width: 560px) {
  .hub-switch { display: none; }
  .nav-inner { gap: .5rem; }
  .nav-actions { gap: .25rem; }
  .wallet-pill .money { font-size: var(--fs-xs); }
  .wallet-pill { padding: 0 .7rem 0 .55rem; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* Top banners (verify email, frozen account, maintenance preview) */
.banner { padding: .65rem 0; font-size: var(--fs-sm); font-weight: 500; border-bottom: 1px solid var(--border); }
.banner .container { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.banner-warning { background: var(--warning-soft); color: var(--text); }
.banner-danger { background: var(--danger-soft); color: var(--text); }
.banner-info { background: var(--info-soft); color: var(--text); }
.banner form { display: inline; margin-left: auto; }

/* ---------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 42px; padding: 0 1.1rem; border-radius: var(--r-control);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  font: 600 var(--fs-sm)/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out),
              background var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.btn:hover { color: var(--btn-fg); border-color: var(--text-3); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn i { font-size: .95em; }

.btn-primary {
  --btn-fg: #fff; --btn-border: transparent;
  background: var(--grad-brand); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 4px 14px -6px rgba(91, 108, 255, .6);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, var(--glow); }
.btn-success { --btn-fg: #fff; --btn-border: transparent; background: var(--grad-mint); box-shadow: 0 4px 14px -6px rgba(34, 201, 160, .6); }
.btn-success:hover { box-shadow: 0 10px 28px -8px rgba(34, 201, 160, .7); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: transparent; }
.btn-danger:hover { box-shadow: 0 10px 26px -10px var(--danger); }
.btn-soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-text); --btn-border: transparent; }
.btn-soft:hover { --btn-bg: var(--accent-soft); border-color: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.btn-outline-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-border: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-sm { height: 34px; padding: 0 .8rem; font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn-lg { height: 52px; padding: 0 1.6rem; font-size: var(--fs-base); border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent transparent;
  animation: spin .7s linear infinite;
}
.btn:not(.btn-primary):not(.btn-success):not(.btn-danger).is-loading::after { border-color: var(--text) var(--text) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   6. FORMS
   --------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: .5rem; }
.label .optional { color: var(--text-3); font-weight: 500; }
.help { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; display: flex; gap: .35rem; align-items: center; }

.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: .65rem .85rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-control);
  font: 500 var(--fs-sm)/1.45 var(--font-sans);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
.textarea { min-height: 120px; resize: vertical; }
.input.mono { font-family: var(--font-mono); font-size: .85rem; letter-spacing: -.01em; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.3rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b84a3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.input-group { display: flex; align-items: stretch; }
.input-group .addon {
  display: grid; place-items: center; padding: 0 .8rem; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border-strong); font: 600 var(--fs-sm) var(--font-mono); white-space: nowrap;
}
.input-group .addon:first-child { border-right: 0; border-radius: var(--r-control) 0 0 var(--r-control); }
.input-group .addon:last-child { border-left: 0; border-radius: 0 var(--r-control) var(--r-control) 0; }
.input-group .input { border-radius: 0; }
.input-group .input:first-child { border-radius: var(--r-control) 0 0 var(--r-control); }
.input-group .input:last-child { border-radius: 0 var(--r-control) var(--r-control) 0; }
.input-group .addon + .input:last-child { border-radius: 0 var(--r-control) var(--r-control) 0; }

.check { display: inline-flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: var(--fs-sm); color: var(--text); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: .1rem 0 0; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.check input[type="radio"] { border-radius: 50%; }
.check input::after { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform var(--t-fast) var(--ease-spring); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]::after { clip-path: circle(50%); width: 8px; height: 8px; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { box-shadow: var(--ring); }

.switch { position: relative; display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: var(--r-pill); background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; transition: background var(--t-med); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--t-med) var(--ease-spring); }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.switch.danger input:checked + .track { background: var(--danger); border-color: var(--danger); }

.char-count { font: 500 var(--fs-xs) var(--font-mono); color: var(--text-3); text-align: right; }
.char-count.over { color: var(--danger); }

/* File drop zone */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 140px; padding: 1.25rem; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-sm); transition: border-color var(--t-fast), background var(--t-fast);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone i { font-size: 1.5rem; color: var(--accent-text); }
.dropzone .preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--r-control); }
.dropzone .file-name { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text); word-break: break-all; }

/* Rich text editor (service descriptions) */
.editor { border: 1px solid var(--border-strong); border-radius: var(--r-control); background: var(--surface); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.editor:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: .35rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor-toolbar button { width: 34px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; font-size: .85rem; }
.editor-toolbar button:hover, .editor-toolbar button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.editor-area { min-height: 220px; max-height: 520px; overflow-y: auto; padding: .9rem 1rem; outline: none; font-size: var(--fs-sm); line-height: 1.65; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--text-3); }

/* Dual price range slider */
.range-dual { position: relative; height: 28px; margin: .25rem 0; }
.range-dual .track, .range-dual .fill { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 4px; }
.range-dual .track { left: 0; right: 0; background: var(--surface-3); }
.range-dual .fill { background: var(--grad-brand); }
.range-dual input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 28px;
}
.range-dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow-2); cursor: grab;
  transition: transform var(--t-fast) var(--ease-spring);
}
.range-dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); box-shadow: var(--shadow-2); cursor: grab;
}
.range-dual input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range-dual input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.range-dual input[type="range"]::-moz-range-track { background: none; }
.price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.price-inputs .field { gap: .25rem; }
.price-inputs .label { font-size: var(--fs-xs); color: var(--text-2); }
.price-inputs .input { min-width: 0; padding-left: .6rem; padding-right: .4rem; font-family: var(--font-mono); }

/* Star rating input */
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 1.6rem; color: var(--surface-3); cursor: pointer; transition: color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--gold); }
.stars-input label:hover { transform: scale(1.15); }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 1px; white-space: nowrap; }
.stars .empty { color: var(--surface-3); }

/* ---------------------------------------------------------------------
   7. CARDS & SURFACES
   --------------------------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
}
.card-body { padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: var(--fs-md); }
.card-foot { padding: .9rem clamp(1.1rem, 2.5vw, 1.5rem); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-card) var(--r-card); }
.card-hover { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--border-strong); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-2); }
.glass {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-panel);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow-2);
}
/* Gradient border: used sparingly (auth cards, checkout summary) */
.border-gradient { position: relative; isolation: isolate; border-color: transparent; }
.border-gradient::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgba(124, 108, 255, .9), rgba(59, 130, 246, .35) 40%, var(--border) 70%, rgba(34, 201, 160, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Sticky side panels (declared after .card so it wins over position: relative) */
.sticky, .card.sticky, .panel.sticky { position: sticky; top: calc(var(--nav-h) + 1rem); }
@media (max-width: 900px) { .sticky, .card.sticky, .panel.sticky { position: relative; top: 0; } }

/* Stat tiles (dashboards, admin overview) */
.stat { padding: 1.1rem 1.25rem; }
.stat-label { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: .45rem; }
.stat-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; margin-top: .3rem; line-height: 1.2; }
.stat-meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: .2rem; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; }
.stat-icon.mint { background: var(--success-soft); color: var(--success); }
.stat-icon.warn { background: var(--warning-soft); color: var(--warning); }
.stat-icon.danger { background: var(--danger-soft); color: var(--danger); }

/* Info panels (escrow explainers on hubs) */
.info-panel { display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--border); }
.info-panel .ip-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); }
.info-panel h4 { margin: 0 0 .2rem; font-size: var(--fs-sm); }
.info-panel p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }

/* Empty states */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-2); }
.empty .empty-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.3rem; }
.empty h3 { font-size: var(--fs-md); margin-bottom: .35rem; }
.empty p { max-width: 42ch; margin: 0 auto 1.25rem; font-size: var(--fs-sm); }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------
   8. MARKETPLACE
   --------------------------------------------------------------------- */
/* Category ribbon */
.ribbon { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .6rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ribbon::-webkit-scrollbar { height: 6px; }
.ribbon::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; scroll-snap-align: start;
  height: 38px; padding: 0 .95rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.chip i { color: var(--text-3); transition: color var(--t-fast); }
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.chip.active, .chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.active i, .chip[aria-current="true"] i { color: var(--bg); }

/* Filter sidebar */
.filters { padding: 1.25rem; }
.filters h3 { font-size: var(--fs-sm); margin: 0 0 .75rem; }
.filter-group + .filter-group { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.view-toggle { display: inline-flex; padding: 3px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); }
.view-toggle button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* Gig card (grid default, list via [data-view="list"]) */
.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 1.25rem; }
.gig {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); color: var(--text);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.gig:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--border-strong); color: var(--text); }
.gig-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.gig-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.gig:hover .gig-thumb img { transform: scale(1.04); }
.gig-thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; color: var(--accent-text); background: linear-gradient(135deg, var(--accent-soft), var(--info-soft)); }
.gig-flags { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; justify-content: space-between; gap: .4rem; pointer-events: none; }
.gig-save { pointer-events: auto; }
.gig-body { display: flex; flex-direction: column; gap: .55rem; padding: .9rem 1rem 1rem; flex: 1; }
.gig-seller { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; min-width: 0; }
.gig-seller .name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gig-title { font-size: .95rem; font-weight: 700; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.01em; }
.gig-title a { color: inherit; }
.gig-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gig-meta { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-xs); color: var(--text-2); }
.gig-foot { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.gig-price { text-align: right; line-height: 1.15; }
.gig-price .from { font-size: var(--fs-xs); color: var(--text-3); display: block; }
.gig-price .money { font-size: 1.1rem; font-weight: 700; }
.gig-price s { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); margin-right: .25rem; }
.gig .icon-btn, .gig form, .gig .gig-save { position: relative; z-index: 2; }
.gig-save { background: var(--glass-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gig-save[aria-pressed="true"] { color: var(--danger); }
.select-auto { width: auto; }

/* Featured (boosted) gigs: the only gold in the system */
.gig.is-featured { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent), 0 10px 34px -14px rgba(247, 201, 72, .55); }
.gig.is-featured:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent), 0 24px 54px -16px rgba(247, 201, 72, .55); }
.badge-featured {
  display: inline-flex; align-items: center; gap: .3rem; height: 24px; padding: 0 .55rem; border-radius: var(--r-pill);
  background: var(--grad-gold); color: #3a2600; font: 800 10.5px/1 var(--font-sans); letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 18px rgba(247, 201, 72, .65);
  animation: featured-glow 2.8s ease-in-out infinite;
}
@keyframes featured-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 10px rgba(247, 201, 72, .45); } 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 22px rgba(247, 201, 72, .85); } }

.listing[data-view="list"] { grid-template-columns: 1fr; gap: .9rem; }
.listing[data-view="list"] .gig { flex-direction: row; }
.listing[data-view="list"] .gig-thumb { width: 260px; flex-shrink: 0; aspect-ratio: auto; min-height: 150px; }
.listing[data-view="list"] .gig-body { padding: 1rem 1.25rem; }
.listing[data-view="list"] .gig-title { -webkit-line-clamp: 1; font-size: 1.02rem; }
@media (max-width: 640px) {
  .listing[data-view="list"] .gig { flex-direction: column; }
  .listing[data-view="list"] .gig-thumb { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
}

/* Service page */
.gallery { display: grid; gap: .75rem; }
.gallery-main { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: var(--fs-base); line-height: 1.75; color: var(--text); max-width: 72ch; }
.prose h3 { font-size: var(--fs-md); margin: 1.6em 0 .5em; }
.prose h4 { font-size: var(--fs-base); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent-text); }
.prose blockquote { margin: 1em 0; padding: .6em 1em; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); }
.extra-option { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--r-control); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.extra-option:hover { border-color: var(--border-strong); }
.extra-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.extra-option .money { margin-left: auto; font-size: var(--fs-sm); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .25rem; border-top: 1px dashed var(--border-strong); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: var(--fs-sm); color: var(--text-2); }
.summary-row .money { color: var(--text); }

/* Reviews */
.review { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .45rem; }
.review-reply { margin: .75rem 0 0 1rem; padding: .75rem .9rem; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); }
.vote { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-xs); font-weight: 700; padding: .15rem .5rem; border-radius: var(--r-pill); }
.vote-good { color: var(--success); background: var(--success-soft); }
.vote-bad { color: var(--danger); background: var(--danger-soft); }

/* Profile header */
.profile-cover { height: 120px; border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--grad-brand); opacity: .9; }
.profile-head { display: flex; gap: 1.25rem; align-items: flex-start; padding: 0 1.5rem 1.25rem; flex-wrap: wrap; }
.profile-head > .avatar { position: relative; z-index: 1; margin-top: -48px; border: 4px solid var(--surface); box-shadow: var(--shadow-2); }
.profile-head .avatar { box-shadow: 0 0 0 4px var(--surface), var(--shadow-2); border: 0; }

/* ---------------------------------------------------------------------
   9. BADGES, PILLS & STATUS
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; height: 22px; padding: 0 .55rem;
  border-radius: 6px; font: 700 11px/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-sale { background: var(--danger); color: #fff; border-color: transparent; }
.badge-guaranteed { background: var(--success-soft); color: var(--success); border-color: transparent; }

/* Verification ticks */
.tick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 8.5px; flex-shrink: 0; vertical-align: -2px; }
.tick-seller { background: #1d9bf0; box-shadow: 0 0 0 2px color-mix(in srgb, #1d9bf0 25%, transparent); }
.tick-buyer { background: var(--mint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mint) 25%, transparent); }
.tick-lg { width: 22px; height: 22px; font-size: 11px; }
.level { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.level i { color: var(--accent-text); }
.level-3 i { color: var(--featured); }

/* Status pills (orders, withdrawals, deposits, services) */
.pill {
  --pill: var(--text-3);
  display: inline-flex; align-items: center; gap: .45rem; height: 26px; padding: 0 .7rem 0 .6rem;
  border-radius: var(--r-pill); font: 600 12px/1 var(--font-sans); white-space: nowrap;
  color: var(--pill); background: color-mix(in srgb, var(--pill) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill) 22%, transparent);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pill); flex-shrink: 0; }
.pill.live::before { animation: pulse-dot 1.8s ease-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pill) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.pill-pending, .pill-awaiting_requirements, .pill-processing { --pill: var(--warning); }
.pill-in_progress, .pill-active, .pill-open { --pill: var(--info); }
.pill-delivered, .pill-answered { --pill: var(--accent-text); }
.pill-revision { --pill: #e2780b; }
.pill-disputed, .pill-rejected, .pill-failed, .pill-banned, .pill-frozen { --pill: var(--danger); }
.pill-completed, .pill-paid, .pill-paid_over, .pill-awarded { --pill: var(--success); }
.pill-cancelled, .pill-refunded, .pill-expired, .pill-closed, .pill-paused, .pill-deleted, .pill-withdrawn { --pill: var(--text-3); }

/* ---------------------------------------------------------------------
   10. TABLES
   --------------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; font-weight: 600; color: var(--text-2); font-size: var(--fs-xs);
  padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .num, .table .money { text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }
.table-compact td, .table-compact th { padding: .55rem .75rem; }

/* Definition list for invoices / details */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; font-size: var(--fs-sm); margin: 0; }
.dl dt { color: var(--text-2); }
.dl dd { margin: 0; color: var(--text); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------
   11. TABS
   --------------------------------------------------------------------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.5rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem .9rem;
  color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; background: none; border: 0; cursor: pointer;
  transition: color var(--t-fast);
}
.tab::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--t-med) var(--ease-out); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab.active { color: var(--text); }
.tab[aria-selected="true"]::after, .tab.active::after { transform: scaleX(1); }
.tab .count { font: 600 11px/1 var(--font-mono); padding: .2rem .4rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); }
.tab.active .count, .tab[aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent-text); }

/* Hub header (Buyer Hub / Seller Hub workspaces) */
.hub-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.hub-head .hub-title { display: flex; align-items: center; gap: .85rem; }
.hub-head .hub-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); font-size: 1.05rem; }
.hub-head.seller .hub-icon { background: var(--grad-mint); }
.hub-head h1 { font-size: var(--fs-lg); margin: 0; }
.hub-head p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------
   12. DROPDOWNS & MODALS
   --------------------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 230px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-3); padding: .35rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown-menu a, .dropdown-menu button.menu-item {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .7rem; border-radius: var(--r-sm);
  color: var(--text); font: 500 var(--fs-sm)/1.3 var(--font-sans); background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button.menu-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu a i, .dropdown-menu button.menu-item i { width: 16px; text-align: center; color: var(--text-3); }
.dropdown-menu .divider { height: 1px; background: var(--border); margin: .35rem 0; }
.dropdown-menu .menu-head { padding: .6rem .7rem .5rem; }
.dropdown-menu .menu-head strong { display: block; font-size: var(--fs-sm); }
.dropdown-menu .menu-head span { font-size: var(--fs-xs); color: var(--text-3); }
.menu-item.danger, .menu-item.danger i { color: var(--danger) !important; }

/* Notification dropdown */
.notif-menu { width: min(380px, calc(100vw - 24px)); padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.notif-head strong { font-size: var(--fs-sm); }
.notif-head button { background: none; border: 0; color: var(--accent-text); font: 600 var(--fs-xs) var(--font-sans); cursor: pointer; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); transition: background var(--t-fast); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-2); color: var(--text); }
.notif-item.unread { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.notif-item .n-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); font-size: .8rem; }
.notif-item .n-title, .notif-item .n-body, .notif-item .n-time { display: block; }
.notif-item .n-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.notif-item .n-body { font-size: var(--fs-xs); color: var(--text-2); margin-top: .1rem; line-height: 1.45; }
.notif-item .n-time { font-size: 11px; color: var(--text-3); margin-top: .25rem; }
.notif-empty { padding: 2rem 1rem; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.n-icon.t-order_new, .n-icon.t-deposit, .n-icon.t-affiliate { color: var(--success); background: var(--success-soft); }
.n-icon.t-dispute, .n-icon.t-flag, .n-icon.t-security { color: var(--danger); background: var(--danger-soft); }
.n-icon.t-revision { color: var(--warning); background: var(--warning-soft); }
.n-icon.t-withdrawal { color: var(--info); background: var(--info-soft); }
.n-icon.t-order_release, .n-icon.t-order_delivered { color: var(--success); background: var(--success-soft); }
.n-icon.t-order_refund { color: var(--warning); background: var(--warning-soft); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem;
  background: rgba(6, 9, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.modal-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); box-shadow: var(--shadow-3);
  transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform var(--t-slow) var(--ease-spring), opacity var(--t-med) var(--ease-out);
}
.modal-lg { width: min(820px, 100%); }
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal-backdrop.closing .modal { transform: translateY(8px) scale(.98); opacity: 0; transition-duration: var(--t-fast); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.modal-head h2 { font-size: var(--fs-lg); margin: 0; }
.modal-head p { margin: .3rem 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--border); }
body.modal-open { overflow: hidden; }

/* Anchor text calculator */
.anchor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .anchor-grid { grid-template-columns: 1fr; } }
.anchor-bars { display: flex; flex-direction: column; gap: .75rem; }
.anchor-bar .ab-head { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: .3rem; }
.anchor-bar .ab-head .mono { font-weight: 600; }
.anchor-bar .ab-track { position: relative; height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.anchor-bar .ab-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--ab-color, var(--accent)); width: 0; transition: width var(--t-slow) var(--ease-out); }
.anchor-bar .ab-target { position: absolute; top: -2px; bottom: -2px; border-left: 2px dashed var(--text-3); }
.anchor-bar .ab-range { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--success) 18%, transparent); }
.anchor-bar .ab-note { font-size: var(--fs-xs); color: var(--text-3); margin-top: .2rem; }
.anchor-bar.warn .ab-note { color: var(--danger); font-weight: 600; }
.anchor-score { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--border); }
.anchor-score .score { font: 700 2rem/1 var(--font-mono); letter-spacing: -.04em; }

/* ---------------------------------------------------------------------
   13. TOASTS & ALERTS
   --------------------------------------------------------------------- */
.toasts { position: fixed; z-index: 400; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-left: 3px solid var(--toast, var(--accent)); border-radius: var(--r-card);
  box-shadow: var(--shadow-3); font-size: var(--fs-sm); color: var(--text);
  animation: toast-in var(--t-slow) var(--ease-spring);
}
.toast.leaving { animation: toast-out var(--t-med) var(--ease-out) forwards; }
.toast i.t-icon { color: var(--toast, var(--accent)); margin-top: .15rem; }
.toast .t-msg { flex: 1; line-height: 1.45; }
.toast .t-close { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0 .2rem; font-size: .9rem; }
.toast-success { --toast: var(--success); }
.toast-error { --toast: var(--danger); }
.toast-warning { --toast: var(--warning); }
.toast-info { --toast: var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-control); font-size: var(--fs-sm); border: 1px solid transparent; line-height: 1.5; }
.alert i { margin-top: .2rem; }
.alert-success { background: var(--success-soft); color: var(--text); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-success i { color: var(--success); }
.alert-error, .alert-danger { background: var(--danger-soft); color: var(--text); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-error i, .alert-danger i { color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--text); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert-warning i { color: var(--warning); }
.alert-info { background: var(--info-soft); color: var(--text); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-info i { color: var(--info); }

/* ---------------------------------------------------------------------
   14. ORDERS: timeline, chat, countdown
   --------------------------------------------------------------------- */
.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: step; }
.progress-steps .ps { position: relative; text-align: center; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; padding-top: 2.4rem; }
.progress-steps .ps::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border-strong);
  font: 700 12px/1 var(--font-mono); color: var(--text-3); z-index: 1;
}
.progress-steps .ps::after { content: ""; position: absolute; top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--border-strong); }
.progress-steps .ps:last-child::after { display: none; }
.progress-steps .ps.done { color: var(--text-2); }
.progress-steps .ps.done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.progress-steps .ps.done::after { background: var(--success); }
.progress-steps .ps.current { color: var(--text); }
.progress-steps .ps.current::before { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
@media (max-width: 560px) { .progress-steps .ps { font-size: 10px; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 1.25rem 2.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot { position: absolute; left: 4px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); font-size: 9px; color: var(--text-3); }
.timeline .tl-dot.success { border-color: var(--success); color: var(--success); }
.timeline .tl-dot.accent { border-color: var(--accent); color: var(--accent-text); }
.timeline .tl-dot.danger { border-color: var(--danger); color: var(--danger); }
.timeline .tl-dot.warning { border-color: var(--warning); color: var(--warning); }
.timeline .tl-title { font-size: var(--fs-sm); font-weight: 600; }
.timeline .tl-time { font-size: var(--fs-xs); color: var(--text-3); }

.countdown { display: inline-flex; gap: .35rem; font-family: var(--font-mono); }
.countdown .cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: .45rem .3rem; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); }
.countdown .cd-num { font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.countdown .cd-lbl { font: 600 10px/1 var(--font-sans); color: var(--text-3); margin-top: .2rem; }
.countdown.late .cd-unit { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.countdown.late .cd-num { color: var(--danger); }

.chat { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; max-height: 520px; overflow-y: auto; }
.msg { display: flex; gap: .6rem; max-width: 82%; align-items: flex-end; }
.msg .bubble { padding: .65rem .85rem; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg .meta { font-size: 11px; color: var(--text-3); margin-top: .25rem; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--accent); color: #fff; border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg.mine .meta { text-align: right; }
.msg.admin .bubble { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.msg.system { align-self: center; max-width: 92%; }
.msg.system .bubble { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: var(--fs-xs); border-radius: var(--r-control); text-align: center; }
.msg .redacted-note { display: block; margin-top: .3rem; font-size: 11px; opacity: .8; }
.chat-compose { display: flex; gap: .6rem; padding: .85rem 1rem; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-compose .textarea { min-height: 44px; max-height: 160px; resize: none; }

/* Inbox layout */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 600px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 720px; }
.thread { display: flex; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.thread:hover { background: var(--surface-2); color: var(--text); }
.thread.active { background: var(--accent-soft); }
.thread .t-name { font-weight: 700; font-size: var(--fs-sm); }
.thread .t-preview { font-size: var(--fs-xs); color: var(--text-2); }
.thread .t-unread { margin-left: auto; min-width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font: 700 11px/20px var(--font-mono); text-align: center; padding: 0 6px; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 820px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--border); } }

/* ---------------------------------------------------------------------
   15. AUTH PAGES & HERO HELPERS
   --------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: min(440px, 100%); padding: clamp(1.5rem, 4vw, 2.25rem); }
.auth-card h1 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.auth-card .sub { color: var(--text-2); margin-bottom: 1.5rem; font-size: var(--fs-sm); }
.auth-foot { text-align: center; font-size: var(--fs-sm); color: var(--text-2); margin-top: 1.25rem; }
.otp-input { font: 700 1.6rem/1 var(--font-mono); letter-spacing: .5em; text-align: center; padding-left: .5em; }

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { max-width: 17ch; margin-bottom: 1rem; }
.hero .lede { font-size: var(--fs-md); color: var(--text-2); max-width: 56ch; margin-bottom: 1.75rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--fs-sm); color: var(--text-2); }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row i { color: var(--success); }

/* Pagination */
.pagination { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 .6rem; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 var(--fs-sm) var(--font-mono); }
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .disabled { opacity: .45; }

/* Copy field (addresses, referral links, TX hashes) */
.copy-field { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r-control); overflow: hidden; background: var(--surface-2); }
.copy-field code { flex: 1; min-width: 0; border: 0; background: none; padding: .7rem .85rem; font-size: .8rem; overflow-x: auto; white-space: nowrap; border-radius: 0; }
.copy-field button { border: 0; border-left: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); padding: 0 .9rem; cursor: pointer; font: 600 var(--fs-xs) var(--font-sans); display: inline-flex; align-items: center; gap: .35rem; transition: color var(--t-fast), background var(--t-fast); }
.copy-field button:hover { color: var(--text); background: var(--surface-2); }
.copy-field button.copied { color: var(--success); }

/* Tooltip (data-tip) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font: 600 11px/1.35 var(--font-sans); padding: .4rem .6rem; border-radius: 6px;
  white-space: nowrap; z-index: 150; pointer-events: none; box-shadow: var(--shadow-2);
}

/* ---------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------- */
.footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.footer h4 { font-size: var(--fs-sm); margin-bottom: .85rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer a { color: var(--text-2); font-size: var(--fs-sm); }
.footer a:hover { color: var(--text); }
.footer button.link { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; text-align: left; }
.footer button.link:hover { color: var(--text); }
.footer .about { color: var(--text-2); font-size: var(--fs-sm); max-width: 36ch; margin-top: .85rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-3); }
.crypto-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.crypto-row span { font: 600 11px/1 var(--font-mono); padding: .35rem .5rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }


/* ---------------------------------------------------------------------
   18. HOMEPAGE HERO & ESCROW TICKET
   --------------------------------------------------------------------- */
.pb-page { padding-bottom: 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.045em; }
.hero-search { position: relative; display: flex; gap: .5rem; max-width: 560px; margin-bottom: 1.5rem; padding: .4rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--ring), var(--shadow-2); }
.hero-search i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 500 var(--fs-base) var(--font-sans); padding: 0 .75rem 0 2.4rem; outline: none; }
.hero-search input::placeholder { color: var(--text-3); }

.escrow-ticket { position: relative; padding: 1.5rem; isolation: isolate; }
.escrow-ticket::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(150deg, rgba(124, 108, 255, .85), rgba(59, 130, 246, .25) 45%, rgba(34, 201, 160, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.et-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.et-head .order-no { font-size: var(--fs-sm); color: var(--text-2); }
.et-amount { font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; }
.et-title { margin: .35rem 0 1.25rem; font-weight: 600; color: var(--text); }
.et-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.et-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--accent), var(--success)); opacity: .5; }
.et-step { display: flex; gap: .9rem; align-items: flex-start; padding: .55rem 0; opacity: 0; transform: translateY(6px); animation: et-in .6s var(--ease-out) forwards; }
.et-step:nth-child(1) { animation-delay: .15s; }
.et-step:nth-child(2) { animation-delay: .55s; }
.et-step:nth-child(3) { animation-delay: .95s; }
.et-step strong { display: block; font-size: var(--fs-sm); }
.et-step span:not(.et-dot) { display: block; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.5; }
.et-dot { position: relative; z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--surface); border: 2px solid var(--accent); color: var(--accent-text); }
.et-step:last-child .et-dot { border-color: var(--success); color: #fff; background: var(--success); box-shadow: 0 0 0 6px var(--success-soft); }
@keyframes et-in { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .escrow-ticket { max-width: 520px; } }
@media (max-width: 520px) { .hero-search .btn { padding: 0 .9rem; } .hero-search input { padding-left: 2.2rem; font-size: var(--fs-sm); } }

/* ---------------------------------------------------------------------
   19. AUTH PAGES
   --------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 160px); }
.auth-card .form { gap: 1rem; }
.auth-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--accent-soft); color: var(--accent-text); font-size: 1.15rem; }
.auth-icon-center { margin-inline: auto; }
.auth-icon.mint { background: var(--success-soft); color: var(--success); }
.auth-icon.warn { background: var(--warning-soft); color: var(--warning); }
.password-field { position: relative; }
.password-field .input { padding-right: 2.9rem; }
.password-field .reveal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.referral-note { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: var(--r-control); background: var(--success-soft); font-size: var(--fs-sm); color: var(--text); margin-bottom: 1rem; }
.referral-note i { color: var(--success); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .4rem; }
.strength span { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background var(--t-med); }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--info); }
.strength[data-score="4"] span { background: var(--success); }


/* ---------------------------------------------------------------------
   20. PROFILES, SETTINGS & WALLET
   --------------------------------------------------------------------- */
.ml-auto { margin-left: auto; }
.flex-1 { flex: 1; min-width: 0; }
.uppercase { text-transform: uppercase; }
.h-base { font-size: var(--fs-base); }
.h-md { font-size: var(--fs-md); }
.h-lg { font-size: var(--fs-lg); }
.table-wrap.flush { border: 0; border-radius: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }

.profile-panel { overflow: hidden; }
.profile-head .profile-id { flex: 1; min-width: 220px; padding-top: .9rem; }
.profile-head h1 { font-size: var(--fs-xl); margin-bottom: .35rem; }
.profile-actions { padding-top: .9rem; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--border); }
.profile-stats > div { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; border-right: 1px solid var(--border); }
.profile-stats > div:last-child { border-right: 0; }
.profile-stats .ps-label { font-size: var(--fs-xs); color: var(--text-2); font-weight: 500; display: flex; gap: .35rem; align-items: center; }
.profile-stats .ps-value { font-size: var(--fs-md); font-weight: 700; }
.profile-stats .is-private { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface-2) 8px 9px); }
.listing-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bounty-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--text); }
.bounty-row:hover { color: var(--text); }
.bio { white-space: normal; overflow-wrap: anywhere; }

.side-nav { padding: .4rem; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); transition: background var(--t-fast), color var(--t-fast); }
.side-nav a i { width: 18px; text-align: center; color: var(--text-3); }
.side-nav a .badge { margin-left: auto; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.side-nav a[aria-current="page"] i { color: var(--accent-text); }
@media (max-width: 900px) { .side-nav { flex-direction: row; overflow-x: auto; } .side-nav a { white-space: nowrap; } }

.avatar-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.dropzone-sm { min-height: 96px; }
.twofa-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 720px) { .twofa-setup { grid-template-columns: minmax(0, 1fr); } }
.qr-box { width: 220px; height: 220px; padding: 18px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.qr-box canvas, .qr-box img { width: 184px !important; height: 184px !important; image-rendering: pixelated; }
.qr-box .qr-fallback { color: #333; font-size: var(--fs-xs); text-align: center; }
.steps-list { margin: 0; padding-left: 1.2rem; color: var(--text-2); font-size: var(--fs-sm); }
.steps-list li { margin: .2rem 0; }
.codes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.codes-grid span { padding: .6rem; text-align: center; border-radius: var(--r-sm); background: var(--surface-2); border: 1px dashed var(--border-strong); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 620px) { .codes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.badge-card.owned { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--fs-sm); color: var(--text-2); }
.perks i { color: var(--success); margin-right: .5rem; }

.balance-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
.bc-main { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .4rem; background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.bc-amount { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.bc-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.bc-side > div { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.5rem; border-bottom: 1px solid var(--border); }
.bc-side > div:last-child { border-bottom: 0; }
@media (max-width: 720px) { .balance-card { grid-template-columns: minmax(0, 1fr); } .bc-side { border-left: 0; border-top: 1px solid var(--border); } }
.quick-amounts .chip { height: 32px; font-family: var(--font-mono); font-size: var(--fs-xs); }


/* ---------------------------------------------------------------------
   21. SERVICES, CHECKOUT & BOUNTIES
   --------------------------------------------------------------------- */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: .6rem; }
.service-title { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.03em; margin: 0; }
.lede-sm { font-size: var(--fs-md); color: var(--text-2); line-height: 1.55; }
.feature-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.feature-row > span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text); }
.feature-row i { color: var(--accent-text); }
.feature-row .text-success i { color: var(--success); }
.gig-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.25rem; color: var(--accent-text); background: linear-gradient(135deg, var(--accent-soft), var(--info-soft)); }
.gallery-thumbs { display: flex; gap: .6rem; }
.gallery-thumb { width: 96px; aspect-ratio: 16 / 10; padding: 0; border-radius: var(--r-control); overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; opacity: .7; transition: opacity var(--t-fast), border-color var(--t-fast); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--accent); }
.rating-summary { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
.rs-score { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.rs-bars { display: flex; flex-direction: column; gap: .35rem; }
.rs-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: .6rem; align-items: center; }
.rs-track { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.rs-fill { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
@media (max-width: 560px) { .rating-summary { grid-template-columns: minmax(0, 1fr); } }
.checkout-card .card-body { gap: .85rem; }
.mobile-buy-bar { display: none; }
@media (max-width: 1080px) {
  .mobile-buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .7rem clamp(1rem, 3vw, 1.5rem) calc(.7rem + env(safe-area-inset-bottom)); background: var(--glass-strong); border-top: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .3); }
  .has-buy-bar { padding-bottom: 6.5rem; }
  body:has(.mobile-buy-bar) .toasts { bottom: 5.5rem; }
}
.checkout-price { display: inline-flex; align-items: baseline; gap: .5rem; }
.checkout-card .extra-option { padding: .65rem .75rem; }
.checkout-card .extra-option input { flex-shrink: 0; }

.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: .6rem; }
.disclosure { border: 1px solid var(--border); border-radius: var(--r-control); padding: .8rem 1rem; background: var(--surface-2); }
.disclosure summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); list-style: revert; }
.extras-editor { display: flex; flex-direction: column; gap: .5rem; }
.extras-head, .extras-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 90px; gap: .5rem; align-items: center; }
.extras-head { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; padding: 0 .2rem; }
@media (max-width: 620px) { .extras-head { display: none; } .extras-row { grid-template-columns: minmax(0, 1fr) 1fr; } .extras-row > :first-child { grid-column: 1 / -1; } }

.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.svc-item:last-child { border-bottom: 0; }
.svc-item.is-featured { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.svc-thumb { width: 72px; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-text); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-main { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.svc-title { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-title:hover { color: var(--accent-text); }
.svc-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .svc-item { grid-template-columns: 56px minmax(0, 1fr); } .svc-thumb { width: 56px; } .svc-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.bounty-card { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1.25rem; padding: 1.1rem 1.25rem; color: var(--text); }
.bounty-card:hover { color: var(--text); }
.bounty-main { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.bounty-title { font-size: var(--fs-md); margin: 0; letter-spacing: -.015em; }
.bounty-excerpt { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.bounty-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .2rem; text-align: right; border-left: 1px solid var(--border); padding-left: 1.25rem; }
@media (max-width: 620px) { .bounty-card { grid-template-columns: minmax(0, 1fr); } .bounty-side { align-items: flex-start; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: .75rem; } }
.bounty-desc { white-space: normal; overflow-wrap: anywhere; }
.proposal-list { list-style: none; margin: 0; padding: 0; }
.proposal { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.proposal:last-child { border-bottom: 0; }
.proposal.accepted { background: var(--success-soft); }
.proposal-text { font-size: var(--fs-sm); line-height: 1.6; overflow-wrap: anywhere; }


/* ---------------------------------------------------------------------
   22. ORDERS, ORDER ROOM & INVOICES
   --------------------------------------------------------------------- */
.order-list { display: flex; flex-direction: column; gap: .7rem; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) 230px 120px; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; color: var(--text); }
.order-row:hover { color: var(--text); }
.order-row.urgent { border-left: 3px solid var(--warning); }
.or-main { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.or-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-next { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.or-amount { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.countdown-sm .cd-unit { min-width: 38px; padding: .25rem .2rem; }
.countdown-sm .cd-num { font-size: .9rem; }
.countdown-sm .cd-lbl { font-size: 9px; }
@media (max-width: 820px) { .order-row { grid-template-columns: minmax(0, 1fr) auto; } .or-next { grid-column: 1 / -1; grid-row: 2; } }

.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.oh-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.oh-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0; letter-spacing: -.025em; }
.oh-title a { color: var(--text); }
.oh-title a:hover { color: var(--accent-text); }
.oh-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.action-card { border-color: var(--border-strong); }
.status-line { display: flex; gap: .9rem; align-items: flex-start; }
.status-line .stat-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; flex-shrink: 0; }
.decision-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
@media (max-width: 620px) { .decision-grid { grid-template-columns: minmax(0, 1fr); } }
.action-secondary { padding-top: .75rem; border-top: 1px dashed var(--border); }
.quote { margin: 0; padding: .75rem 1rem; border-left: 3px solid var(--danger); background: var(--danger-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.resolve-form { padding: 1rem; border-radius: var(--r-card); background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); }
.delivery { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.delivery:last-child { border-bottom: 0; }
.delivery.older { opacity: .75; }
.delivery-note { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.file-chip { display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; max-width: 100%; padding: .55rem .85rem; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.file-chip span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip:hover { border-color: var(--accent); color: var(--text); }
.file-chip i { color: var(--accent-text); }
.audit-table { border: 1px solid var(--border) !important; border-radius: var(--r-control) !important; }
.audit-url { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .8rem; }
.admin-original { color: var(--warning); }
.msg.mine .redacted-note.admin-original { color: #fff; }

.invoice { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 1.75rem; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.inv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.inv-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }
.inv-number { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.inv-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 620px) { .inv-parties { grid-template-columns: minmax(0, 1fr); } .inv-meta { align-items: flex-start; text-align: left; } }
.inv-lines tfoot th, .inv-lines tfoot td { padding: .7rem 1rem; border-top: 1px solid var(--border); }
.inv-lines tfoot th { text-align: left; background: transparent; color: var(--text); font-size: var(--fs-sm); }
.inv-lines tfoot th.money { text-align: right; }
.inv-section h2 { margin-bottom: .75rem; }
.inv-terms ul { margin: 0; padding-left: 1.2rem; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; }
@media print {
  .invoice { padding: 0; border: 0 !important; gap: 1.25rem; }
  .invoice .pill { border: 1px solid #999; }
  .brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------------
   23. INBOX, ADMIN COMMAND CENTER
   --------------------------------------------------------------------- */
.inbox-section { padding: .85rem 1rem .5rem; display: flex; flex-direction: column; gap: .5rem; border-bottom: 1px solid var(--border); }
.queue-tabs { display: flex; gap: 2px; background: var(--surface-2); border-radius: var(--r-sm); padding: 2px; }
.queue-tabs a { flex: 1; text-align: center; padding: .35rem .5rem; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.queue-tabs a:hover { color: var(--text); }
.queue-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08)); }
.inbox-empty-line { padding: .75rem 1rem; margin: 0; border-bottom: 1px solid var(--border); }
.staff-avatar { --av: 40px; width: var(--av); height: var(--av); border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), #22c3a6); color: #fff; font-size: .85rem; }
.staff-avatar.avatar-sm { --av: 28px; font-size: .7rem; }
.thread .t-name i { color: var(--accent-text); }
.thread-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.thread-head form { margin: 0; }
.thread-back { display: none; }
.inbox-thread .chat { flex: 1; max-height: none; min-height: 360px; height: 0; }
.inbox-placeholder { margin: auto; }
.context-chip { display: flex; align-items: center; gap: .5rem; margin: 0 1rem; padding: .5rem .75rem; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text-2); font-size: var(--fs-xs); }
.context-chip i { color: var(--accent-text); }
.msg.new { animation: msg-in .25s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .inbox.thread-open .inbox-list { display: none; }
  .inbox:not(.thread-open) .inbox-thread { display: none; }
  .inbox:not(.thread-open) .inbox-list { max-height: none; border-bottom: 0; }
  .thread-back { display: inline-flex; }
  .inbox-thread .chat { height: auto; max-height: 60vh; min-height: 300px; }
}

.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--nav-h, 64px) + 1rem); }
.admin-main { min-width: 0; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; } }
.inline-form { display: inline-flex; margin: 0; }
.select-auto { width: auto; min-width: 0; }
.span-2 { grid-column: 1 / -1; }
.text-sm-value { font-size: var(--fs-lg, 1.15rem); }
.table-compact td, .table-compact th { padding-top: .5rem; padding-bottom: .5rem; }

/* Bar chart: single series, thin bars, rounded data end, recessive grid */
.bar-chart { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 200px; padding-bottom: 22px;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--border) calc(25% - 1px) 25%); background-size: 100% calc(100% - 22px); background-repeat: no-repeat; border-bottom: 1px solid var(--border-strong); }
.bar-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; cursor: default; outline: none; }
.bar-col .bar { display: block; width: min(60%, 28px); min-height: 0; background: var(--accent); border-radius: 4px 4px 0 0; transition: filter var(--t-fast), opacity var(--t-fast); }
.bar-col .bar-label { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font: 500 10px/1 var(--font-mono); color: var(--text-3); }
.bar-chart:hover .bar-col .bar { opacity: .55; }
.bar-chart .bar-col:hover .bar, .bar-chart .bar-col:focus-visible .bar { opacity: 1; filter: brightness(1.1); }
.bar-col::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: .35rem .55rem; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg); font: 600 11px/1.2 var(--font-mono); opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); z-index: 2; }
.bar-col:hover::after, .bar-col:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.bar-col:first-child::after { left: 0; transform: translate(0, 4px); } .bar-col:first-child:hover::after { transform: none; }
.bar-col:last-child::after { left: auto; right: 0; transform: translate(0, 4px); } .bar-col:last-child:hover::after { transform: none; }

.kill-card.on { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: linear-gradient(180deg, var(--danger-soft), transparent 70%), var(--surface); }
.flag-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.flag-compare > div { padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.flag-compare > div:first-child { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.flag-compare p { margin: .35rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .flag-compare { grid-template-columns: 1fr; } }

.review-card-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
.rc-thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; }
@media (max-width: 640px) { .review-card-grid { grid-template-columns: 1fr; } }

.arbitrator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.arbitrator .transcript { max-height: 560px; }
.arbitrator .delivery { padding: .75rem; border: 1px solid var(--border); border-radius: var(--r-sm); display: flex; flex-direction: column; gap: .4rem; }
.decision-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 900px) { .arbitrator, .decision-options { grid-template-columns: 1fr; } }

.wd-address { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wd-actions { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: end; padding-top: .75rem; border-top: 1px solid var(--border); }
.wd-actions .cluster { flex-wrap: wrap; }
@media (max-width: 900px) { .wd-actions { grid-template-columns: 1fr; } }

.cat-list { display: flex; flex-direction: column; }
.cat-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
.cat-order { display: flex; flex-direction: column; }
.cat-order .btn { height: 20px; width: 28px; }
.cat-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.cat-form { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(160px, 2fr) auto auto; gap: .5rem; align-items: center; flex: 1; margin: 0; }
.card-foot .cat-form { grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(160px, 2fr) auto; }
.card-foot .cat-form:has(select) { grid-template-columns: auto minmax(160px, 2fr) minmax(120px, 1fr) minmax(90px, .6fr) auto; }
.btn-icon-spacer { display: inline-block; width: 34px; }
.pattern-cell { max-width: 340px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .cat-row { flex-wrap: wrap; } .cat-form, .card-foot .cat-form, .card-foot .cat-form:has(select) { grid-template-columns: 1fr 1fr; flex-basis: 100%; } }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } }
.smtp-transcript { max-height: 260px; overflow: auto; font-size: 11px; line-height: 1.5; margin: 0; white-space: pre-wrap; }

/* ---------------------------------------------------------------------
   17. MOTION PREFERENCES & PRINT
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card-hover:hover, .gig:hover, .btn:hover, .chip:hover { transform: none; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f5f8; --text: #000; --text-2: #333; --text-3: #555; --border: #d7dbe5; }
  body { background: #fff !important; color: #000; }
  .nav, .footer, .toasts, .banner, .no-print, .btn, .mobile-menu, .modal-backdrop { display: none !important; }
  .card, .panel, .glass { box-shadow: none !important; border-color: #d7dbe5 !important; background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .page { padding: 0; }
  a { color: #000; }
}
