/* ============================================
   LUXURY ASSET TRADING PLATFORM
   Mobile-first design with dark industrial aesthetic
   Inspired by Vacheron Constantin & Bring a Trailer
============================================ */

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark theme - industrial luxury */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-panel: #0d0d0d;
  
  /* Text colors */
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  
  /* Accent colors */
  --accent-gold: #c9a962;
  --accent-gold-dim: #8b7355;
  --accent-white: #ffffff;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  
  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-display: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-hero: 4000ms;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   HERO SECTION - Immersive Background Video
============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fallback poster image styling */
.hero-video video[poster] {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl);
  max-width: 600px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-slow) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-slow) 1s forwards;
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-slow) 1.5s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s var(--ease-slow) 2s forwards, bounce 2s infinite 3s;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTION STRUCTURE
============================================ */
.section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold-dim);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   PRODUCT GRID - Mobile Vertical Stack
============================================ */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0 var(--space-md);
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth);
}

.product-card:active {
  transform: scale(0.98);
  border-color: var(--accent-gold-dim);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

/* Image Carousel */
.product-image-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #111;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.carousel-indicators .indicator.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.product-card:active .carousel-slide.active {
  transform: scale(1.02);
}

.product-card:active .product-image img {
  transform: scale(1.02);
}

.product-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 1px;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.product-tag--hot {
  color: #e5c07b;
}

.product-tag--liquidity {
  color: var(--text-secondary);
}

