/* ================================================================
   BidEthiopia — Main Stylesheet
   Dark auction theme inspired by modern fintech design
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #0f172a;
  --bg-secondary:  #1e293b;
  --bg-card:       rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-input:      #1e293b;
  --bg-elevated:   #334155;

  --accent-green:  #10B981;
  --accent-green2: #059669;
  --accent-teal:   #06b6d4;
  --accent-gold:   #f59e0b;
  --accent-purple: #a855f7;
  --accent-red:    #ef4444;

  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-disabled:  #334155;

  --border:         #334155;
  --border-light:   rgba(255,255,255,0.06);
  --border-glow:    rgba(16,185,129,0.3);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-green: 0 0 20px rgba(16,185,129,0.2);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --font-body:    'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --nav-height:   72px;
  --transition:   0.2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8,11,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 1.5rem; width: 100%; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-logo span.green { color: var(--accent-green); }

.nav-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: var(--shadow-green);
}
.nav-search .search-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: var(--bg-elevated); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.nav-avatar:hover { border-color: var(--accent-green); }

.nav-notification {
  position: relative;
  width: 36px; height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.nav-notification:hover { background: var(--bg-elevated); }
.nav-notification .badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--accent-red);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* ── Hero Stats Bar ────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.stats-grid {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-icon.green  { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.stat-icon.purple { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.stat-icon.gold   { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.stat-info {}
.stat-value { font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-sub { font-size: 0.7rem; margin-top: 2px; }
.stat-sub.live { color: var(--accent-green); }
.stat-sub.live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  margin-right: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Category Filters ──────────────────────────────────────── */
.category-section { padding: 1.5rem 0 0; }
.category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  min-width: 70px;
  text-decoration: none;
  color: var(--text-secondary);
}
.category-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}
.category-pill.active {
  background: rgba(34,197,94,0.12);
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.category-pill .pill-icon { font-size: 1.1rem; }
.category-pill .pill-label { font-size: 0.7rem; font-weight: 600; }

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.section-link {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.25rem;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.8; }

/* ── Auction Grid ──────────────────────────────────────────── */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-bottom: 2rem;
}

/* ── Auction Card ──────────────────────────────────────────── */
.auction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.auction-card:hover .card-image img { transform: scale(1.05); }

/* Image placeholder gradient */
.card-image .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-input));
}

.card-badge-live {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: var(--accent-green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 0.25rem;
}
.card-badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #000;
  animation: pulse 1.2s ease-in-out infinite;
}

.card-badge-scheduled {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.card-timer {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 0.25rem;
}
.card-timer.urgent { color: var(--accent-red); }

.card-fav {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 30px; height: 30px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  transition: color var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  z-index: 5;
}
.card-fav:hover, .card-fav.active { color: #ef4444; background: transparent; }

.card-condition {
  position: absolute;
  bottom: 0.6rem; left: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
}
.badge-mint     { background: rgba(34,197,94,0.2);  color: var(--accent-green); }
.badge-likenew  { background: rgba(6,182,212,0.2);  color: var(--accent-teal); }
.badge-excellent{ background: rgba(99,102,241,0.2); color: #818cf8; }
.badge-good     { background: rgba(245,158,11,0.2); color: var(--accent-gold); }
.badge-vintage  { background: rgba(168,85,247,0.2); color: var(--accent-purple); }
.badge-default  { background: rgba(100,116,139,0.2);color: var(--text-muted); }

.card-body { padding: 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bid-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}
.card-bid-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 2px; }
.card-bid-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-green);
}
.card-bid-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.card-progress {
  width: 100%;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.card-progress-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
  transition: width 0.5s ease;
}

