@charset "utf-8";
/* ===== PartLink European premium theme — light, minimal, precise =====
   Design language: generous whitespace, white surfaces, hairline borders,
   graphite ink, one restrained signal-red accent (classic European
   aftermarket identity, cf. ATE / Brembo / Mahle corporate sites). */
:root {
  --navy: #ffffff;        /* page background (legacy var name) */
  --navy-light: #ffffff;  /* card background */
  --navy-lighter: #f2f4f8;/* table head / soft fill */
  --accent: #c8102e;      /* European signal red */
  --accent-dark: #a00d25;
  --steel: #5b6575;       /* secondary text */
  --mist: #16202e;        /* primary ink */
  --line: #e5e8ee;        /* hairline borders */
  --bg-soft: #f7f8fa;     /* alternating sections */
  --shadow: 0 1px 2px rgba(22,32,46,.04), 0 8px 24px -12px rgba(22,32,46,.10);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--mist);
  font-family: "Segoe UI", "Helvetica Neue", Inter, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

.container-x { max-width: 76rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .container-x { padding-inline: 2.5rem; } }

/* ---- Navbar ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; color: var(--mist); letter-spacing: .01em; }
.brand .logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: .3rem;
  background: var(--mist); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .02em;
}
.brand .hl { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 1.75rem; font-size: .82rem; }
.nav-links a { color: var(--steel); font-weight: 600; letter-spacing: .02em; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: .3rem;
  border: 1px solid var(--line); color: var(--mist); background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 1.1rem; height: 2px; background: var(--mist); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--mist); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
.nav-mobile { display: none; border-top: 1px solid var(--line); padding: .75rem 0; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: .6rem .75rem; border-radius: .3rem; color: var(--steel); font-size: .875rem; font-weight: 600; }
.nav-mobile a:hover { background: var(--bg-soft); color: var(--accent); }
.nav-mobile .m-cta { margin-top: .5rem; }
.nav-mobile .m-contact { padding: .5rem .75rem; font-size: .75rem; color: var(--steel); }
@media (min-width: 1024px) { .nav-links, .nav-cta { display: flex; } .nav-toggle { display: none; } .nav-mobile { display: none !important; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: .25rem; padding: .65rem 1.4rem; font-size: .85rem; font-weight: 700; letter-spacing: .02em; transition: all .2s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(200,16,46,.45); }
.btn-outline { border: 1px solid var(--mist); color: var(--mist); background: transparent; }
.btn-outline:hover { background: var(--mist); color: #fff; transform: translateY(-1px); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(200,16,46,.05) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 110%, #eef1f6 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 6rem 0 5.5rem; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: .3rem .85rem; font-size: .72rem; font-weight: 700; color: var(--steel);
  letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.12; color: var(--mist); letter-spacing: -.01em; }
@media (min-width: 1024px) { .hero h1 { font-size: 3.25rem; } }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { margin-top: 1.25rem; max-width: 38rem; font-size: 1.02rem; color: var(--steel); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-note { margin-top: .85rem; font-size: .75rem; color: var(--steel); }
.hero-note b { color: var(--mist); }
.marque-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--steel); letter-spacing: .03em; }
.marque-strip .ev { color: var(--accent); }

.hero-visual {
  border: 1px solid var(--line); border-radius: .75rem;
  background: #fff; padding: 1.75rem; box-shadow: var(--shadow);
}
.hero-visual .vt { font-size: .72rem; font-weight: 800; color: var(--steel); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.hero-visual .row { display: flex; justify-content: space-between; align-items: center; border-radius: .4rem; background: var(--bg-soft); border: 1px solid var(--line); padding: .9rem 1rem; margin-top: .75rem; }
.hero-visual .k { font-size: .85rem; font-weight: 700; color: var(--mist); }
.hero-visual .v { font-size: .75rem; color: var(--steel); }
.hero-visual .price { font-size: .82rem; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ---- Sections ---- */
section.block { padding: 4rem 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: .85rem; font-size: 1.45rem; font-weight: 800; color: var(--mist); margin-bottom: 2rem; flex-wrap: wrap; letter-spacing: -.005em; }
.section-title::before { content: ""; height: 1.45rem; width: .2rem; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.section-title .more { margin-left: auto; font-size: .8rem; font-weight: 400; }
.section-sub { margin: -1.25rem 0 2rem; font-size: .9rem; color: var(--steel); line-height: 1.7; max-width: 46rem; }

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Cards ---- */
.card {
  border-radius: .5rem; border: 1px solid var(--line);
  background: #fff; padding: 1.5rem;
  transition: all .25s; display: block; color: inherit;
}
.card:hover { border-color: #c9cfda; box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; border-radius: .4rem; margin-bottom: 1rem;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 1.4rem; color: var(--accent);
}
.card h3 { font-size: 1rem; font-weight: 750; color: var(--mist); margin-bottom: .5rem; }
.card p { font-size: .85rem; color: var(--steel); line-height: 1.7; }
.card .meta { font-size: .72rem; color: var(--steel); margin-bottom: .5rem; }
.card .meta .pn { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .78rem; color: var(--steel); flex-wrap: wrap; gap: .5rem; }
.card .foot b { color: var(--mist); }
.card .thumb {
  display: flex; align-items: center; justify-content: center; height: 8rem;
  border-radius: .35rem; margin-bottom: 1rem;
  background: linear-gradient(150deg, var(--navy-lighter), #e8ecf2);
  font-size: 2.75rem; color: rgba(22,32,46,.18);
  overflow: hidden; position: relative;
}
.card .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.detail-img {
  width: 100%; max-height: 26rem; object-fit: cover; object-position: center;
  border-radius: .5rem; border: 1px solid var(--line);
  margin-bottom: 1.5rem; display: block;
  background: linear-gradient(150deg, var(--navy-lighter), #e8ecf2);
}
.link-arrow { font-size: .85rem; color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .125rem .625rem; font-size: .7rem; font-weight: 700; }
.badge-11 { background: rgba(200,16,46,.08); color: var(--accent); }
.badge-eq { background: var(--navy-lighter); color: var(--steel); }

/* ---- Stats ---- */
.stat { text-align: center; padding: 1.4rem 1rem; border-radius: .5rem; border: 1px solid var(--line); background: #fff; }
.stat .v { font-size: 1.8rem; font-weight: 800; color: var(--mist); letter-spacing: -.02em; }
.stat .l { margin-top: .35rem; font-size: .75rem; color: var(--steel); line-height: 1.55; }

/* ---- Process ---- */
.process { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(6, 1fr); } }
.step { border-radius: .5rem; border: 1px solid var(--line); background: #fff; padding: 1.25rem; }
.step .no { font-size: .7rem; font-weight: 800; color: var(--accent); letter-spacing: .12em; }
.step h4 { margin: .4rem 0; font-size: .9rem; font-weight: 750; color: var(--mist); }
.step p { font-size: .75rem; color: var(--steel); line-height: 1.6; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: .5rem; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.data th { text-align: left; padding: .75rem 1rem; background: var(--navy-lighter); color: var(--mist); font-weight: 750; white-space: nowrap; }
table.data td { padding: .75rem 1rem; border-top: 1px solid var(--line); color: var(--mist); vertical-align: top; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
label.f { display: block; }
label.f > span { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 600; color: var(--steel); }
label.f > span .req { color: var(--accent); }
input.f, select.f, textarea.f {
  width: 100%; border-radius: .3rem; border: 1px solid #c9cfda;
  background: #fff; padding: .625rem .9rem; color: var(--mist); font-size: .875rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input.f:focus, select.f:focus, textarea.f:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
textarea.f { min-height: 7rem; resize: vertical; }
.validation-msg { color: var(--accent); font-size: .75rem; margin-top: .25rem; display: block; }
.alert-ok {
  border: 1px solid rgba(16,150,90,.35); background: rgba(16,150,90,.06); color: #0c7a4e;
  border-radius: .5rem; padding: 1rem 1.25rem; font-size: .9rem; margin-bottom: 1.5rem;
}

/* ---- Search bar ---- */
.searchbar { display: flex; gap: .5rem; padding: .5rem; border-radius: .5rem; border: 1px solid #c9cfda; background: #fff; flex-wrap: wrap; box-shadow: var(--shadow); }
.searchbar input[type="text"] { flex: 1; min-width: 12rem; background: transparent; border: none; outline: none; color: var(--mist); font-size: 1rem; padding: .5rem .25rem; }
.searchbar input[type="text"]::placeholder { color: #9aa3b2; }

/* ---- Market cards ---- */
.market-card .flag { font-size: 1.75rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: .375rem 1rem; font-size: .85rem; color: var(--mist); }
.pill:hover { border-color: #c9cfda; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; font-size: .85rem; color: var(--steel); line-height: 1.6; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* ---- Filter tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tabs a { border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: .375rem 1rem; font-size: .8rem; font-weight: 650; color: var(--steel); transition: all .2s; }
.tabs a:hover { color: var(--mist); border-color: #c9cfda; }
.tabs a.active { background: var(--mist); border-color: var(--mist); color: #fff; }

/* ---- Page head ---- */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { font-size: 2rem; font-weight: 800; color: var(--mist); letter-spacing: -.01em; }
.page-head p { margin-top: .75rem; max-width: 46rem; color: var(--steel); font-size: .95rem; line-height: 1.75; }
@media (min-width: 1024px) { .page-head h1 { font-size: 2.5rem; } }

/* ---- Result rows (parts finder) ---- */
.result { border-radius: .5rem; border: 1px solid var(--line); background: #fff; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; transition: border-color .2s, box-shadow .2s; }
.result:hover { border-color: #c9cfda; box-shadow: var(--shadow); }
.result .r-name { font-weight: 700; color: var(--mist); font-size: .95rem; }
.result .r-meta { font-size: .78rem; color: var(--steel); margin-top: .25rem; }
.result .r-meta .pn { color: var(--accent); font-weight: 700; }
.result .matched { font-size: .75rem; color: var(--steel); }
.result .matched b { color: var(--accent); }

/* ---- CTA band ---- */
.cta-band { border: 1px solid var(--line); border-radius: .75rem; background: #fff; padding: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: var(--shadow); }
.cta-band h2 { font-size: 1.4rem; font-weight: 800; color: var(--mist); }
.cta-band p { margin-top: .5rem; font-size: .85rem; color: var(--steel); }

/* ---- Footer (dark — deliberate contrast close) ---- */
.site-footer { margin-top: 4rem; background: #131b28; color: #8b95a6; }
.site-footer .grid { display: grid; gap: 2.5rem; padding: 3rem 0; }
@media (min-width: 640px) { .site-footer .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.site-footer h3 { font-size: .72rem; font-weight: 800; color: #dce2ec; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .09em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .85rem; }
.site-footer li a { color: #8b95a6; }
.site-footer li a:hover { color: #fff; }
.footer-desc { font-size: .85rem; color: #8b95a6; line-height: 1.75; }
.footer-bottom { border-top: 1px solid #232e40; padding: 1rem 0; text-align: center; font-size: .75rem; color: #5f6a7d; }

/* ---- Language switcher ---- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: .3rem;
  padding: .4rem .65rem; font-size: .78rem; font-weight: 700; color: var(--steel);
  background: #fff; white-space: nowrap; transition: border-color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: #c9cfda; color: var(--mist); }
.lang-menu[open] summary { border-color: var(--accent); color: var(--mist); }
.lang-pop {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60;
  min-width: 10rem; background: #fff; border: 1px solid var(--line);
  border-radius: .4rem; box-shadow: var(--shadow); padding: .35rem; text-align: left;
}
.lang-pop a {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .65rem; border-radius: .25rem; font-size: .82rem; color: var(--mist);
}
.lang-pop a:hover { background: var(--bg-soft); }
.lang-pop a.cur { background: rgba(200,16,46,.07); color: var(--accent); font-weight: 700; }
.m-lang { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem .75rem; }
.m-lang a {
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .78rem; color: var(--steel);
}
.m-lang a.cur { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ---- RTL (Arabic) ---- */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif; }
[dir="rtl"] .kv { grid-template-columns: 1fr auto; }
[dir="rtl"] table.data th, [dir="rtl"] table.data td { text-align: right; }
[dir="rtl"] .result .matched { text-align: left; }
[dir="rtl"] .hero-visual .row, [dir="rtl"] .result, [dir="rtl"] .cta-band, [dir="rtl"] .card .foot { flex-direction: row-reverse; }
[dir="rtl"] .lang-pop { right: auto; left: 0; }

/* ---- Floating WhatsApp ---- */
.float-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff; font-weight: 700; font-size: .85rem;
  border-radius: 999px; padding: .7rem 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(37,211,102,.45);
  transition: transform .2s;
}
.float-wa:hover { transform: translateY(-3px); color: #fff; }
.float-wa svg { width: 1.1rem; height: 1.1rem; fill: #fff; }
@media (max-width: 640px) { .float-wa span { display: none; } }

/* ---- Misc ---- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--steel); font-size: .9rem; }
.empty .big { font-size: 2.5rem; margin-bottom: .75rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; font-size: .85rem; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; color: var(--mist); }
.breadcrumb { font-size: .78rem; color: var(--steel); margin-bottom: 1rem; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--accent); }

/* ===== Admin back office ===== */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: grid; grid-template-columns: 15rem 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-side {
  background: #16202e; color: #cbd3df; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.admin-brand { display: flex; flex-direction: column; line-height: 1.25; padding: .25rem .5rem 0; }
.admin-brand b { color: #fff; font-size: 1.15rem; letter-spacing: .02em; }
.admin-brand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: #8e9aab; }
.admin-side nav { display: flex; flex-direction: column; gap: .15rem; }
.anav {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: .35rem;
  color: #cbd3df; font-size: .86rem;
}
.anav span { width: 1.1rem; text-align: center; opacity: .75; }
.anav:hover { background: rgba(255,255,255,.06); color: #fff; }
.anav.active { background: var(--accent); color: #fff; }
.anav.active span { opacity: 1; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; padding: .5rem; font-size: .78rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-side-foot a { color: #8e9aab; }
.admin-side-foot a:hover { color: #fff; }
/* 后台左侧：一键切换到前台页面。target=_blank 新标签打开，避免后台 session 丢失。 */
.front-links { display: flex; flex-direction: column; gap: .05rem; margin-bottom: .15rem; }
.front-links-title { color: #6f7a8a; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .25rem .35rem; border-bottom: 1px dashed rgba(255,255,255,.08); margin-bottom: .25rem; }
.front-links a { display: flex; align-items: center; gap: .4rem; padding: .3rem .35rem; border-radius: .25rem; font-size: .82rem; }
.front-links a:hover { background: rgba(255,255,255,.07); }
.alink { background: none; border: 0; padding: 0; color: #8e9aab; font: inherit; cursor: pointer; text-align: left; }
.alink:hover { color: #fff; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: #fff; border-bottom: 1px solid var(--line); padding: 1.1rem 1.75rem;
}
.admin-top h1 { font-size: 1.15rem; font-weight: 750; color: var(--mist); }
.admin-user { font-size: .78rem; color: var(--steel); display: flex; gap: .75rem; }
.admin-user .sub { color: #9aa4b2; }
.admin-content { padding: 1.5rem 1.75rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; }

.admin-flash {
  margin: 1rem 1.75rem 0; padding: .7rem 1rem; border-radius: .4rem; font-size: .85rem;
  background: #e8f6ec; border: 1px solid #b7e0c4; color: #1c6b3a;
}
.admin-flash.error { background: #fdecec; border-color: #f2c0c0; color: #a00d25; }
.admin-error { color: var(--accent-dark); font-size: .78rem; }

.admin-panel {
  background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 2px rgba(22,32,46,.03);
}
.admin-panel h2 { font-size: .95rem; font-weight: 750; color: var(--mist); margin-bottom: .85rem; }
.admin-panel.danger-zone { border-color: #f0cfd4; background: #fffafa; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.admin-filters input[type="search"] { min-width: 18rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th {
  text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--steel); padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: .7rem; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .actions { display: flex; gap: .75rem; align-items: center; }
.admin-table .actions form { display: inline; }
.admin-table .icon-cell { font-size: 1.2rem; color: var(--accent); }
.admin-table.editable input, .admin-table.editable select { padding: .35rem .45rem; font-size: .82rem; width: 100%; min-width: 5rem; }
.admin-thumb { width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: .3rem; border: 1px solid var(--line); display: block; }
.no-img { color: #c3cad4; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.field-grid label, .admin-panel label { display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; color: var(--steel); font-weight: 600; }
.field-grid label.wide { grid-column: 1 / -1; }
.admin-panel input, .admin-panel select, .admin-panel textarea {
  font: inherit; font-size: .86rem; font-weight: 400; color: var(--mist);
  padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .35rem; background: #fff;
}
.admin-panel input:focus, .admin-panel select:focus, .admin-panel textarea:focus {
  outline: 2px solid rgba(200,16,46,.16); border-color: #d9b3bb;
}
.admin-panel label.inline { flex-direction: row; align-items: center; gap: .5rem; color: var(--mist); font-weight: 400; }
.admin-panel label.inline.tight { font-size: .75rem; }
.muted { color: var(--steel); }
.small { font-size: .74rem; }
.muted.small { font-weight: 400; }
.grow { flex: 1; }

.repeater { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .85rem; }
.rep-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.rep-row input, .rep-row select { flex: 1 1 9rem; min-width: 7rem; }
.rep-row input[type="number"] { flex: 0 1 6rem; }

.admin-sticky-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.btn-sm { padding: .45rem .85rem; font-size: .8rem; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: var(--accent); cursor: pointer; }
.btn-link.danger { color: #b0213a; }
.btn-link:hover { text-decoration: underline; }
.btn.btn-outline.danger { color: var(--accent-dark); border-color: #f0cfd4; }

.chip {
  font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--steel); cursor: pointer; font-weight: 600;
}
.chip:hover { border-color: #c9cfda; }
.chip.on { background: var(--mist); border-color: var(--mist); color: #fff; }

.pill-status {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 999px; background: var(--bg-soft); color: var(--steel); border: 1px solid var(--line);
}
.pill-status.new { background: #fdecec; border-color: #f2c0c0; color: #a00d25; }
.pill-status.won { background: #e8f6ec; border-color: #b7e0c4; color: #1c6b3a; }
.pill-status.quoted { background: #eef3ff; border-color: #c9d8f5; color: #274b91; }

.inquiry.focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.07); }
.inquiry-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.inquiry-head h2 { margin-bottom: .25rem; font-size: 1rem; }
.inquiry-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.inquiry-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: .85rem 0 .6rem; }
.tag { font-size: .74rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: .3rem; padding: .25rem .5rem; color: var(--steel); }
.inquiry blockquote {
  margin: 0; padding: .75rem .9rem; background: var(--bg-soft); border-left: 3px solid var(--line);
  border-radius: .3rem; font-size: .85rem; color: var(--mist); white-space: pre-wrap;
}
.inquiry-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.inquiry-form label { flex: 0 0 auto; }

.image-row { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.image-preview {
  width: 12rem; height: 9rem; border-radius: .4rem; border: 1px dashed var(--line);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.stat-card .n { font-size: 1.75rem; font-weight: 800; color: var(--mist); line-height: 1; }
.stat-card .l { font-size: .78rem; color: var(--steel); }
.stat-card a { font-size: .74rem; margin-top: .35rem; }
.stat-card.accent { border-color: #f2c0c0; background: #fffafa; }
.stat-card.accent .n { color: var(--accent); }

/* ---- Admin login ---- */
.admin-login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: #16202e; padding: 1.5rem;
}
.admin-login {
  width: min(23rem, 100%); background: #fff; border-radius: .6rem; padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.admin-login .admin-brand { padding: 0; text-align: center; margin-bottom: .5rem; }
.admin-login .admin-brand b { color: var(--mist); }
.admin-login h1 { font-size: 1.05rem; text-align: center; color: var(--mist); }
.admin-login label { display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; color: var(--steel); font-weight: 600; }
.admin-login label.inline { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.admin-login input[type="text"], .admin-login input[type="password"] {
  font: inherit; font-size: .88rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .35rem;
}
.admin-login .hint { font-size: .72rem; color: var(--steel); line-height: 1.6; text-align: center; }
.admin-login code { background: var(--bg-soft); padding: .1rem .3rem; border-radius: .2rem; }

