/* ============================================================================
   CAPITAL CAR CLASSIC - MOBILE FIRST RESPONSIVE DESIGN
   ============================================================================ */

:root {
  --primary: #17439c;
  --secondary: #de3153;
  --text: #10233b;
  --muted: #64718a;
  --border: #d7e2ee;
  --surface: #ffffff;
  --surface-soft: #f7f9fe;
  --background: #edf3fb;
  --shadow: rgba(20, 46, 83, 0.12);
  --shadow-strong: rgba(20, 46, 83, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:active { opacity: 0.8; }

/* ============================================================================
   CONTAINER & SPACING - MOBILE FIRST
   ============================================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

@media (min-width: 640px) {
  .container { padding: 0 12px; }
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ============================================================================
   HEADER & NAVIGATION - MOBILE OPTIMIZED
   ============================================================================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topbar {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
  display: none;
}

@media (min-width: 1024px) {
  .topbar { display: block; }
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left, .topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar a {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .brand { font-size: 1.6rem; }
}

/* MOBILE MENU TOGGLE */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.nav-toggle:active {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* MAIN NAVIGATION */
.main-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  z-index: 999;
  flex-direction: column;
  padding: 80px 0 20px;
  gap: 0;
  overflow-y: auto;
  box-shadow: 8px 0 24px rgba(59, 130, 246, 0.2);
}

.main-nav.active {
  display: flex;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Backdrop overlay when menu is open */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 998;
  transition: background 0.3s ease;
  pointer-events: none;
}

body.nav-open::before {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.main-nav a {
  padding: 18px 24px;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
  font-size: 1.05rem;
  color: white;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: white;
  padding-left: 28px;
}

.main-nav a:active,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: #fff;
  padding-left: 28px;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    flex-direction: row;
    gap: 30px;
    overflow-y: visible !important;
  }
  .main-nav a {
    background: transparent !important;
    padding: 8px 0;
  }
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ============================================================================
   BUTTONS - TOUCH FRIENDLY
   ============================================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.button-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* ============================================================================
   SEARCH HERO - MOBILE FIRST
   ============================================================================ */

.search-hero-big {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../../bg.png') center/cover no-repeat;
  padding: 24px 0;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .search-hero-big {
    padding: 32px 0;
    margin-bottom: 40px;
  }
}

.search-hero-big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.search-form-giant {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@media (min-width: 640px) {
  .search-form-giant {
    flex-direction: row;
    gap: 10px;
    border-radius: 50px;
    padding: 8px 8px;
  }
}

@media (max-width: 768px) {
  .search-form-giant {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

.search-giant {
  flex: 1;
  min-height: 44px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
}

@media (min-width: 640px) {
  .search-giant {
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}

.search-giant::placeholder {
  color: var(--muted);
}

.search-giant-btn {
  min-height: 44px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0e4dc9, #1a6bff);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .search-giant-btn {
    border-radius: 50px;
    padding: 14px 32px;
    min-width: 120px;
  }
}

.search-giant-btn:active {
  opacity: 0.95;
  transform: scale(0.98);
}

/* ============================================================================
   FEATURED CARS SECTION - MOBILE FIRST
   ============================================================================ */

.featured-strip {
  padding: 24px 0;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .featured-strip {
    padding: 40px 0;
    margin-bottom: 48px;
  }
}

.featured-strip .page-header h2 {
  margin: 0 0 20px;
  font-size: 1.6rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .featured-strip .page-header h2 {
    font-size: 2rem;
  }
}

.featured-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.featured-item {
  flex: 0 0 calc(100vw - 48px);
  max-width: 200px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .featured-item {
    flex: 0 0 180px;
    max-width: 220px;
  }
}

@media (min-width: 1024px) {
  .featured-item {
    flex: 0 0 200px;
    max-width: 260px;
  }
}

.featured-item:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.featured-item a {
  display: block;
  height: 100%;
}

.feat-thumb {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  background: var(--surface-soft) !important;
  overflow: hidden !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
}

.feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-item:active .feat-thumb img {
  transform: scale(1.05);
}

.feat-body {
  padding: 12px;
}

.feat-body h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-body .meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.price {
  font-weight: 900;
  color: var(--primary);
  font-size: 1rem;
}

/* ============================================================================
   LISTINGS PAGE - MOBILE FIRST
   ============================================================================ */

.listings-hero {
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .listings-hero {
    padding: 28px 0;
    margin-bottom: 28px;
  }
}

.listings-hero h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .listings-hero h1 {
    font-size: 2.2rem;
  }
}

.listings-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.listings-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .listings-container {
    grid-template-columns: 250px 1fr;
    gap: 32px;
  }
}

.listings-sidebar {
  order: 2;
}

@media (min-width: 1024px) {
  .listings-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    order: 1;
  }
}

.filter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .filter-box {
    border-radius: 16px;
    padding: 20px;
  }
}

.filter-box h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .filter-box h3 {
    font-size: 1.3rem;
  }
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  opacity: 0.7;
}

