/* ============================================================
   GCTU Campus Mart Elite — Design System v3.0
   Mobile-First · MVP Polished · 375px base
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* ── Warm Orange-Coral Brand Palette ── */
  /* Primary: vibrant coral-orange — energetic, friendly, premium */
  --brand-950: #3B0A00;
  --brand-900: #5C1100;
  --brand-800: #8B2000;
  --brand-700: #B83300;
  --brand-600: #D94E1A;
  --brand-500: #E05A2B;
  --brand-400: #F07547;
  --brand-300: #F99570;
  --brand-200: #FDC5A8;
  --brand-100: #FEE3D6;
  --brand-50: #FFF4EE;

  /* Kept for legacy refs */
  --green-950: #052E16;
  --green-900: #0D3B21;
  --green-800: #145228;
  --green-700: #1B6B3A;
  --green-600: #22853F;
  --green-500: #22C55E;
  --green-400: #4ADE80;
  --green-100: #DCFCE7;
  --green-50: #F0FDF4;

  --gold-700: #B45309;
  --gold-600: #D97706;
  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-300: #FCD34D;
  --gold-100: #FEF3C7;
  --gold-50: #FFFBEB;

  --navy-950: #020A18;
  --navy-900: #060D1A;
  --navy-800: #0A1628;
  --navy-700: #0F1F3D;
  --navy-600: #162847;
  --navy-500: #1E3356;

  /* ── Buyer Theme (Coral-Orange) ── */
  --buyer-bg: #FDF7F5;
  --buyer-bg-2: #FAF0EB;
  --buyer-primary: #E05A2B;
  --buyer-primary-dark: #B83300;
  --buyer-primary-light: #F07547;
  --buyer-accent: #F59E0B;
  --buyer-surface: #FFFFFF;
  --buyer-surface-2: #FFF9F7;
  --buyer-border: #F0E0D8;
  --buyer-border-2: #E5C9BD;
  --buyer-text: #1A0A00;
  --buyer-text-muted: #7A4A38;
  --buyer-text-light: #B08070;

  /* ── Seller Theme ── */
  --seller-bg: #020A18;
  --seller-bg-2: #060D1A;
  --seller-surface: #0A1628;
  --seller-surface-2: #0F1F3D;
  --seller-surface-3: #162847;
  --seller-border: rgba(255, 255, 255, 0.07);
  --seller-border-2: rgba(255, 255, 255, 0.12);
  --seller-primary: #F59E0B;
  --seller-primary-dark: #D97706;
  --seller-text: #EBF4FF;
  --seller-text-muted: #6D8EAD;
  --seller-text-light: #2D4A66;
  --seller-green: #10B981;
  --seller-red: #F87171;
  --seller-blue: #60A5FA;

  /* ── Admin Theme ── */
  --admin-bg: #080718;
  --admin-bg-2: #0D0B1E;
  --admin-surface: #131029;
  --admin-surface-2: #1A1740;
  --admin-surface-3: #231F56;
  --admin-border: rgba(167, 139, 250, 0.12);
  --admin-border-2: rgba(167, 139, 250, 0.20);
  --admin-primary: #7C3AED;
  --admin-primary-light: #8B5CF6;
  --admin-accent: #A78BFA;
  --admin-text: #EDE9FE;
  --admin-text-muted: #8B7FC8;

  /* ── Semantic Colors ── */
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-error: #EF4444;
  --c-info: #3B82F6;

  /* ── Radius ── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-pill: 999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.20);
  --shadow-green: 0 8px 28px rgba(27, 107, 58, 0.30);
  --shadow-brand: 0 8px 28px rgba(224, 90, 43, 0.35);
  --shadow-gold: 0 8px 28px rgba(245, 158, 11, 0.25);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* ── Typography ── */
  --fs-2xs: 0.625rem;
  /* 10px */
  --fs-xs: 0.6875rem;
  /* 11px */
  --fs-sm: 0.8125rem;
  /* 13px */
  --fs-base: 0.9375rem;
  /* 15px */
  --fs-md: 1rem;
  /* 16px */
  --fs-lg: 1.0625rem;
  /* 17px */
  --fs-xl: 1.25rem;
  /* 20px */
  --fs-2xl: 1.5rem;
  /* 24px */
  --fs-3xl: 1.875rem;
  /* 30px */

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: all 0.14s var(--ease);
  --t-base: all 0.22s var(--ease);
  --t-slow: all 0.35s var(--ease-out);

  /* ── Layout ── */
  --nav-h: 56px;
  --bottom-nav-h: 66px;
  --page-px: 16px;

  /* Safe area */
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}

/* ─── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--buyer-bg);
  color: var(--buyer-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ─── App Shell ──────────────────────────────────────────── */
#app {
  min-height: 100vh;
  position: relative;
}

/* ─── Page Transition ────────────────────────────────────── */
.page-enter {
  animation: pageIn 0.25s var(--ease-out) forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content {
  padding-top: calc(var(--nav-h) + 1px);
  padding-bottom: calc(var(--bottom-nav-h) + 12px + var(--sab));
  min-height: 100vh;
  animation: pageIn 0.22s var(--ease-out) forwards;
}

.page-content.no-nav {
  padding-top: 0;
}

.page-content.no-bottom {
  padding-bottom: 16px;
}

/* Seller page bg */
.seller-page {
  background: var(--seller-bg) !important;
}

.admin-page {
  background: var(--admin-bg) !important;
}

/* ─── Top Navigation ─────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--buyer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
  z-index: 200;
  gap: 12px;
}

.nav-logo {
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--buyer-primary);
}

.nav-logo span {
  color: var(--buyer-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--buyer-text-muted);
  font-size: 1.0625rem;
  transition: var(--t-fast);
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--buyer-bg);
  color: var(--buyer-text);
}

.nav-icon-btn:active {
  transform: scale(0.90);
}

/* Seller nav */
.top-nav.seller {
  background: rgba(2, 10, 24, 0.95);
  border-bottom-color: var(--seller-border);
}

.top-nav.seller .nav-logo {
  color: var(--seller-primary);
}

.top-nav.seller .nav-logo span {
  color: var(--seller-text-muted);
  font-weight: 400;
}

.top-nav.seller .nav-icon-btn {
  color: var(--seller-text-muted);
}

.top-nav.seller .nav-icon-btn:hover {
  background: var(--seller-surface);
  color: var(--seller-text);
}

/* Admin nav */
.top-nav.admin {
  background: rgba(8, 7, 24, 0.97);
  border-bottom-color: var(--admin-border);
}

.top-nav.admin .nav-logo {
  color: var(--admin-accent);
}

.top-nav.admin .nav-icon-btn {
  color: var(--admin-text-muted);
}

.top-nav.admin .nav-icon-btn:hover {
  background: var(--admin-surface);
  color: var(--admin-text);
}

/* Notification badge */
.badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  background: #EF4444;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  line-height: 1;
}

/* ─── Bottom Navigation ──────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-h) + var(--sab));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--buyer-border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  padding-bottom: var(--sab);
}

.bottom-nav.seller {
  background: rgba(2, 10, 24, 0.97);
  border-top-color: var(--seller-border);
}

.bottom-nav.admin {
  background: rgba(8, 7, 24, 0.98);
  border-top-color: var(--admin-border);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--buyer-text-light);
  font-size: 0.625rem;
  font-weight: 500;
  transition: var(--t-fast);
  position: relative;
  letter-spacing: 0.2px;
  min-height: 44px;
}

.bottom-nav-item i {
  font-size: 1.125rem;
  transition: var(--t-fast);
}

.bottom-nav-item span {
  transition: var(--t-fast);
}

.bottom-nav-item.active {
  color: var(--buyer-primary);
}

.bottom-nav-item.active i {
  color: var(--buyer-primary);
  transform: translateY(-1px);
}

.bottom-nav-item.active span {
  font-weight: 600;
}

.bottom-nav-item:active {
  opacity: 0.55;
}

/* Sell/center action button */
.bottom-nav-sell {
  color: var(--buyer-primary);
}

.sell-fab {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--buyer-primary), var(--buyer-primary-dark));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  margin-bottom: 1px;
  transition: var(--t-fast);
}

.sell-fab i {
  font-size: 1.125rem;
  color: #fff;
}

