/* ==========================================================
   MK5R — feuille de style
   Design "atelier mécanique / tuning custom" :
   asphalte, carbone, orange sécurité, chrome, rivets, jauges.
   ========================================================== */

:root {
  --bg: #0a0a0c;
  --bg-alt: #16171a;
  --card: #1b1c20;
  --card-2: #202126;
  --border: #2c2e34;
  --text: #edeef0;
  --text-muted: #9a9da5;
  --accent: #ff5a1f;       /* orange sécurité */
  --accent-2: #ffc72c;     /* jaune avertissement */
  --chrome-1: #e6e8ec;
  --chrome-2: #8b8f98;
  --success: #35c47a;
  --error: #ff5c5c;
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1160px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,90,31,0.06), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 640px; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }

.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.muted { color: var(--text-muted); }
.hint { color: var(--text-muted); font-size: 0.85rem; margin: -0.3rem 0 0.6rem; }

.section { padding: 3rem 1.25rem; }
.section-sub { margin-top: 2.5rem; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.06em; color: var(--accent-2); font-family: var(--font-head); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.link-more { color: var(--accent-2); white-space: nowrap; font-family: var(--font-head); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.85rem; }
.empty-state { color: var(--text-muted); font-style: italic; }
.cta-block { margin-top: 2rem; }

/* --- Rayures de sécurité (séparateurs) --- */
.hazard-bar {
  height: 8px;
  background: repeating-linear-gradient(135deg, #111 0 14px, var(--accent) 14px 28px);
}
.hazard-bar-thin { height: 5px; }

/* --- Boutons (style embossé / métal) --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, #ff7a3d, var(--accent) 60%, #d6430f);
  color: #1a0d05;
  border: 1px solid #d6430f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 0 rgba(0,0,0,0.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: linear-gradient(180deg, #24262b, #1a1b1f);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-small {
  padding: 0.35rem 0.8rem; font-size: 0.75rem; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-approve { background: rgba(53,196,122,0.15); border-color: var(--success); color: var(--success); }
.btn-reject { background: rgba(255,199,44,0.15); border-color: var(--accent-2); color: var(--accent-2); }
.btn-danger { background: rgba(255,92,92,0.15); border-color: var(--error); color: var(--error); }

/* --- Plaque d'immatriculation (logo) --- */
.plate {
  display: inline-flex; align-items: stretch; border-radius: 4px; overflow: hidden;
  border: 2px solid #14151a; box-shadow: 0 2px 0 rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.4);
  background: linear-gradient(180deg, #f2f4f6, #dcdfe3);
}
.plate-band {
  background: linear-gradient(180deg, #1e5fd6, #123f96);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; padding: 0 0.4rem;
}
.plate-text {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.12em; color: #111;
  padding: 0.25rem 0.65rem; font-size: 1.15rem;
}
.plate-small { transform: scale(0.82); transform-origin: left center; }

/* --- Header / nav --- */
.site-header, .admin-header {
  border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, #101114 0 2px, #131418 2px 4px),
    repeating-linear-gradient(-45deg, #101114 0 2px, #131418 2px 4px);
  background-blend-mode: multiply;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner, .admin-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.25rem; gap: 1rem;
}
.admin-header-inner { justify-content: flex-start; }
.admin-tag {
  font-family: var(--font-head); color: var(--accent); border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.7rem; letter-spacing: 0.08em;
}

.site-nav, .admin-nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; font-size: 0.85rem; margin-left: auto; }
.site-nav a, .admin-nav a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.site-nav a:hover, .admin-nav a:hover { color: var(--accent-2); }
.nav-insta { color: var(--accent-2); }
.nav-admin { color: var(--accent); font-weight: 700; }
.btn-nav {
  background: linear-gradient(180deg, #ff7a3d, var(--accent)); color: #1a0d05;
  padding: 0.4rem 0.9rem; border-radius: 4px; font-weight: 700;
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); flex-direction: column; align-items: flex-start;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); gap: 0.9rem;
  }
  .site-nav.is-open { display: flex; }
  .admin-nav { display: none; }
}

/* --- Flash messages --- */
.flash-stack { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.92rem; border-left: 4px solid; }
.flash-success { background: rgba(53,196,122,0.1); border-color: var(--success); color: var(--success); }
.flash-error { background: rgba(255,92,92,0.1); border-color: var(--error); color: var(--error); }
.flash-info { background: rgba(255,199,44,0.1); border-color: var(--accent-2); color: var(--accent-2); }

/* --- Hero --- */
.hero {
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
  background: radial-gradient(circle at 50% -10%, rgba(255,90,31,0.16), transparent 55%);
  position: relative;
}
.hero-kicker { color: var(--accent-2); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.6rem; font-family: var(--font-head); }
.hero-lead { color: var(--text-muted); max-width: 58ch; margin: 1rem auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-gauges { display: flex; justify-content: center; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.gauge {
  --val: 50;
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--val) * 1%), rgba(255,255,255,0.08) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.gauge::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.gauge-face { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.gauge-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--accent-2); line-height: 1; }
.gauge-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: 0.2rem; }

/* --- Cards / forms --- */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
  position: relative;
}
.form { display: flex; flex-direction: column; gap: 0.3rem; }
.form label { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-head); }
.form input, .form select, .form textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); padding: 0.6rem 0.75rem; font-size: 0.95rem; font-family: var(--font-body);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,90,31,0.25);
}
.form button { margin-top: 1.2rem; align-self: flex-start; }
.ba-fieldset { border: 1px dashed var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; margin-top: 1rem; }
.ba-fieldset legend { padding: 0 0.4rem; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card p { margin: 0.5rem 0; }

/* --- Panneaux rivetés (accents coin) --- */
.riveted { position: relative; }
.riveted::before, .riveted::after {
  content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfd3d8, #55585e 70%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
  top: 10px;
}
.riveted::before { left: 10px; }
.riveted::after { right: 10px; }

/* --- Mini timeline (accueil) --- */
.mini-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .mini-timeline { grid-template-columns: 1fr; } }
.mini-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: block; }
.mini-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.mini-card-body { padding: 0.9rem 1rem; }
.mini-card-owner { color: var(--text-muted); font-size: 0.82rem; margin: 0.3rem 0 0; }