.product-info {
  padding: var(--space-lg);
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.product-specs {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.product-price-label {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-price-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
}

/* ========================================
   MARKET PAGE STYLES
   ======================================== */

/* Market Header */
.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

.back-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--accent-gold);
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.header-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.header-logo .logo-sub {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.header-spacer {
  width: 100px;
}

/* Market Hero */
.market-hero {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.market-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.market-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.market-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.market-subtitle {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Market Overview */
.market-overview {
  padding: 0 var(--space-xl) var(--space-2xl);
}

.overview-card.main-index {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.index-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.index-badge {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bg-primary);
  background: var(--accent-gold);
  padding: 4px 8px;
  border-radius: 4px;
}

.index-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.index-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
}

.index-change {
  font-size: 1rem;
  font-weight: 400;
}

.index-change.positive {
  color: #4ade80;
}

.index-change.negative {
  color: #f87171;
}

.index-chart {
  height: 80px;
  position: relative;
  margin-bottom: var(--space-md);
  background: linear-gradient(to top, rgba(201, 169, 98, 0.05), transparent);
  border-radius: 8px;
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chart-point {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.chart-point.active {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.index-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Overview Stats */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-lg);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Brand Indices */
.brand-indices {
  padding: var(--space-2xl) var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.brand-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.brand-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.brand-logo {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.brand-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.brand-change {
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.brand-change.positive {
  color: #4ade80;
}

.brand-change.negative {
  color: #f87171;
}

.brand-chart {
  height: 40px;
  margin-bottom: var(--space-md);
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 3px;
}

.mini-bar {
  flex: 1;
  background: var(--border-light);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.mini-chart.up .mini-bar {
  background: rgba(74, 222, 128, 0.3);
}

.mini-chart.down .mini-bar {
  background: rgba(248, 113, 113, 0.3);
}

.brand-card:hover .mini-chart.up .mini-bar {
  background: rgba(74, 222, 128, 0.5);
}

.brand-card:hover .mini-chart.down .mini-bar {
  background: rgba(248, 113, 113, 0.5);
}

.brand-models {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Trending Section */
.trending-section {
  padding: var(--space-2xl) var(--space-xl);
}

.trending-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.trending-tab {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: var(--space-sm) var(--space-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trending-tab.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
}

.trending-tab:hover:not(.active) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.trending-content.hidden {
  display: none;
}

.trending-list {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.trending-item {
  display: flex;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

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

.trending-item:hover {
  background: rgba(201, 169, 98, 0.05);
}

.trending-rank {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--accent-gold);
  width: 32px;
}

.trending-info {
  flex: 1;
  margin-left: var(--space-md);
}

.trending-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trending-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trending-price {
  text-align: right;
}

.price-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-primary);
}

.price-change {
  font-size: 0.75rem;
  font-weight: 400;
}

.price-change.positive {
  color: #4ade80;
}

.price-change.negative {
  color: #f87171;
}

/* Regional Section */
.regional-section {
  padding: var(--space-2xl) var(--space-xl);
}

.regional-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.region-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-lg);
}

.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.region-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
}

.region-volume {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--accent-gold);
}

.region-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.region-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 1s ease;
}

.region-percent {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Market Footer */
.market-footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--border-light);
  margin-bottom: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Desktop Styles */
@media (min-width: 768px) {
  .market-title {
    font-size: 3rem;
  }

  .overview-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .regional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .market-hero {
    padding: var(--space-4xl) var(--space-2xl);
  }

  .brand-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .brand-card {
    padding: var(--space-md);
  }

  .trending-item {
    padding: var(--space-lg) var(--space-xl);
  }
}

.product-price-value .currency {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-right: var(--space-xs);
}

/* ============================================
   QUOTE TABLE - Vertical Mobile Layout
============================================ */
.quote-table {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: var(--space-lg);
  margin: var(--space-xl) var(--space-md);
}

.quote-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.quote-table-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-primary);
}

.quote-table-toggle {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--accent-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-row {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.quote-row:last-child {
  border-bottom: none;
}

.quote-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.quote-model {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-primary);
}

.quote-region {
  font-size: 0.625rem;
  font-weight: 300;
  color: var(--text-muted);
}

.quote-values {
  display: flex;
  gap: var(--space-lg);
}

.quote-value {
  display: flex;
  flex-direction: column;
}

.quote-value-label {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-value-amount {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.quote-value-amount.highlight {
  color: var(--accent-gold);
}

/* ============================================
   SIDE PANEL - Full Screen Mobile Overlay
============================================ */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--duration-normal) var(--ease-smooth),
              opacity var(--duration-normal) var(--ease-smooth);
}

.side-panel.active {
  visibility: visible;
  opacity: 1;
}

.side-panel-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
}

.side-panel-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-panel);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
  overflow-y: auto;
}

.side-panel.active .side-panel-content {
  transform: translateX(0);
}

/* Back Button (in Side Panel) */
.back-button {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  margin-top: var(--space-lg);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}

.back-button:active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.side-panel-inner {
  padding: var(--space-2xl) var(--space-lg);
}

.side-panel-image {
  width: 100%;
  height: 240px;
  margin-bottom: var(--space-xl);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-elevated);
}

/* 当图片加载失败时的占位样式 */
.side-panel-image img:not([src]),
.side-panel-image img[src=""],
.side-panel-image img.error {
  display: none;
}

.side-panel-image::before {
  content: '';
  display: none;
}

.side-panel-image.has-error::before {
  content: 'Image Loading...';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--bg-elevated);
}

.side-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.side-panel-brand {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-dim);
  margin-bottom: var(--space-lg);
}

