/* assets/css/style.css */

/* --- Import Google Font (Inter & Outfit) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* --- Reset & Variables --- */
:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --bg-main: #0a0d16;
  --bg-card: rgba(22, 28, 45, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-nav: rgba(10, 13, 22, 0.8);
  
  --color-primary: #3b82f6; /* Electric Blue */
  --color-primary-hover: #2563eb;
  --color-accent: #f59e0b; /* Cyber Gold */
  --color-accent-hover: #d97706;
  --color-success: #10b981; /* Emerald */
  --color-danger: #ef4444; /* Neon Red */
  --color-text-main: #f3f4f6; /* White-Grey */
  --color-text-muted: #9ca3af; /* Muted Grey */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-focus: rgba(59, 130, 246, 0.5);
  
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);
  --shadow-glow-gold: 0 0 15px rgba(245, 158, 11, 0.3);
  --shadow-glow-red: 0 0 15px rgba(239, 68, 68, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--color-primary-hover);
}

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

/* --- Navigation Header --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
}

header.site-header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header .logo a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header.site-header .logo a span {
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}

header.site-header nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

header.site-header nav a {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 15px;
}

header.site-header nav a:hover {
  color: var(--color-primary);
}

header.site-header nav .btn-nav {
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header.site-header nav .btn-nav:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

header.site-header nav .btn-admin {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-accent);
}
header.site-header nav .btn-admin:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-main);
  box-shadow: var(--shadow-glow-gold);
}

/* --- Buttons & Cards --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background-color: var(--color-accent);
  color: #0b0f19;
}
.btn-secondary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}
.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  padding: 24px;
  transition: all 0.3s ease;
}

.card-hover:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- Hero Banner & Large Search --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(10, 13, 22, 0.4), rgba(10, 13, 22, 0.95)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Prominent search inside Hero */
.hero-search-wrapper {
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(22, 28, 45, 0.6);
  padding: 8px;
}

.hero-search-wrapper form {
  display: flex;
  gap: 8px;
}

.hero-search-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: white;
  font-size: 16px;
}
.hero-search-input:focus {
  outline: none;
}

.hero-search-btn {
  padding: 12px 28px;
  border-radius: var(--radius-lg);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--color-primary);
}

.stat-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --- Category Pill Row --- */
.category-filter-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.category-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: rgba(22, 28, 45, 0.4);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover, .category-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* --- Filter Bar --- */
.filter-bar {
  margin-bottom: 40px;
}

.filter-bar form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-control {
  background-color: rgba(10, 13, 22, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background-color: rgba(10, 13, 22, 0.9);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* --- Captcha row --- */
.captcha-container {
  display: flex;
  gap: 12px;
  align-items: center;
}
.captcha-img {
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

/* --- Trending / Hot Auctions Header --- */
.trending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.trending-header h2 {
  font-size: 28px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #ffffff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Highlighted glowing card for hot deals */
.card-trending {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-glow-gold), var(--shadow-main);
}
.card-trending:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- Grid List --- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.car-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.car-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background-color: rgba(0, 0, 0, 0.2);
}

.car-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-damage {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-danger);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.badge-title-status {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-category {
  position: absolute;
  bottom: 12px;
  left: 15px;
  background: rgba(10, 13, 22, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: white;
}

.car-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-card-header {
  margin-bottom: 12px;
}

.car-card-title {
  font-size: 20px;
  color: white;
  margin-bottom: 6px;
}

.car-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.spec-badge {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.car-card-bids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background-color: rgba(10, 13, 22, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.bid-info h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bid-info p {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
}

.current-bid-amount {
  color: var(--color-success);
}

.buy-now-amount {
  color: var(--color-accent);
}

.car-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.countdown-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.countdown-active {
  color: var(--color-accent);
}
.countdown-ended {
  color: var(--color-danger);
}

.btn-card-bid {
  padding: 8px 16px;
  font-size: 14px;
}

/* --- Car Details Page --- */
.car-detail-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.main-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail-item {
  width: 100px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.thumbnail-item.active, .thumbnail-item:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

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

.specifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.spec-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.spec-value {
  color: white;
  font-weight: 600;
}

.description-section {
  margin-top: 40px;
}

.description-section h3 {
  margin-bottom: 12px;
}

/* Bidding Interaction Area */
.bidding-box {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bid-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bid-status-pill.winning {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bid-status-pill.outbid {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bidding-form-container {
  margin-top: 16px;
}

.bid-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.bid-currency-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 18px;
}

.bid-input {
  padding-left: 36px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}

.bid-minimum-text {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.buy-now-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.buy-now-divider::before, .buy-now-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.buy-now-divider:not(:empty)::before {
  margin-right: 12px;
}

.buy-now-divider:not(:empty)::after {
  margin-left: 12px;
}

/* Bid History Log (Vertical Timeline) */
.bid-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--color-border);
  margin-top: 10px;
}
.bid-timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.bid-timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 2px solid var(--color-border);
}
.bid-timeline-item.active::before {
  background-color: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}
.bid-timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.bid-timeline-amount {
  font-weight: 700;
  font-family: var(--font-display);
  color: white;
}
.bid-timeline-item.active .bid-timeline-amount {
  color: var(--color-success);
  font-size: 16px;
}

/* --- Auth Pages --- */
.auth-layout {
  max-width: 440px;
  margin: 60px auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--color-text-muted);
}

.auth-layout form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- Alert Messages --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.25);
}

/* --- User Dashboard --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-menu a.active, .sidebar-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-menu a.active {
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table.table th, table.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

table.table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 13px;
  text-transform: uppercase;
}

table.table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.watchlist-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.watchlist-toggle-btn.watched {
  color: #f43f5e;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Floating Live Chat Widget --- */
.support-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chat-icon-btn:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 350px;
  height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: rgba(22, 28, 45, 0.95);
}

.chat-window-header {
  padding: 16px;
  background-color: rgba(10, 13, 22, 0.6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close-x {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
}

.chat-window-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 13, 22, 0.2);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  word-wrap: break-word;
}

.msg-user {
  align-self: flex-end;
}
.msg-user .msg-bubble {
  background-color: var(--color-primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.msg-support {
  align-self: flex-start;
}
.msg-support .msg-bubble {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--color-border);
}

.chat-window-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background-color: rgba(10, 13, 22, 0.4);
}

.chat-window-footer form {
  display: flex;
  gap: 8px;
}

/* --- Callback Request Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Admin Panel custom components --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.stat-card-title {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  color: white;
}

.admin-form {
  max-width: 800px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.image-upload-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preview-thumbnail {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.preview-thumbnail .btn-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Footer --- */
footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 20px;
  background-color: #06080f;
  margin-top: 80px;
}

footer.site-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

footer.site-footer p {
  color: var(--color-text-muted);
  font-size: 14px;
}