.bottom-nav-sell:active .sell-fab {
  transform: scale(0.88);
  box-shadow: none;
}

/* Seller bottom nav colors */
.bottom-nav.seller .bottom-nav-item {
  color: var(--seller-text-light);
}

.bottom-nav.seller .bottom-nav-item.active {
  color: var(--seller-primary);
}

.bottom-nav.seller .bottom-nav-item.active i {
  color: var(--seller-primary);
}

/* Admin bottom nav colors */
.bottom-nav.admin .bottom-nav-item {
  color: var(--admin-text-muted);
}

.bottom-nav.admin .bottom-nav-item.active {
  color: var(--admin-accent);
}

.bottom-nav.admin .bottom-nav-item.active i {
  color: var(--admin-accent);
}

.bottom-nav-dot {
  position: absolute;
  top: 9px;
  right: calc(50% - 13px);
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid white;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8
  }
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--buyer-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--buyer-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-dark {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

.card-admin {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card-body {
  padding: 16px;
}

.card-header {
  padding: 13px 16px;
  border-bottom: 1px solid var(--buyer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-dark {
  padding: 13px 16px;
  border-bottom: 1px solid var(--seller-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: var(--t-fast);
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.15s;
}

.btn:active::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #E05A2B, #B83300);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 90, 43, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(224, 90, 43, 0.45);
}

.btn-seller {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-seller:hover {
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38);
}

.btn-admin {
  background: linear-gradient(135deg, var(--admin-primary), #6D28D9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.30);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--buyer-border-2);
  color: var(--buyer-text);
}

.btn-outline:hover {
  background: var(--buyer-bg);
  border-color: var(--buyer-primary);
  color: var(--buyer-primary);
}

.btn-outline-seller {
  background: transparent;
  border: 1.5px solid var(--seller-border-2);
  color: var(--seller-text-muted);
}

.btn-outline-seller:hover {
  border-color: var(--seller-primary);
  color: var(--seller-primary);
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: var(--seller-primary);
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.08);
}

.btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.30);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-ghost {
  background: var(--buyer-bg);
  color: var(--buyer-text-muted);
}

.btn-ghost:hover {
  background: var(--buyer-border);
  color: var(--buyer-text);
}

/* Sizes */
.btn-xs {
  height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  border-radius: var(--r-sm);
  gap: 5px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: var(--fs-md);
}

.btn-xl {
  height: 60px;
  padding: 0 32px;
  font-size: var(--fs-lg);
  border-radius: var(--r-lg);
}

.btn-full {
  width: 100%;
}

.btn-round {
  border-radius: var(--r-pill) !important;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--buyer-text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--buyer-text-light);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px;
}

.form-input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 42px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--buyer-border);
  background: var(--buyer-surface);
  font-size: var(--fs-base);
  color: var(--buyer-text);
  transition: var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input.has-right-icon {
  padding-right: 44px;
}

.form-input.no-icon {
  padding-left: 14px;
}

.form-input:focus {
  border-color: var(--buyer-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.10);
}

.form-input::placeholder {
  color: var(--buyer-text-light);
}

.form-input.error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.form-input-dark {
  background: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-input-dark::placeholder {
  color: var(--seller-text-muted);
}

.form-input-dark:focus {
  border-color: var(--seller-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--buyer-border);
  background: var(--buyer-surface);
  font-size: var(--fs-sm);
  color: var(--buyer-text);
  transition: var(--t-fast);
  resize: vertical;
  min-height: 96px;
}

.form-textarea:focus {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.10);
}

.form-textarea-dark {
  background: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-textarea-dark:focus {
  border-color: var(--seller-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.form-select {
  width: 100%;
  height: 50px;
  padding: 0 36px 0 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--buyer-border);
  background: var(--buyer-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23546E8A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: var(--fs-sm);
  color: var(--buyer-text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--t-fast);
}

.form-select:focus {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.10);
}

.form-select-dark {
  background-color: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-error {
  font-size: var(--fs-sm);
  color: var(--c-error);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.07);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--c-error);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--buyer-text-muted);
  margin-top: 5px;
}

/* ─── Hero Section (3D-like animated) ──────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(150deg,
      #1A0500 0%,
      #5C1100 25%,
      #E05A2B 60%,
      #F07547 80%,
      #3B0A00 100%);
  overflow: hidden;
  padding: 72px 20px 44px;
  min-height: 380px;
  /* 3D perspective tilt effect */
  perspective: 800px;
}

/* ── Animated gradient orbs ── */
.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.35) 0%, rgba(240, 117, 71, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb1 8s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 60% 60%, rgba(224, 90, 43, 0.30) 0%, rgba(90, 30, 10, 0.10) 60%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb2 10s ease-in-out infinite alternate;
}

@keyframes heroOrb1 {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  to {
    transform: translate(20px, -20px) scale(1.12);
    opacity: 1;
  }
}

@keyframes heroOrb2 {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  to {
    transform: translate(-15px, 20px) scale(1.08);
    opacity: 0.9;
  }
}

/* ── Mesh grid overlay ── */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

/* ── 3D floating card decoration ── */
.hero-3d-card {
  position: absolute;
  right: 16px;
  top: 80px;
  width: 110px;
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  padding: 10px 12px;
  transform: perspective(400px) rotateY(-18deg) rotateX(6deg);
  animation: card3dFloat 5s ease-in-out infinite alternate;
  box-shadow: 12px 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

@keyframes card3dFloat {
  from {
    transform: perspective(400px) rotateY(-18deg) rotateX(6deg) translateY(0);
  }

  to {
    transform: perspective(400px) rotateY(-14deg) rotateX(3deg) translateY(-8px);
  }
}

.hero-3d-card-emoji {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.hero-3d-card-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.hero-3d-card-price {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--gold-400);
  margin-top: 4px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: eyebrowPop 0.5s var(--ease-spring) both;
}

@keyframes eyebrowPop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-title {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  animation: titleSlide 0.6s var(--ease-spring) 0.1s both;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

@keyframes titleSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title span {
  color: var(--gold-400);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 280px;
  animation: titleSlide 0.6s var(--ease-spring) 0.2s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: titleSlide 0.6s var(--ease-spring) 0.3s both;
}

/* ─── Trust Strip ────────────────────────────────────────── */
.trust-strip {
  display: flex;
  background: var(--buyer-surface);
  border-bottom: 1px solid var(--buyer-border);
  box-shadow: var(--shadow-xs);
}

.trust-strip-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 14px 6px;
  border-right: 1px solid var(--buyer-border);
}

.trust-strip-item:last-child {
  border-right: none;
}

.trust-strip-emoji {
  font-size: 1.125rem;
}

.trust-strip-value {
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--buyer-primary);
  letter-spacing: -0.4px;
  margin-top: 2px;
}

.trust-strip-label {
  font-size: 0.625rem;
  color: var(--buyer-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 1px;
}

/* ─── Section Headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--buyer-text);
  letter-spacing: -0.3px;
}

.section-title-dark {
  color: var(--seller-text) !important;
}

.section-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
}

.section-link:hover {
  background: var(--buyer-bg);
}

.section-link-dark {
  color: var(--seller-text-muted) !important;
}

/* ─── Search Bar ─────────────────────────────────────────── */
.search-bar {
  position: relative;
  margin: 0 var(--page-px);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--buyer-text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--buyer-border);
  background: var(--buyer-surface);
  font-size: var(--fs-sm);
  color: var(--buyer-text);
  transition: var(--t-fast);
  appearance: none;
}

.search-input:focus {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.10);
  background: #fff;
}

.search-input::placeholder {
  color: var(--buyer-text-light);
}

/* ─── Category Pills ─────────────────────────────────────── */
.category-scroll {
  display: flex;
  gap: 8px;
  padding: 2px var(--page-px) 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--buyer-text-muted);
  background: var(--buyer-surface);
  border: 1.5px solid var(--buyer-border);
  white-space: nowrap;
  transition: var(--t-fast);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--buyer-primary);
  color: var(--buyer-primary);
  background: var(--green-50);
}

