/* ===== VARIABLES ===== */
:root {
  --primary: #C9A84C;
  --primary-dark: #A8892E;
  --primary-light: #E0C472;
  --gold: #C9A84C;
  --gold-light: #E0C472;
  --gold-dark: #9A7A28;

  /* Warm cream backgrounds */
  --bg:    #F5EFE2;
  --bg2:   #EDE5D2;
  --bg3:   #E5DBCA;

  /* Cards: dark like reference buttons */
  --card:       #1E1C18;
  --card2:      #2A2720;
  --card-light: #FFFFFF;
  --card-warm:  #FBF6EE;

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.1);

  /* Text */
  --text:        #FFFFFF;
  --text-muted:  rgba(255,255,255,0.5);
  --text-light:  rgba(255,255,255,0.8);
  --text-dark:   #1C1A14;
  --text-dark-m: #6B5F45;

  /* Semantic */
  --success: #4CAF7D;
  --danger:  #E05252;
  --warning: #E8A020;
  --info:    #4A90D9;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-gold: 0 0 24px rgba(201,168,76,0.35);
  --transition: 0.22s ease;
}

/* ===== RESET ===== */
*, *::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-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ===== UTILS ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted   { color: var(--text-dark-m); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-2        { gap: 12px; }
.gap-3        { gap: 20px; }
.flex-wrap    { flex-wrap: wrap; }
.hidden       { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: #1C1A14;
}
.btn-gold:hover { background: var(--gold-light); color: #1C1A14; box-shadow: var(--shadow-gold); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: #1C1A14; }

.btn-primary { background: var(--card); color: #fff; }
.btn-primary:hover { background: var(--card2); color: #fff; box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover  { background: #c93c3c; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #3a9a63; color: #fff; }

.btn-sm  { padding: 6px 16px;  font-size: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon  { padding: 10px; border-radius: 50%; }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ===== NAVBAR — dark charcoal like reference ===== */
.navbar {
  background: #1E1C18;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.nav-logo i { color: var(--gold); font-size: 22px; }
.nav-logo:hover { color: var(--gold-light); }

.nav-search { flex: 1; max-width: 380px; position: relative; }
.nav-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.nav-search input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 9px 16px 9px 40px;
  border-radius: 50px;
  font-size: 13px;
  transition: var(--transition);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.35); }
.nav-search input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 50px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201,168,76,0.12); }
.nav-notif { position: relative; }

.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 5px 13px 5px 5px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}
.nav-user-btn:hover { border-color: var(--gold); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.nav-avatar-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #1C1A14;
}
.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #1E1C18;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-user-menu:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: var(--transition);
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
.nav-dropdown a i { width: 16px; color: rgba(255,255,255,0.35); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 8px; }
.mobile-nav { display: none; flex-direction: column; background: #1E1C18; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a { padding: 14px 20px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav.open { display: flex; }

/* ===== HERO — dark with cream contrast ===== */
.hero {
  background: #1E1C18;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  top: -150px;
  right: -80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  bottom: -60px;
  left: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #FFFFFF;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.hero-stat-num { font-size: 30px; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.45); }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.section-title span { color: var(--gold); }

/* ===== CATEGORY BAR ===== */
.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: 50px;
  color: var(--text-dark-m);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--card);
  border-color: var(--card);
  color: var(--gold);
  box-shadow: var(--shadow);
}

/* ===== LOT CARDS — dark like reference ===== */
.lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
}
.lot-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.lot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  border-color: rgba(201,168,76,0.3);
}
.lot-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #2A2720;
}
.lot-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lot-card:hover .lot-card-img img { transform: scale(1.05); }
.lot-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.lot-card-badge.ending { background: var(--warning); color: #1C1A14; }
.lot-card-badge.active { background: var(--success); }
.lot-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(30,28,24,0.75);
  border: none;
  color: rgba(255,255,255,0.5);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(6px);
}
.lot-fav-btn:hover, .lot-fav-btn.active { color: #FF6B6B; background: rgba(224,82,82,0.25); }
.lot-card-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(20,18,14,0.9));
  padding: 28px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.lot-card-timer i { color: var(--gold); }
.lot-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.lot-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.lot-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.lot-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lot-price-label { font-size: 11px; color: rgba(255,255,255,0.4); }
.lot-price-value { font-size: 20px; font-weight: 800; color: var(--gold); }
.lot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.seller-info { display: flex; align-items: center; gap: 6px; }
.star { color: var(--gold); font-size: 11px; }