/* ── Trust Banner ──────────────────────────────────────────── */
.trust-banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.trust-content { display: flex; align-items: center; gap: 1rem; }
.trust-icon {
  width: 44px; height: 44px;
  background: rgba(34,197,94,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-green);
  flex-shrink: 0;
}
.trust-text h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.trust-text p  { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  color: #000;
  box-shadow: 0 2px 12px rgba(34,197,94,0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34,197,94,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}
.btn-outline:hover { background: rgba(34,197,94,0.08); }

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Auction Detail Page ───────────────────────────────────── */
.auction-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

.auction-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.auction-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.auction-thumbs {
  display: flex; gap: 0.5rem; margin-top: 0.75rem;
}
.auction-thumb {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.auction-thumb:hover, .auction-thumb.active { border-color: var(--accent-green); }
.auction-thumb img { width: 100%; height: 100%; object-fit: cover; }

.auction-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.auction-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-indicator {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.2s infinite;
}

.auction-title-detail {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.auction-meta-row {
  display: flex; align-items: center; gap: 0.75rem;
}
.auction-condition-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.seller-row {
  display: flex; align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}
.seller-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.seller-name  { font-size: 0.85rem; font-weight: 600; }
.seller-badge { font-size: 0.65rem; color: var(--accent-teal); }
.seller-rating { margin-left: auto; text-align: right; }
.seller-rating .pct  { font-size: 1rem; font-weight: 700; color: var(--accent-green); }
.seller-rating .lbl  { font-size: 0.65rem; color: var(--text-muted); }

.bid-highlight-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.bid-current-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.bid-current-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-green);
  line-height: 1;
}
.bid-progress-wrap { margin-top: 0.75rem; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bid-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-teal)); border-radius: 2px; }

.bid-stats-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bid-stat {
  flex: 1;
  background: var(--bg-elevated);
  padding: 0.75rem;
  text-align: center;
}
.bid-stat-value { font-size: 1.1rem; font-weight: 800; font-family: var(--font-display); }
.bid-stat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* Countdown */
.countdown-row {
  display: flex; gap: 0.5rem; justify-content: center;
}
.countdown-unit {
  flex: 1;
  background: #000000 !important;
  border: 1px solid #222222 !important;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  text-align: center;
}
.countdown-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: #ef4444 !important;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.countdown-lbl { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; margin-top: 2px; }
.countdown-unit.urgent .countdown-num { color: #ef4444 !important; }

/* Card Timer Override */
.card-timer {
  background: #000000 !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

/* Quick bid buttons */
.quick-bid-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.quick-bid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.4rem; }
.quick-bid-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.quick-bid-btn .qb-increment { font-size: 0.75rem; font-weight: 700; display: block; }
.quick-bid-btn .qb-total     { font-size: 0.65rem; color: var(--text-muted); display: block; margin-top: 2px; }
.quick-bid-btn:hover, .quick-bid-btn.active {
  background: rgba(34,197,94,0.12);
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.quick-bid-btn.active .qb-total { color: var(--accent-green); }

/* Bid Activity */
.activity-header { display: flex; align-items: center; justify-content: space-between; }
.activity-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
.activity-link  { font-size: 0.75rem; color: var(--accent-teal); font-weight: 600; }
.activity-list  { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; max-height: 180px; overflow-y: auto; }
.activity-item  {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem;
  flex-shrink: 0;
}
.activity-name  { font-size: 0.8rem; font-weight: 600; flex: 1; }
.activity-amount { font-size: 0.8rem; font-weight: 700; color: var(--accent-green); }
.activity-time   { font-size: 0.65rem; color: var(--text-muted); text-align: right; min-width: 40px; }

/* Max bid input */
.max-bid-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
}
.max-bid-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.max-bid-lbl  { font-size: 0.7rem; color: var(--text-muted); }
.max-bid-hint { font-size: 0.7rem; color: var(--text-secondary); }
.max-bid-input-row { display: flex; align-items: center; gap: 0.5rem; }
.max-bid-symbol { font-size: 1rem; font-weight: 700; color: var(--text-secondary); }
.max-bid-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  outline: none;
}

.place-bid-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #000;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  font-family: var(--font-display);
}
.place-bid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(34,197,94,0.5);
}
.place-bid-btn:active { transform: translateY(0); }
.place-bid-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
}
.auth-logo .logo-text span { color: var(--accent-green); }
.auth-logo p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.25rem; }
.auth-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-footer { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 1.25rem; }
.auth-footer a { color: var(--accent-green); font-weight: 600; }