.category-pill.active {
  background: var(--buyer-primary);
  color: #fff;
  border-color: var(--buyer-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(27, 107, 58, 0.25);
}

.category-pill span {
  font-size: 1rem;
}

/* ─── Product Grid + Cards ───────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 var(--page-px);
}

.product-card {
  background: var(--buyer-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--buyer-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t-fast);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.product-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-xs);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--buyer-bg);
}

.product-card-image-placeholder {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--buyer-bg), var(--buyer-border));
  font-size: 2.5rem;
}

.product-card-body {
  padding: 10px 10px 12px;
}

.product-card-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.1px;
}

.product-card-price {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--buyer-primary);
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.product-card-seller {
  font-size: 0.625rem;
  color: var(--buyer-text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--buyer-text-light);
  box-shadow: var(--shadow-sm);
  transition: var(--t-fast);
  cursor: pointer;
}

.wishlist-btn.active {
  color: #EF4444;
}

.wishlist-btn:active {
  transform: scale(0.85);
}

/* Wide product card (1 col) */
.product-card-wide {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--buyer-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--buyer-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t-fast);
  padding: 10px;
}

.product-card-wide:active {
  transform: scale(0.99);
}

.product-card-wide-img {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--buyer-bg);
}

.product-card-wide-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--buyer-bg), var(--buyer-border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* ─── Feature Cards (Landing) ────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--page-px);
}

.feature-card {
  background: var(--buyer-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--buyer-border);
  padding: 16px 14px;
  box-shadow: var(--shadow-xs);
}

.feature-icon {
  font-size: 1.625rem;
  margin-bottom: 8px;
}

.feature-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--buyer-text);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: 0.75rem;
  color: var(--buyer-text-muted);
  line-height: 1.5;
}

/* ─── Badges / Chips ─────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1;
}

.chip-new {
  background: #EFF6FF;
  color: #1D4ED8;
}

.chip-good {
  background: #F0FDF4;
  color: #15803D;
}

.chip-fair {
  background: #FFFBEB;
  color: #A16207;
  border: 1px solid #FDE68A;
}

.chip-poor {
  background: #FFF1F2;
  color: #BE123C;
}

.chip-green {
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
}

.chip-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

.chip-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #1D4ED8;
}

.chip-purple {
  background: rgba(124, 58, 237, 0.12);
  color: #6D28D9;
}

.chip-red {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

.chip-gray {
  background: var(--buyer-bg);
  color: var(--buyer-text-muted);
  border: 1px solid var(--buyer-border);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ─── Order Cards ────────────────────────────────────────── */
.order-card {
  background: var(--buyer-surface);
  border: 1px solid var(--buyer-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--t-fast);
}

.order-card:active {
  transform: scale(0.99);
}

.order-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--buyer-border);
  background: var(--buyer-surface-2);
}

.order-card-body {
  padding: 12px 14px;
}

.order-id {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--buyer-text);
  letter-spacing: 0.2px;
}

.order-card-dark {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
  cursor: pointer;
}

.order-card-header-dark {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--seller-border);
  background: var(--seller-surface-2);
}

.order-id-dark {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--seller-text);
}

/* ─── Listing Row (Seller) ───────────────────────────────── */
.listing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  padding: 12px;
  transition: var(--t-fast);
  box-shadow: var(--shadow-inset);
}

.listing-row:active {
  transform: scale(0.99);
  opacity: 0.8;
}

.listing-row-img {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--seller-surface-2);
}

.listing-row-img-placeholder {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--seller-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.listing-row-info {
  flex: 1;
  min-width: 0;
}

.listing-row-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--seller-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-row-meta {
  font-size: var(--fs-xs);
  color: var(--seller-text-muted);
  margin-top: 3px;
}

.listing-row-price {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--seller-primary);
}

/* ─── Seller Dashboard ───────────────────────────────────── */
/* Greeting Card */
.greeting-card {
  background: linear-gradient(135deg, var(--seller-surface-2) 0%, var(--seller-surface) 100%);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-xl);
  padding: 20px var(--page-px);
  margin: 12px var(--page-px) 0;
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.greeting-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.greeting-name {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--seller-text);
  letter-spacing: -0.5px;
}

.greeting-sub {
  font-size: var(--fs-xs);
  color: var(--seller-text-muted);
  margin-top: 2px;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.20);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--seller-green);
}

.store-status-dot {
  width: 6px;
  height: 6px;
  background: var(--seller-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* Metric Grid */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--page-px);
}

.metric-card {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.metric-card.gold::before {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.metric-card.green::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.metric-card.blue::before {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.metric-card.red::before {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.metric-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-500);
}

.metric-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.metric-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.metric-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.metric-value {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--seller-text);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 3px;
}

.metric-label {
  font-size: 0.6875rem;
  color: var(--seller-text-muted);
  font-weight: 500;
}

.metric-change {
  font-size: 0.625rem;
  color: var(--seller-text-light);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.metric-change.up {
  color: var(--seller-green);
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 0 var(--page-px);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  padding: 14px 8px;
  cursor: pointer;
  transition: var(--t-fast);
  box-shadow: var(--shadow-inset);
  min-height: 78px;
}

.quick-action-btn:hover {
  border-color: var(--seller-border-2);
  background: var(--seller-surface-2);
}

.quick-action-btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.quick-action-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
}

.quick-action-label {
  font-size: 0.6875rem;
  color: var(--seller-text-muted);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* ─── Mini Chart (Bar) ───────────────────────────────────── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
  padding: 0;
}

.mini-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(245, 158, 11, 0.20);
  transition: height 0.5s var(--ease-out);
  position: relative;
  min-height: 4px;
}

.mini-bar.highlight {
  background: var(--seller-primary);
}

/* ─── Tier Badge ─────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tier-gold {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.30);
}

.tier-silver {
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
  color: #fff;
}

.tier-bronze {
  background: linear-gradient(135deg, #92400E, #B45309);
  color: #fff;
}

/* ─── Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--buyer-primary), var(--buyer-primary-dark));
  overflow: hidden;
}

.avatar-xs {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  border-radius: 50%;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.875rem;
  border-radius: 50%;
}

.avatar-md {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  border-radius: 50%;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
  border-radius: 50%;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
  border-radius: 50%;
}

/* ─── Auth Page ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--buyer-bg);
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: linear-gradient(150deg, #1A0500 0%, #5C1100 40%, #E05A2B 80%, #F07547 100%);
  padding: calc(var(--sat) + 44px) var(--page-px) 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.auth-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  animation: heroOrb1 7s ease-in-out infinite alternate;
}

.auth-logo {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.6px;
  margin-bottom: 5px;
}

.auth-logo span {
  color: var(--gold-400);
}

.auth-tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
}

.auth-body {
  flex: 1;
  background: var(--buyer-surface);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  margin-top: -20px;
  padding: 24px var(--page-px) 32px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.auth-tabs {
  display: flex;
  background: var(--buyer-bg);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  height: 38px;
  border-radius: calc(var(--r-md) - 2px);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text-muted);
  transition: var(--t-fast);
}

.auth-tab.active {
  background: var(--buyer-surface);
  color: var(--buyer-primary);
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  font-size: var(--fs-xs);
  color: var(--buyer-text-light);
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--buyer-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

/* Demo accounts panel */
.demo-panel {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: var(--r-md);
  overflow: hidden;
}

.demo-panel-header {
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #92400E;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: var(--t-fast);
  border-bottom: 1px solid rgba(253, 230, 138, 0.6);
}

.demo-item:last-child {
  border-bottom: none;
}

.demo-item:hover {
  background: rgba(245, 158, 11, 0.08);
}

.demo-item:active {
  background: rgba(245, 158, 11, 0.15);
}

.demo-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.demo-item-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #92400E;
}

.demo-item-email {
  font-size: var(--fs-xs);
  color: #A16207;
}

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.2s ease;
  padding: 0;
}

.modal-overlay.center-modal {
  align-items: center;
  padding: 20px;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-sheet {
  background: var(--buyer-surface);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: sheetUp 0.3s var(--ease-spring);
  padding-bottom: var(--sab);
}

.modal-sheet.dark {
  background: var(--seller-surface);
}

.modal-sheet.admin {
  background: var(--admin-surface);
}

.modal-center {
  background: var(--buyer-surface);
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 360px;
  animation: modalIn 0.25s var(--ease-spring);
  overflow: hidden;
}

.modal-center.dark {
  background: var(--seller-surface);
}

@keyframes sheetUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--buyer-border-2);
  border-radius: var(--r-pill);
  margin: 12px auto 0;
}