/* --- Timeline complète --- */
.timeline { position: relative; margin-top: 2rem; padding-left: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 10px, #111 10px 16px);
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-dot {
  position: absolute; left: -1.5rem; top: 0.4rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,199,44,0.15), 0 0 0 2px #111;
}
.timeline-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; max-width: 540px; }
.timeline-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.timeline-card > *:not(img) { padding-left: 1.1rem; padding-right: 1.1rem; }
.timeline-card h3 { padding-top: 0.2rem; }
.timeline-card p { padding-bottom: 0.6rem; color: var(--text-muted); }
.timeline-date { color: var(--accent-2); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; margin-top: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.timeline-card .inline-mod { padding: 0 1.1rem 0.9rem; }

/* --- Galerie --- */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.2rem 0 1.5rem; }
.filter-btn {
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted);
  padding: 0.4rem 0.9rem; border-radius: 4px; font-size: 0.78rem; cursor: pointer;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em;
}
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #1a0d05; font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.gallery-grid-preview { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery-item-wrap { position: relative; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--card); border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.is-hidden { display: none; }
.gallery-item-wrap.is-hidden { display: none; }
.gallery-mod { position: absolute; top: 6px; right: 6px; margin: 0; }
.mod-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--error);
  background: rgba(10,10,12,0.8); color: var(--error); font-size: 1rem; line-height: 1; cursor: pointer;
}