/* ── Alert / Flash Messages ────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(34,197,94,0.12);  border: 1px solid rgba(34,197,94,0.3);  color: var(--accent-green); }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: var(--accent-red); }
.alert-info    { background: rgba(6,182,212,0.12);  border: 1px solid rgba(6,182,212,0.3);  color: var(--accent-teal); }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: var(--accent-gold); }

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease forwards;
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error   { border-left: 3px solid var(--accent-red); }
.toast.info    { border-left: 3px solid var(--accent-teal); }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* ── Profile / My Bids ─────────────────────────────────────── */
.profile-wrap  { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem 0; }
.profile-card  {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  height: fit-content;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  margin: 0 auto 1rem;
  border: 3px solid rgba(34,197,94,0.3);
}
.profile-name  { font-size: 1.15rem; font-weight: 700; }
.profile-email { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.profile-nav   { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; text-align: left; }
.profile-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  transition: all var(--transition);
}
.profile-nav a:hover, .profile-nav a.active { background: var(--bg-elevated); color: var(--text-primary); }
.profile-nav a.active { color: var(--accent-green); }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-card-hover); }

/* Status Badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-active    { background: rgba(34,197,94,0.15);  color: var(--accent-green); }
.status-ended     { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.status-sold      { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.status-scheduled { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.status-cancelled { background: rgba(239,68,68,0.15);  color: var(--accent-red); }
.status-paid      { background: rgba(34,197,94,0.15);  color: var(--accent-green); }
.status-pending   { background: rgba(245,158,11,0.15); color: var(--accent-gold); }
.status-failed    { background: rgba(239,68,68,0.15);  color: var(--accent-red); }
.status-winning   { background: rgba(34,197,94,0.15);  color: var(--accent-green); }
.status-outbid    { background: rgba(239,68,68,0.15);  color: var(--accent-red); }

/* ── Payment Checkout Page ─────────────────────────────────── */
.checkout-wrap {
  max-width: 800px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.checkout-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.checkout-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.checkout-item img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.checkout-item-info { flex: 1; }
.checkout-item-title { font-weight: 700; margin-bottom: 0.25rem; }
.checkout-item-meta  { font-size: 0.8rem; color: var(--text-muted); }
.checkout-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.checkout-summary-row:last-child { border-bottom: none; }
.checkout-summary-row.total { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.checkout-summary-row .amount { font-weight: 700; color: var(--accent-green); }
.chapa-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #000;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  transition: all 0.2s ease;
}
.chapa-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34,197,94,0.45); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4  { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a   { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .auctions-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .auctions-grid { grid-template-columns: repeat(3, 1fr); }
  .auction-detail-wrap { grid-template-columns: 1fr; }
  .auction-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .auctions-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-wrap  { grid-template-columns: 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .stats-grid    { flex-direction: row; gap: 0.75rem; }
  .nav-links     { display: none; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .auctions-grid { grid-template-columns: 1fr; }
  .container     { padding: 0 1rem; }
  .auction-title-detail { font-size: 1.25rem; }
}

/* ── No-result state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.875rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.page-btn.active {
  background: rgba(34,197,94,0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  font-weight: 700;
}

/* ================================================================
   Mobile App Mockup Viewport & Layout Adjustments
   ================================================================ */

.mobile-header {
  display: none;
}
.mobile-bottom-nav {
  display: none;
}

/* Category Pill Styling Redesign to match Mockup (Round Icon Box + Label) */
.category-pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.4rem !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary) !important;
  min-width: 68px !important;
  cursor: pointer;
  transition: all var(--transition);
}
.category-pill .pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition);
}
.category-pill:hover .pill-icon,
.category-pill.active .pill-icon {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}
.category-pill.active .pill-icon {
  border-color: var(--accent-green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.06);
}
.category-pill .pill-label {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary);
}
.category-pill.active .pill-label {
  color: var(--accent-green);
  font-weight: 600;
}

/* Live Badge with Pulse dot on card images */
.card-badge-live {
  background: var(--accent-green) !important;
  color: #000 !important;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: pulse 1.2s ease-in-out infinite;
}

