/* ══════════════════════════════════════════
   AuctionGera — Main Stylesheet (v2)
   ══════════════════════════════════════════ */

:root {
  --primary:       #d4af37;
  --primary-dark:  #a07c2e;
  --primary-light: #f0d48a;
  --accent:        #1a2744;
  --accent-light:  #243358;
  --danger:        #e5484d;
  --success:       #3dd68c;
  --warning:       #d69e2e;
  --bg:            #0b1222;
  --bg-card:       #131d33;
  --bg-card2:      #1a2742;
  --text:          #eaedf4;
  --text-muted:    #8f9fba;
  --border:        #22304e;
  --radius:        12px;
  --radius-lg:     18px;
  --shadow:        0 4px 24px rgba(3,7,18,0.45);
  --shadow-lg:     0 20px 50px -12px rgba(3,7,18,0.7);
  --glow:          0 0 0 1px rgba(212,175,55,0.25), 0 12px 40px -8px rgba(212,175,55,0.12);
  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

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

::selection { background: rgba(212,175,55,0.28); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e4270; }

/* ── Icons ── */
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; vertical-align: -2px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 34px; height: 34px; }

/* ── Typography ── */
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════ NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,18,34,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -12px rgba(3,7,18,0.8);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text) !important;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.nav-logo strong { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-card2); }
.nav-admin { color: var(--primary) !important; }