.modal-handle-dark {
  background: var(--seller-border-2);
}

.modal-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--buyer-border);
}

.modal-header-dark {
  border-bottom-color: var(--seller-border);
}

.modal-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--buyer-text);
  letter-spacing: -0.2px;
}

.modal-title-dark {
  color: var(--seller-text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--buyer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--buyer-text-muted);
  font-size: 0.875rem;
  transition: var(--t-fast);
}

.modal-close:hover {
  background: var(--buyer-border);
  color: var(--buyer-text);
}

.modal-close-dark {
  background: var(--seller-surface-2);
  color: var(--seller-text-muted);
}

.modal-close-dark:hover {
  background: var(--seller-surface-3);
  color: var(--seller-text);
}

.modal-body {
  padding: 16px;
}

.modal-footer {
  padding: 12px 16px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--buyer-border);
}

.modal-footer-dark {
  border-top-color: var(--seller-border);
}

/* ─── Toasts ─────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastIn 0.25s var(--ease-spring);
  font-size: var(--fs-sm);
  font-weight: 500;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.out {
  animation: toastOut 0.2s var(--ease) forwards;
}

@keyframes toastIn {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateY(-8px);
    opacity: 0;
  }
}

.toast.success {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.toast.error {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.toast.info {
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.92);
  color: var(--navy-900);
  font-weight: 600;
}

.toast-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  line-height: 1.4;
}

/* ─── Loading States ─────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-dark {
  border-color: rgba(245, 158, 11, 0.3);
  border-top-color: var(--seller-primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--buyer-bg) 25%, var(--buyer-border) 50%, var(--buyer-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--r-md);
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 4px;
  opacity: 0.6;
}

.empty-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--buyer-text);
}

.empty-desc {
  font-size: var(--fs-sm);
  color: var(--buyer-text-muted);
  line-height: 1.5;
  max-width: 240px;
}

.empty-icon-dark {
  opacity: 0.5;
}

.empty-title-dark {
  color: var(--seller-text);
}

.empty-desc-dark {
  color: var(--seller-text-muted);
}

/* ─── Order Timeline ─────────────────────────────────────── */
.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}

.timeline-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--buyer-border);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step.completed::before {
  background: var(--buyer-primary);
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--buyer-bg);
  border: 2px solid var(--buyer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: var(--t-fast);
}

.timeline-step.completed .timeline-dot {
  background: var(--buyer-primary);
  border-color: var(--buyer-primary);
  color: white;
}

.timeline-step.active .timeline-dot {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.15);
}

.timeline-content {
  flex: 1;
  padding-top: 6px;
}

.timeline-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
}

.timeline-time {
  font-size: var(--fs-xs);
  color: var(--buyer-text-muted);
  margin-top: 2px;
}

/* ─── Chat ───────────────────────────────────────────────── */
.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-sent {
  background: var(--buyer-primary);
  color: #fff;
  border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg);
  align-self: flex-end;
}

.chat-bubble-recv {
  background: var(--buyer-surface);
  color: var(--buyer-text);
  border: 1px solid var(--buyer-border);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px;
  align-self: flex-start;
}

.chat-time {
  font-size: 0.5625rem;
  color: var(--buyer-text-light);
  margin-top: 3px;
}

.quick-reply-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px var(--page-px);
  background: var(--buyer-surface);
  border-top: 1px solid var(--buyer-border);
}

.quick-reply {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1.5px solid var(--buyer-border-2);
  color: var(--buyer-text-muted);
  background: var(--buyer-bg);
  transition: var(--t-fast);
  white-space: nowrap;
}

.quick-reply:hover {
  border-color: var(--buyer-primary);
  color: var(--buyer-primary);
  background: var(--green-50);
}

.quick-reply:active {
  transform: scale(0.95);
}

/* ─── Photo Upload ───────────────────────────────────────── */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo-slot {
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  border: 2px dashed var(--seller-border-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--t-fast);
  background: var(--seller-surface-2);
  position: relative;
  overflow: hidden;
}

.photo-slot:hover {
  border-color: var(--seller-primary);
  background: rgba(245, 158, 11, 0.05);
}

.photo-slot:active {
  transform: scale(0.97);
}

.photo-slot-icon {
  font-size: 1.5rem;
  color: var(--seller-text-muted);
}

.photo-slot-label {
  font-size: 0.625rem;
  color: var(--seller-text-muted);
  font-weight: 500;
}

.photo-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.photo-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  box-shadow: var(--shadow-sm);
}

/* ─── Admin Panel ────────────────────────────────────────── */
.admin-stat-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-accent));
}

.admin-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: -0.8px;
}

.admin-stat-label {
  font-size: var(--fs-xs);
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.admin-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  transition: var(--t-fast);
}

.admin-table-row:last-child {
  border-bottom: none;
}

.admin-table-row:hover {
  background: var(--admin-surface-2);
}

/* ─── Profile Page ───────────────────────────────────────── */
.profile-header {
  background: linear-gradient(160deg, var(--buyer-primary), var(--buyer-primary-dark));
  padding: calc(var(--nav-h) + 16px) var(--page-px) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  cursor: pointer;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: var(--buyer-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: white;
  border: 2px solid white;
}

.profile-name {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  text-align: center;
}

.profile-email {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.70);
}

.profile-body {
  background: var(--buyer-bg);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  margin-top: -20px;
  padding: 20px var(--page-px);
  min-height: 60vh;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--buyer-surface);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--t-fast);
  border: 1px solid var(--buyer-border);
  box-shadow: var(--shadow-xs);
}

.profile-menu-item:hover {
  box-shadow: var(--shadow-sm);
}

.profile-menu-item:active {
  transform: scale(0.99);
  background: var(--buyer-surface-2);
}

.profile-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.profile-menu-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
}

.profile-menu-sub {
  font-size: var(--fs-xs);
  color: var(--buyer-text-muted);
}

/* ─── Notifications ──────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px var(--page-px);
  background: var(--buyer-surface);
  border-bottom: 1px solid var(--buyer-border);
  transition: var(--t-fast);
  cursor: pointer;
}

.notif-item.unread {
  background: var(--green-50);
  border-left: 3px solid var(--buyer-primary);
}

.notif-item:active {
  background: var(--buyer-bg);
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--buyer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.notif-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
}

.notif-body {
  font-size: var(--fs-xs);
  color: var(--buyer-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.625rem;
  color: var(--buyer-text-light);
  margin-top: 3px;
}

/* ─── Payment Page ───────────────────────────────────────── */
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 2px solid var(--buyer-border);
  background: var(--buyer-surface);
  cursor: pointer;
  transition: var(--t-fast);
}

.payment-method-card.selected {
  border-color: var(--buyer-primary);
  background: var(--green-50);
}

.payment-method-card:hover:not(.selected) {
  border-color: var(--buyer-primary);
}

/* ─── Pickup Location ────────────────────────────────────── */
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--buyer-border);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--buyer-text-muted);
  cursor: pointer;
  transition: var(--t-fast);
  background: var(--buyer-surface);
}

.location-chip.selected {
  border-color: var(--buyer-primary);
  color: var(--buyer-primary);
  background: var(--green-50);
}

.location-chip:hover:not(.selected) {
  border-color: var(--buyer-primary);
}

/* ─── Utility ────────────────────────────────────────────── */
.spacer-xs {
  height: 8px;
}

.spacer-sm {
  height: 12px;
}

.spacer-md {
  height: 16px;
}

.spacer-lg {
  height: 24px;
}

.spacer-xl {
  height: 32px;
}

.divider {
  height: 1px;
  background: var(--buyer-border);
  margin: 0;
}

.divider-dark {
  height: 1px;
  background: var(--seller-border);
  margin: 0;
}

.sticky-top {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--buyer-bg);
  padding-top: 8px;
}

.sticky-top-white {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--buyer-surface);
}

.sticky-top-dark {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--seller-bg);
  padding: 8px 0;
}

