/* ================================================================
   LIVE AUCTION — Full Stylesheet
   Sections:
     1. Reset & tokens
     2. Global utilities
     3. Buttons
     4. Educational banner
     5. Flash messages
     6. Navbar (public)
     7. Hero
     8. Strip / How it works / Plans / Features / FAQ / CTA
     9. Footer
    10. Auth pages (register / login / reset)
    11. Alerts
    12. App shell (sidebar + topbar + content)
    13. Stat cards
    14. Panels
    15. Data tables
    16. Pills
    17. Empty states
    18. Progress bars
    19. Timelines
    20. Wallet / balance hero
    21. Ledger lists
    22. Profile page
    23. Support / tickets
    24. Referral badges
    25. Bid page: balance strip, chips, preview
    26. Payment cards (bid page)
    27. Seller inline list
    28. Modal
    29. Admin forms + filter bar
    30. Responsive
   ================================================================ */

/* ========== 1. RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-light: #dcfce7;
  --accent: #f59e0b;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --shadow-lg: 0 20px 50px rgba(2, 6, 23, .12);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== 2. GLOBAL UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted { color: var(--muted); }
.text-brand { color: var(--brand-dark) !important; }
.text-err { color: #dc2626 !important; }
.mono { font-family: var(--mono); }

.link {
  color: var(--brand);
  font-weight: 600;
  font-size: .9rem;
}
.link:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
}
.back-link:hover { text-decoration: underline; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========== 3. BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.15rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .3);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary svg { color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }

.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn-xs {
  padding: .3rem .7rem;
  font-size: .78rem;
  border-radius: 6px;
  font-weight: 700;
  min-height: 0;
  line-height: 1.2;
}
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ========== 4. EDUCATIONAL BANNER ========== */
.edu-banner {
  background: #fef3c7;
  color: #78350f;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: .6rem 1rem;
  border-bottom: 1px solid #fde68a;
}

