/* ==========================================================================
   Rbxlabs — "Brick Lab" design system
   White-first, red accents. Chunky display type, tactile 3D buttons,
   brick studs, stickers & stamps.
   ========================================================================== */

:root {
  color-scheme: light;
  --red:      #a3182f;
  --red-d:    #6e0d1f;
  --red-l:    #c93a55;
  --red-soft: #f9eef0;
  --ink:      #16171c;
  --ink-2:    #4a4f5c;
  --mute:     #8a8f9c;
  --bg:       #ffffff;
  --bg-2:     #f5f5f7;
  --line:     rgba(22, 23, 28, 0.10);
  --line-2:   rgba(22, 23, 28, 0.06);
  --ok:       #16a34a;
  --warn:     #f59e0b;
  --err:      #dc2626;

  /* aliases used by inline styles in admin templates */
  --text:     var(--ink);
  --text-dim: var(--ink-2);
  --text-mut: var(--mute);

  /* Roblox-style "tilt" mark (rotated square with a square hole), used as a mask */
  --rbx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(15 12 12)' fill-rule='evenodd' d='M5.5 2.5h13a3 3 0 0 1 3 3v13a3 3 0 0 1-3 3h-13a3 3 0 0 1-3-3v-13a3 3 0 0 1 3-3zM9.6 9.6v4.8h4.8V9.6z'/%3E%3C/svg%3E");

  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body:    'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono:    'JetBrains Mono', Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-d); }
button { font-family: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: 21px; }
.mono { font-family: var(--mono); }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Scroll reveal (classes added by app.js) — declared early so component
   hover transforms declared later still win */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- BUTTONS (tactile, Roblox-style bottom edge) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 800 15px/1 var(--body);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-red, .btn-primary {
  background: var(--red); color: #fff;
  border-color: var(--red);
  box-shadow: 0 5px 0 var(--red-d), 0 16px 26px -12px rgba(163,24,47,0.55);
}
.btn-red:hover, .btn-primary:hover { color: #fff; box-shadow: 0 7px 0 var(--red-d), 0 20px 30px -12px rgba(163,24,47,0.6); }
.btn-red:active, .btn-primary:active { box-shadow: 0 1px 0 var(--red-d); }
.btn-line, .btn-ghost { background: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 11px; }
.btn-danger { border-color: var(--err); color: var(--err); box-shadow: 0 3px 0 var(--err); }
.btn-danger:hover { color: var(--err); box-shadow: 0 5px 0 var(--err); }

/* ---------- TICKER ---------- */
.ticker {
  height: 34px; display: flex; align-items: center;
  overflow: hidden;
  background: var(--red-soft);
  border-bottom: 1px solid rgba(163,24,47,0.15);
  color: var(--red);
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticker-move { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker-track { display: flex; flex-shrink: 0; }
.ticker-track span { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker-track span::after {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin: 0 22px;
  background: currentColor;
  -webkit-mask: var(--rbx-icon) center / contain no-repeat;
  mask: var(--rbx-icon) center / contain no-repeat;
  opacity: 0.7;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- HEADER ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 28px;
  display: flex; align-items: center; gap: 18px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink);
  font: 700 20px/1 var(--display);
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--ink); }
.logo-brick {
  position: relative; flex-shrink: 0;
  width: 34px; height: 24px; margin-top: 7px;
  border-radius: 7px;
  background: var(--red);
  box-shadow: 0 3px 0 var(--red-d);
}
.logo-brick i {
  position: absolute; top: -6px;
  width: 10px; height: 7px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
}
.logo-brick i:first-child { left: 5px; }
.logo-brick i:last-child  { right: 5px; }
.logo-brick.sm { width: 30px; height: 21px; margin-top: 6px; }
.logo-brick.sm i { width: 9px; height: 6px; top: -5px; }
.logo-brick.xs { width: 22px; height: 15px; margin-top: 4px; border-radius: 5px; box-shadow: 0 2px 0 var(--red-d); }
.logo-brick.xs i { width: 6px; height: 4px; top: -4px; border-radius: 2px 2px 0 0; }
.logo-brick.xs i:first-child { left: 3px; }
.logo-brick.xs i:last-child  { right: 3px; }

.seg {
  margin-left: auto;
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.seg-link {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.seg-link:hover { color: var(--ink); background: #fff; }
.seg-link.on { background: #fff; color: var(--red); box-shadow: 0 2px 0 var(--line), 0 6px 14px -8px rgba(22,23,28,0.3); }
@media (max-width: 760px) {
  .hdr-in { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .hdr-cta { margin-left: auto; }
  .seg { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg-link { flex: 1; text-align: center; padding: 8px 10px; font-size: 13px; }
}

/* ---------- SHARED BITS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  font: 700 12px/1 var(--mono);
  color: var(--ink);
}
.chip-live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0.05); } }
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker-w { color: #fff; opacity: 0.85; }
.ph { width: 100%; height: 100%; min-height: 120px; background: linear-gradient(150deg, #c93a55, var(--red) 55%, var(--red-d)); }

/* brick studs on top edge */
.studs { position: relative; }
.studs::before, .studs::after {
  content: "";
  position: absolute; top: -9px;
  width: 22px; height: 10px;
  border-radius: 6px 6px 0 0;
  background: inherit;
  border: 1px solid var(--line);
  border-bottom: none;
}
.studs::before { left: 24px; }
.studs::after  { left: 54px; }

.stamp {
  position: absolute; z-index: 4;
  width: 112px; height: 112px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 8px rgba(255,255,255,0.55),
              0 6px 0 var(--red-d), 0 22px 32px -12px rgba(163,24,47,0.6);
  transform: rotate(12deg);
  animation: stampBob 5s ease-in-out infinite;
}
.stamp b { font: 800 25px/1 var(--display); letter-spacing: -0.02em; }
.stamp small { margin-top: 5px; font: 700 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
@keyframes stampBob { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-6px); } }

.sticker {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  font: 700 12.5px/1 var(--mono);
  white-space: nowrap;
}
.sticker b { color: var(--ok); }

/* ---------- HERO ---------- */
.hero3 { position: relative; isolation: isolate; padding: 64px 0 84px; overflow: hidden; }
.hero3::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(22,23,28,0.10) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero3-in {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.mega {
  margin: 24px 0 20px;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hl { position: relative; z-index: 0; color: #fff; padding: 0 0.12em; white-space: nowrap; }
.hl::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0.06em -0.02em -0.02em;
  border-radius: 0.16em;
  background: var(--red);
  box-shadow: 0 0.09em 0 var(--red-d);
  transform: rotate(-1.6deg);
}
.lead { max-width: 530px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18.5px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.note-line { margin-top: 22px; color: var(--mute); font: 500 12.5px/1.5 var(--mono); }
.stat-row {
  display: flex; width: fit-content; margin-top: 40px;
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; overflow: hidden;
  box-shadow: 0 5px 0 var(--line-2);
}
.stat { padding: 14px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; }
.stat span { color: var(--mute); font: 500 11.5px/1.3 var(--mono); }
@media (max-width: 980px) {
  .hero3 { padding: 40px 0 64px; }
  .hero3-in { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .hero3-in { padding: 0 16px; }
  .stat-row { width: 100%; }
  .stat { flex: 1; padding: 12px; }
  .stat b { font-size: 17px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* HOME: sticker board with polaroids */
.board {
  position: relative; height: 470px;
  border-radius: 30px;
  background: var(--red-soft);
  border: 1px solid rgba(163,24,47,0.16);
}
.board::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(163,24,47,0.16) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
.polaroid {
  position: absolute; margin: 0;
  padding: 12px 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 0 var(--line-2), 0 26px 44px -20px rgba(22,23,28,0.45);
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1);
}
.polaroid img, .polaroid .ph { width: 100%; aspect-ratio: 4/3; height: auto; min-height: 0; object-fit: cover; border-radius: 9px; }
.polaroid figcaption {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  font: 600 14px/1 var(--display); letter-spacing: -0.01em;
}
.polaroid figcaption .mono { color: var(--red); font-size: 12px; font-weight: 700; }
.p1 { width: 52%; left: 4%; top: 9%; transform: rotate(-5deg); }
.p2 { width: 52%; right: 4%; bottom: 6%; z-index: 2; transform: rotate(4deg); }
.board:hover .p1 { transform: rotate(-7deg) translate(-6px, -8px); }
.board:hover .p2 { transform: rotate(6deg) translate(6px, 4px); }
.sk1 { left: 3%; bottom: 7%; transform: rotate(-3deg); }
.sk2 { left: 30%; top: -16px; transform: rotate(2deg); }
@media (max-width: 560px) {
  .board { height: 380px; }
  .stamp { width: 86px; height: 86px; }
  .stamp b { font-size: 19px; }
  .sk2 { left: 18%; }
}

/* SHADERS: live editor mock */
.editor { position: relative; height: 480px; }
.editor-shot {
  position: absolute; top: 0; right: 0;
  width: 86%; height: 80%;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 8px 0 var(--line-2), 0 36px 60px -32px rgba(22,23,28,0.55);
}
.editor-shot img, .editor-shot .ph { width: 100%; height: 100%; object-fit: cover; }
.editor-panel {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(390px, 80%);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 0 var(--line-2), 0 30px 50px -24px rgba(22,23,28,0.5);
}
.ep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ep-head b { font-weight: 800; white-space: nowrap; }
.ep-head .mono { margin-left: auto; color: var(--mute); font-size: 11px; white-space: nowrap; }
.ep-row {
  display: grid; grid-template-columns: 112px 1fr 28px; gap: 14px; align-items: center;
  padding: 7px 0;
  font-size: 13px; font-weight: 700;
}
.ep-row .mono { color: var(--mute); font-size: 11.5px; text-align: right; }
.ep-track { position: relative; height: 8px; border-radius: 100px; background: var(--bg-2); }
.ep-track i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--red);
  animation: epSlide 3.2s ease-in-out infinite alternate;
}
.ep-row:nth-of-type(3) .ep-track i { animation-delay: -0.8s; }
.ep-row:nth-of-type(4) .ep-track i { animation-delay: -1.6s; }
.ep-row:nth-of-type(5) .ep-track i { animation-delay: -2.4s; }
.ep-track i::after {
  content: "";
  position: absolute; right: -8px; top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
@keyframes epSlide { from { width: calc(var(--v) - 14%); } to { width: var(--v); } }
.ep-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ep-presets span { padding: 6px 11px; border-radius: 9px; background: var(--bg-2); color: var(--ink-2); font: 700 11.5px/1 var(--mono); }
.ep-presets .on { background: var(--red); color: #fff; }
.st-shaders { top: -14px; right: -10px; }
@media (max-width: 560px) {
  .editor { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .editor-shot, .editor-panel { position: relative; width: 100%; }
  .editor-shot { height: auto; aspect-ratio: 4/3; }
  .ep-row { grid-template-columns: 94px 1fr 26px; gap: 10px; }
  .st-shaders { top: -14px; right: 4px; }
}

/* COPIER: Roblox Studio window mock */
.studio {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 0 var(--line-2), 0 36px 60px -32px rgba(22,23,28,0.5);
}
.st-bar {
  display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(22,23,28,0.14); }
.dots i:first-child { background: var(--red-l); }
.st-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 280px; }
.st-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.st-tree { padding: 14px 10px; border-right: 1px solid var(--line); }
.st-h { padding: 0 8px 10px; color: var(--mute); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.st-tree ul { list-style: none; margin: 0; padding: 0; }
.st-tree li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.st-tree li { overflow: hidden; }
.st-tree li.lv1 { padding-left: 24px; }
.st-tree li.lv2 { padding-left: 42px; color: var(--ink-2); font-weight: 500; }
.st-tree li.sel { background: var(--red-soft); }
.st-tree li em {
  margin-left: auto;
  padding: 3px 7px; border-radius: 6px;
  background: var(--red-soft); color: var(--red);
  font: 700 10.5px/1 var(--mono); font-style: normal;
}
.st-tree li.sel em { background: #fff; }
.ic { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.ic-game  { background: var(--ink); }
.ic-ws    { background: var(--red); }
.ic-model { background: #d6738a; }
.ic-rs    { background: #9aa0ad; }
.ic-sss   { background: var(--red-d); }
.ic-gui   { background: #c7cad2; }
.ic-light { background: #f0c7cf; }
.st-out { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.ol { color: var(--ink-2); font: 500 12.5px/1.9 var(--mono); opacity: 0; animation: lineIn 0.45s ease forwards; }
.ol b { margin-right: 8px; color: var(--ok); }
.ol.run b { color: var(--red); }
.ol:nth-of-type(2) { animation-delay: 0.2s; }
.ol:nth-of-type(3) { animation-delay: 0.55s; }
.ol:nth-of-type(4) { animation-delay: 0.9s; }
.ol:nth-of-type(5) { animation-delay: 1.25s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.st-file {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid rgba(163,24,47,0.18);
  border-radius: 14px;
  background: var(--red-soft);
}
.st-file .fi {
  width: 38px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--red); color: #fff;
  box-shadow: 0 3px 0 var(--red-d);
  font: 800 9px/1 var(--mono);
}
.st-fname { min-width: 0; }
.st-file b { display: block; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-fname span { color: var(--mute); font: 500 11px/1.3 var(--mono); }
.st-open {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 800;
}
@media (max-width: 560px) {
  .st-body { grid-template-columns: 1fr; }
  .st-tree { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- MARQUEE BAND ---------- */
.band-wrap { overflow: hidden; padding: 26px 0; }
.band {
  width: calc(100% + 60px); margin-left: -30px;
  padding: 20px 0;
  background: var(--red); color: #fff;
  transform: rotate(-1.4deg);
  box-shadow: 0 6px 0 var(--red-d);
}
.band-move { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.band-track { display: flex; flex-shrink: 0; }
.band-track span {
  display: inline-flex; align-items: center;
  font: 700 clamp(20px, 2.6vw, 32px)/1 var(--display);
  letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
}
.band-track span::after {
  content: "";
  display: inline-block;
  width: 0.85em; height: 0.85em;
  margin: 0 28px;
  background: currentColor;
  -webkit-mask: var(--rbx-icon) center / contain no-repeat;
  mask: var(--rbx-icon) center / contain no-repeat;
  opacity: 0.85;
}

/* ---------- SECTIONS ---------- */
.sec { padding: 96px 0; }
.sec-gray { background: var(--bg-2); }
.sec-head {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  max-width: 880px; margin-bottom: 50px;
}
.sec-num {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--ink); color: #fff;
  box-shadow: 0 4px 0 var(--red);
  font: 700 15px/1 var(--mono);
}
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { max-width: 620px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 600px) {
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* MODULE ROWS */
.mrow { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.mrow + .mrow { margin-top: 56px; padding-top: 56px; border-top: 2px dashed var(--line); }
.mrow.flip .mrow-media { order: 2; }
.mrow-media {
  position: relative; display: block;
  aspect-ratio: 16/11;
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 8px 0 var(--line-2), 0 34px 54px -32px rgba(22,23,28,0.55);
}
.mrow-media img, .mrow-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.mrow-media:hover img { transform: scale(1.05); }
.mrow-idx {
  position: absolute; left: 20px; bottom: 14px;
  color: #fff;
  font: 700 46px/1 var(--display);
  text-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
.mrow-body h3 { margin: 2px 0 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.mrow-body p { max-width: 470px; margin-bottom: 20px; color: var(--ink-2); font-size: 17px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.tags li {
  padding: 8px 13px;
  border: 1px solid rgba(163,24,47,0.2);
  border-radius: 10px;
  background: var(--red-soft); color: var(--red);
  font: 700 12.5px/1 var(--mono);
}
@media (max-width: 860px) {
  .mrow { grid-template-columns: 1fr; gap: 28px; }
  .mrow.flip .mrow-media { order: 0; }
}

/* BENTO TILES */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.bento.b4 { grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative; overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 6px 0 var(--line-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 10px 0 var(--line-2), 0 26px 44px -26px rgba(22,23,28,0.4); }
.tile.big { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.tile.wide { grid-column: span 2; display: flex; gap: 22px; align-items: center; }
.tile.wide .tile-ico { margin-bottom: 0; flex-shrink: 0; }
.tile-ico {
  width: 58px; height: 58px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: var(--red-soft); color: var(--red);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.tile:hover .tile-ico { transform: rotate(-8deg) scale(1.06); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-red { background: var(--red); border-color: var(--red); box-shadow: 0 6px 0 var(--red-d); }
.tile-red:hover { box-shadow: 0 10px 0 var(--red-d), 0 26px 44px -20px rgba(163,24,47,0.6); }
.tile-red h3 { color: #fff; }
.tile-red p { color: rgba(255,255,255,0.9); }
.tile-red .tile-ico { background: rgba(255,255,255,0.18); color: #fff; }
.tile-deco { margin-top: 30px; color: #fff; font: 800 clamp(52px, 6vw, 84px)/0.9 var(--display); letter-spacing: -0.05em; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-row: auto; grid-column: span 2; min-height: 0; }
}
@media (max-width: 560px) {
  .bento, .bento.b4 { grid-template-columns: 1fr; }
  .tile.big, .tile.wide { grid-column: auto; }
  .tile.wide { flex-direction: column; align-items: flex-start; }
  .tile { padding: 24px; }
}

/* SPEC LIST (shader effects) */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); }
.spec {
  display: grid; grid-template-columns: 48px 1fr 54px; gap: 8px 18px; align-items: start;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
}
.specs .spec:nth-child(odd)  { padding-right: 32px; border-right: 1px solid var(--line); }
.specs .spec:nth-child(even) { padding-left: 32px; }
.spec-n { grid-row: 1 / span 2; padding-top: 6px; color: var(--red); font: 700 14px/1 var(--mono); }
.spec h3 { grid-column: 2; font-size: 22px; }
.spec p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.spec-ico {
  grid-column: 3; grid-row: 1 / span 2;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--red-soft); color: var(--red);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), background 0.2s, color 0.2s;
}
.spec:hover .spec-ico { transform: rotate(-8deg); background: var(--red); color: #fff; }
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr; }
  .specs .spec:nth-child(odd), .specs .spec:nth-child(even) { padding: 24px 0; border-right: none; }
}

/* TIMELINE (setup steps) */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 28px; right: calc(25% - 46px); top: 27px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 22px);
}
.tl-step { position: relative; }
.tl-dot {
  width: 56px; height: 56px; margin-bottom: 22px;
  display: grid; place-items: center;
  border: 3px solid var(--red);
  border-radius: 18px;
  background: #fff; color: var(--red);
  box-shadow: 0 5px 0 var(--red);
  font: 700 20px/1 var(--display);
}
.sec-gray .tl-dot { background: var(--bg-2); }
.tl-step:last-child .tl-dot { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-d); }
.tl-step h3 { margin-bottom: 8px; font-size: 19px; }
.tl-step p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before {
    left: 27px; right: auto; top: 28px; bottom: 28px;
    width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--red) 0 12px, transparent 12px 22px);
  }
  .tl-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
  .tl-dot { margin-bottom: 0; }
}

/* COUNTERS (copier "what you get") */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 10px; }
.ctr {
  padding: 34px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 0 var(--line-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}
.ctr:hover { transform: translateY(-5px); }
.ctr b { display: block; margin-bottom: 10px; font: 700 clamp(28px, 3.2vw, 42px)/1 var(--display); letter-spacing: -0.03em; }
.ctr span { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.ctr-red { background: var(--red); border-color: var(--red); box-shadow: 0 6px 0 var(--red-d); color: #fff; }
.ctr-red::before, .ctr-red::after { border-color: var(--red); }
.ctr-red span { color: rgba(255,255,255,0.9); }
.ctr-note { margin-top: 22px; color: var(--mute); font: 500 12.5px/1.5 var(--mono); }
@media (max-width: 900px) { .counters { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* BEFORE / AFTER */
.compare {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--line-2), 0 40px 70px -40px rgba(22,23,28,0.55);
}
.compare-view { position: relative; aspect-ratio: 16/8; overflow: hidden; user-select: none; cursor: ew-resize; touch-action: pan-y; }
.compare-side { position: absolute; inset: 0; }
.compare-side.before { background: linear-gradient(180deg, #3b404d 0%, #1d2029 100%); }
.compare-side.after {
  clip-path: inset(0 0 0 50%);
  background:
    radial-gradient(circle at 70% 28%, rgba(255,220,180,0.45), transparent 38%),
    linear-gradient(180deg, #ff9a76 0%, #e2475f 46%, #2b1440 100%);
}
.compare-scene { position: absolute; inset: 0; pointer-events: none; }
.compare-scene .mountain {
  position: absolute; left: 0; right: 0; bottom: 30%; height: 45%;
  background: linear-gradient(180deg, #2a2d38, #121319);
  clip-path: polygon(0 100%, 15% 50%, 30% 70%, 50% 30%, 70% 65%, 85% 40%, 100% 55%, 100% 100%);
}
.compare-side.after .mountain { background: linear-gradient(180deg, #4a1a38, #170a18); }
.compare-scene .sun {
  position: absolute; top: 14%; right: 26%;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd9a8 45%, transparent 70%);
  opacity: 0;
}
.compare-side.after .sun { opacity: 1; box-shadow: 0 0 90px 34px rgba(255,190,150,0.45); }
.compare-scene .water { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, #252a34, #0d0e13); }
.compare-side.after .water {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, rgba(255,120,120,0.5), #1b0d1d);
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(255,255,255,0.6);
}
.compare-handle::before {
  content: "⇆";
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: var(--red); color: #fff;
  box-shadow: 0 5px 0 var(--red-d);
  font-size: 22px; font-weight: 700;
  transform: translate(-50%, -50%);
}
.compare-label {
  position: absolute; top: 18px;
  padding: 8px 14px; border-radius: 11px;
  background: #fff; color: var(--ink);
  font: 700 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.compare-label.left { left: 18px; }
.compare-label.right { right: 18px; background: var(--red); color: #fff; }
@media (max-width: 600px) { .compare-view { aspect-ratio: 4/3; } .compare { border-radius: 20px; } }

/* Real photos: slider (before/after pair) or a single split screenshot */
.compare-view.photo .compare-side img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none; user-select: none;
}
.compare-still { margin: 0; }
.compare-still img { width: 100%; height: auto; display: block; }

/* CAROUSEL */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 18px;
  padding: 6px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide {
  position: relative; flex: 0 0 auto;
  width: min(640px, 84%);
  aspect-ratio: 16/10;
  border-radius: 24px; overflow: hidden;
  background: #fff;
  scroll-snap-align: center;
  box-shadow: 0 6px 0 var(--line-2);
}
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: var(--red-soft); color: var(--red); text-align: center; }
.car-ph .lbl { font: 600 12px/1.5 var(--mono); }
.car-nav {
  position: absolute; top: calc(50% - 22px); z-index: 5;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 24px; line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.car-nav:hover { background: var(--red); border-color: var(--red-d); color: #fff; box-shadow: 0 4px 0 var(--red-d); }
.car-nav.prev { left: -10px; }
.car-nav.next { right: -10px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.car-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 4px; background: rgba(22,23,28,0.16); cursor: pointer; transition: width 0.2s, background 0.2s; }
.car-dot.on { width: 30px; background: var(--red); }
@media (max-width: 600px) { .car-nav { display: none; } .car-slide { width: 90%; border-radius: 18px; } }

/* REVIEW POSTS (masonry) */
.posts { columns: 3 300px; column-gap: 18px; }
.post {
  display: block; break-inside: avoid;
  margin: 0 0 18px; padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 0 var(--line-2);
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-head > span:last-child { display: block; min-width: 0; }
.rev-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 13px;
}
.rev-avatar.av-img { background: var(--bg-2); }
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-name { font-weight: 800; font-size: 14.5px; }
.rev-verified {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-left: 6px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 9px; vertical-align: 1px;
}
.rev-role { display: block; margin-top: 2px; color: var(--mute); font: 500 11.5px/1.3 var(--mono); }
.post-img { margin-bottom: 14px; border-radius: 14px; overflow: hidden; }
.post-img img { width: 100%; height: auto; }
.stars { margin-bottom: 8px; color: var(--warn); font-size: 15px; letter-spacing: 2px; }
.post p { font-size: 15px; line-height: 1.55; }

/* FAQ (two-column) */
.faq2 { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq2-side { position: sticky; top: 110px; }
.faq2-side .sec-num { margin-bottom: 24px; }
.faq2-side .kicker { display: block; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.7s, transform 0.7s;
}
.faq-item.open { border-color: var(--red); box-shadow: 0 4px 0 var(--red); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border: 0; background: none;
  color: var(--ink);
  font: 700 16px/1.35 var(--body);
  text-align: left;
  cursor: pointer;
}
.q-num { flex-shrink: 0; color: var(--red); font: 700 12px/1 var(--mono); }
.caret {
  flex-shrink: 0; margin-left: auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--bg-2); color: var(--ink);
  font-size: 19px; font-weight: 600;
  transition: transform 0.25s, background 0.2s, color 0.2s;
}
.faq-item.open .caret { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 22px 0 54px;
  color: var(--ink-2); font-size: 15px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 22px 54px; }
@media (max-width: 860px) {
  .faq2 { grid-template-columns: 1fr; gap: 30px; }
  .faq2-side { position: static; }
}
@media (max-width: 560px) {
  .faq-a, .faq-item.open .faq-a { padding-left: 22px; }
}

/* INSTALL BLOCK */
.sec-install { padding-top: 60px; }
.dl-block {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 64px 56px;
  border-radius: 32px;
  background-color: var(--red);
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.3px, transparent 1.5px);
  background-size: 20px 20px;
  box-shadow: 0 10px 0 var(--red-d), 0 40px 70px -40px rgba(163,24,47,0.7);
  color: #fff;
}
.dl-block.studs::before, .dl-block.studs::after { top: -12px; width: 46px; height: 13px; border-color: var(--red); background: var(--red); border-radius: 8px 8px 0 0; }
.dl-block.studs::before { left: 56px; }
.dl-block.studs::after  { left: 120px; }
.dl-block h2 { color: #fff; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; }
.dl-block p { margin-top: 14px; color: rgba(255,255,255,0.88); font-size: 17px; }
.dl-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.dl-hero-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 14px;
  border-radius: 20px;
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 0 var(--red-d), 0 20px 34px -16px rgba(0,0,0,0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dl-hero-btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-d), 0 24px 38px -16px rgba(0,0,0,0.4); }
.dl-hero-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-d); }
.dl-tile {
  width: 50px; height: 50px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--red); color: #fff;
  box-shadow: 0 3px 0 var(--red-d);
}
.dl-tile svg { width: 24px; height: 24px; }
.dl-info { display: flex; flex-direction: column; }
.dl-title { font: 700 17px/1.15 var(--display); letter-spacing: -0.02em; }
.dl-sub { margin-top: 5px; color: var(--mute); font: 500 12px/1.2 var(--mono); }
.dl-arrow { margin-left: 6px; color: var(--red); }
.dl-note { color: rgba(255,255,255,0.88); font: 600 12.5px/1.4 var(--mono); }
@media (max-width: 860px) {
  .dl-block { grid-template-columns: 1fr; padding: 48px 26px 40px; border-radius: 26px; }
  .dl-block.studs::before { left: 30px; }
  .dl-block.studs::after  { left: 90px; }
}
@media (max-width: 420px) {
  .dl-hero-btn { width: 100%; }
}

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 45;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  opacity: 0;
  transform: translate(-50%, 160%);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), opacity 0.3s ease;
}
.sticky-cta:hover { color: var(--ink); }
.sticky-cta.show { opacity: 1; transform: translate(-50%, 0); }
.sticky-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sticky-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 800; }
.sticky-title .dim { color: var(--mute); font-weight: 600; }
.sticky-sub { margin-top: 3px; color: var(--mute); font: 500 11px/1 var(--mono); }
.sticky-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--red); color: #fff;
  box-shadow: 0 3px 0 var(--red-d);
  font-weight: 800; font-size: 13.5px;
}
@media (max-width: 600px) {
  .sticky-sub { display: none; }
  .sticky-cta { gap: 10px; padding: 8px 8px 8px 12px; }
}

/* ---------- FOOTER ---------- */
.foot { margin-top: 30px; padding: 70px 0 28px; border-top: 1px solid var(--line); background: #fff; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand p { max-width: 330px; margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.foot h4 { margin-bottom: 16px; color: var(--mute); font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-col a { display: block; padding: 5px 0; color: var(--ink); font-weight: 700; }
.foot-col a:hover { color: var(--red); }
.foot-word {
  margin: 54px 0 26px;
  color: var(--red);
  font: 800 clamp(56px, 17vw, 220px)/0.8 var(--display);
  letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}
.foot-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--mute); font: 500 12.5px/1.4 var(--mono);
}
@media (max-width: 760px) {
  .foot { padding-top: 54px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

/* ---------- FLASH ---------- */
.flash-wrap { position: fixed; top: 100px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.flash {
  max-width: 320px; padding: 12px 16px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 700; font-size: 14px;
  animation: slideIn 0.25s ease;
}
.flash.err { border-color: var(--err); box-shadow: 0 4px 0 var(--err); }
.flash.ok  { border-color: var(--ok);  box-shadow: 0 4px 0 var(--ok); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- ADMIN ---------- */
.admin-login {
  max-width: 400px; margin: 72px auto; padding: 34px;
  border: 1px solid var(--line); border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 0 var(--line-2);
}
.admin-login h2 { margin-bottom: 6px; font-size: 28px; }
.admin-login .sub { margin: 0 0 22px; color: var(--mute); font-size: 14px; }
.field { display: block; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; color: var(--mute); font: 700 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2); color: var(--ink);
  font: 500 15px/1.3 var(--body);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(163,24,47,0.15); }
.admin-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin-bottom: 28px; padding: 48px 0 26px;
  border-bottom: 1px solid var(--line);
}
.admin-header h1 { margin-bottom: 8px; font-size: 34px; }
.admin-header .meta { margin-bottom: 10px; color: var(--mute); font: 500 12.5px/1 var(--mono); }
.admin-header p { max-width: 560px; color: var(--ink-2); }
.admin-tabs {
  display: flex; gap: 4px; width: fit-content; max-width: 100%;
  margin-bottom: 24px; padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-2);
}
.admin-tab { padding: 9px 16px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { background: var(--red); color: #fff; }
.admin-panel {
  margin-bottom: 60px; padding: 28px;
  border: 1px solid var(--line); border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 0 var(--line-2);
}
.admin-panel h2 { font-size: 22px; }
.upload-area {
  margin-bottom: 16px; padding: 34px;
  border: 2px dashed var(--line); border-radius: 16px;
  background: var(--bg-2); color: var(--mute);
  text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-area:hover, .upload-area.drag { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.upload-area strong { color: var(--red); }
.upload-area .filename { margin-top: 10px; color: var(--ink); font: 500 13px/1.3 var(--mono); }
.admin-files { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 14px; }
.admin-files th { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--mute); text-align: left; font: 700 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.admin-files td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.admin-files tr:last-child td { border-bottom: none; }
.admin-files .empty { padding: 30px; color: var(--mute); text-align: center; font: 500 13px/1 var(--mono); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.av-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.av-preview { width: 52px; height: 52px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.av-preview img { width: 100%; height: 100%; object-fit: cover; }
.av-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.av-meta { flex: 1; min-width: 0; }
.av-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 800; font-size: 14px; }
.av-role { margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--mute); font: 500 11px/1.3 var(--mono); }
.av-actions { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 700px) {
  .admin-header { flex-direction: column; }
  .admin-files { display: block; overflow-x: auto; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ol { opacity: 1; }
  html { scroll-behavior: auto; }
}
