/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3563E9;
  --primary-dark: #1a3fa3;
  --primary-light: #eef2ff;
  --accent: #FF6B35;
  --accent-light: #fff4f0;
  --success: #12B76A;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #06B6D4;

  --bg: #F6F7F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-input: #F6F7F9;
  --border: #E8ECF0;
  --border-strong: #CDD5DF;

  --text: #1A202C;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --text-on-primary: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;

  --sidebar-w: 280px;
}

[data-theme="dark"] {
  --bg: #0F1117;
  --bg-card: #1A1D27;
  --bg-sidebar: #1A1D27;
  --bg-input: #252836;
  --border: #2D3148;
  --border-strong: #3D4266;

  --text: #F1F3F9;
  --text-muted: #8B92A9;
  --text-faint: #5D6480;
  --primary-light: #1a2048;
  --accent-light: #2a1a10;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .header {
  background: rgba(26,29,39,0.85);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.logo span { color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.header-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,99,233,0.15); }
.header-search input::placeholder { color: var(--text-faint); }
.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 16px;
  pointer-events: none;
}
.header-search .search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 14px;
  cursor: pointer;
  display: none;
}
.header-search input:not(:placeholder-shown) + .search-icon + .search-clear { display: block; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { background: var(--primary-light); color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-icon .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(53,99,233,0.35); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== PAGES / VIEWS ===== */
.page { display: none; min-height: calc(100vh - var(--header-h)); }
.page.active { display: block; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0A0E1A 0%, #1a2550 50%, #0A0E1A 100%);
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(53,99,233,0.2) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(53,99,233,0.2);
  border: 1px solid rgba(53,99,233,0.4);
  color: #93AEFF;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero h1 span {
  background: linear-gradient(135deg, #3563E9, #7B91FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Card */
.hero-search {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.search-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.search-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-tab.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.search-tab:not(.active):hover { background: var(--border); color: var(--text); }

.search-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field-group select, .field-group input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-group input { background-image: none; padding-right: 16px; }
.field-group select:focus, .field-group input:focus { border-color: var(--primary); }

.btn-search {
  height: 50px;
  width: 100%;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-search:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(53,99,233,0.35); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ===== SECTION HEADERS ===== */
.section { padding: 64px 28px; }
.section-sm { padding: 44px 28px; }
.container { max-width: 1400px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.section-header p { font-size: 15px; color: var(--text-muted); margin-top: 5px; }
.section-header .see-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.section-header .see-all:hover { text-decoration: underline; }

/* ===== CATEGORY PILLS ===== */
.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 28px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.cat-pill span { font-size: 18px; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(53,99,233,0.3); }

/* ===== CAR CARDS ===== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.car-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.3s ease, border-color var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.car-card:hover {
  border-color: rgba(53,99,233,0.25);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.car-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2550, #0a0e1a);
}
.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.car-card:hover .car-card-img img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.badge-new { background: var(--primary); color: #fff; }
.badge-hot { background: var(--accent); color: #fff; }
.badge-deal { background: var(--success); color: #fff; }
.badge-drop { background: var(--warning); color: #fff; }
.badge-exclusive { background: #7C3AED; color: #fff; }

.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition);
  color: #fff;
}
.card-fav:hover { background: var(--danger); transform: scale(1.1); }
.card-fav.active { background: var(--danger); }

.card-compare {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-compare:hover { background: var(--primary); }
.card-compare.in-compare { background: var(--primary); }

.car-card-body { padding: 16px; }
.car-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.car-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-sub .dot { width: 3px; height: 3px; background: var(--text-faint); border-radius: 50%; }

.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.car-spec {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}
.car-spec .spec-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.car-spec .spec-key {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.car-price { font-size: 22px; font-weight: 800; color: var(--text); }
.car-price-mo { font-size: 12px; color: var(--text-muted); display: block; font-weight: 500; }
.car-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--warning);
  font-weight: 600;
}
.car-rating .count { color: var(--text-muted); font-weight: 400; }

.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(18,183,106,0.12);
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

/* ===== PX BADGE ===== */
.badge-px {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.px-detail-header .badge-px { font-size: 13px; padding: 5px 12px; }

/* ===== PX FILTER SIDEBAR INPUTS ===== */
.px-filter-wrap {
  margin-top: 12px;
  padding: 14px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.px-filter-wrap .px-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.px-filter-wrap .px-row input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.px-filter-wrap .px-row input:focus {
  outline: none;
  border-color: var(--warning);
}
.px-filter-wrap .px-row select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.px-filter-wrap .px-row select:focus {
  outline: none;
  border-color: var(--warning);
}

/* ===== PX SELL SECTION ===== */
.px-sell-panel {
  margin-top: 12px;
  padding: 16px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== PX DETAIL CARD ===== */
.px-detail-card {
  border-radius: var(--radius);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.px-detail-card.px-open {
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 14px;
}
.px-detail-card.px-detail-closed {
  background: var(--bg-input);
  padding: 11px 14px;
  border: 1px solid var(--border);
  flex-direction: row;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
}
.px-detail-header { display: flex; align-items: center; }
.px-detail-desc { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.px-detail-rows { display: flex; flex-direction: column; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(245,158,11,0.15); }
.px-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  font-size: 13px;
  background: rgba(245,158,11,0.04);
  border-bottom: 1px solid rgba(245,158,11,0.1);
}
.px-detail-row:last-child { border-bottom: none; }
.px-detail-row span { color: var(--text-muted); }
.px-detail-row strong { color: var(--text); font-weight: 600; }

/* ===== BROWSE PAGE LAYOUT ===== */
.browse-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  align-items: start;
}

/* ===== SIDEBAR FILTERS ===== */
.sidebar {
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-clear {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.sidebar-clear:hover { text-decoration: underline; }

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.filter-select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filter-select:focus { border-color: var(--primary); }

/* Range Slider */
.range-wrap { padding: 4px 0; }
.range-vals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.range-vals span { font-size: 13px; font-weight: 600; color: var(--text); }
.range-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 12px 0;
}
.range-fill {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;
  outline: none;
  position: absolute;
  top: 0;
  pointer-events: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary);
  pointer-events: all;
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-item span { font-size: 13px; color: var(--text-muted); }
.checkbox-item:hover span { color: var(--text); }

/* ===== BROWSE MAIN ===== */
.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.browse-count { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.browse-count strong { color: var(--text); }

.sort-bar { display: flex; align-items: center; gap: 8px; }
.sort-bar label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sort-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-weight: 500;
}

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.filter-tag button { color: var(--primary); font-size: 14px; line-height: 1; }
.filter-tag button:hover { color: var(--danger); }

/* List view */
.cars-list { display: flex; flex-direction: column; gap: 16px; }
.car-card-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 260px 1fr auto;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.car-card-list { box-shadow: var(--shadow-sm); transition: transform 0.25s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.25s ease, border-color var(--transition); }
.car-card-list:hover { border-color: rgba(53,99,233,0.25); box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateX(3px); }
.car-card-list .car-card-img { height: 100%; min-height: 160px; }
.car-card-list .car-card-body { padding: 20px; }
.car-card-list .car-card-action {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  border-left: 1px solid var(--border);
  min-width: 160px;
}

/* ===== CAR DETAIL PAGE ===== */
.detail-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--primary); cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-faint); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Gallery */
.gallery { margin-bottom: 20px; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  background: #0a0e1a;
  position: relative;
  margin-bottom: 8px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.gallery-main .gallery-prev, .gallery-main .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-prev:hover, .gallery-next:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-thumb {
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb.active { opacity: 1; border-color: var(--primary); }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Specs tabs */
.detail-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.detail-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.detail-tab.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }

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

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.spec-item {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-item .spec-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.spec-item .spec-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.spec-item .spec-value { font-size: 15px; font-weight: 700; color: var(--text); }

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}
.feature-item::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(18,183,106,0.15);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Price history chart */
.chart-wrap {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.chart-wrap h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
#priceChart { width: 100%; height: 120px; }

/* Detail sidebar */
.detail-sidebar { display: flex; flex-direction: column; gap: 0; }
.price-card-calc {
  margin-top: 12px;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 14px;
}
.price-card-calc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.price-card-calc .calc-monthly-display {
  background: linear-gradient(135deg, var(--primary) 0%, #5b7df5 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.price-card-calc .calc-field-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.price-card-calc .calc-field-row:last-child { margin-bottom: 0; }
.price-card-calc .calc-field-row label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.price-card-calc input,
.price-card-calc select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.price-card-calc input { background-image: none; }
.price-card-calc input:focus,
.price-card-calc select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(53,99,233,0.1); }

.price-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  box-shadow: var(--shadow-sm);
}
.detail-price { font-size: 36px; font-weight: 900; color: var(--text); margin-bottom: 4px; letter-spacing: -1px; }
.detail-price-mo { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.detail-price-mo span { color: var(--primary); font-weight: 700; }

.btn-cta {
  width: 100%;
  padding: 13px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(53,99,233,0.3); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta-outline {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-cta-outline:hover { background: var(--bg-input); border-color: var(--primary); color: var(--primary); }
.btn-cta-outline:active { transform: scale(0.98); }
.btn-fav-outline { border-color: var(--danger); color: var(--danger); }
.btn-fav-outline:hover { background: rgba(239,68,68,0.06); border-color: var(--danger); color: var(--danger); }

.dealer-card {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.dealer-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.dealer-info { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.dealer-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

/* History badges */
.history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.history-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.badge-ok { background: rgba(18,183,106,0.12); color: var(--success); }
.badge-warn { background: rgba(245,158,11,0.12); color: var(--warning); }

/* ===== LOAN CALCULATOR ===== */
.calc-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 24px;
}
.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}
.calc-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.calc-card p { color: var(--text-muted); margin-bottom: 32px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.calc-inputs { display: flex; flex-direction: column; gap: 20px; }
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.calc-field input, .calc-field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.calc-field input:focus, .calc-field select:focus { border-color: var(--primary); }
.calc-field .input-prefix {
  position: relative;
}
.calc-field .input-prefix::before {
  content: attr(data-prefix);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}
.calc-field .input-prefix input { padding-left: 32px; }

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-result-main {
  background: linear-gradient(135deg, var(--primary) 0%, #5b7df5 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  text-align: center;
}
.calc-result-main .result-label { font-size: 14px; opacity: 0.8; margin-bottom: 8px; }
.calc-result-main .result-value { font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.calc-result-main .result-sub { font-size: 13px; opacity: 0.7; }

.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.breakdown-item {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.breakdown-item .b-val { font-size: 18px; font-weight: 800; color: var(--text); }
.breakdown-item .b-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ===== COMPARE PAGE ===== */
.compare-page { padding: 40px 24px; max-width: 1200px; margin: 0 auto; }
.compare-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.compare-page-header h1 { font-size: 28px; font-weight: 800; margin: 0; }
.compare-page-header p { color: var(--text-muted); font-size: 14px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-best { background: rgba(16,185,129,0.12); color: var(--success); padding: 2px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }
.badge-worst { background: rgba(239,68,68,0.1); color: var(--danger); padding: 2px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }

.compare-table { overflow-x: auto; }
.compare-grid {
  display: grid;
  min-width: 600px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.compare-header-row {
  display: grid;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
}
.compare-car-col {
  padding: 20px;
  border-right: 1px solid var(--border);
  position: relative;
}
.compare-car-col:last-child { border-right: none; }
.compare-car-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.compare-car-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.compare-car-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.compare-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.compare-row {
  display: grid;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-label {
  padding: 14px 20px;
  background: var(--bg-input);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.compare-val {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.compare-val:last-child { border-right: none; }
.compare-val.best { color: var(--success); }
.compare-val.worst { color: var(--danger); }

.empty-compare {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  transition: border-color var(--transition);
}
.empty-compare:hover { border-color: var(--primary); }
.empty-compare:hover { border-color: var(--primary); color: var(--primary); }
.empty-compare .empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ===== FAVORITES PAGE ===== */
.favorites-page { padding: 24px; max-width: 1200px; margin: 0 auto; }
.favorites-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }

/* ===== ALERTS / NOTIFICATIONS ===== */
.alert-banner {
  background: linear-gradient(135deg, #FF6B35 0%, #ff3d00 100%);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
}
.alert-banner .close-alert { margin-left: auto; cursor: pointer; opacity: 0.8; }
.alert-banner .close-alert:hover { opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal p { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.modal .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal .form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.modal .form-field input, .modal .form-field textarea, .modal .form-field select {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.modal .form-field input:focus, .modal .form-field textarea:focus, .modal .form-field select:focus { border-color: var(--primary); }

/* ===== TRADE-IN ESTIMATOR ===== */
.tradein-section { padding: 64px 24px; background: var(--bg-card); border-top: 1px solid var(--border); }
.tradein-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.tradein-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.tradein-card > p { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }
.tradein-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}
.tradein-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tradein-field input, .tradein-field select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition);
}
.tradein-field input:focus, .tradein-field select:focus { border-color: var(--primary); }
.tradein-result {
  background: linear-gradient(135deg, #12B76A 0%, #059669 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  display: none;
  margin-top: 16px;
}
.tradein-result.show { display: block; }
.tradein-result .result-range { font-size: 36px; font-weight: 900; margin: 8px 0; }
.tradein-result p { opacity: 0.85; font-size: 13px; }

/* ===== FEATURE HIGHLIGHTS ===== */
.features-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-highlight {
  text-align: center;
  padding: 32px 20px;
}
.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  transition: all var(--transition);
}
.feature-highlight:hover .feature-icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}
.feature-highlight h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-highlight p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== ACCOUNT SYSTEM ===== */

/* Header auth buttons */
.btn-signin {
  height: 36px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}
.btn-signin:hover { background: var(--primary-dark); }

.btn-sell {
  height: 36px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition);
}
.btn-sell:hover { background: #e05a28; }

/* User avatar menu */
.user-menu { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 4px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--transition);
}
.user-avatar-btn:hover { border-color: var(--primary); }
.user-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-chevron { font-size: 11px; color: var(--text-muted); }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 190px;
  z-index: 300;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.user-dropdown-item:hover { background: var(--bg-input); }
.user-dropdown-item.danger { color: var(--danger); }
.user-dropdown-item.danger:hover { background: rgba(239,68,68,0.08); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Auth modals */
.auth-modal-header { text-align: center; margin-bottom: 24px; }
.auth-logo { font-size: 40px; margin-bottom: 12px; }
.auth-modal-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-modal-header p { color: var(--text-muted); font-size: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-switch span { color: var(--primary); font-weight: 600; cursor: pointer; }
.auth-switch span:hover { text-decoration: underline; }

/* Wide modal for sell form */
.modal-wide { max-width: 680px; }

/* Sell form grid */
.sell-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 600px) {
  .sell-form { grid-template-columns: 1fr; }
  .modal { padding: 20px 16px; border-radius: var(--radius); }
  .modal-wide { max-width: 100%; }
}

/* Private seller badge */
.badge-private {
  background: var(--accent);
  color: #fff;
}

/* Account page */
.account-page { padding: 40px 28px; max-width: 1100px; margin: 0 auto; }
.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7B91FF);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.account-email { font-size: 14px; color: var(--text-muted); }
.account-since { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.account-stats { display: flex; gap: 16px; margin-left: auto; }
.account-stat { text-align: center; }
.account-stat-val { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.account-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.account-section { margin-bottom: 40px; }
.account-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.account-sec-header h3 { font-size: 20px; font-weight: 800; }
.link-action { color: var(--primary); font-weight: 600; cursor: pointer; font-size: 14px; }
.link-action:hover { text-decoration: underline; }

.btn-listing-delete {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  transition: background var(--transition);
}
.btn-listing-delete:hover { background: rgba(239,68,68,0.15); }

/* ===== SELL CTA SECTION ===== */
.sell-cta-section {
  padding: 72px 24px;
  background: linear-gradient(135deg, #0A0E1A 0%, #1a2550 60%, #0A0E1A 100%);
  position: relative;
  overflow: hidden;
}
.sell-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(53,99,233,0.18) 0%, transparent 70%);
}
.sell-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
}
.sell-cta-text h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.2; }
.sell-cta-text p  { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 24px; max-width: 480px; }
.sell-cta-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 28px; }
.sell-benefit { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.sell-cta-btn { font-size: 16px; padding: 14px 32px; }
.sell-cta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sell-stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  min-width: 110px;
}
.sell-stat-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.sell-stat-lbl { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
@media (max-width: 900px) {
  .sell-cta-inner { grid-template-columns: 1fr; }
  .sell-cta-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .sell-cta-stats { grid-template-columns: 1fr 1fr; }
  .sell-cta-benefits { grid-template-columns: 1fr; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { flex: 1; font-size: 14px; color: var(--text-muted); min-width: 200px; }
.cookie-link { color: var(--primary); font-weight: 600; cursor: pointer; margin-left: 4px; }
.cookie-link:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  padding: 8px 20px; background: var(--primary); color: #fff;
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  transition: background var(--transition);
}
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-decline {
  padding: 8px 20px; background: var(--bg-input); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; transition: all var(--transition);
}
.cookie-btn-decline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== ACCOUNT SETTINGS ===== */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.settings-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.settings-card .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.settings-card .form-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.settings-card .form-field input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.settings-card .form-field input:focus { border-color: var(--primary); }
.settings-card .btn-primary { margin-top: 6px; width: 100%; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } }

/* ===== LISTING ACTION BUTTONS ===== */
.btn-listing-edit {
  flex: 1; padding: 7px 0; border-radius: var(--radius);
  font-size: 12px; font-weight: 600;
  background: rgba(53,99,233,0.1); color: var(--primary);
  transition: background var(--transition);
}
.btn-listing-edit:hover { background: rgba(53,99,233,0.18); }
.btn-listing-sold {
  flex: 1; padding: 7px 0; border-radius: var(--radius);
  font-size: 12px; font-weight: 600;
  background: rgba(16,185,129,0.1); color: var(--success);
  transition: background var(--transition);
}
.btn-listing-sold.is-sold { background: rgba(107,114,128,0.1); color: var(--text-muted); }
.btn-listing-sold:hover { background: rgba(16,185,129,0.18); }
.btn-listing-delete {
  padding: 7px 10px; border-radius: var(--radius);
  font-size: 12px; font-weight: 600;
  background: rgba(239,68,68,0.08); color: var(--danger);
  transition: background var(--transition);
}
.btn-listing-delete:hover { background: rgba(239,68,68,0.15); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3fa3 100%);
  text-align: center;
}
.newsletter-section h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.newsletter-section p { color: rgba(255,255,255,0.75); margin-bottom: 28px; font-size: 15px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  backdrop-filter: blur(4px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.7); }
.newsletter-form button {
  height: 50px;
  padding: 0 24px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}
.newsletter-form button:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer {
  background: #0A0E1A;
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-icon { background: var(--primary); }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color var(--transition);
  cursor: pointer;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  max-width: 360px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-close { margin-left: auto; color: var(--text-faint); cursor: pointer; font-size: 16px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

/* ===== COMPARE TRAY ===== */
.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform var(--transition);
}
.compare-tray.visible { transform: translateY(0); }
.compare-tray-label { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.compare-tray-cars { display: flex; gap: 8px; flex: 1; }
.tray-car {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.tray-car img { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; }
.tray-car .remove-tray { color: var(--text-faint); cursor: pointer; }
.tray-car .remove-tray:hover { color: var(--danger); }
.tray-car-slot {
  width: 100px;
  height: 46px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-faint);
}
.compare-tray .btn-compare-go {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.compare-tray .btn-compare-go:hover { background: var(--primary-dark); }
.compare-tray .btn-compare-clear { font-size: 13px; color: var(--text-faint); cursor: pointer; }
.compare-tray .btn-compare-clear:hover { color: var(--danger); }

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-input) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border) 50%, var(--bg-input) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-img  { height: 200px; width: 100%; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-line.wide  { width: 75%; }
.skeleton-line.full  { width: 100%; }
.skeleton-line.short { width: 45%; }
.skeleton-price { height: 22px; width: 55%; margin-top: 4px; }

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.no-results .no-results-icon { font-size: 56px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-results p { font-size: 15px; max-width: 400px; margin: 0 auto 20px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== MOBILE ===== */
@media (max-width: 1100px) {
  .browse-layout { grid-template-columns: 1fr; }
  #filterToggle { display: flex !important; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 200;
    width: min(88vw, 320px);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: block;
    box-shadow: var(--shadow-xl);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.visible { display: block; }
  .detail-layout { grid-template-columns: 1fr; }
  .price-card { position: static; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    z-index: 99;
  }
  .hamburger { display: flex; }
  .header-search { max-width: none; }

  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .tradein-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header { padding: 0 12px; gap: 8px; }
  /* Hide logo text — show icon only to reclaim ~100px */
  .logo { font-size: 0; gap: 0; }
  .logo-icon { width: 36px; height: 36px; font-size: 16px; }
  /* Bounded search so it doesn't crowd out action buttons */
  .header-search { flex: 1 1 120px; max-width: 180px; min-width: 60px; }
  .header-search input { font-size: 13px; }
  #headerAlertBtn, #headerCompareBtn { display: none; }
  .btn-icon { width: 36px; height: 36px; font-size: 16px; }
  .header-actions { gap: 6px; }
  .section { padding: 44px 20px; }
  .section-sm { padding: 32px 20px; }
  .hero { padding: 48px 20px 60px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .num { font-size: 22px; }
  .search-fields { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cars-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-tray-cars { display: none; }
  .car-card-list { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .account-page { padding: 24px 16px; }
  .detail-layout { padding: 16px; }
  .browse-layout { padding: 16px; }
  .price-card { border-radius: var(--radius); }
}