/* --- Avant / après --- */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.ba-slider {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); user-select: none; background: var(--card);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  border-right: 2px solid var(--accent);
}
.ba-handle {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #fff, #cfd3d8);
  pointer-events: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 2px var(--accent);
}
.ba-handle::before { content: '◂ ▸'; font-size: 0.7rem; color: #111; letter-spacing: 2px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 0.6rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 3px; background: rgba(0,0,0,0.6); color: #fff; letter-spacing: 0.08em; font-family: var(--font-head); }
.ba-tag-before { left: 0.6rem; }
.ba-tag-after { right: 0.6rem; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; background: rgba(4,4,5,0.95); z-index: 100;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(90vw, 1000px); max-height: 75vh; border-radius: var(--radius); object-fit: contain; border: 1px solid var(--border); }
.lightbox-caption { color: var(--text-muted); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #fff;
  border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--accent); color: var(--accent-2); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* --- Fiche technique (style feuille de specs / banc de puissance) --- */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs-table th, .specs-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.specs-table th {
  color: var(--text-muted); font-weight: 600; width: 40%;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem;
  border-left: 3px solid var(--accent);
}
.specs-table td { font-family: var(--font-mono); color: var(--chrome-1); }
.specs-table .inline-mod { display: inline-block; margin-left: 0.6rem; }

/* --- Garages (communauté) --- */
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.garage-card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: block; transition: border-color .2s, transform .2s;
}
.garage-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.garage-card-media {
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  background-color: #101114; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.garage-card-noimg { font-family: var(--font-head); color: var(--border); font-size: 1.8rem; letter-spacing: 0.1em; }
.garage-card-body { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem 0.6rem; }
.garage-card-avatar, .garage-hero-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #1a0d05;
  font-family: var(--font-head);
}
.garage-card-name { font-weight: 700; }
.garage-card-car { color: var(--text-muted); font-size: 0.85rem; }
.garage-card-stats { display: flex; gap: 0.8rem; padding: 0 1rem 1rem; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.garage-card-insta { color: var(--accent-2); margin-left: auto; }

/* --- Fiche garage individuelle --- */
.garage-hero {
  padding: 3rem 1.25rem; background: linear-gradient(180deg, rgba(255,90,31,0.08), transparent);
  border-bottom: 1px solid var(--border);
}
.garage-hero-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.garage-hero-avatar { width: 68px; height: 68px; font-size: 1.4rem; }
.garage-hero-kicker { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-family: var(--font-head); margin: 0 0 0.2rem; }
.garage-hero h1 { margin-bottom: 0.1rem; }
.garage-hero-model { color: var(--text-muted); margin: 0 0 0.5rem; font-family: var(--font-mono); }
.garage-hero-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.garage-hero-edit { margin-left: auto; }

/* --- Communauté / stats --- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.5rem; }

/* --- Badges --- */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.72rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; }
.badge-approved { background: rgba(53,196,122,0.15); color: var(--success); }
.badge-pending { background: rgba(255,199,44,0.15); color: var(--accent-2); }
.badge-rejected { background: rgba(255,92,92,0.15); color: var(--error); }

/* --- Onglets "Mon garage" --- */
.tab-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 0.6rem 1.1rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 0.85rem; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.is-active { color: var(--accent-2); border-bottom-color: var(--accent); }

/* --- Modération (admin sur fiche publique) --- */
.inline-mod { display: inline; }

/* --- Instagram embed --- */
.insta-embed { margin-top: 1rem; }
.insta-placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  margin-top: 3rem; padding: 2.5rem 1.25rem;
  background:
    repeating-linear-gradient(45deg, #101114 0 2px, #131418 2px 4px),
    repeating-linear-gradient(-45deg, #101114 0 2px, #131418 2px 4px);
  background-blend-mode: multiply;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner p { color: var(--text-muted); margin-top: 0.6rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; width: 100%; margin-top: 1rem; font-family: var(--font-mono); }

/* --- Admin --- */
.admin-body { background: var(--bg); }
.admin-main { padding: 2rem 1.25rem 4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat-card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; display: block; }
.stat-card.stat-alert { border-color: var(--accent-2); }
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent-2); }
.stat-label { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.2rem; }

.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--text-muted); font-family: var(--font-head); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.admin-list { display: flex; flex-direction: column; gap: 0.7rem; }
.admin-list-row { display: flex; align-items: center; gap: 0.8rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; }
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.admin-list-info { flex: 1; display: flex; flex-direction: column; }
.admin-preview { margin-top: 0.5rem; max-width: 160px; border-radius: var(--radius); }
.admin-spec-row { flex-wrap: wrap; }
.spec-input { flex: 1; min-width: 120px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); border-radius: 4px; padding: 0.4rem 0.6rem; font-family: var(--font-mono); }
.spec-order { width: 70px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); border-radius: 4px; padding: 0.4rem 0.6rem; }
