/* ============================================================
   Used Car Export Site — shared styles (minimalist / professional)
   Responsive: desktop ≥1024 · tablet 640–1023 · mobile <640
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ec;
  --brand: #1e40af;
  --brand-600: #1d4ed8;
  --brand-50: #eef2ff;
  --accent: #f59e0b;
  --whatsapp: #25d366;
  --whatsapp-d: #1ebe5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .20);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 56px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo-text { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.logo-text .sale { color: #f97316; }
.logo-text .car { color: #1e40af; }
.footer-cols .logo-text { font-size: 22px; }
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; min-width: 160px;
}
.search:focus-within { border-color: var(--brand); background: #fff; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; color: var(--ink); }

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

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 9px 13px; border-radius: 999px; transition: .15s;
}
.lang-btn:hover { border-color: var(--brand); }
.lang-btn .chev { width: 12px; height: 12px; opacity: .6; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 0; background: transparent; padding: 10px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink); text-align: left;
}
.lang-menu button:hover { background: var(--brand-50); }
.lang-menu button.active { color: var(--brand); font-weight: 700; }
.lang-menu button .code { font-size: 11px; color: var(--muted); font-weight: 700; }

/* Account */
.acc-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: 999px; transition: .15s;
}
.acc-btn:hover { border-color: var(--brand); }
.acc-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.acc-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none;
}
.acc-menu.open { display: block; }
.acc-menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-menu .who .nm { font-weight: 700; font-size: 14px; }
.acc-menu .who .em { font-size: 12px; color: var(--muted); }
.acc-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left;
}
.acc-menu button:hover { background: var(--brand-50); }
.acc-menu button.danger:hover { background: #fef2f2; color: #dc2626; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(30, 64, 175, .12), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
}
/* Hero: centered logo on top, two-column content below */
.hero-wrap { display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.hero-logo img { height: auto; width: auto; max-width: 260px; max-height: 130px; object-fit: contain; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px); gap: 40px;
  align-items: start; width: 100%;
}
.hero-text { text-align: left; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; max-width: 880px;
}
.hero p { margin: 0; font-size: 18px; color: var(--muted); max-width: 720px; }
.hero-stats { display: flex; gap: 38px; justify-content: flex-start; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 26px; font-weight: 800; color: var(--ink); }
.hero-stats .stat .lab { font-size: 13px; color: var(--muted); }

/* ---------- Daily updates ticker card ---------- */
.update-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  height: 420px; max-height: 50vh;
}
.update-card .uc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.update-card .uc-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.update-card .uc-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #166534;
  background: #dcfce7; padding: 4px 8px; border-radius: 999px;
}
.update-card .uc-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.update-card .uc-body {
  flex: 1; overflow: hidden; position: relative; padding: 0 18px;
  mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}
.update-card .uc-scroll {
  will-change: transform;
  padding: 14px 0;
}
.update-card .uc-day { margin-bottom: 18px; }
.update-card .uc-entry { margin: 0; padding: 14px 14px 16px; border-bottom: 1px dashed #94a3b8; }
.update-card .uc-entry:last-child { border-bottom: 0; padding-bottom: 4px; }
.update-card .uc-tag {
  display: inline-block; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.update-card .uc-lines li:first-child { font-weight: 700; color: var(--ink); }
.update-card .uc-lines li:last-child { color: var(--brand); font-weight: 700; }
.update-card .uc-lines li.uc-model { padding: 4px 0 6px; }
.update-card .uc-lines li.uc-model .uc-model-tag {
  display: inline-block; background: rgba(22, 163, 74, .16);
  color: #14532d; font-weight: 800; font-size: 14px; line-height: 1.4;
  padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(22, 163, 74, .28);
}
.update-card .uc-day .day-title {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50); padding: 6px 10px; border-radius: 8px;
  display: inline-block; margin-bottom: 10px;
}
.update-card .uc-lines { list-style: none; margin: 0; padding: 0; }
.update-card .uc-lines li {
  font-size: 14px; color: var(--ink); line-height: 1.55;
  padding: 4px 0; border-bottom: 0;
}
.update-card .uc-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.update-card .uc-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.55);
}
.update-card .uc-foot label { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.update-card .uc-foot select {
  flex: 1; appearance: none; border: 1px solid var(--line); background: #fff;
  padding: 9px 30px 9px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2'><path d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.update-card .uc-foot .play-pause {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.update-card .uc-foot .play-pause:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Controls (tabs + filters) ---------- */
.controls { padding: 28px 28px 8px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 10px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted); transition: .15s;
}
.tabs button.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(30, 64, 175, .35); }