.filter-input,
.filter-select {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,67,156,0.1);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .listing-card {
    border-radius: 14px;
  }
}

.listing-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.listing-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.listing-card:active .listing-image img {
  transform: scale(1.05);
}

.price-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--primary), #1e67c4);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  .price-badge {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
  }
}

.listing-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

@media (min-width: 768px) {
  .listing-content {
    padding: 16px;
    gap: 12px;
  }
}

.listing-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .listing-title {
    font-size: 1.05rem;
  }
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .listing-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

.meta-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

/* ============================================================================
   FOOTER - MOBILE FIRST
   ============================================================================ */

.site-footer {
  background: linear-gradient(180deg, #07102b 0%, #121f48 100%);
  color: #e8f0ff;
  margin-top: 40px;
  padding: 0;
}

@media (min-width: 768px) {
  .site-footer {
    margin-top: 60px;
  }
}

.footer-main {
  padding: 24px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .footer-main {
    padding: 40px 0 24px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }
}

.footer-column h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px;
  padding: 16px !important;
  backdrop-filter: blur(10px);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-column a:active {
  color: white;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    gap: 10px;
  }
}

.newsletter-form input {
  flex: 1;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
}

.newsletter-form button {
  min-height: 42px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0e4dc9, #1a6bff);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.social-icon:active {
  background: var(--primary);
  transform: scale(0.95);
}

/* ============================================================================
   FORMS & INPUTS
   ============================================================================ */

.form-group {
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .form-group {
    margin-bottom: 18px;
  }
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media (min-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    border-radius: 12px;
    padding: 12px 16px;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,67,156,0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ============================================================================
   ADMIN DASHBOARD - MODERN & BEAUTIFUL
   ============================================================================ */

.admin-shell {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

@media (min-width: 1024px) {
  .admin-shell {
    flex-direction: row;
    gap: 0;
  }
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--primary) 0%, #0f2a5c 100%);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 24px 16px;
  box-shadow: 4px 0 12px rgba(15, 23, 42, 0.15);
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
  z-index: 50;
}

.admin-sidebar.mobile-open {
  max-height: 600px;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    width: 280px;
    max-height: 100%;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
  }
}

.admin-panel-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  padding: 14px;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 16px;
  word-break: break-word;
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255,255,255,0.85);
  border: 2px solid transparent;
  text-decoration: none;
}

.admin-nav a:hover {
  background: rgba(255,255,255,0.14);
  color: white;
  transform: translateX(4px);
}

.admin-nav a:active,
.admin-nav a.active {
  background: rgba(255,255,255,0.25);
  color: white;
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.admin-sidebar-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(255,255,255,0.1);
}

.admin-sidebar-footer p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.admin-sidebar-footer .button {
  width: 100%;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  font-weight: 600;
}

.admin-sidebar-footer .button:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
}

.admin-main {
  background: transparent;
  padding: 28px 16px;
  flex: 1;
  overflow-y: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .admin-main {
    padding: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .admin-main {
    padding: 36px 32px;
    flex: 1;
    overflow-y: auto;
  }
}

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.metric-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.metric-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

@media (min-width: 768px) {
  .metric-card {
    min-height: 160px;
    border-radius: 18px;
    padding: 28px;
  }
}

.metric-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .metric-value {
    font-size: 2.4rem;
    margin-bottom: 14px;
  }
}

.metric-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

/* ============================================================================
   ADMIN LISTING CARD
   ============================================================================ */