/* Text utils */
.text-xs {
  font-size: var(--fs-xs);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-base {
  font-size: var(--fs-base);
}

.text-lg {
  font-size: var(--fs-lg);
}

.text-xl {
  font-size: var(--fs-xl);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-primary {
  color: var(--buyer-primary);
}

.text-muted {
  color: var(--buyer-text-muted);
}

.text-gold {
  color: var(--seller-primary);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Flex utils */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

/* Spacing */
.px-4 {
  padding-left: var(--page-px);
  padding-right: var(--page-px);
}

.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

/* ─── Admin Broadcast Notification Page ───────────────────── */
.admin-audience-card,
.admin-style-card,
.admin-fmt-card {
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  user-select: none;
}

.admin-audience-card:active,
.admin-style-card:active,
.admin-fmt-card:active {
  transform: scale(0.96);
}

/* Notification icon color overrides in notif list */
.notif-icon.info {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}

.notif-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
}

.notif-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
}

.notif-icon.promo {
  background: rgba(244, 114, 182, 0.12);
  color: #F472B6;
}

.notif-icon.alert {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}

.notif-icon.system {
  background: rgba(124, 58, 237, 0.12);
  color: #A78BFA;
}

.notif-icon.order {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
}

.notif-icon.message {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
}

/* Admin broadcast notification banner in user notification list */
.notif-item.admin-broadcast.unread {
  background: rgba(124, 58, 237, 0.06);
  border-left: 3px solid #A78BFA;
}

/* Star level display in profile */
.star-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.1px;
}

/* Misc */
.rounded-full {
  border-radius: var(--r-pill) !important;
}

.overflow-hidden {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Image Preview Modal ────────────────────────────────── */
.image-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: overlayIn 0.2s ease;
}

.image-preview-overlay img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}

.image-preview-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--t-fast);
}

.image-preview-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── Store Page ─────────────────────────────────────────── */
.store-banner {
  background: linear-gradient(135deg, var(--buyer-primary), var(--buyer-primary-dark));
  padding: calc(var(--nav-h) + 16px) var(--page-px) 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.store-banner::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.20) 0%, transparent 70%);
}

.store-body {
  background: var(--buyer-bg);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  margin-top: -16px;
  padding: 16px 0;
  min-height: 50vh;
}

/* ─── Seller Analytics Chart Area ───────────────────────── */
.chart-area {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-xl);
  padding: 16px;
  margin: 0 var(--page-px);
}

.chart-container {
  width: 100%;
  overflow-x: auto;
}

/* ─── Tab Switcher ───────────────────────────────────────── */
.tab-bar {
  display: flex;
  background: var(--buyer-bg);
  border-radius: var(--r-md);
  padding: 3px;
}

.tab-btn {
  flex: 1;
  height: 34px;
  border-radius: calc(var(--r-md) - 2px);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--buyer-text-muted);
  transition: var(--t-fast);
}

.tab-btn.active {
  background: var(--buyer-surface);
  color: var(--buyer-primary);
  box-shadow: var(--shadow-sm);
}

.tab-bar-dark {
  background: var(--seller-bg);
}

.tab-bar-dark .tab-btn {
  color: var(--seller-text-muted);
}

.tab-bar-dark .tab-btn.active {
  background: var(--seller-surface);
  color: var(--seller-primary);
}

/* ─── Offer input ────────────────────────────────────────── */
.offer-input {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--buyer-border);
  background: none;
  color: var(--buyer-primary);
  padding: 8px 0;
  letter-spacing: -1px;
}

.offer-input:focus {
  border-bottom-color: var(--buyer-primary);
  outline: none;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (min-width: 430px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-title {
    font-size: 2.625rem;
  }
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS v4
   ============================================================ */

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(27, 107, 58, 0.18);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(27, 107, 58, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  60% {
    opacity: 1;
    transform: scale(1.12);
  }

  80% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -300px 0;
  }

  100% {
    background-position: 300px 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes msgPopIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(8px);
  }

  65% {
    transform: scale(1.04) translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ─── Chat v4 ─────────────────────────────────────────────── */
.chat-page-root {
  overflow: hidden;
}

.chat-msg-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.chat-msg-wrap.mine {
  flex-direction: row-reverse;
}

.chat-msg-wrap.theirs {
  flex-direction: row;
}

.chat-bubble-v2 {
  max-width: 76%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  word-break: break-word;
  animation: msgPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.chat-bubble-v2.sent {
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-v2.recv {
  border-radius: 18px 18px 18px 4px;
}

/* Quick Reply chips */
.quick-reply-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  margin-right: 6px;
  flex-shrink: 0;
}

.quick-reply-chip:active {
  transform: scale(0.92);
}

/* Typing indicator dots */
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--buyer-text-muted);
  animation: typingBounce 1.2s infinite ease;
}

/* ─── Notifications v4 ───────────────────────────────────── */
.notif-card-v2 {
  transition: background 0.15s ease, transform 0.12s ease;
  position: relative;
  overflow: hidden;
}

.notif-card-v2:active {
  transform: scale(0.99);
}

.notif-unread-v2 {
  background: rgba(27, 107, 58, 0.035) !important;
}

.notif-unread-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

.notif-admin-v2 .notif-unread-bar {
  background: #A78BFA;
}

.notif-icon-v2 {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-card-v2:active .notif-icon-v2 {
  transform: scale(1.15);
}

/* ─── Order timeline animated ────────────────────────────── */
.timeline-step {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  width: 2px;
  height: calc(100% - 22px);
  background: var(--buyer-border);
  transition: background 0.4s ease;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step.completed::before {
  background: var(--buyer-primary);
}

.timeline-dot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--buyer-bg);
  border: 2px solid var(--buyer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step.completed .timeline-dot {
  background: var(--buyer-primary);
  border-color: var(--buyer-primary);
  color: white;
  transform: scale(1.08);
}

.timeline-step.active .timeline-dot {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 4px rgba(27, 107, 58, 0.15);
}

.timeline-content {
  flex: 1;
  padding-top: 5px;
}

.timeline-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
}

.timeline-time {
  font-size: var(--fs-xs);
  color: var(--buyer-text-muted);
  margin-top: 2px;
}

/* ─── Ripple effect on buttons ───────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: var(--y, 50%);
  left: var(--x, 50%);
  animation: ripple 0.5s linear;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  animation: none;
}

/* ─── Skeleton loader ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--buyer-border) 25%, var(--buyer-bg-2) 50%, var(--buyer-border) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--r-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
}

.skeleton-title {
  height: 20px;
  margin-bottom: 10px;
}

.skeleton-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
}

/* ─── Avatar sizes ───────────────────────────────────────── */
.avatar-xs {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Input focus ring ───────────────────────────────────── */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--buyer-primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.12);
  outline: none;
}

/* ─── Button press scale ─────────────────────────────────── */
.btn:active {
  transform: scale(0.97);
}

.btn-icon:active {
  transform: scale(0.92);
}

/* ─── Notification badge pulse ───────────────────────────── */
.badge {
  animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Chat input send button ─────────────────────────────── */
#send-btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease !important;
}

/* ─── Product card hover lift ────────────────────────────── */
.product-card {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.product-card:active {
  transform: scale(0.97) translateY(2px);
  box-shadow: var(--shadow-xs);
}

/* ─── Quick action button press ──────────────────────────── */
.quick-action-btn:active {
  transform: scale(0.94);
}

/* ─── Bottom nav item tap ────────────────────────────────── */
.bottom-nav-item:active {
  transform: scale(0.88);
}

/* ─── Green pulse for active status ─────────────────────── */
@keyframes greenPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

.store-status-dot {
  animation: greenPulse 1.8s infinite;
}

/* ─── Seller mode pulse override ────────────────────────── */
.seller-mode .timeline-dot.active {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

/* ─── Scroll-snap for category pills ─────────────────────── */
.category-scroll {
  scroll-snap-type: x mandatory;
}

.category-pill {
  scroll-snap-align: start;
}

/* ─── Entrance stagger helper ────────────────────────────── */
.stagger-1 {
  animation-delay: 0.05s !important;
}

.stagger-2 {
  animation-delay: 0.10s !important;
}

.stagger-3 {
  animation-delay: 0.15s !important;
}

.stagger-4 {
  animation-delay: 0.20s !important;
}

.stagger-5 {
  animation-delay: 0.25s !important;
}

@media (min-width: 768px) {
  :root {
    --page-px: 24px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ─── Scrollbar styling ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--buyer-border-2);
  border-radius: 2px;
}

/* ─── Stars ──────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}

.star {
  font-size: 0.75rem;
  color: var(--buyer-border-2);
}

.star.filled,
.star.half {
  color: var(--gold-500);
}

/* ─── Review items ───────────────────────────────────────── */
.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--buyer-border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-text {
  font-size: var(--fs-sm);
  color: var(--buyer-text-muted);
  line-height: 1.5;
}

.review-meta {
  font-size: var(--fs-xs);
  color: var(--buyer-text-light);
  margin-top: 4px;
}

/* ─── Loading Overlay ────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-overlay.dark {
  background: rgba(2, 10, 24, 0.80);
}

/* ─── Cart bar ───────────────────────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--page-px) calc(12px + var(--sab));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--buyer-border);
  display: flex;
  gap: 10px;
  z-index: 150;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Product images (detail) ────────────────────────────── */
.product-main-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.product-main-image-placeholder {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--buyer-bg);
}

.product-images-scroll {
  display: flex;
  gap: 8px;
  padding: 0 var(--page-px);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-images-scroll::-webkit-scrollbar {
  display: none;
}

.product-image-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid var(--buyer-border);
  transition: var(--t-fast);
}

.product-image-thumb.active {
  border-color: var(--buyer-primary);
}

/* ─── Sell page (seller tab nav) ─────────────────────────── */
.section-link-gold {
  color: var(--seller-primary) !important;
}

/* ─── Pill counter ───────────────────────────────────────── */
.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--buyer-primary);
  color: white;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 0 4px;
  margin-left: 4px;
}

/* ─── Admin stats grid ───────────────────────────────────── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 var(--page-px);
}

/* ─── Seller filter categories active state ──────────────── */
.category-pill.active.seller-active {
  background: var(--seller-primary);
  color: var(--navy-900);
  border-color: var(--seller-primary);
}

/* ═══════════════════════════════════════════════════════════
   VIBRANT UI ENHANCEMENTS — Micro-interactions & Brand Colors
   ═══════════════════════════════════════════════════════════ */

/* ─── Animated category pills ────────────────────────────── */
.category-pill {
  transition: all 0.18s var(--ease-spring) !important;
}

.category-pill:active {
  transform: scale(0.93) !important;
}

.category-pill.active {
  background: linear-gradient(135deg, var(--buyer-primary), var(--buyer-primary-dark)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(224, 90, 43, 0.35) !important;
}

/* ─── Product card hover lift ────────────────────────────── */
.product-card {
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease !important;
}

.product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(224, 90, 43, 0.12) !important;
}

.product-card:active {
  transform: scale(0.97) !important;
}

/* ─── Pay on Delivery badge ──────────────────────────────── */
.pod-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-radius: var(--r-pill);
  font-size: 0.6rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ─── GCTU verification badge ────────────────────────────── */
.gctu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--buyer-primary), var(--buyer-primary-dark));
  color: #fff;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(224, 90, 43, 0.30);
}