.filters { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.type-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 9px 15px; font-size: 14px; font-weight: 500; color: var(--ink); transition: .15s;
}
.chip svg { width: 18px; height: 18px; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.filter-selects { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-selects select {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  padding: 10px 36px 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2'><path d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fuel-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex-wrap: wrap; }
.fuel-seg button { border: 0; background: var(--surface); padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.fuel-seg button:last-child { border-right: 0; }
.fuel-seg button.active { background: var(--brand); color: #fff; }
.reset-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.reset-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Responsive grid ---------- */
main { padding: 24px 0 72px; }
/* 小红书风格瀑布流：多列等高填充，卡片间无行间距（避免高图把整排撑出大空隙） */
.grid {
  column-count: 4;
  column-gap: 20px;
}
.grid > .card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin: 0 0 20px;
}
@media (max-width: 1180px) { .grid { column-count: 3; } }
@media (max-width: 860px)  { .grid { column-count: 2; } }
@media (max-width: 520px)  { .grid { column-count: 1; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; box-shadow: var(--shadow); position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .media { position: relative; background: #000; }
.card .media img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 520px; }
.card .media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 35%, transparent 65%, rgba(0,0,0,.55) 100%);
}
.card .cond-tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(15, 23, 42, .7); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card .fuel-tag {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; color: #04210f;
  background: var(--whatsapp); padding: 5px 10px; border-radius: 999px;
}
.card .fav {
  position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); z-index: 2;
}
.card .fav svg { width: 20px; height: 20px; fill: none; stroke: #ef4444; stroke-width: 2; }
.card .fav.active svg { fill: #ef4444; }
.card .body { padding: 14px 16px 16px; }
.card .body h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.card .price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.card .price { font-size: 19px; font-weight: 800; color: var(--ink); }
.card .cur { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 2px 8px; border-radius: 6px; }
.card .por { font-size: 15px; font-weight: 700; color: var(--muted); }
.card .meta { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ---------- Detail modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface); border-radius: 20px; width: min(1180px, 100%); max-height: 94vh;
  overflow: hidden; display: grid; grid-template-columns: 58% 42%; box-shadow: var(--shadow-lg);
  position: relative; animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); font-size: 22px; line-height: 1; color: var(--ink);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.modal-media { background: #0f172a; position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; max-height: 82vh; }
.modal-gallery { flex: 1; position: relative; overflow: hidden; min-height: 300px; }
.modal-main { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.modal-main img, .modal-main video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .28); color: #fff; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; transition: .15s;
  backdrop-filter: blur(4px);
}
.modal-nav:hover { background: rgba(255, 255, 255, .45); }
.modal-nav.prev { left: 12px; }
.modal-nav.next { right: 12px; }
.modal-nav svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.modal-thumbs {
  display: flex; gap: 8px; padding: 12px; overflow-x: auto;
  background: #0f172a; border-top: 1px solid rgba(255,255,255,.12);
}
.modal-thumbs::-webkit-scrollbar { height: 6px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
.modal-thumb {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #1e293b; position: relative;
}
.modal-thumb.active { border-color: #3b82f6; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.video::before {
  content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; background: rgba(0,0,0,.35);
}
.modal-info { padding: 30px 32px; overflow: hidden; display: flex; flex-direction: column; max-height: 94vh; }
.modal-scroll { flex: 1; overflow-y: auto; margin-bottom: 20px; padding-right: 4px; }
.modal-info .badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.modal-info h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.modal-info .price { font-size: 30px; font-weight: 800; color: var(--brand); margin-bottom: 20px; }
.modal-info .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.specs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; }
.specs li { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--line); padding: 9px 0; }
.specs li .k { flex: 0 0 42%; min-width: 120px; color: var(--muted); font-size: 13px; }
.specs li .v { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.wa-btn {
  margin-top: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 16px;
  padding: 15px 20px; border-radius: 14px; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); transition: .15s;
  box-sizing: border-box; max-width: 100%; width: 100%; text-align: center; text-decoration: none;
}
.wa-btn:hover { background: var(--whatsapp-d); transform: translateY(-1px); }
.wa-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal responsive ---------- */
@media (max-width: 860px) {
  .modal { grid-template-columns: 1fr; width: min(560px, 100%); }
  .modal-media { aspect-ratio: 16 / 10; max-height: 50vh; }
  .modal-info { max-height: none; padding: 20px 18px; }
  .modal-scroll { max-height: 46vh; }
  .wa-btn { font-size: 14px; padding: 12px 14px; gap: 8px; }
  .wa-btn svg { width: 18px; height: 18px; }
}

/* ---------- Auth modal (login / register) ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px);
}
.auth-overlay[hidden] { display: none; }
.auth-card { background: var(--surface); border-radius: 18px; width: min(420px, 100%); padding: 30px 30px 26px; box-shadow: var(--shadow-lg); position: relative; animation: pop .18s ease-out; }
.auth-card .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); font-size: 20px; color: var(--muted); }
.auth-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.auth-card .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.auth-tabs button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.auth-card .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-card .field label { font-size: 13px; font-weight: 600; }
.auth-card .field input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; }
.auth-card .field input:focus { outline: 0; border-color: var(--brand); }
.auth-card .submit { width: 100%; background: var(--brand); color: #fff; border: 0; padding: 13px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; margin-top: 4px; }
.auth-card .submit:hover { background: var(--brand-600); }
.auth-card .switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.auth-card .switch a { color: var(--brand); font-weight: 700; }
.auth-card .err { color: #dc2626; font-size: 13px; margin: -6px 0 12px; min-height: 0; }
.auth-card .ok { color: var(--whatsapp-d); font-size: 13px; margin: -6px 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer-cols .f-brand .logo { color: #fff; font-size: 20px; }
  .footer-cols .f-brand .logo-img { height: 42px; width: auto; display: block; }
.footer-cols .f-brand .logo span { color: #93c5fd; }
.footer-cols .f-brand p { font-size: 14px; color: #94a3b8; margin: 14px 0 0; max-width: 320px; line-height: 1.6; }
.footer-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols ul li { margin-bottom: 10px; }
.footer-cols ul li a { font-size: 14px; color: #cbd5e1; transition: .15s; }
.footer-cols ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #94a3b8; }
.footer-bottom .wa-inline { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer-bottom .wa-inline svg { width: 18px; height: 18px; color: var(--whatsapp); }

/* ---------- Content pages (about / shipping / faq / contact / terms) ---------- */
.page-hero { background: linear-gradient(180deg, #ffffff, var(--bg)); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin: 0; color: var(--muted); font-size: 17px; max-width: 720px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p { color: #334155; font-size: 15px; line-height: 1.7; }
.prose ul { color: #334155; font-size: 15px; line-height: 1.7; padding-left: 20px; }
.prose ul li { margin-bottom: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--brand); font-size: 20px; font-weight: 700; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .ans { padding: 0 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.contact-info .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info .row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info .row .ic svg { width: 19px; height: 19px; }
.contact-info .row .t { font-size: 14px; }
.contact-info .row .t strong { display: block; font-size: 15px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.contact-form .field label { font-size: 13px; font-weight: 600; }
.contact-form .field input, .contact-form .field textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; }
.contact-form .field textarea { resize: vertical; min-height: 110px; }
.btn-primary { background: var(--brand); color: #fff; border: 0; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary svg { width: 18px; height: 18px; }
.form-note { font-size: 13px; color: var(--whatsapp-d); margin-top: 10px; min-height: 0; }

/* ---------- Account / personal center ---------- */
.account-wrap { max-width: 1080px; margin: 0 auto; padding: 36px 28px 80px; }
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.account-head .ava { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex: none; }
.account-head .nm { font-size: 22px; font-weight: 800; }
.account-head .em { font-size: 14px; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.account-side { display: flex; flex-direction: column; gap: 8px; }
.account-side .side-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--ink); text-align: left; }
.account-side .side-btn.active, .account-side .side-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.account-side .side-btn.danger:hover { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.account-fav-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.account-fav-empty .big { font-size: 40px; margin-bottom: 10px; }
.login-gate { max-width: 420px; margin: 80px auto; text-align: center; }
.login-gate h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.login-gate p { color: var(--muted); margin: 0 0 20px; }
.account-stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.account-stats .st { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); }
.account-stats .st .n { font-size: 22px; font-weight: 800; }
.account-stats .st .l { font-size: 12px; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 28px 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.admin-head h1 { font-size: 26px; font-weight: 800; margin: 0; }
.admin-head .links a { color: var(--brand); font-weight: 600; font-size: 14px; margin-left: 16px; }
.admin-sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
.thumb { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag-new { background: #dcfce7; color: #166534; }
.tag-used { background: #fef3c7; color: #92400e; }
.tag-off { background: #f1f5f9; color: #64748b; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.act { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.act:hover { border-color: var(--brand); color: var(--brand); }
.act.danger:hover { border-color: #dc2626; color: #dc2626; }

/* ---------- Admin form modal ---------- */
.form-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.form-overlay[hidden] { display: none; }
.form-card { background: var(--surface); border-radius: 18px; width: min(720px, 100%); padding: 28px 30px 32px; box-shadow: var(--shadow-lg); }
.form-card h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.form-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field-c { display: flex; flex-direction: column; gap: 6px; }
.field-c.full { grid-column: 1 / -1; }
.field-c label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field-c input, .field-c select, .field-c textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; }
.field-c textarea { resize: vertical; min-height: 70px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Image order manager */
.img-list { display: flex; flex-direction: column; gap: 8px; }
.img-row { display: flex; align-items: center; gap: 8px; }
.img-row .img-idx { width: 22px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; flex: none; }
.img-row .img-src { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; }
.img-row .img-src:focus { outline: 0; border-color: var(--brand); }
.img-row .img-mv, .img-row .img-rm {
  flex: none; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.img-row .img-mv:hover { border-color: var(--brand); color: var(--brand); }
.img-row .img-mv:disabled { opacity: .35; cursor: not-allowed; }
.img-row .img-rm:hover { border-color: #dc2626; color: #dc2626; }

.footer-note { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--line); }

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { flex-direction: row; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .search { order: 3; flex-basis: 100%; margin-top: 4px; }
  .logo { font-size: 19px; }
  .lang-btn span.lbl, .acc-btn span.lbl { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero-logo img { max-width: 200px; max-height: 100px; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-stats { justify-content: center; }
  .update-card { height: 360px; max-height: 360px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .hero-stats .stat .num { font-size: 22px; }
  .controls { padding: 22px 18px 4px; }
  .tabs button { padding: 9px 16px; font-size: 14px; }
  .section { padding: 40px 0; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 24px; }
  .footer-bottom { flex-direction: column; }
  .modal { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
  .modal-media { aspect-ratio: 3 / 4; max-height: 56vh; }
  .modal-main img, .modal-main video { max-height: 56vh; }
  .modal-thumbs { padding: 10px; }
  .modal-thumb { width: 54px; height: 54px; }
  .modal-info h2 { font-size: 20px; }
  .modal-info .price { font-size: 24px; }
  .specs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .account-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
