/* ========== SEATRACK PRO - Premium Automotive Brand Style ========== */
:root {
  --primary: #FFC107;
  --primary-dark: #E5AC00;
  --primary-light: #FFD54F;
  --primary-glow: rgba(255, 193, 7, 0.2);
  --accent: #FF6B35;
  --bg-dark: #f5f5f7;
  --bg-section: #eaeaec;
  --bg-card: #f9f9fb;
  --bg-card-hover: #f0f0f2;
  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-dim: #9a9cb0;
  --border: #e0e0e0;
  --border-light: #eeeeee;
  --success: #00c853;
  --warning: #ffab00;
  --danger: #ff5252;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(255, 193, 7, 0.1);
  --transition: all 0.3s ease;
  --font-main: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
  padding: 0 60px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(245, 245, 247, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img { height: 46px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.12)); }

.nav-logo span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 193, 7, 0.1);
}

.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero-section {
  margin-top: 70px;
  height: calc(100vh - 70px);
  display: flex;
  position: relative;
  overflow: hidden;
  background: #f5f5f7;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  padding-top: 50px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .hero-sub {
  color: var(--text-secondary);
  font-size: 16px;
  letter-spacing: 4px;
}

#model-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: default;
}

#model-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.model-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-dim);
}

.model-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.model-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  letter-spacing: 1px;
}

/* ========== ANGLE PRESET CONTROLS ========== */
.angle-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.angle-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.angle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.angle-btn.active {
  background: var(--primary);
  color: #1a1a2e;
  border-color: var(--primary);
}


/* ========== SECTIONS ========== */
.section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 60px;
  max-width: 100%;
  background: var(--bg-section);
}

.section-full .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 0 12px 40px rgba(255, 193, 7, 0.08);
}

.product-card .card-image {
  height: 220px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

.product-card .card-image .placeholder-icon {
  color: var(--text-dim);
  font-size: 48px;
}

.product-card .card-body {
  padding: 20px 24px 24px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.product-card .feature-tag {
  background: rgba(255, 193, 7, 0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 193, 7, 0.15);
}

/* ========== SHOWCASE / GALLERY ========== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.08);
}

.showcase-item .showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
  opacity: 1;
}

/* ========== VIDEO SECTION ========== */
.video-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-wrapper video {
  width: 100%;
  display: block;
  background: #000;
}

.video-placeholder {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-dim);
  flex-direction: column;
  gap: 16px;
}

.video-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

/* ========== ABOUT SECTION ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: var(--shadow-glow);
}

.stat-item .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== NEWS SECTION ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 193, 7, 0.3);
}

.news-card .news-image {
  height: 180px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-body {
  padding: 20px 24px 24px;
}

.news-card .news-date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== VEHICLES PAGE (NEW LAYOUT) ========== */
.vehicles-page-new {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  background: var(--bg-dark);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Header */
.vp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.vp-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.vp-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.vp-header-stats {
  display: flex;
  gap: 28px;
}
.vp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vp-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.vp-stat-highlight {
  color: var(--primary);
}
.vp-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* Main Body: Sidebar + Content */
.vp-body {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 70px - 90px);
}

/* Left Sidebar */
.vp-sidebar {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vp-sidebar .vp-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  transition: border-color 0.3s;
}
.vp-sidebar .vp-search-box:focus-within {
  border-color: var(--primary);
}
.vp-sidebar .vp-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.vp-sidebar .vp-search-box input::placeholder {
  color: var(--text-dim);
}

.vp-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 12px;
}
.vp-sidebar-list::-webkit-scrollbar { width: 4px; }
.vp-sidebar-list::-webkit-scrollbar-track { background: transparent; }
.vp-sidebar-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.vbrand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.vbrand-item:hover {
  background: rgba(255, 193, 7, 0.05);
  color: var(--primary);
}
.vbrand-item.active {
  background: rgba(255, 193, 7, 0.08);
  border-left-color: var(--primary);
  color: var(--text-primary);
  font-weight: 600;
}
.vbrand-item .vbrand-name {
  font-size: 13px;
  font-weight: inherit;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.vbrand-item .vbrand-count {
  font-size: 11px;
  background: var(--bg-dark);
  color: var(--text-dim);
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 6px;
}
.vbrand-item.active .vbrand-count {
  background: rgba(255, 193, 7, 0.15);
  color: var(--primary);
}

/* Content */
.vp-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  min-width: 0;
}
.vp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-size: 15px;
}
.vp-empty svg {
  margin-bottom: 16px;
}