.side-panel-specs {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.price-comparison {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.price-comparison-header {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.price-comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
}

.price-location {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.price-amount.best {
  color: var(--accent-gold);
}

.price-arrow {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

/* ============================================
   LOCK-IN QUOTE BUTTON & MODAL
============================================ */
.lock-button {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: 1px solid var(--accent-gold);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}

.lock-button:active {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Verification Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.98);
  transition: visibility var(--duration-normal) var(--ease-smooth),
              opacity var(--duration-normal) var(--ease-smooth);
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: var(--space-2xl);
  transform: translateY(20px);
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
}

.modal-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-gold);
  border-radius: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.modal-description {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.modal-input:focus {
  border-color: var(--accent-gold-dim);
}

.modal-input::placeholder {
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.modal-submit {
  width: 100%;
  padding: var(--space-md);
  background: var(--accent-gold);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-primary);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.modal-submit:active {
  opacity: 0.9;
}

.modal-cancel {
  width: 100%;
  padding: var(--space-md);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 250;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.98);
  transition: visibility var(--duration-normal) var(--ease-smooth),
              opacity var(--duration-normal) var(--ease-smooth);
}

.success-modal.active {
  visibility: visible;
  opacity: 1;
}

.success-content {
  width: 90%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: var(--space-2xl);
  transform: translateY(20px);
  transition: transform var(--duration-slow) var(--ease-smooth);
  text-align: center;
}

.success-modal.active .success-content {
  transform: translateY(0);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 161, 99, 0.1);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent-gold);
  stroke-width: 2;
  fill: none;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.success-message {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  text-align: center;
  padding: 0 var(--space-md);
}

.success-close {
  width: 100%;
  padding: var(--space-md);
  background: var(--accent-gold);
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-primary);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.success-close:active {
  opacity: 0.9;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.footer-link {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ============================================
   NAVIGATION - Bottom Mobile Fixed
============================================ */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.nav-item:active {
  opacity: 0.7;
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: var(--space-xs);
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  position: relative;
}

.nav-icon--watches::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
}

.nav-icon--cars {
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}

.nav-icon--cars::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
}

.nav-icon--contact {
  border: none;
}

.nav-icon--contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--text-muted);
}

.nav-label {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-item.active .nav-icon {
  border-color: var(--accent-gold);
}

.nav-item.active .nav-icon::after {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
}

.nav-item.active .nav-label {
  color: var(--accent-gold);
}

/* ============================================
   RESPONSIVE - Tablet/Desktop Enhancements
============================================ */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    padding: 0 var(--space-xl);
  }
  
  .product-image {
    height: 240px;
  }
  
  .side-panel-content {
    width: 80%;
    max-width: 480px;
  }
  
  .quote-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .section {
    padding: var(--space-3xl) var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    padding: 0 var(--space-2xl);
  }
  
  .product-image {
    height: 280px;
  }
  
  .nav-bottom {
    display: none;
  }
  
  .side-panel-content {
    width: 50%;
    max-width: 600px;
  }
}

/* ============================================
   CONTACT DRAWER - Bottom Slide-up Panel
============================================ */
.contact-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 10, 10, 0.95);
  transition: visibility var(--duration-normal) var(--ease-smooth),
              opacity var(--duration-normal) var(--ease-smooth);
}

.contact-drawer.active {
  visibility: visible;
  opacity: 1;
}

.contact-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
}

.contact-drawer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
  overflow-y: auto;
}

.contact-drawer.active .contact-drawer-content {
  transform: translateY(0);
}

.contact-drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: var(--space-md) auto;
}

.contact-drawer-inner {
  padding: var(--space-lg) var(--space-xl) var(--space-2xl);
}

/* Contact Modal (Centered) - for market.html */
.contact-modal .contact-drawer-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--space-xl);
  overflow-y: auto;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.contact-modal.active .contact-drawer-inner {
  transform: translate(-50%, -50%) scale(1);
}

.contact-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.contact-close-btn svg {
  stroke: var(--text-secondary);
}

.contact-close-btn:hover {
  border-color: var(--accent-gold);
}

.contact-close-btn:hover svg {
  stroke: var(--accent-gold);
}

.contact-drawer-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.contact-drawer-header p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-drawer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.contact-drawer-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-md);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-normal) var(--ease-smooth);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23c9a962' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-submit {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-gold);
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-smooth);
}

.contact-submit:active {
  background: var(--accent-gold-hover);
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.contact-form-optional {
  color: var(--text-muted);
  font-size: 0.625rem;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-md);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-normal) var(--ease-smooth);
  font-family: inherit;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: var(--text-muted);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: var(--accent-gold);
}

.contact-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23c9a962' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.contact-form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form-actions {
  margin-top: var(--space-md);
}

.contact-form-submit {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-gold);
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-smooth);
}

.contact-form-submit:active {
  background: var(--accent-gold-hover);
}

/* ============================================
   UTILITY CLASSES
============================================ */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}