.nav-user {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle .icon { width: 24px; height: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #e2bd54, var(--primary) 45%, #b8933a);
  color: #191204;
  box-shadow: 0 2px 12px -2px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f0d48a, #e2bd54 45%, var(--primary));
  color: #191204;
  box-shadow: 0 6px 22px -4px rgba(212,175,55,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.btn-outline    { background: transparent; color: var(--primary); border: 1.5px solid rgba(212,175,55,0.55); }
.btn-outline:hover { background: rgba(212,175,55,0.1); color: var(--primary-light); border-color: var(--primary); }
.btn-danger     { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c53030; color: #fff; }
.btn-success    { background: var(--success); color: #06281a; }
.btn-success:hover { background: #2f855a; color: #fff; }
.btn-ghost      { background: var(--bg-card2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-sm         { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg         { padding: 15px 38px; font-size: 1rem; }
.btn-full       { width: 100%; justify-content: center; }

.btn-primary-sm {
  background: linear-gradient(180deg, #e2bd54, var(--primary) 45%, #b8933a);
  color: #191204;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px -2px rgba(212,175,55,0.4);
  transition: all var(--transition);
}
.btn-primary-sm:hover { background: linear-gradient(180deg, #f0d48a, #e2bd54); color: #191204; transform: translateY(-1px); }

.btn-outline-sm {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════ FLASH */
.flash-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: slideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.flash-success { background: rgba(20,55,38,0.92); border: 1px solid rgba(61,214,140,0.5); color: #6ee7a8; }
.flash-danger  { background: rgba(61,26,26,0.92); border: 1px solid rgba(229,72,77,0.5);  color: #fc8181; }
.flash-info    { background: rgba(26,45,61,0.92); border: 1px solid rgba(49,130,206,0.5); color: #63b3ed; }
.flash-warning { background: rgba(61,46,26,0.92); border: 1px solid rgba(214,158,46,0.5); color: #fbd38d; }
.flash button  { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.1rem; opacity: 0.7; }
.flash button:hover { opacity: 1; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════ HERO */
.hero {
  background: linear-gradient(160deg, #0b1222 0%, #16213c 55%, #101a30 100%);
  padding: 108px 24px 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% -5%, rgba(212,175,55,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 85% 105%, rgba(212,175,55,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 8% 90%, rgba(49,90,180,0.1) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143,159,186,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,159,186,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 75%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--primary);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.08;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--primary-light), var(--primary) 60%, #b8933a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.12rem;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(34,48,78,0.8);
}
.stat-item { text-align: center; padding: 0 44px; }
.stat-item + .stat-item { border-left: 1px solid rgba(34,48,78,0.8); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); display: block; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label  { font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* ══════════════════════════════════════════ TRUST STRIP / HOW IT WORKS */
.trust-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-item .icon { color: var(--primary); width: 20px; height: 20px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.how-card:hover { border-color: rgba(212,175,55,0.35); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.how-step {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(212,175,55,0.1);
  line-height: 1;
}
.how-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.04));
  border: 1px solid rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.how-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.how-text  { font-size: 0.92rem; color: var(--text-muted); }

/* ══════════════════════════════════════════ SECTIONS */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title .icon { color: var(--primary); width: 24px; height: 24px; }

.section-badge {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3dd68c;
  display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0.65); }
  50%       { box-shadow: 0 0 0 7px rgba(61,214,140,0); }
}

/* ══════════════════════════════════════════ AUCTION CARDS */
.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.auction-card {
  background: linear-gradient(180deg, var(--bg-card), #111a2f);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.auction-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--glow);
  border-color: rgba(212,175,55,0.4);
}

.card-image {
  height: 220px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(212,175,55,0.08), transparent 60%),
    linear-gradient(135deg, var(--bg-card2) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(11,18,34,0.55));
  pointer-events: none;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.auction-card:hover .card-image img { transform: scale(1.06); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(143,159,186,0.55);
}
.card-image-placeholder .icon-xl { width: 52px; height: 52px; }
.card-image-placeholder span { font-size: 0.85rem; font-family: 'Inter', sans-serif; }

.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.status-live     { background: rgba(15,50,34,0.75);  color: #6ee7a8; border: 1px solid rgba(61,214,140,0.45); }
.status-upcoming { background: rgba(18,39,58,0.75);  color: #63b3ed; border: 1px solid rgba(99,179,237,0.45); }
.status-ended    { background: rgba(28,38,58,0.75);  color: #8f9fba; border: 1px solid rgba(143,159,186,0.35); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.card-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-meta-item .icon { width: 14px; height: 14px; color: rgba(212,175,55,0.75); }

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: rgba(26,39,66,0.55);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.price-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-amount { font-size: 1.45rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.bids-count   { font-size: 0.8rem; color: var(--text-muted); text-align: right; }
.bids-number  { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text); }

.card-timer {
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--primary);
}
.card-timer .icon { width: 15px; height: 15px; }
.timer-value { font-variant-numeric: tabular-nums; font-weight: 700; }

.card-body .btn-full { margin-top: auto; }

/* ══════════════════════════════════════════ COUNTDOWN */
.countdown-grid {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.cd-unit {
  text-align: center;
  background: rgba(26,39,66,0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 58px;
}
.cd-num  { font-size: 1.6rem; font-weight: 800; color: var(--primary); display: block; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-lbl  { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cd-sep  { font-size: 1.6rem; font-weight: 800; color: rgba(143,159,186,0.4); margin-bottom: 12px; }

/* ══════════════════════════════════════════ AUCTION DETAIL */
.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(212,175,55,0.08), transparent 60%),
    linear-gradient(135deg, var(--bg-card2) 0%, var(--accent) 100%);
  border: 1px solid var(--border);
  height: 420px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image-placeholder { color: rgba(143,159,186,0.5); }
.detail-image-placeholder .icon-xl { width: 84px; height: 84px; }

.detail-title { color: var(--text); margin-bottom: 12px; font-size: 2rem; }
.detail-status { margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.detail-status .status-badge { position: static; }

.detail-specs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.spec-item {}
.spec-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.spec-value { font-weight: 600; color: var(--text); }

.detail-description {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Bid Panel */
.bid-panel {
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, var(--bg-card), #111a2f);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.bid-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bid-panel-title .icon { color: var(--primary); width: 22px; height: 22px; }

.current-price-display {
  background: rgba(26,39,66,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.cpd-label  { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.cpd-price  { font-size: 2.8rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 0 32px rgba(212,175,55,0.3); }
.cpd-bids   { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

.bid-timer {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(26,39,66,0.55);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.bid-timer-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }

.bid-form {}
.bid-input-group {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}
.bid-prefix {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.bid-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color var(--transition);
}
.bid-input:focus { border-color: var(--primary); }
.bid-submit {
  background: linear-gradient(180deg, #e2bd54, var(--primary) 45%, #b8933a);
  color: #191204;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.bid-submit:hover { background: linear-gradient(180deg, #f0d48a, #e2bd54); }
.bid-submit:disabled { background: var(--accent-light); color: var(--text-muted); cursor: not-allowed; }

.bid-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.bid-hint strong { color: var(--primary); }

/* Quick Bid Buttons */
.quick-bids {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.quick-bid-btn {
  flex: 1;
  min-width: 70px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: all var(--transition);
}
.quick-bid-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(212,175,55,0.08); transform: translateY(-1px); }

.bid-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 12px;
  display: none;
}
.bid-message.success { background: rgba(20,55,38,0.9); border: 1px solid rgba(61,214,140,0.5); color: #6ee7a8; display: block; }
.bid-message.error   { background: rgba(61,26,26,0.9); border: 1px solid rgba(229,72,77,0.5);  color: #fc8181; display: block; }

/* Bid History */
.bid-history {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.bid-history-title { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }

.bid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.bid-item:last-child { border-bottom: none; }
.bid-item-user { color: var(--text); font-weight: 600; }
.bid-item-amount { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.bid-item-time   { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.bid-item-top    { background: rgba(212,175,55,0.07); padding: 10px 12px; border-radius: 8px; margin-bottom: 2px; border-bottom: none; }

/* ══════════════════════════════════════════ FORMS */
.form-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}
.form-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.form-card {
  background: linear-gradient(180deg, var(--bg-card), #111a2f);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-card-header { text-align: center; margin-bottom: 32px; }
.form-card-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.form-card-logo .icon-xl { width: 30px; height: 30px; }
.form-card-title { color: var(--text); font-size: 1.8rem; }
.form-card-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.form-control::placeholder { color: rgba(143,159,186,0.6); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.form-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }

/* ══════════════════════════════════════════ ADMIN */
.admin-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title { color: var(--text); }
.admin-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: rgba(212,175,55,0.35); transform: translateY(-2px); }
.stat-card-icon  { font-size: 2rem; margin-bottom: 12px; }
.stat-card-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.admin-table-header h3 { color: var(--text); }

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: var(--bg-card2);
  padding: 12px 20px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.table-actions { display: flex; gap: 8px; }

/* ══════════════════════════════════════════ EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-muted);
  background: rgba(19,29,51,0.4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-icon  { color: rgba(143,159,186,0.45); margin-bottom: 16px; }
.empty-icon .icon-xl { width: 56px; height: 56px; }
.empty-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ══════════════════════════════════════════ WINNER BANNER */
.winner-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.07));
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.winner-banner h3 { color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.winner-banner p  { color: var(--text-muted); font-size: 0.9rem; }

/* ══════════════════════════════════════════ FOOTER */
.footer {
  background: #0a101f;
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  margin-top: auto;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 11px; font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer-logo strong { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; max-width: 340px; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 0.76rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-copy { color: rgba(143,159,186,0.7); font-size: 0.82rem; text-align: center; }

/* ══════════════════════════════════════════ RESPONSIVE */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .bid-panel { position: static; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links .btn-primary-sm, .nav-links .btn-outline-sm { text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 72px 20px 64px; }
  .hero-stats { flex-wrap: wrap; }
  .stat-item { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .flash-container { left: 16px; right: 16px; }
  .form-card { padding: 32px 24px; }
}

/* ══════════════════════════════════════════ UTILS */
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-admin { background: rgba(212,175,55,0.15); color: var(--primary); border: 1px solid rgba(212,175,55,0.3); }

/* Auction ended overlay */
.auction-ended .bid-form { opacity: 0.5; pointer-events: none; }