.admin-listing-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-listing-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  border-color: var(--primary-light);
}

@media (min-width: 768px) {
  .admin-listing-card {
    grid-template-columns: 200px 1fr;
    gap: 20px;
    border-radius: 16px;
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .admin-listing-card {
    grid-template-columns: 300px 1fr;
    gap: 26px;
    padding: 24px;
  }
}

.admin-listing-feed {
  display: grid;
  gap: 24px;
}

.admin-listing-card {
  overflow: hidden;
}

.admin-listing-card .listing-image {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  background: #eaf3ff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

@media (min-width: 768px) {
  .listing-image {
    height: 150px;
  }
}

@media (min-width: 1024px) {
  .admin-listing-card .listing-image {
    min-height: 240px;
  }
}

.admin-listing-card .listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.listing-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.listing-headline h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .listing-headline h3 {
    font-size: 1.2rem;
  }
}

.listing-meta-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .listing-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

.listing-info-item {
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 0.85rem;
}

.listing-info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.listing-info-item strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

/* ============================================================================
   TABLES
   ============================================================================ */

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .admin-table-wrap {
    border-radius: 14px;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 600px;
}

.admin-table th {
  background: var(--surface-soft);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .admin-table th {
    padding: 12px 14px;
  }
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .admin-table td {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

.admin-table tr:hover {
  background: var(--surface-soft);
}

/* ============================================================================
   STATUS PILLS
   ============================================================================ */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(23,67,156,0.1);
  color: var(--primary);
  white-space: nowrap;
}

.status-pill.active {
  background: rgba(64,196,255,0.15);
  color: #0d6efd;
}

.status-pill.sold {
  background: rgba(102,187,106,0.15);
  color: #3d8b44;
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
}

.alert-success {
  background: rgba(102,187,106,0.1);
  color: #3d8b44;
  border: 1px solid rgba(102,187,106,0.3);
}

.alert-error {
  background: rgba(220,53,69,0.1);
  color: #922b34;
  border: 1px solid rgba(220,53,69,0.3);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

main {
  padding: 0 0 24px;
}

@media (min-width: 768px) {
  main {
    padding: 0 0 40px;
  }
}

.page-header {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .page-header {
    margin-bottom: 20px;
  }
}

.page-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .page-header h2 {
    font-size: 1.9rem;
  }
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface-soft);
  border: 2px dashed var(--border);
  border-radius: 12px;
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .empty-state {
    padding: 48px 24px;
    border-radius: 14px;
  }
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 800;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }
}

/* ============================================================================
   ADMIN MODERN SECTIONS
   ============================================================================ */

.admin-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
  .admin-card {
    border-radius: 18px;
    padding: 32px;
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f3f4f6;
}

.page-header div {
  flex: 1;
}

.page-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .page-header h2 {
    font-size: 2rem;
  }
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.status-pill {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* DASHBOARD HERO */
.dashboard-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  padding: 32px 24px;
  color: white;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

@media (min-width: 768px) {
  .dashboard-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 36px;
  }
}

.hero-summary h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .hero-summary h1 {
    font-size: 2.2rem;
  }
}

.hero-summary p {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-weight: 500;
}

.hero-chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .hero-highlights {
    gap: 16px;
  }
}

.hero-highlight {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-highlight {
    padding: 20px 16px;
  }
}

.hero-highlight span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-highlight strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

/* CHART PANELS */
.chart-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .chart-panel {
    grid-template-columns: 2fr 1fr;
  }
}

.chart-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.chart-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chart-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ADMIN TABLE */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}

.admin-table tr:hover {
  background: #f8fafc;
}

/* ADMIN TOOLBAR */
.admin-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.admin-toolbar .button {
  flex: 1;
  min-width: 140px;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-toolbar .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* BAR VISUALIZATION */
.bar-visual {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  min-width: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bar-track {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bar-value {
  min-width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ADMIN SETTINGS PANEL */
.admin-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-tip-card {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
}

.admin-tip-card h3 {
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 1rem;
}

.admin-settings-summary {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.admin-settings-summary strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.admin-settings-summary p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

/* RECENT LIST */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.recent-list li {
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.recent-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.recent-list span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