/* Heart Save Icon */
.card-fav {
  top: 0.6rem;
  right: 0.6rem;
  bottom: auto;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  border-radius: 50%;
  transition: all var(--transition);
}
.card-fav:hover, .card-fav.active {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

/* responsive media queries */
@media (max-width: 768px) {
  /* Hide standard headers and footers */
  .desktop-nav {
    display: none !important;
  }
  .footer {
    margin-bottom: 80px; /* offset bottom navigation bar */
    padding-bottom: 4rem;
  }
  body {
    padding-bottom: 80px;
  }

  /* Render Mobile Header */
  .mobile-header {
    display: block;
    background: var(--bg-primary);
    padding: 1.25rem 1rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
  }
  .mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  .mobile-user-greet .greet-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
  }
  .mobile-user-greet .user-name-highlight {
    color: var(--accent-green);
  }
  .mobile-user-greet .greet-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  .mobile-nav-notification {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .mobile-nav-notification i {
    color: var(--text-secondary);
    font-size: 1.05rem;
  }
  .mobile-nav-notification .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--accent-green);
    color: #000;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
  }
  .mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--border);
  }

  /* Search Row with Filter icon */
  .mobile-search-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
  }
  .mobile-search-bar {
    flex: 1;
    position: relative;
  }
  .mobile-search-bar input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
  }
  .mobile-search-bar input:focus {
    border-color: var(--accent-green);
  }
  .mobile-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  .filter-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
  }
  .filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
  }

  /* Horizontal Scrollable Stats on Mobile */
  .stats-bar {
    padding: 0.75rem 0;
    border-bottom: none;
  }
  .stats-grid {
    background: transparent;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    margin: 0 -0.75rem;
  }
  .stats-grid::-webkit-scrollbar {
    display: none;
  }
  .stat-item {
    flex: 0 0 152px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }
  .stat-value {
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 0.15rem;
  }
  .stat-label {
    font-size: 0.64rem;
  }
  .stat-sub {
    font-size: 0.58rem !important;
  }

  /* Render Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(8, 11, 16, 0.88);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 500;
    transition: all var(--transition);
    flex: 1;
  }
  .mobile-bottom-nav .nav-item i {
    font-size: 1.15rem;
  }
  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item.active {
    color: var(--accent-green);
  }
  .mobile-bottom-nav .nav-item.active i {
    color: var(--accent-green);
  }
  
  /* Elevated center Sell item */
  .mobile-bottom-nav .nav-item.center-item {
    margin-top: -32px;
    z-index: 1010;
  }
  .mobile-bottom-nav .nav-item.center-item .plus-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 3.5px solid var(--bg-primary);
    transition: all var(--transition);
  }
  .mobile-bottom-nav .nav-item.center-item:hover .plus-btn {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    color: var(--accent-green);
  }

  /* Grid details */
  .auctions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .card-body {
    padding: 0.65rem !important;
  }
  .card-title {
    font-size: 0.78rem !important;
  }
  .card-bid-amount {
    font-size: 0.95rem !important;
  }
  .card-body span {
    font-size: 0.65rem !important;
  }
  .card-condition {
    font-size: 0.58rem !important;
    padding: 0.12rem 0.35rem !important;
  }

  /* Prevent overlapping in section headers */
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 1.25rem 0 0.5rem !important;
  }
  .status-filters {
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    display: flex !important;
    gap: 0.4rem !important;
    padding-bottom: 0.25rem !important;
  }
  .status-filters::-webkit-scrollbar {
    display: none !important;
  }

  /* Mobile Subpage Header Styles */
  .mobile-subpage-header {
    display: flex !important;
    height: 52px !important;
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border) !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0.85rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }
  .mobile-back-btn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
  }
  .mobile-back-btn:active {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
  }
  .mobile-page-title {
    font-family: var(--font-display) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    flex: 1 !important;
  }

  /* Auction Details Subpage Mobile Minimization */
  .auction-detail-wrap {
    padding: 0.75rem 0 !important;
    gap: 1rem !important;
  }
  .auction-sidebar {
    padding: 1rem !important;
    gap: 0.85rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .auction-title-detail {
    font-size: 1.2rem !important;
  }
  .bid-highlight-box {
    padding: 0.75rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
  }
  .bid-current-amount {
    font-size: 1.55rem !important;
  }
  .bid-stats-row .bid-stat {
    padding: 0.6rem 0.4rem !important;
  }
  .bid-stat-value {
    font-size: 0.95rem !important;
  }
  .countdown-unit {
    padding: 0.4rem 0.25rem !important;
  }
  .countdown-num {
    font-size: 1.15rem !important;
  }
  .countdown-lbl {
    font-size: 0.55rem !important;
  }
  .quick-bid-grid {
    gap: 0.4rem !important;
  }
  .quick-bid-btn {
    padding: 0.45rem 0.2rem !important;
  }
  .quick-bid-btn .qb-increment {
    font-size: 0.68rem !important;
  }
  .quick-bid-btn .qb-total {
    font-size: 0.58rem !important;
  }
  .max-bid-wrap {
    padding: 0.6rem 0.8rem !important;
    border-radius: var(--radius-md) !important;
  }
  .max-bid-input {
    font-size: 1.35rem !important;
  }
  .place-bid-btn {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-md) !important;
  }
  .activity-list {
    max-height: 140px !important;
  }

  /* Profile & My Bids pages mobile optimization */
  .profile-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  
  /* Hiding redundant sidebar menu on My Bids page */
  .my-bids-wrap .profile-card {
    display: none !important;
  }

  /* Compact layout for the profile card on Profile page */
  .profile-wrap .profile-card {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .profile-wrap .profile-card .profile-avatar-lg {
    margin: 0 !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
  }
  .profile-wrap .profile-card h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.15rem !important;
  }
  .profile-wrap .profile-card p {
    margin-bottom: 0 !important;
    font-size: 0.78rem !important;
  }
  .profile-wrap .profile-card .profile-nav {
    display: none !important; /* hide sidebar link buttons */
  }

  /* Form and grid collapsing */
  .profile-grid-2col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .profile-wrap > div:last-child {
    padding: 1.25rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .profile-wrap h1 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Data Table mobile spacing */
  .data-table {
    min-width: 580px !important;
  }
}