/* ========== 5. FLASH MESSAGES ========== */
.flash {
  padding: .75rem 0;
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.flash-success { background: #dcfce7; color: #166534; border-bottom-color: #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom-color: #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border-bottom-color: #93c5fd; }

/* ========== 6. NAVBAR (PUBLIC) ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
}
.logo-mark {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.logo-text span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--brand); }

.nav-actions { display: flex; gap: .6rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== 7. HERO ========== */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(1200px 500px at 90% -10%, var(--brand-light), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, #e0f2fe, transparent 60%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 999px;
  letter-spacing: .3px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.grad {
  background: linear-gradient(135deg, var(--brand), #22c55e, #84cc16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Auction card (hero right side) */
.hero-card { display: flex; justify-content: center; }
.auction-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.auction-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .6);
  animation: pulse 2s infinite;
}
.live-dot-off {
  background: #94a3b8 !important;
  box-shadow: none !important;
  animation: none !important;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.countdown {
  font-size: 2.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: .5rem 0 1.2rem;
}
.auction-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.auction-meta > div { display: flex; flex-direction: column; gap: .15rem; }
.auction-meta span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.auction-meta b { font-size: .95rem; color: var(--ink); }

/* ========== 8. STRIP / SECTIONS / PLANS / FAQ / CTA ========== */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s ease;
}
.step:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .93rem; }
.step code {
  background: #f1f5f9;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .85em;
  color: #0f172a;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .2s ease;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-3px); }
.ribbon {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: .3rem .7rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.plan-roi {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  line-height: 1;
}
.plan-dur { color: var(--muted); font-weight: 600; margin-bottom: 1.25rem; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  display: grid;
  gap: .55rem;
  font-size: .92rem;
  color: var(--ink-2);
}
.plan ul li::before {
  content: '\2713';
  color: var(--brand);
  font-weight: 700;
  margin-right: .5rem;
}

.disclaimer {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .2s ease;
}
.feature:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .93rem; }

.feature-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}
.feature-cta h3, .feature-cta p { color: #fff; }
.feature-cta p { opacity: .9; margin-bottom: 1rem; }
.feature-cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.feature-cta .btn-primary:hover { background: #f0fdf4; }

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: .75rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin-top: .75rem; font-size: .95rem; }

.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cta-inner p { opacity: .9; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #f0fdf4; }

/* ========== 9. FOOTER ========== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e293b;
}
.footer .logo { color: #fff; margin-bottom: .75rem; }
.footer .logo-text span { color: var(--brand); }
.footer h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  margin-bottom: .9rem;
}
.footer-grid a {
  display: block;
  color: #94a3b8;
  font-size: .92rem;
  padding: .2rem 0;
}
.footer-grid a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: #64748b;
}
.footer-compact { padding: 1rem 0; }
.footer-compact .footer-bottom { padding: 0; border: 0; }

/* ========== 10. AUTH PAGES ========== */
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(900px 400px at 90% -10%, var(--brand-light), transparent 60%),
    radial-gradient(700px 350px at -10% 30%, #e0f2fe, transparent 60%),
    var(--bg-alt);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.25rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.auth-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.auth-card label small,
.auth-card label .opt {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}
.auth-card input {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .92rem;
}
.auth-foot + .auth-foot { margin-top: .5rem; }
.auth-foot a { color: var(--brand); font-weight: 600; }

/* ========== 11. ALERTS ========== */
.alert {
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.alert ul { padding-left: 1.1rem; margin: 0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
}
.alert-info b { color: #1e3a8a; }
.alert-info ol li { margin-bottom: .25rem; }
.alert-info a { color: #1e3a8a; text-decoration: underline; word-break: break-all; }
.alert-info code {
  background: rgba(255, 255, 255, .6);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .85em;
}
.alert-warn {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde68a;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
}

/* ========== 12. APP SHELL (SIDEBAR + TOPBAR + CONTENT) ========== */
body.layout-app { background: var(--bg-alt); }

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 40px);
}
.app-content {
  padding: 1.5rem 2rem 3rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar */
.sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  padding: .25rem .5rem 1.5rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 1rem;
}
.sidebar-brand .logo-text span { color: var(--brand); }
.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .8rem;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all .15s ease;
}
.sidebar-link:hover { background: #1e293b; color: #fff; }
.sidebar-link.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}
.sidebar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}
.sidebar-icon svg { display: block; }

.sidebar-badge {
  margin-left: auto;
  background: #fde68a;
  color: #78350f;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.sidebar-link.active .sidebar-badge { background: #fff; color: var(--brand-dark); }

.sidebar-foot {
  border-top: 1px solid #1e293b;
  padding-top: 1rem;
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem;
  border-radius: 10px;
  background: #1e293b;
}
.sidebar-user .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #22c55e);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-username { font-size: .9rem; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-email {
  font-size: .75rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.sidebar-foot .btn-outline {
  color: #e2e8f0;
  border-color: #334155;
  padding: .5rem .75rem;
  font-size: .85rem;
}
.sidebar-foot .btn-outline:hover { background: #1e293b; border-color: #475569; color: #fff; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 60;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.topbar-title h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.topbar-sub { color: var(--muted); font-size: .9rem; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all .15s ease;
  color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { display: block; }
#sidebarToggle { display: none; }

/* Bonus badge (topbar) */
.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.bonus-badge:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  transform: translateY(-1px);
}
.bonus-badge b {
  font-weight: 800;
  font-family: var(--mono);
}
.bonus-badge svg { flex-shrink: 0; }

/* ========== 13. STAT CARDS ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all .15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card-accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
}
.stat-card-accent .stat-label,
.stat-card-accent .stat-sub { color: rgba(255,255,255,.85); }
.stat-card-accent .stat-value { color: #fff; }

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg { display: block; }
.stat-card-accent .stat-icon {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.stat-body { min-width: 0; }
.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
}
.stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: .15rem 0;
}
.stat-sub { font-size: .82rem; color: var(--muted); }

/* ========== 14. PANELS ========== */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.panel-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.panel-head-wrap { flex-wrap: wrap; }
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.panel p { color: var(--ink-2); font-size: .96rem; line-height: 1.65; }
.panel p b { color: var(--ink); }

.panel-live {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.panel-live .countdown { color: var(--brand-dark); margin: 0; }

.panel-success {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
}

.panel-warn {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}
.panel-warn .panel-head h2 { color: #78350f; }

.panel-danger { border-color: #fecaca; background: #fef2f2; }
.panel-danger .panel-head h2 { color: #991b1b; }

.panel-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border: 0;
}
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .muted { color: #94a3b8; }
.panel-dark .panel-head h2 { color: #fff; }
.panel-dark .link { color: #4ade80; }

.live-status { display: flex; align-items: center; gap: .9rem; }
.live-status h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.live-status p { font-size: .9rem; }

/* Bid panel (dashboard) */
.bid-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.bid-panel .countdown { font-size: 2.4rem; margin: 0 0 .15rem; }

/* ========== 15. DATA TABLES ========== */
.table-wrap { overflow-x: auto; margin: 0 -1.5rem; padding: 0 1.5rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.data-table th {
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #f8fafc; }

/* ========== 16. PILLS ========== */
.pill {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.pill-warn  { background: #fef3c7; color: #92400e; }
.pill-info  { background: #dbeafe; color: #1e40af; }
.pill-ok    { background: #dcfce7; color: #166534; }
.pill-err   { background: #fee2e2; color: #991b1b; }
.pill-muted { background: #f1f5f9; color: #475569; }

/* Filter tabs */
.filter-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-tab {
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .15s ease;
}
.filter-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ========== 17. EMPTY STATES ========== */
.empty { text-align: center; padding: 2rem 1rem; }
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  margin: 0 auto .75rem;
}
.empty-icon svg { display: block; }
.empty h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.empty .btn { margin-top: 1rem; }

/* ========== 18. PROGRESS BARS ========== */
.progress-wrap {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.progress-label b { color: var(--brand-dark); font-size: 1rem; }
.progress {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #22c55e);
  border-radius: 999px;
  transition: width .4s ease;
}
.progress-sub { font-size: .82rem; color: var(--muted); margin-top: .4rem; }

/* ========== 19. TIMELINES ========== */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-step {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem 0;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-label { font-size: .95rem; color: var(--muted); font-weight: 500; }
.timeline-done .timeline-dot { background: var(--brand); border-color: var(--brand); }
.timeline-done .timeline-label { color: var(--ink); }
.timeline-current .timeline-dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .2);
}
.timeline-current .timeline-label { color: var(--brand-dark); font-weight: 700; }

/* ========== 20. WALLET / BALANCE HERO ========== */
.panel-balance {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border: 0;
}
.balance-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.balance-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: .35rem;
}
.balance-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.balance-value-sm {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.balance-sub { font-size: .85rem; color: #cbd5e1; margin-top: .35rem; }
.panel-balance .text-brand { color: #4ade80 !important; }
.panel-balance .text-err   { color: #f87171 !important; }
.balance-lock { text-align: right; }

/* ========== 21. LEDGER LISTS ========== */
.ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}
.ledger-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .85rem;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: .93rem;
  color: var(--ink-2);
}
.ledger-list b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.ledger-total {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd;
  font-weight: 700;
}
.ledger-total span { color: #075985; }
.ledger-total b    { color: #075985; font-size: 1.05rem; }

/* ========== 22. PROFILE ========== */
.profile-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.75rem; border-radius: 18px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #22c55e);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.profile-hero-body { flex: 1; min-width: 200px; }
.profile-hero-body h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .2rem;
}
.profile-hero-meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: .6rem;
  font-size: .88rem;
}
.profile-hero-stats { display: flex; gap: 1.75rem; }
.profile-hero-stats > div { text-align: right; }
.profile-hero-stats b {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
}
.profile-hero-stats .muted {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profile-form { display: grid; gap: 1rem; max-width: 720px; }
.profile-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.profile-form input {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.profile-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.profile-form small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .25rem;
}
.profile-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ========== 23. SUPPORT / TICKETS ========== */
.support-form { display: grid; gap: 1rem; max-width: 720px; }
.support-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.support-form input,
.support-form select,
.support-form textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.support-form small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .25rem;
}

.ticket-list { display: grid; gap: .65rem; }
.ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1.15rem;
  transition: border-color .2s;
}
.ticket[open] { border-color: var(--brand); }
.ticket summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
}
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.ticket[open] summary::after { content: '\2212'; }
.ticket-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.ticket-subject {
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}
.ticket-meta {
  display: inline-flex;
  gap: .35rem;
  font-size: .8rem;
  margin-left: auto;
  align-items: center;
}
.ticket-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.ticket-section h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .35rem;
}
.ticket-section p {
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.ticket-reply {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}
.ticket-reply h4 { color: #166534; }
.ticket-reply p  { color: #14532d; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-icon svg { display: block; }
.contact-list b { font-size: .95rem; color: var(--ink); }

/* Tips & schedule lists */
.tips, .schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
  font-size: .92rem;
  color: var(--ink-2);
}
.tips li { padding-left: 1.5rem; position: relative; }
.tips li::before {
  content: '\2713';
  color: var(--brand);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.tips[style*="list-style:decimal"] li { padding-left: 0; }
.tips[style*="list-style:decimal"] li::before { content: none; }

.schedule li {
  display: flex;
  justify-content: space-between;
  padding: .55rem .75rem;
  background: var(--bg-alt);
  border-radius: 8px;
  font-weight: 600;
}
.schedule li span:first-child { color: var(--brand-dark); }

/* ========== 24. REFERRAL BADGES ========== */
.sidebar-badge { /* already defined above */ }

/* ========== 25. BID PAGE: BALANCE STRIP, CHIPS, PREVIEW ========== */
.bid-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.bid-balance {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.bid-balance-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .25rem;
}
.bid-balance-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.bid-balance-sub { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.bid-balance-bonus {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}
.bid-balance-bonus .bid-balance-label { color: #92400e; }
.bid-balance-bonus .bid-balance-value { color: #78350f; }
.bid-balance-bonus .bid-balance-sub   { color: #92400e; }

.bid-form { display: grid; gap: 1rem; max-width: 560px; }
.bid-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.bid-form input,
.bid-form select {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .75rem .95rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.bid-form input:focus,
.bid-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.bid-form input:disabled,
.bid-form select:disabled { background: #f1f5f9; cursor: not-allowed; }
.bid-form small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .2rem;
}

.amount-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.chip {
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
  transition: all .15s ease;
}
.chip-return { display: block; font-size: .68rem; font-weight: 500; line-height: 1.35; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-custom { border-style: dashed; }

.bid-preview {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: grid;
  gap: .55rem;
}
.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  color: var(--ink-2);
}
.preview-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.preview-total {
  border-top: 1px solid var(--line);
  padding-top: .55rem;
  margin-top: .25rem;
  font-size: 1.05rem;
}
.preview-total b { color: var(--brand-dark); font-size: 1.15rem; }
.preview-bonus {
  border-top: 1px dashed var(--line);
  padding-top: .65rem;
  margin-top: .35rem;
}
.preview-bonus > span {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.preview-bonus > span small {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}
.preview-grand {
  background: #f0fdf4;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  padding: .65rem .8rem;
  margin-top: .35rem;
}
.preview-grand b { color: var(--brand-dark); font-size: 1.1rem; }

/* ========== 26. PAYMENT CARDS (BID PAGE) ========== */
.payment-cards { display: grid; gap: 1rem; }
.payment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem;
}
.payment-card-done {
  border-left-color: var(--brand);
  background: #f0fdf4;
}
.payment-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.payment-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.payment-card-section {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.payment-card-section:first-of-type { border-top: 0; padding-top: .25rem; }
.pc-section-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .6rem;
}

.payment-card-breakdown {
  display: grid;
  gap: .35rem;
}
.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .92rem;
  color: var(--ink-2);
}
.pc-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.pc-row span { display: flex; flex-direction: column; gap: .1rem; }
.pc-row span small {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}
.pc-row-total {
  border-top: 1px dashed var(--line);
  padding-top: .5rem;
  margin-top: .25rem;
}
.pc-row-total b { font-size: 1.1rem; color: var(--brand-dark); }
.pc-row-bonus {
  border-top: 1px dashed var(--line);
  padding-top: .5rem;
  margin-top: .35rem;
}
.pc-row-grand {
  background: #f0fdf4;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  padding: .55rem .75rem;
  margin-top: .35rem;
}
.pc-row-grand b { color: var(--brand-dark); font-size: 1.05rem; }

.payment-card-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.payment-card-amount b {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}
.payment-card-progress { padding: .85rem 0; }

.payment-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== 27. SELLER INLINE LIST ========== */
.seller-inline-list {
  display: grid;
  gap: .5rem;
}
.seller-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .15s ease;
}
.seller-inline:hover { border-color: var(--brand); }
.seller-inline-done {
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.seller-inline-left {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1;
}
.seller-inline-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  flex-wrap: wrap;
}
.seller-inline-name b { color: var(--ink); }
.seller-inline-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.seller-inline-meta .mono { color: var(--ink-2); }
.seller-inline-right {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.seller-inline-amount {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  white-space: nowrap;
}

/* Seller / pairing box (used in detail pages) */
.seller-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .5rem 1.15rem;
  margin-top: 1rem;
}
.seller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.seller-row:last-child { border-bottom: 0; }
.seller-row span { color: var(--muted); }
.seller-row b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
}

.seller-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ========== 28. MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, .35);
  overflow: hidden;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.35rem; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

/* ========== 29. ADMIN FORMS + FILTER BAR ========== */
.admin-form { display: grid; gap: 1rem; }
.admin-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="datetime-local"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.admin-form small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .25rem;
}
.admin-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.search-form { display: flex; gap: .5rem; align-items: center; }
.search-form input {
  padding: .5rem .8rem;
  font-size: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  min-width: 240px;
}
.search-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.filter-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar select {
  padding: .5rem .75rem;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
}
.filter-bar select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

/* Detail rows (bid-detail, admin views) */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Math boxes (ponzi analysis) */
.math-box {
  margin: 1rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 1rem;
}
.math-box-highlight { background: #fef3c7; border-left-color: #d97706; }
.math-box-highlight b { color: #92400e; }
.math-formula { color: var(--ink); }
.math-formula b { color: var(--brand-dark); font-size: 1.1rem; }

/* Fact grid (ponzi analysis) */
.fact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.fact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
}
.fact-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.fact h3 { font-size: 1rem; margin-bottom: .3rem; }
.fact p { font-size: .92rem; }

/* ========== 30. RESPONSIVE ========== */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps, .features, .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-3px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 70;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  #sidebarToggle { display: grid; }
  .topbar-title h1 { font-size: 1.25rem; }
  .app-content { padding: 1.25rem 1rem 2rem; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: block; }
  .steps, .features, .plans, .strip-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-form .grid-2 { grid-template-columns: 1fr; }
  .admin-form .grid-2 { grid-template-columns: 1fr; }

  .topbar-actions .btn:not(.btn-sm):not(.btn-primary) { display: none; }
  .bid-panel { flex-direction: column; align-items: stretch; }

  .ticket-subject { max-width: 100%; }
  .ticket-meta    { margin-left: 0; }
  .ticket summary { flex-wrap: wrap; }

  .search-form { width: 100%; }
  .search-form input { min-width: 0; flex: 1; }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .bid-balances { grid-template-columns: 1fr; }
  .payment-card-head { flex-direction: column; }

  .seller-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .seller-inline-right { justify-content: space-between; }

  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }

  .balance-value { font-size: 2rem; }
  .balance-lock  { text-align: left; }

  .profile-hero-stats { width: 100%; justify-content: flex-start; }
  .profile-hero-stats > div { text-align: left; }
}