/* ─── Animated notification card ────────────────────────── */
.notif-card {
  animation: slideUp 0.25s var(--ease-spring) both;
}

.notif-card:nth-child(1) {
  animation-delay: 0.00s;
}

.notif-card:nth-child(2) {
  animation-delay: 0.04s;
}

.notif-card:nth-child(3) {
  animation-delay: 0.08s;
}

.notif-card:nth-child(4) {
  animation-delay: 0.12s;
}

.notif-card:nth-child(5) {
  animation-delay: 0.16s;
}

/* ─── Floating action glow ───────────────────────────────── */
.fab-glow {
  box-shadow: 0 0 0 0 rgba(224, 90, 43, 0.5);
  animation: fabPulse 2.5s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 90, 43, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(224, 90, 43, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(224, 90, 43, 0);
  }
}

/* ─── Stat counter animate ───────────────────────────────── */
.stat-animated {
  animation: countUp 0.5s var(--ease-out) both;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Shimmer skeleton ───────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg, var(--buyer-border) 25%, var(--buyer-bg-2) 50%, var(--buyer-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ─── Coming Soon badge ──────────────────────────────────── */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.75;
  }
}

/* ─── 3D Tilt card effect ────────────────────────────────── */
.card-3d {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: perspective(600px) rotateX(3deg) rotateY(-3deg) translateZ(8px);
  box-shadow: 0 16px 48px rgba(224, 90, 43, 0.15);
}

/* ─── Micro-bounce on tap ────────────────────────────────── */
.tap-bounce:active {
  animation: tapBounce 0.25s var(--ease-spring);
}

@keyframes tapBounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.94);
  }

  80% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* ─── Seller verified chip (GCTU only) ───────────────────── */
.seller-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(224, 90, 43, 0.10);
  border: 1px solid rgba(224, 90, 43, 0.25);
  color: var(--buyer-primary);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ─── Order status pulse ─────────────────────────────────── */
.status-pending-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  animation: statusPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* ─── Feature card hover ─────────────────────────────────── */
.feature-card {
  transition: all 0.2s var(--ease-spring) !important;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(224, 90, 43, 0.10) !important;
  border-color: rgba(224, 90, 43, 0.25) !important;
}

/* ─── Input focus orange glow ────────────────────────────── */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--buyer-primary) !important;
  box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.12) !important;
}

/* ─── Payment method card selected (brand orange) ────────── */
.payment-method-card.selected {
  border-color: var(--buyer-primary) !important;
  background: rgba(224, 90, 43, 0.04) !important;
}

/* ─── Demo account panel ─────────────────────────────────── */
.demo-panel {
  border: 1px solid rgba(224, 90, 43, 0.20) !important;
  background: rgba(224, 90, 43, 0.03) !important;
}

.demo-panel-header {
  border-bottom: 1px solid rgba(224, 90, 43, 0.15) !important;
  color: var(--buyer-primary) !important;
}

.demo-item:hover {
  background: rgba(224, 90, 43, 0.06) !important;
}

/* ─── Trust strip accent ─────────────────────────────────── */
.trust-strip-value {
  color: var(--buyer-primary) !important;
}


/* ─── Smooth transitions on page swap ───────────────────── */
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Form range input ───────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--buyer-border);
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--buyer-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--buyer-primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}


/* ─── Mobile improvements ────────────────────────────────── */
@media (max-width: 374px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Focus visible accessibility ───────────────────────── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--buyer-primary);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   VIBRANT UI OVERHAUL v4 — Interactive Animations & Polish
   ═══════════════════════════════════════════════════════════ */

/* ─── Enhanced Profile Menu ──────────────────────────────── */
.profile-menu-item {
  position: relative;
  overflow: hidden;
}

.profile-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s ease, width 0.2s ease;
}

.profile-menu-item:active::before {
  background: var(--buyer-primary);
  width: 4px;
}

.profile-menu-text {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--buyer-text);
}

.profile-menu-arrow {
  color: var(--buyer-text-muted);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.profile-menu-item:active .profile-menu-arrow {
  transform: translateX(3px);
}

/* ─── Profile icon colors ────────────────────────────────── */
.profile-menu-icon.purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}