/* Vehicle Detail */
.vdetail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.vdetail-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.vdetail-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.vdetail-stats .vstat-new {
  color: var(--primary);
  font-weight: 600;
}

/* Brand Groups */
.vp-brand-group {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.vp-brand-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 193, 7, 0.06);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.vp-brand-group-header:hover {
  background: rgba(255, 193, 7, 0.12);
}
.vp-brand-group-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.vp-brand-group-count {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-dark);
  padding: 2px 10px;
  border-radius: 10px;
}

/* Model List */
.vp-model-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.vmodel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  transition: background 0.15s;
}
.vmodel-row:hover {
  background: rgba(255, 193, 7, 0.04);
}
.vmodel-name {
  font-size: 13px;
  color: var(--text-primary);
}
.vmodel-note {
  font-size: 10px;
  color: #FF6B00;
  background: rgba(255,107,0,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.vmodel-badge-new {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255,193,7,0.12);
  padding: 2px 10px;
  border-radius: 10px;
}
.vmodel-badge-ok {
  font-size: 10px;
  color: var(--success);
  background: rgba(0,200,83,0.08);
  padding: 2px 10px;
  border-radius: 10px;
}
.vmodel-badge-ev {
  font-size: 10px;
  font-weight: 700;
  color: #0077CC;
  background: rgba(0,119,204,0.08);
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ========== VEHICLES TABLE ========== */
.vehicles-page {
  margin-top: 70px;
  padding: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.vehicles-search {
  max-width: 500px;
  margin: 0 auto 30px;
}

.vehicles-search input {
  width: 100%;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.vehicles-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.vehicles-search input::placeholder {
  color: var(--text-dim);
}

.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  justify-content: center;
}

.brand-tab {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.brand-tab:hover,
.brand-tab.active {
  background: rgba(255, 193, 7, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* Vehicle brand group */
.vehicle-brand-group {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.brand-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 193, 7, 0.04);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.brand-group-header:hover {
  background: rgba(255, 193, 7, 0.08);
}

.brand-group-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.brand-group-header .vehicle-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-section);
  padding: 3px 12px;
  border-radius: 12px;
}

.brand-group-header .toggle-icon {
  color: var(--text-dim);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.brand-group-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.brand-group-body {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.brand-group-body.collapsed {
  max-height: 0 !important;
}

.vehicles-table {
  width: 100%;
  border-collapse: collapse;
}

.vehicles-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.vehicles-table td {
  padding: 12px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.vehicles-table tr:last-child td {
  border-bottom: none;
}

.vehicles-table tr:hover td {
  background: rgba(255, 193, 7, 0.02);
}

.vehicles-table td.model-cell {
  font-weight: 600;
  color: var(--text-primary);
}

.vehicles-table td.remark-cell {
  color: var(--text-secondary);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 230, 118, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-warning {
  background: rgba(255, 171, 0, 0.1);
  color: var(--warning);
  border: 1px solid rgba(255, 171, 0, 0.2);
}

/* ========== MAP SECTION ========== */
.map-page {
  margin-top: 70px;
  padding: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

#map {
  height: 500px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 1;
}

.distributor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.distributor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
}

.distributor-card:hover {
  border-color: var(--primary);
}

.distributor-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.distributor-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ========== TUTORIALS ========== */
.tutorials-page {
  margin-top: 70px;
  padding: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tutorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.tutorial-card .pdf-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 82, 82, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tutorial-card .pdf-icon svg {
  width: 28px;
  height: 28px;
  color: var(--danger);
}

.tutorial-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tutorial-card .btn-group {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-contact {
  display: flex;
  gap: 24px;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary);
}

/* ========== PAGE TRANSITION ========== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 { font-size: 18px; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-body { padding: 24px; }

.pdf-viewer-container { width: 100%; height: 80vh; }
.pdf-viewer-container iframe { width: 100%; height: 100%; border: none; }

/* ========== IMAGE LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ========== SOCIAL FLOATING ========== */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: var(--text-secondary);
}
.social-float-btn svg { width: 22px; height: 22px; }
.social-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  color: var(--primary);
  border-color: var(--primary);
}
.social-qr-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  display: none;
}
.social-qr-overlay.active { display: block; }
.social-qr-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  z-index: 1600;
  width: 300px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.social-qr-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.social-qr-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 22px; color: var(--text-dim);
  cursor: pointer; padding: 4px; line-height: 1;
}
.social-qr-close:hover { color: var(--text-primary); }
.social-qr-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,193,7,0.08); border-radius: 50%; color: var(--primary);
}
.social-qr-icon svg { width: 26px; height: 26px; }
.social-qr-platform { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.social-qr-name { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.social-qr-img-wrap {
  background: var(--bg-dark); border-radius: 12px; padding: 16px;
  margin-bottom: 12px; min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.social-qr-img-wrap img { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; }
.social-qr-hint { font-size: 12px; color: var(--text-dim); }

/* ========== CASES PAGE ========== */
.cases-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.case-cover {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f0f2;
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .case-cover img { transform: scale(1.05); }
.case-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
}
.case-info {
  padding: 16px 20px 20px;
}
.case-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.case-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.case-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #f5f5f5;
  color: #888;
  border-radius: 10px;
}
.case-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.case-media-item { border-radius: 8px; overflow: hidden; }

@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .about-image {
    height: 300px;
  }
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; width: 100%; }
  .menu-toggle { display: flex; }
  
  .hero-content h1 { font-size: 32px; letter-spacing: 3px; }
  .hero-content .hero-sub { font-size: 13px; letter-spacing: 2px; }
  
  .section { padding: 50px 20px; }
  .section-full { padding: 50px 20px; }
  .section-header h2 { font-size: 24px; }
  
  .products-grid,
  .news-grid,
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .vehicles-page { padding: 40px 20px; }
  .map-page { padding: 40px 20px; }
  .tutorials-page { padding: 40px 20px; }
  
  .vehicles-table { font-size: 12px; }
  .vehicles-table th, .vehicles-table td { padding: 10px 14px; }
  
  #map { height: 350px; }
  
  .footer { padding: 30px 20px; }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-contact { flex-direction: column; gap: 8px; }
  
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .angle-controls {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    padding: 6px 10px;
  }

  .angle-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .brand-tabs { gap: 6px; }
  .brand-tab { padding: 6px 14px; font-size: 12px; }
}

/* Vehicle page responsive */
@media (max-width: 768px) {
  .vp-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }
  .vp-header-stats { gap: 20px; }
  .vp-body { flex-direction: column; }
  .vp-sidebar {
    width: 100%;
    min-width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .vp-sidebar-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px 8px;
    gap: 4px;
  }
  .vp-sidebar-list::-webkit-scrollbar { height: 3px; }
  .vbrand-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
  }
  .vbrand-item.active {
    border-left: none;
    background: var(--primary);
    color: #1a1a2e;
  }
  .vp-content { padding: 16px; }
  .vp-model-list { grid-template-columns: 1fr; }
  .vdetail-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ========== Vehicle Table ========== */
.vtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.vtable thead th {
  background: #f8f9fa;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.vtable tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.vtable tbody tr:hover {
  background: rgba(255, 193, 7, 0.04);
}
.vtable tbody tr.vtr-first {
  border-top: 2px solid #e8e8e8;
}
.vtd-brand {
  padding: 8px 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  min-width: 80px;
  vertical-align: middle;
}
.vtd-model {
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 150px;
}
.vtd-tags {
  padding: 8px 10px;
  min-width: 100px;
}
.vtd-note {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 12px;
}
.vtd-status {
  padding: 8px 14px;
  white-space: nowrap;
}

/* Vehicle Tags */
.vtag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin: 1px 2px;
  font-weight: 500;
}
.vtag-manual { background: #FFF3CD; color: #856404; }
.vtag-electric { background: #CCE5FF; color: #004085; }
.vtag-bracket { background: #E8DAEF; color: #6C3483; }
.vtag-new { background: #F8D7DA; color: #721C24; font-weight: 700; }

/* Vehicle Status */
.vstatus-ok {
  color: #28a745;
  font-weight: 600;
  font-size: 12px;
}
.vstatus-dev {
  color: #ffc107;
  font-size: 12px;
}