/* Desktop default for subpage header */
.mobile-subpage-header {
  display: none;
}

/* ── Fantako-inspired Profile Page Theme ────────────────────── */
.profile-wrap {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.profile-wrap .profile-card,
.profile-wrap > div:last-child {
  background: rgba(30, 41, 59, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid #334155 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.profile-wrap .form-label {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  color: #94A3B8 !important;
  text-transform: none !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  letter-spacing: normal !important;
  display: block !important;
}

.profile-wrap .form-input {
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  border: 1px solid #334155 !important;
  background-color: #1e293b !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
}

.profile-wrap .form-input:focus {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* Save changes button and badges */
.profile-wrap .btn-primary {
  background: #10B981 !important;
  color: #0f172a !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: none !important;
}
.profile-wrap .btn-primary:hover {
  background: #059669 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
}

.profile-wrap .profile-avatar-lg {
  border: 3px solid rgba(16, 185, 129, 0.25) !important;
  background: linear-gradient(135deg, #10B981, #06b6d4) !important;
}

.profile-wrap .profile-nav a.active {
  color: #10B981 !important;
  background: #1e293b !important;
}

/* ── Responsive Table and Custom List Cards ───────────────── */
.desktop-only-table {
  display: block;
}
.mobile-only-bids-list {
  display: none;
}

@media (max-width: 768px) {
  .profile-wrap .profile-card {
    background: rgba(30, 41, 59, 0.7) !important;
  }
  
  .desktop-only-table {
    display: none !important;
  }
  
  .mobile-only-bids-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  /* Mobile Custom Bid Cards */
  .mobile-bid-card {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    padding: 0.85rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }
  .mobile-bid-card:hover {
    border-color: #475569 !important;
    background: rgba(30, 41, 59, 0.6) !important;
  }
  .mobile-bid-card.winner-unpaid {
    border-color: #10B981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
  }
  
  .mb-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex: 1 !important;
  }
  .mb-card-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
  }
  .mb-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
  }
  .mb-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    line-height: 1.25 !important;
  }
  .mb-card-sub {
    font-size: 0.72rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  
  .mb-card-right {
    display: flex !important;
    gap: 0.85rem !important;
    text-align: right !important;
    flex-shrink: 0 !important;
  }
  .mb-card-yourbid, .mb-card-curbid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
  }
  .mb-card-yourbid .lbl, .mb-card-curbid .lbl {
    font-size: 0.62rem !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }
  .mb-card-yourbid .val {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #10B981 !important;
  }
  .mb-card-curbid .val {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
  }
  
  /* Segment Control for Status Filters */
  .my-bids-wrap .section-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .my-bids-wrap .section-header div {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    padding: 3px !important;
    border-radius: 99px !important;
    display: inline-flex !important;
    gap: 2px !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  .my-bids-wrap .section-header div a {
    flex: 1 !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 99px !important;
    padding: 6px 0 !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .my-bids-wrap .section-header div a.btn-primary {
    background: #10B981 !important;
    color: #0f172a !important;
  }
}

/* Desktop layout grid structure for split media & description elements */
@media (min-width: 1025px) {
  .auction-media-col {
    grid-column: 1;
    grid-row: 1;
  }
  .auction-sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .auction-desc-col {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0 !important; /* Managed by grid gap */
  }
}

/* ── Live Search Suggestions Dropdown ────────────────────────── */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background: #111827; /* Dark elevated card bg */
  border: 1px solid #374151;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-suggestions-dropdown.active {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #1f2937;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background-color: #1f2937;
}
.suggestion-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #374151;
}
.suggestion-info {
  flex: 1;
  min-width: 0;
}
.suggestion-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.suggestion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}
.suggestion-price {
  color: #10B981;
  font-weight: 700;
}
.suggestion-type {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 99px;
  text-transform: uppercase;
}
.suggestion-type.badge-standard {
  background: rgba(163, 230, 53, 0.15);
  color: #a3e635;
}
.suggestion-type.badge-lowest {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.suggestion-empty {
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
}
.suggestion-loading {
  padding: 1.25rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.suggestion-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(16, 185, 129, 0.25);
  border-top-color: #10B981;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

/* ── Card Status Corner Ribbon ────────────────────────────── */
.card-status-ribbon {
  position: absolute;
  bottom: 12px;
  right: -28px;
  color: #ffffff;
  width: 95px;
  text-align: center;
  transform: rotate(-45deg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.22rem 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  text-transform: uppercase;
  pointer-events: none;
}
.card-status-ribbon.ended {
  background: #ef4444;
}
.card-status-ribbon.live {
  background: #10B981;
}
.card-status-ribbon.upcoming {
  background: #f59e0b;
  color: #0f172a;
}
.card-status-ribbon .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse 1.2s infinite ease-in-out;
}
/* Deprecated legacy name mapped to ended for compatibility */
.card-ended-corner {
  position: absolute;
  bottom: 12px;
  right: -28px;
  background: #ef4444;
  color: #ffffff;
  width: 95px;
  text-align: center;
  transform: rotate(-45deg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.22rem 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Notification Dropdown ───────────────────────────────── */
.nav-notification {
  position: relative;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.nav-notification:hover {
  background: var(--bg-elevated);
  border-color: #334155;
}
.nav-notification .badge,
.mobile-nav-notification .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #10B981; /* Green */
  color: #0f172a;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 50%;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-card);
}
.notification-container-relative {
  position: relative;
}
.notification-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 320px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.22s ease-out;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #334155;
  background: #0f172a;
}
.notification-dropdown-header span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}
.mark-all-read-btn {
  background: none;
  border: none;
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.mark-all-read-btn:hover {
  text-decoration: underline;
}
.notification-dropdown-list {
  max-height: 340px;
  overflow-y: auto;
}
.notification-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #334155;
  text-decoration: none;
  transition: background 0.2s;
  background: #1e293b;
}
.notification-item:hover {
  background: #24334a;
}
.notification-item.unread {
  background: #1a2f3f; /* Highlighted tint for unread alerts */
  border-left: 3px solid #10B981;
}
.notification-item-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
}
.notification-item-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}
.notification-item-time {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.2rem;
}
.notification-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}
.notification-loading {
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
}