.profile-menu-icon.gold {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.profile-menu-icon.green {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.profile-menu-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.profile-menu-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

/* ─── Wallet card shimmer effect ────────────────────────── */
@keyframes walletShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.wallet-balance-glow {
  background: linear-gradient(90deg, #4ADE80, #22C55E, #4ADE80);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: walletShimmer 3s linear infinite;
}

/* ─── Enhanced notification cards ───────────────────────── */
.notif-card-v2 {
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, transform 0.12s ease;
}

.notif-card-v2:active {
  transform: scale(0.99);
  background: var(--buyer-bg) !important;
}

.notif-card-v2:active .notif-icon-v2 {
  transform: scale(1.2) rotate(-5deg);
}

.notif-unread-v2 {
  background: linear-gradient(to right, rgba(27, 107, 58, 0.06), transparent) !important;
}

/* ─── Escrow badge ───────────────────────────────────────── */
.escrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ─── Vibrant metric cards ───────────────────────────────── */
.metric-card {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.metric-card:active {
  transform: scale(0.95) translateY(2px);
}

.metric-card.gold {
  --metric-glow: rgba(245, 158, 11, 0.15);
}

.metric-card.green {
  --metric-glow: rgba(34, 197, 94, 0.15);
}

.metric-card.blue {
  --metric-glow: rgba(59, 130, 246, 0.15);
}

.metric-card.red {
  --metric-glow: rgba(239, 68, 68, 0.15);
}

/* ─── Animated status badges ─────────────────────────────── */
.status-badge-pulse {
  animation: pulseGlow 2s infinite;
}

/* ─── Quick action enhanced tap ──────────────────────────── */
.quick-action-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.quick-action-btn:active {
  transform: scale(0.93);
}

.quick-action-btn:active .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-icon {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Order card enhanced ────────────────────────────────── */
.order-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.order-card:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-xs);
}

/* ─── Chat message wrap ──────────────────────────────────── */
.chat-msg-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.chat-msg-wrap.mine {
  flex-direction: row-reverse;
}

.chat-msg-wrap.theirs {
  flex-direction: row;
}

/* ─── Send button spring ─────────────────────────────────── */
@keyframes sendSpring {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ─── Vibrant gradient section separators ───────────────── */
.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--buyer-border), transparent);
  margin: 8px 0;
}

/* ─── Form input dark theme (seller/admin) ───────────────── */
.form-input-dark {
  background: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-input-dark::placeholder {
  color: var(--seller-text-muted);
}

.form-input-dark:focus {
  border-color: var(--seller-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.form-textarea-dark {
  background: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-select-dark {
  background: var(--seller-surface-2);
  border-color: var(--seller-border);
  color: var(--seller-text);
}

.form-input.admin {
  background: var(--admin-surface-2);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.form-input.admin::placeholder {
  color: var(--admin-text-muted);
}

.form-input.admin:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ─── Enhanced landing page hero ────────────────────────── */
@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-icon-float {
  animation: heroFloat 3s ease-in-out infinite;
}

/* ─── Vibrant product card ───────────────────────────────── */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(27, 107, 58, 0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:active::before {
  opacity: 1;
}

/* ─── Animated page entrance ─────────────────────────────── */
@keyframes pageSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content {
  animation: pageSlideUp 0.3s ease both;
}

/* ─── Category pill enhanced ─────────────────────────────── */
.category-pill {
  position: relative;
  overflow: hidden;
}

.category-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-pill:active::after {
  opacity: 1;
  transform: scale(1);
}

.category-pill.active {
  background: var(--buyer-primary);
  color: white;
  border-color: var(--buyer-primary);
  box-shadow: 0 2px 8px rgba(27, 107, 58, 0.25);
}

/* ─── Greeting card glow ─────────────────────────────────── */
.greeting-card {
  background: linear-gradient(145deg, var(--navy-700) 0%, var(--navy-900) 100%);
  border-radius: var(--r-xl);
  padding: 18px var(--page-px);
  margin: 12px var(--page-px) 0;
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* ─── Top nav notification badge live pulse ──────────────── */
.notif-badge-live {
  animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), pulseGlow 2.5s 0.5s infinite;
}

/* ─── Btn success vibrant ─────────────────────────────────── */
.btn-success {
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-success:active {
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

/* ─── Admin stat card enhanced ───────────────────────────── */
.admin-stat-card {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-stat-card:active {
  transform: scale(0.96);
}

/* ─── Withdraw / topup preset buttons ───────────────────── */
.topup-preset,
.seller-withdraw-preset {
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.topup-preset:active,
.seller-withdraw-preset:active {
  transform: scale(0.94);
}

/* ─── Enhanced order timeline ────────────────────────────── */
.order-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-step.active .timeline-title {
  color: var(--buyer-primary);
  font-weight: 700;
}

/* ─── Pulsing new order badge ────────────────────────────── */
@keyframes newOrderPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.new-order-dot {
  animation: newOrderPulse 1.5s infinite;
}

/* ─── Mobile safe area helpers ───────────────────────────── */
@supports (padding: max(0px)) {
  .page-content {
    padding-bottom: max(80px, calc(68px + env(safe-area-inset-bottom)));
  }

  .chat-page-root {
    padding-bottom: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   SELLER WITHDRAWALS PAGE — Fintech Dark UI
   ═══════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────── */
.wd-page {
  min-height: 100vh;
  background: var(--seller-bg);
  padding-top: calc(var(--nav-h) + 8px);
  overflow-x: hidden;
}

/* ── Top Nav ─────────────────────────────────────────────── */
.wd-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(6, 13, 26, 0.97);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 200;
}

.wd-back-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.wd-back-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

.wd-topnav-title {
  flex: 1;
  min-width: 0;
}

.wd-nav-btn {
  width: 34px;
  height: 34px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--r-md);
  color: var(--seller-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.8125rem;
}

.wd-nav-btn:active {
  transform: scale(0.92);
  background: rgba(245, 158, 11, 0.2);
}

/* ── Hero Card ──────────────────────────────────────────── */
.wd-hero-card {
  position: relative;
  margin: 16px var(--page-px) 0;
  background: linear-gradient(140deg, #0f2a4a 0%, #0a1c35 50%, #06111f 100%);
  border-radius: var(--r-xl);
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: wd-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wd-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Decorative orbs */
.wd-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.wd-orb1 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  top: -40px;
  right: -30px;
}

.wd-orb2 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
  bottom: -20px;
  left: 20px;
}

.wd-orb3 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  top: 50%;
  right: 20%;
}

.wd-hero-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 6px 0;
}

.wd-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.wd-hero-stat {
  flex: 1;
  text-align: center;
}

.wd-hero-stat-val {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.wd-hero-stat-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.wd-hero-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.wd-hero-cta {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: none;
  border-radius: var(--r-lg);
  color: #000;
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  letter-spacing: 0.1px;
}

.wd-hero-cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.wd-hero-cta-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
}

.wd-min-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.wd-min-chip:active {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Section wrapper ────────────────────────────────────── */
.wd-section {
  margin: 14px var(--page-px) 0;
}

.wd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wd-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

/* ── Quick Method Shortcuts ─────────────────────────────── */
.wd-quick-methods {
  padding-bottom: 0;
}

.wd-method-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wd-method-short {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wd-method-short:active {
  transform: scale(0.93);
}

.wd-method-short.dim {
  opacity: 0.4;
}

.wd-method-short-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.wd-method-short-name {
  font-size: 0.5875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.2;
}

/* ── Balance Breakdown Card ─────────────────────────────── */
.wd-breakdown-card {
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-xl);
  padding: 6px 0 0;
  overflow: hidden;
}

.wd-bd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wd-bd-row:last-of-type {
  border-bottom: none;
}

.wd-bd-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wd-bd-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.wd-bd-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.wd-bd-val {
  font-size: 0.875rem;
  font-weight: 700;
}

.wd-bd-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
  margin: 4px 16px;
}

.wd-bd-note {
  padding: 10px 16px 14px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

.wd-txn-link {
  background: none;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--r-pill);
  color: #60A5FA;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wd-txn-link:active {
  background: rgba(96, 165, 250, 0.1);
}

/* ── Filter Tabs ────────────────────────────────────────── */
.wd-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2px 2px;
}

.wd-tabs::-webkit-scrollbar {
  display: none;
}

.wd-tab {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.wd-tab.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--seller-primary);
}

.wd-tab-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--r-pill);
  min-width: 16px;
  text-align: center;
}

.wd-tab-badge.active {
  background: rgba(245, 158, 11, 0.25);
  color: var(--seller-primary);
}

/* ── Withdrawal Rows ────────────────────────────────────── */
.wd-rows-wrap {
  margin: 8px var(--page-px) 0;
  background: var(--seller-surface);
  border: 1px solid var(--seller-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.wd-row:last-child {
  border-bottom: none;
}

.wd-row:active {
  background: rgba(255, 255, 255, 0.04);
}

.wd-row-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wd-row-info {
  flex: 1;
  min-width: 0;
}

.wd-row-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.wd-row-ref {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  font-family: 'Courier New', monospace;
}

.wd-row-date {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 2px;
}

.wd-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wd-row-amount {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #F87171;
  letter-spacing: -0.3px;
}

.wd-row-net {
  font-size: 0.6875rem;
  font-weight: 600;
}

.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Empty state */
.wd-empty-state {
  text-align: center;
  padding: 48px 20px;
}

.wd-empty-icon {
  font-size: 2.75rem;
  margin-bottom: 12px;
}

.wd-empty-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.wd-empty-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
}

/* ── FAB ────────────────────────────────────────────────── */
.wd-fab-wrap {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  animation: wd-fab-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes wd-fab-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.wd-fab {
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  border-radius: var(--r-pill);
  color: #000;
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
  transition: all 0.18s;
}

.wd-fab:active {
  transform: scale(0.95);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

/* ── Withdraw Form (inside modal) ───────────────────────── */
.wd-form-bal-card {
  background: linear-gradient(135deg, #0f2a4a 0%, #0a1c35 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  padding: 18px 20px;
  text-align: center;
}

.wd-form-bal-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.wd-form-bal-amount {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.wd-form-bal-fee {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.wd-form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

/* Amount input */
.wd-amount-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.wd-amount-field:focus-within {
  border-color: rgba(245, 158, 11, 0.5);
}

.wd-currency-sym {
  padding: 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 48px;
}

.wd-amount-inp {
  flex: 1;
  height: 48px;
  background: none;
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  padding: 0 14px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.wd-amount-inp::-webkit-outer-spin-button,
.wd-amount-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Net preview */
.wd-net-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--r-md);
}

/* Preset chips */
.wd-preset-chip {
  height: 36px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wd-preset-chip:active {
  transform: scale(0.93);
}

.wd-preset-chip.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--seller-primary);
}

/* Method option cards */
.wd-method-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.15s;
}

.wd-method-opt.sel {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

.wd-method-opt:active {
  transform: scale(0.98);
}

.wd-method-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wd-method-opt-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.wd-method-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.15s;
}

.wd-method-radio.checked {
  border-color: var(--seller-primary);
  background: var(--seller-primary);
}

/* ── Modal dark overrides ───────────────────────────────── */
.modal-header-dark {
  background: var(--seller-bg, #060D1A);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title-dark {
  color: rgba(255, 255, 255, 0.9);
}

.modal-close-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.modal-footer-dark {
  background: var(--seller-bg, #060D1A);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Status pulse animation ─────────────────────────────── */
@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}


/* ─── Glass morphism cards ───────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
}

/* ─── Gradient text ──────────────────────────────────────── */
.gradient-text-green {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Floating action button ─────────────────────────────── */
@keyframes fabEntrance {
  from {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.fab {
  position: fixed;
  bottom: calc(72px + var(--sab, 0px));
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--buyer-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(27, 107, 58, 0.35);
  cursor: pointer;
  z-index: 100;
  animation: fabEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.fab:active {
  transform: scale(0.93);
  box-shadow: 0 3px 10px rgba(27, 107, 58, 0.25);
}

/* ─── Bottom nav active indicator ────────────────────────── */
.bottom-nav-item.active {
  position: relative;
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--buyer-primary);
  border-radius: 0 0 3px 3px;
}

/* ─── Status ribbon animations ───────────────────────────── */
@keyframes ribbonSlide {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─── Search bar focus state ─────────────────────────────── */
.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.12), var(--shadow-sm);
  border-color: var(--buyer-primary);
}

/* ─── Admin broadcast highlight ──────────────────────────── */
.notif-card-v2.notif-admin-v2 {
  background: linear-gradient(to right, rgba(124, 58, 237, 0.04), transparent) !important;
}

.notif-card-v2.notif-admin-v2 .notif-unread-bar {
  background: linear-gradient(to bottom, #A78BFA, #7C3AED);
}

/* ─── Profile stats row ──────────────────────────────────── */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--buyer-surface);
  border: 1px solid var(--buyer-border);
  border-radius: var(--r-xl);
  margin: 0 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-stat {
  text-align: center;
  padding: 14px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-stat:not(:last-child) {
  border-right: 1px solid var(--buyer-border);
}

.profile-stat:active {
  background: var(--buyer-bg);
}

.profile-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--buyer-text);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.6875rem;
  color: var(--buyer-text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ─── Vibrant landing page hero ──────────────────────────── */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  animation: heroSheen 3s ease-in-out 1s infinite;
}

@keyframes heroSheen {
  0% {
    left: -60%;
  }

  40% {
    left: 140%;
  }

  100% {
    left: 140%;
  }
}

/* ─── Toast enhanced ─────────────────────────────────────── */
.toast-msg {
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─── Admin notify audience/style/format cards ───────────── */
.admin-audience-card,
.admin-style-card,
.admin-fmt-card {
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-audience-card:active,
.admin-style-card:active,
.admin-fmt-card:active {
  transform: scale(0.95);
}

/* ─── Seller wallet card entry animation ─────────────────── */
@keyframes walletEntry {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   PWA & Cross-Browser Compatibility Additions
   ============================================================ */

/* ─── @supports: Backdrop-filter fallback ────────────────────
   For browsers without backdrop-filter (Firefox < 103, very old Safari)
   replace glass effects with solid opaque backgrounds              */
@supports not (backdrop-filter: blur(1px)) {
  .top-nav {
    background: rgba(255, 255, 255, 0.99) !important;
  }
  .top-nav.seller {
    background: rgba(2, 10, 24, 0.99) !important;
  }
  .top-nav.admin {
    background: rgba(8, 7, 24, 0.99) !important;
  }
  .bottom-nav {
    background: rgba(255, 255, 255, 0.99) !important;
  }
  .bottom-nav.seller {
    background: rgba(2, 10, 24, 0.99) !important;
  }
  .bottom-nav.admin {
    background: rgba(8, 7, 24, 0.99) !important;
  }
  .modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
  }
  .toast {
    background: #1E293B !important;
  }
  .glass-card {
    background: rgba(255, 255, 255, 0.15) !important;
  }
  .glass-card-dark {
    background: rgba(0, 0, 0, 0.40) !important;
  }
  .loading-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
  }
  .wd-topnav {
    background: rgba(6, 13, 26, 0.99) !important;
  }
}

/* ─── Reduced Motion (Accessibility) ─────────────────────────
   Respects the OS "Reduce Motion" setting (important for users
   with vestibular disorders or motion sensitivity)              */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep spinner visible but static */
  .spinner {
    animation: none !important;
    border-top-color: var(--buyer-primary);
  }
}

/* ─── PWA Safe Area (notch / Dynamic Island) ─────────────────
   Already using env(safe-area-inset-*) — this adds padding
   for the iOS status bar when running as standalone PWA        */
@media (display-mode: standalone) {
  .top-nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  }

  .page-content {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1px);
  }
}
/* -- Premium Checkout Animations ---------------------- */
@keyframes checkoutStepIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes successPop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes progressPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.checkout-step-animate { animation: checkoutStepIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.glass-panel { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buyer-border); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.progress-dot.active { background: var(--buyer-primary); transform: scale(1.4); box-shadow: 0 0 10px rgba(224,90,43,0.4); }
.progress-dot.done { background: var(--buyer-primary); }


/* -- Lively Admin Neon & Mesh UI -------------------------- */
:root {
  --admin-neon-purple: #7C3AED;
  --admin-neon-blue: #3B82F6;
  --admin-neon-pink: #EC4899;
  --admin-neon-void: #0B0E14;
  --mesh-gradient: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%), 
                   radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%), 
                   radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
}

.admin-mode { background: var(--admin-neon-void) !important; color: #E2E8F0 !important; }
.mesh-bg { background: var(--mesh-gradient); backdrop-filter: blur(40px); }
.glass-glow-purple { background: rgba(124, 58, 237, 0.05); border: 1px solid rgba(124, 58, 237, 0.3); box-shadow: 0 0 15px rgba(124, 58, 237, 0.15); }
.glass-glow-blue { background: rgba(59, 130, 246, 0.05); border: 1px solid rgba(59, 130, 246, 0.3); box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); }

@keyframes adminStatSlideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes adminPulse { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); } }

.admin-stat-card { animation: adminStatSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.master-hud { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1000; padding: 12px; border-radius: 20px; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); border: 1.5px solid var(--admin-neon-purple); cursor: pointer; transition: all 0.3s; }
.master-hud:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(124,58,237,0.3); }

