/* ==========================================================================
   ENKRONALOPPIS.SE - MODERN DARK DESIGN SYSTEM
   Sveriges loppis där allt startar på 1 kr utan reservationspris!
   ========================================================================== */

:root {
  /* Core Gold / Amber Accents */
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: rgba(245, 158, 11, 0.15);
  --primary-dark: #fbbf24;
  
  --secondary: #0f172a;
  --secondary-hover: #1e293b;
  
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.15);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  /* Modern Dark Theme Colors (Default) */
  --bg-main: #090d16;
  --bg-card: #121a2d;
  --bg-subtle: #1a243b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.4);
  
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.7);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Override (Toggleable) */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-announcement {
  background: linear-gradient(90deg, #b45309, #f59e0b, #d97706, #b45309);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  color: #000;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 9px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

.top-announcement span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: rgba(18, 26, 45, 0.85);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #000;
  font-weight: 900;
  font-size: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: rotate(-3deg);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-badge {
  transform: rotate(0deg) scale(1.06);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Search Bar */
.search-container {
  flex: 2 1 500px;
  max-width: 680px;
  min-width: 260px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 18px;
  transition: all var(--transition-fast);
  width: 100%;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: rgba(26, 36, 59, 0.95);
}

.search-input-wrapper input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  padding: 6px 8px;
  text-overflow: ellipsis;
}

.search-input-wrapper input::placeholder {
  color: rgba(248, 250, 252, 0.65);
  font-weight: 500;
}

.search-btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* Navigation & Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #253352;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   HERO & HIGHLIGHT SECTION
   ========================================================================== */

.hero-banner {
  background: linear-gradient(135deg, #131b2e 0%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 42px 0;
  border-radius: var(--radius-lg);
  margin: 24px 0 36px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #fde68a 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 90%;
}

.hero-features {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-feature-pill svg {
  color: var(--primary);
}

/* Spotlight Item Card in Hero */
.hero-spotlight {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-spotlight:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.spotlight-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent-red);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.spotlight-img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.spotlight-info {
  flex: 1;
}

.spotlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.spotlight-bid {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.spotlight-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(239, 68, 68, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   CATEGORIES BAR
   ========================================================================== */

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 20px 2px;
  scrollbar-width: none;
}

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

.category-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #000000;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   FILTER & SORT TOOLBAR
   ========================================================================== */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.toolbar-stats {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.toolbar-stats strong {
  color: var(--primary);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.sort-select {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   AUCTIONS GRID & CARDS
   ========================================================================== */

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

.auction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.auction-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* Card Header Image */
.card-media {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  background: var(--bg-subtle);
  overflow: hidden;
}

.card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.auction-card:hover .card-media img {
  transform: scale(1.06);
}

/* Badges on card media */
.card-badge-start {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 26, 45, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.card-fav-btn:hover, .card-fav-btn.active {
  background: var(--bg-card);
  color: var(--accent-red);
  transform: scale(1.15);
}

.card-timer-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-timer-pill.urgent {
  background: var(--accent-red);
  border-color: var(--accent-red);
  animation: pulseTimer 1.5s infinite;
}

@keyframes pulseTimer {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Card Body */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.card-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-price-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
}

.card-bids-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

/* Quick Bid Button */
.btn-quick-bid {
  background: var(--accent-green-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 800;
}

.btn-quick-bid:hover {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
}

/* ==========================================================================
   MODALS (AUCTION DETAIL, CREATE LISTING, DASHBOARD, CONTACT, SWISH)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-bounce);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Auction Detail Layout inside Modal */
.modal-auction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}

@media (max-width: 768px) {
  .modal-auction-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.auction-detail-media {
  width: 100%;
}

.main-detail-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.auction-detail-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.bidding-box {
  background: var(--bg-subtle);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.bidding-box-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.current-bid-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.current-bid-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.bidding-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-btn {
  flex: 1;
  padding: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
}

.preset-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.custom-bid-form {
  display: flex;
  gap: 8px;
}

.custom-bid-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  background: var(--bg-card);
  color: var(--text-main);
}

/* Form controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-body {
  padding: 28px;
}

/* One kr mandatory badge */
.one-kr-mandatory-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Image Upload Dropzone & Previews */
.upload-dropzone {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.08);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.preview-thumb-item {
  position: relative;
  width: 100%;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
}

.preview-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Dashboard Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 28px;
  background: var(--bg-subtle);
}

.tab-btn {
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-card);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Bid History List */
.bid-history-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.bid-history-list {
  list-style: none;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.bid-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

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

.bid-item-user {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bid-item-amount {
  font-weight: 800;
  color: var(--accent-green);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid var(--primary);
  animation: slideInLeft 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  max-width: 360px;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #090d16;
  color: #94a3b8;
  padding: 50px 0 30px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
}

/* Header Responsiveness */
@media (max-width: 1080px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex: 1 0 100%;
    margin-top: 6px;
  }
}
