/* KALI-CHEATS — strict Kali Yuga theme: graphite, bone, crimson. No glow, no gradients. */
:root {
  --bg: #0a0a0b;
  --bg2: #0e0e10;
  --card: #0e0e10;
  --panel: #101013;
  --border: #232327;
  --border2: #303036;
  --text: #e6e2d6;
  --muted: #8f8b7e;
  --accent: #9e1b1b;
  --accent-hi: #c22b2b;
  --accent2: #b08d57; /* antique gold */
  --ok: #8fb89e;
  --ok-dim: #2c4434;
  --warn: #cfa952;
  --warn-dim: #4a3d1e;
  --bad: #d16a6a;
  --bad-dim: #47201f;
  --radius: 2px;
  --font-display: 'Cinzel', 'Georgia', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* faint vignette instead of neon blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #f5efe2; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262b; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a40; }
input::placeholder, textarea::placeholder { color: #5e5b52; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
header.site .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.brand .logo-dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid rgba(158, 27, 27, 0.65);
  background: #0d0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hi);
  flex-shrink: 0;
}
.brand .logo-dot svg { width: 18px; height: 18px; }
.brand b { font-weight: 700; }
header.site nav { display: flex; gap: 22px; margin-left: 6px; }
header.site nav a {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
header.site nav a:hover, header.site nav a.active { color: var(--text); border-bottom-color: var(--accent); }
header.site .nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.icon-link { color: var(--muted); display: inline-flex; transition: color .2s; }
.icon-link:hover { color: var(--accent-hi); }
.search-inline {
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  width: 210px;
  outline: none;
  transition: border-color .2s;
}
.search-inline:focus { border-color: var(--accent); }
@media (max-width: 860px) {
  header.site .nav { gap: 14px; }
  .search-inline { width: 130px; }
  header.site nav { gap: 14px; }
}
@media (max-width: 640px) {
  .search-inline { display: none; }
  header.site nav a.hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  border-color: #701212;
  color: #f5efe2;
}
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost {
  background: transparent;
  border-color: var(--border2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(209, 106, 106, 0.45); color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: rgba(209, 106, 106, 0.08); }
.btn-sm { padding: 7px 13px; font-size: 11px; }
.btn[disabled], .btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 56px; text-align: center; overflow: hidden; }
.hero-sigil {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: 660px;
  max-width: 92vw;
  height: auto;
  color: var(--accent2);
  opacity: 0.055;
  pointer-events: none;
}
.hero-overline {
  position: relative;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 22px;
}
.hero h1 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 62px);
  letter-spacing: 0.1em;
  margin: 0 0 20px;
  line-height: 1.08;
  color: var(--text);
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--accent-hi); }
.hero p {
  position: relative;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-badges { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-badges .chip svg { width: 14px; height: 14px; color: var(--accent2); }

/* ---------- toolbar / filters ---------- */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.toolbar .input, .toolbar select {
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.toolbar .input { flex: 1 1 240px; }
.toolbar .input:focus, .toolbar select:focus { border-color: var(--accent); }
.status-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.status-chip {
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: inherit;
}
.status-chip:hover { border-color: var(--border2); color: var(--text); }
.status-chip.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(158, 27, 27, 0.1);
}

/* ---------- product grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding-bottom: 56px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(158, 27, 27, 0.55);
  background: #101013;
}
.product-card .cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0d;
  border-bottom: 1px solid var(--border);
}
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.product-card:hover .cover img { transform: scale(1.03); }
.cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0f;
  color: var(--accent2);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3em;
}
.product-card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; letter-spacing: 0.06em; }
.product-card .meta .mono { color: var(--accent2); }
.product-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--accent-hi); }
.product-card .desc {
  margin: 0; color: var(--muted); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-card .card-actions { display: flex; gap: 10px; margin-top: 6px; }
.product-card .card-actions .btn { flex: 1; padding: 10px 8px; font-size: 11px; }
.product-card .card-stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.product-card .card-stats span { display: inline-flex; align-items: center; gap: 6px; }
.product-card .card-stats svg { width: 13px; height: 13px; color: var(--accent2); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.badge.ok { background: rgba(44, 68, 52, 0.35); color: var(--ok); border: 1px solid var(--ok-dim); }
.badge.bad { background: rgba(71, 32, 31, 0.35); color: var(--bad); border: 1px solid var(--bad-dim); }
.badge.warn { background: rgba(74, 61, 30, 0.35); color: var(--warn); border: 1px solid var(--warn-dim); }
.cover .badge { position: absolute; top: 12px; left: 12px; }

/* ---------- section headers ---------- */
.section-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-title h2::before { content: ''; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.section-title .line { flex: 1; height: 1px; background: var(--border); }

/* ---------- product page ---------- */
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding: 24px 0 0; align-items: stretch; }
@media (max-width: 900px) { .product-head { grid-template-columns: 1fr; } }
.product-title-wrap { display: flex; flex-direction: column; min-width: 0; }
.product-title-wrap h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.product-meta-row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; align-items: center; }
.product-meta-row span { display: inline-flex; gap: 6px; align-items: center; }
.product-meta-row svg { width: 13px; height: 13px; color: var(--accent2); }
.product-desc { color: var(--muted); font-size: 14px; margin: 10px 0 0; white-space: pre-line; }
body.page-product .container { max-width: 1080px; }
.cover-big { margin-top: 14px; flex: 1 1 auto; min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #0b0b0d; }
.cover-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .cover-big { flex: none; aspect-ratio: 16/9; min-height: 0; } }

.buy-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 78px; border-top: 2px solid var(--accent); }
.buy-card .price { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent2); letter-spacing: 0.06em; }
.buy-card .note { margin: 0; font-size: 12px; line-height: 1.45; }
.buy-card .btn { width: 100%; padding: 12px; font-size: 11.5px; }
.spec { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.spec:last-of-type { border-bottom: 0; }
.spec .k { color: var(--muted); }
.spec .v { text-align: right; word-break: break-all; }
.hash-row { display: flex; align-items: center; gap: 8px; }
.hash-row code { font-size: 10.5px; word-break: break-all; }
.copy-btn { background: none; border: 1px solid var(--border2); color: var(--muted); border-radius: var(--radius); padding: 2px 7px; cursor: pointer; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

/* gallery */
.gallery { margin: 18px 0; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/9; background: #0b0b0d; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs .th {
  width: 96px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; opacity: 0.55; transition: all .2s;
  background: #0b0b0d; padding: 0;
}
.gallery-thumbs .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs .th.active, .gallery-thumbs .th:hover { opacity: 1; border-color: var(--accent); }

/* videos */
.video-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-box video, .video-box iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 5, 0.95);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border: 1px solid var(--border2); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: border-color .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { border-color: var(--accent); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- markdown body ---------- */
.md-body { font-size: 14px; color: #c9c5b8; }
.md-body h1, .md-body h2, .md-body h3 { color: var(--text); font-weight: 700; margin: 20px 0 10px; line-height: 1.3; }
.md-body h1 { font-size: 19px; font-family: var(--font-display); letter-spacing: 0.05em; }
.md-body h2 { font-size: 16px; font-family: var(--font-display); letter-spacing: 0.06em; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.md-body h3 { font-size: 14px; }
.md-body p { margin: 10px 0; }
.md-body a { color: var(--accent-hi); }
.md-body a:hover { color: var(--text); }
.md-body ul, .md-body ol { padding-left: 24px; margin: 10px 0; }
.md-body li { margin: 5px 0; }
.md-body li::marker { color: var(--accent-hi); }
.md-body code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(176, 141, 87, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.25);
  border-radius: var(--radius); padding: 1.5px 6px; font-size: 13px; color: #d3b98a;
}
.md-body pre {
  background: #0b0b0d; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; margin: 14px 0;
}
.md-body pre code { background: none; border: 0; padding: 0; color: #b9b4a4; }
.md-body blockquote {
  margin: 14px 0; padding: 10px 16px; border-left: 2px solid var(--accent);
  background: #101013; color: var(--muted);
}
.md-body img { border: 1px solid var(--border); }
.md-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.md-body th, .md-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.md-body th { background: #141416; color: var(--text); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.md-body hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- instructions list ---------- */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding: 10px 0 60px; }
.doc-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc-card:hover { border-color: rgba(158, 27, 27, 0.5); }
.doc-card .kicker { color: var(--accent2); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.doc-card h3 { margin: 0; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; }
.doc-card h3 a { color: var(--text); }
.doc-card h3 a:hover { color: var(--accent-hi); }
.doc-card .go {
  margin-top: auto; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: color .2s;
}
.doc-card:hover .go { color: var(--accent-hi); }
.breadcrumb { padding: 24px 0 0; font-size: 12px; color: var(--muted); display: flex; gap: 9px; align-items: center; flex-wrap: wrap; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--accent-hi); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); margin-top: 40px; background: #08080a; }
footer.site .inner { padding: 34px 20px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
footer.site .foot-ornament { display: flex; align-items: center; gap: 16px; width: min(440px, 82%); }
footer.site .foot-ornament::before, footer.site .foot-ornament::after { content: ''; flex: 1; height: 1px; background: var(--border); }
footer.site .foot-ornament i { font-style: normal; color: var(--accent); font-size: 11px; line-height: 1; }
footer.site .socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
footer.site .socials a {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 10px 20px; color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transition: border-color .2s;
}
footer.site .socials a:hover { border-color: var(--accent); }
footer.site .socials svg { width: 15px; height: 15px; color: var(--accent2); }
footer.site .foot-text { color: var(--muted); font-size: 12.5px; max-width: 640px; }

/* ---------- empty / loading ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; margin-bottom: 12px; opacity: 0.4; }
.spinner {
  width: 34px; height: 34px; margin: 60px auto; border-radius: 50%;
  border: 1px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-in { animation: rise .4s ease both; }

/* ---------- toast ---------- */
#toast-zone { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #121215; border: 1px solid var(--border);
  border-left: 2px solid var(--ok);
  padding: 12px 18px; border-radius: var(--radius); font-size: 13.5px; min-width: 220px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: rise .3s ease;
}
.toast.err { border-left-color: var(--accent-hi); }

/* ================= ADMIN ================= */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 232px; flex-shrink: 0; padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: #0b0b0d;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
}
.admin-side .brand { padding: 4px 10px 20px; }
.admin-side a.nav-item, .admin-side button.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; border-radius: var(--radius); color: var(--muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 0; border-left: 2px solid transparent; background: none; cursor: pointer;
  font-family: inherit; text-align: left; width: 100%; transition: color .15s, border-color .15s, background .15s;
}
.admin-side .nav-item:hover { color: var(--text); background: #101013; }
.admin-side .nav-item.active { color: var(--text); background: #131316; border-left-color: var(--accent); }
.admin-side .nav-item svg { width: 16px; height: 16px; }
.admin-side .spacer { flex: 1; }
.admin-main { flex: 1; padding: 26px 30px 60px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-topbar h1 { font-family: var(--font-display); font-size: 21px; margin: 0; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) {
  .admin-shell { flex-direction: column; }
  .admin-side { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .brand { padding: 4px 10px; }
  .admin-side .spacer { display: none; }
  .admin-main { padding: 20px 16px 50px; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--border2); }
.stat-card .label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.stat-card .label svg { width: 15px; height: 15px; color: var(--accent2); }
.stat-card .value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--text); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; padding: 10px 12px; color: var(--muted); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 1px solid var(--border); font-weight: 600;
}
table.tbl td { padding: 10px 12px; border-bottom: 1px solid #17171a; vertical-align: middle; }
table.tbl tr:hover td { background: #101013; }
table.tbl .thumb { width: 64px; height: 38px; object-fit: cover; border: 1px solid var(--border); display: block; background: #0b0b0d; }
table.tbl a.row-title { color: var(--text); font-weight: 600; }
table.tbl a.row-title:hover { color: var(--accent-hi); }

.panel { padding: 14px 16px; margin-bottom: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label.fld { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
label.fld input, label.fld select, label.fld textarea, .ta {
  background: #0b0b0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
label.fld input:focus, label.fld select:focus, label.fld textarea:focus, .ta:focus { border-color: var(--accent); }
label.fld textarea, textarea.ta { resize: vertical; min-height: 90px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }

.dropzone {
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 13px;
  background: #0b0b0d;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #101013; color: var(--text); }
.dropzone svg { width: 26px; height: 26px; margin-bottom: 8px; color: var(--accent2); }

.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: #0b0b0d; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .shot-tools {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 6px; padding: 6px;
  background: linear-gradient(transparent, rgba(4, 4, 5, 0.9));
}
.shot .shot-tools button {
  background: rgba(12, 12, 14, 0.92); border: 1px solid var(--border2); color: var(--text);
  border-radius: var(--radius); width: 28px; height: 26px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.shot .shot-tools button:hover { border-color: var(--accent); color: var(--accent-hi); }

.md-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.md-editor.single { grid-template-columns: 1fr; }
.md-editor textarea { min-height: 320px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.md-preview { background: #0b0b0d; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-y: auto; max-height: 460px; }
@media (max-width: 900px) { .md-editor { grid-template-columns: 1fr; } }

.video-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 8px; font-size: 13px; background: #0b0b0d; }
.video-row .kind-badge {
  font-size: 9.5px; padding: 2px 8px; border-radius: var(--radius);
  background: rgba(176, 141, 87, 0.1); color: var(--accent2); border: 1px solid rgba(176, 141, 87, 0.35);
  text-transform: uppercase; font-weight: 700; letter-spacing: 0.12em;
}
.video-row .url { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.video-row button { margin-left: auto; }

.pill-toggle { position: relative; width: 38px; height: 20px; background: var(--border2); border-radius: 99px; cursor: pointer; transition: background .2s; border: 0; padding: 0; }
.pill-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.pill-toggle.on { background: rgba(158, 27, 27, 0.5); }
.pill-toggle.on::after { left: 21px; background: var(--accent-hi); }

.loader-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #0b0b0d; }
.loader-box .file-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.loader-box .file-line svg { width: 18px; height: 18px; color: var(--accent2); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; padding: 38px 34px; border-top: 2px solid var(--accent); }
.login-card .brand { justify-content: center; margin-bottom: 10px; }
.login-card h1 { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; margin: 0 0 24px; font-weight: 700; }
.login-card label.fld { margin-bottom: 14px; text-transform: uppercase; }
.login-card .btn { width: 100%; padding: 13px; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  .product-card .card-actions { flex-direction: column; }
}