/* ===== LOT DETAIL ===== */
.lot-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 76px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lot-sidebar {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow);
}
.lot-title-big { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.lot-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12px; color: rgba(255,255,255,0.45); }
.lot-meta span { display: flex; align-items: center; gap: 5px; }
.lot-timer-big {
  text-align: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 18px;
}
.lot-timer-label { font-size: 11px; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.lot-timer-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}
.lot-timer-value.urgent { color: var(--danger); animation: pulse 1s infinite; }
.lot-price-block { margin-bottom: 18px; }
.lot-price-now { font-size: 34px; font-weight: 800; color: var(--gold); }
.lot-price-start { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.bid-form { margin-bottom: 14px; }
.bid-input-wrap { position: relative; margin-bottom: 10px; }
.bid-input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 14px 55px 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition);
}
.bid-input-wrap input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }
.bid-currency { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.4); }
.bid-hint { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.antislot-warning {
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.35);
  color: var(--warning);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.bids-list { margin-top: 20px; }
.bid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.bid-item:last-child { border-bottom: none; }
.bid-item-user { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.65); }
.bid-item-amount { font-weight: 700; color: var(--gold); }
.bid-item-time { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ===== CARDS — light variant for forms/info areas ===== */
.card {
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
/* Dark card variant (used in lot detail description, bids list etc.) */
.card-dark {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
}
.card-dark .card-header {
  border-color: rgba(255,255,255,0.07);
  color: #fff;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%;
  background: var(--card-warm);
  border: 1.5px solid rgba(0,0,0,0.12);
  color: var(--text-dark);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-control::placeholder { color: rgba(0,0,0,0.3); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-dark-m); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}
.auth-card {
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo i { font-size: 36px; color: var(--gold); }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; color: var(--text-dark); }
.auth-subtitle { text-align: center; color: var(--text-dark-m); font-size: 13px; margin-bottom: 24px; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 18px 0;
  color: var(--text-dark-m);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-light);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.sidebar-nav {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow);
}
.sidebar-user {
  padding: 22px;
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.sidebar-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2.5px solid var(--gold); }
.sidebar-avatar-ph {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #1C1A14;
  margin: 0 auto 10px;
  border: 2.5px solid var(--gold);
}
.sidebar-username { font-weight: 700; font-size: 15px; color: #fff; }
.sidebar-role { font-size: 12px; color: rgba(255,255,255,0.4); }
.sidebar-rating { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; font-size: 12px; }
.sidebar-nav ul { padding: 8px; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 50px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}
.sidebar-nav li a:hover, .sidebar-nav li a.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.sidebar-nav li a i { width: 17px; color: rgba(255,255,255,0.3); }
.sidebar-nav li a.active i { color: var(--gold); }

/* ===== STATS CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.stat-icon.gold   { background: rgba(201,168,76,0.15); color: var(--gold); }
.stat-icon.purple { background: rgba(128,90,213,0.12); color: #805AD5; }
.stat-icon.green  { background: rgba(76,175,125,0.15); color: var(--success); }
.stat-icon.red    { background: rgba(224,82,82,0.15);  color: var(--danger); }
.stat-icon.blue   { background: rgba(74,144,217,0.15); color: var(--info); }
.stat-value { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.stat-label { font-size: 11px; color: var(--text-dark-m); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dark-m);
  border-bottom: 1.5px solid var(--border-light);
  white-space: nowrap;
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border-light); font-size: 13px; vertical-align: middle; color: var(--text-dark); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--card-warm); }

/* ===== STATUS BADGES ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.status-active    { background: rgba(76,175,125,0.15); color: var(--success); }
.status-active::before  { background: var(--success); }
.status-pending   { background: rgba(232,160,32,0.15); color: var(--warning); }
.status-pending::before { background: var(--warning); }
.status-ended     { background: rgba(0,0,0,0.07); color: #888; }
.status-ended::before   { background: #aaa; }
.status-cancelled { background: rgba(224,82,82,0.12); color: var(--danger); }
.status-cancelled::before { background: var(--danger); }

/* ===== IMAGE UPLOAD ===== */
.upload-zone {
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 38px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: var(--card-warm);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.upload-zone i { font-size: 34px; color: rgba(0,0,0,0.25); margin-bottom: 10px; }
.upload-zone p { color: var(--text-dark-m); font-size: 13px; }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-preview-item {
  position: relative;
  width: 88px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-light);
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove-img {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff; border: none;
  width: 18px; height: 18px; border-radius: 50%;
  cursor: pointer; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== NOTIFICATIONS ===== */
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: flex;
  gap: 14px;
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.notif-item.unread { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.04); }
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.notif-icon.bid    { background: rgba(201,168,76,0.15); color: var(--gold); }
.notif-icon.win    { background: rgba(76,175,125,0.15); color: var(--success); }
.notif-icon.sold   { background: rgba(74,144,217,0.15); color: var(--info); }
.notif-icon.outbid { background: rgba(224,82,82,0.12);  color: var(--danger); }
.notif-icon.end    { background: rgba(232,160,32,0.15); color: var(--warning); }
.notif-text { flex: 1; }
.notif-msg  { font-size: 13px; color: var(--text-dark); margin-bottom: 3px; }
.notif-time { font-size: 11px; color: var(--text-dark-m); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  color: var(--text-dark-m);
  font-size: 13px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.active { background: var(--card); border-color: var(--card); color: var(--gold); box-shadow: var(--shadow); }

/* ===== STARS ===== */
.stars { display: flex; gap: 3px; }
.stars i { color: rgba(0,0,0,0.15); font-size: 14px; cursor: pointer; transition: var(--transition); }
.stars i.active, .stars i:hover, .stars i.hover { color: var(--gold); }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; color: var(--text-dark-m); white-space: nowrap; }
.filter-select {
  background: var(--card-warm);
  border: 1.5px solid rgba(0,0,0,0.1);
  color: var(--text-dark);
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-results { margin-left: auto; font-size: 12px; color: var(--text-dark-m); }

/* ===== ADMIN ===== */
.admin-header {
  background: var(--card);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
  margin-bottom: 28px;
}
.admin-title { font-size: 26px; font-weight: 800; color: #fff; }
.admin-title span { color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat {
  background: var(--card-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.admin-stat i { font-size: 28px; margin-bottom: 10px; }
.admin-stat-value { font-size: 26px; font-weight: 800; color: var(--text-dark); }
.admin-stat-label { font-size: 12px; color: var(--text-dark-m); }

/* ===== SELLER CARD ===== */
.seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-warm);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
  border: 1.5px solid var(--border-light);
}
.seller-ava {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.seller-ava-ph {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #1C1A14;
  border: 2px solid var(--gold);
}

/* ===== ALERTS ===== */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px;
}
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(76,175,125,0.12); border: 1.5px solid rgba(76,175,125,0.3);  color: #2e7d52; }
.alert-danger  { background: rgba(224,82,82,0.10);  border: 1.5px solid rgba(224,82,82,0.3);   color: #b03030; }
.alert-warning { background: rgba(232,160,32,0.12); border: 1.5px solid rgba(232,160,32,0.35); color: #8a5a00; }
.alert-info    { background: rgba(74,144,217,0.10); border: 1.5px solid rgba(74,144,217,0.3);  color: #2255a0; }

/* ===== TOAST ===== */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 13px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #fff;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: slideInRight 0.3s ease;
  max-width: 300px;
}
.toast.success { border-color: rgba(76,175,125,0.4); }
.toast.success i { color: var(--success); }
.toast.error   { border-color: rgba(224,82,82,0.4); }
.toast.error i { color: var(--danger); }
.toast.info    { border-color: rgba(201,168,76,0.4); }
.toast.info i  { color: var(--gold); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dark-m);
}
.empty-state i { font-size: 50px; margin-bottom: 14px; opacity: 0.25; color: var(--text-dark); }
.empty-state h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 18px; }

/* ===== FOOTER ===== */
.footer {
  background: #1E1C18;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 0 0;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: rgba(255,255,255,0.9); }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,0.45); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.footer ul li a:hover { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; margin: 12px 0; max-width: 280px; line-height: 1.7; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 4px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 15px;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: #1C1A14; border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(255,255,255,0.3);
  font-size: 12px; margin-top: 36px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--bg2);
  border-bottom: 1.5px solid var(--border-light);
  padding: 32px 0;
  margin-bottom: 28px;
}
.page-header h1 { font-size: 28px; font-weight: 800; color: var(--text-dark); }
.page-header p { color: var(--text-dark-m); font-size: 14px; margin-top: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dark-m); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-dark-m); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 9px; }

/* ===== WINNER / ENDED BANNERS ===== */
.winner-banner {
  background: rgba(76,175,125,0.1);
  border: 1.5px solid rgba(76,175,125,0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.winner-banner i { font-size: 28px; color: var(--gold); }
.winner-banner h3 { font-size: 17px; color: var(--success); }
.winner-banner p { font-size: 12px; color: var(--text-dark-m); }
.ended-banner {
  background: var(--bg2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center; color: var(--text-dark-m); margin-bottom: 18px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.35s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .lot-detail-grid { grid-template-columns: 1fr; }
  .lot-sidebar { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links .nav-link:not(.nav-notif):not(.nav-user-menu) { display: none; }
  .nav-links .btn { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 44px 0 36px; }
  .lots-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lots-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 18px; }
  .auth-card { padding: 24px 16px; }
}
