:root {
  --background: #050505;
  --foreground: #f4f4f5;
  --card: #111111;
  --muted: #181818;
  --muted-foreground: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #fafafa;
  --primary-foreground: #050505;
  --accent: #8b9cff;
  --accent-soft: rgba(139, 156, 255, 0.14);
  --danger: #fb7185;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; height: 100%; overflow-x: clip; }
html, body { margin: 0; }
body {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent-soft); color: var(--foreground); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.protect { user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.protect-wrap { position: relative; overflow: hidden; display: block; isolation: isolate; contain: paint; }
.protect-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='140'><text x='0' y='78' fill='white' fill-opacity='0.55' font-size='20' font-family='Inter,Arial,sans-serif' font-weight='700' letter-spacing='6'>NH MEDYA · PREVIEW</text></svg>");
  background-size: 320px 140px;
  opacity: 0.55;
  transform: rotate(-22deg);
  transform-origin: center;
}
.pcard-shade, .pcard-discount, .pcard-peek { z-index: 2; }
.site { display: flex; min-height: 100%; flex-direction: column; }
.site > main { flex: 1; }
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  background: transparent; border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 4rem; max-width: 80rem; margin: 0 auto; padding: 0 1rem; min-width: 0;
}
@media (min-width: 640px) { .nav-bar { height: 72px; padding: 0 1.5rem; } }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 32px; height: 32px; }
.logo-text { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.logo-text span { font-weight: 500; color: var(--muted-foreground); }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1280px) { .nav-links { display: flex; } }
.nav-links a {
  border-radius: 999px; padding: 6px 10px; font-size: 13px; white-space: nowrap;
  color: var(--muted-foreground); transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.is-active { background: rgba(255,255,255,.05); color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted-foreground); position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.05); color: var(--foreground); }
@media (min-width: 640px) { .icon-btn.sm-show { display: inline-flex; } }
.icon-btn.always { display: inline-flex; }
.icon-btn.lg-hide { display: inline-flex; }
@media (min-width: 1280px) { .icon-btn.lg-hide { display: none; } }
.cart-badge {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px;
  border-radius: 999px; background: var(--accent); color: var(--background);
  font-size: 10px; font-weight: 600; line-height: 16px; padding: 0 4px;
}
.nav-search { display: none; border-top: 1px solid var(--border); padding: 12px 16px; }
.nav-search.is-open { display: block; }
.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: rgba(5,5,5,.95); backdrop-filter: blur(24px); padding: 16px;
}
.nav-open .mobile-menu { display: block; }
@media (min-width: 1280px) { .nav-open .mobile-menu { display: none; } }
.mobile-menu a { display: block; border-radius: 12px; padding: 12px; font-size: 14px; }
.mobile-menu a:hover { background: rgba(255,255,255,.05); }
.mobile-menu .hint { color: var(--muted-foreground); font-size: 11px; padding: 8px 12px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 500; border: 0; transition: all .2s; text-align: center;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.btn-primary:hover { background: rgba(255,255,255,.9); }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--foreground); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--muted-foreground); border: 0; }
.btn-ghost:hover { color: var(--foreground); background: rgba(255,255,255,.05); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn-md { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14px; }
.btn-full { width: 100%; }
@media (max-width: 639px) { .btn-hide-sm { display: none !important; } }
@media (max-width: 1023px) { .btn-hide-lg { display: none !important; } }

.flash {
  margin: 16px auto 0; max-width: 80rem; padding: 10px 16px;
  border-radius: 12px; background: var(--accent-soft); font-size: 14px;
}
.flash.err { background: rgba(251,113,133,.16); color: var(--danger); }

.hero { position: relative; overflow: hidden; padding: 40px 16px 64px; }
@media (min-width: 640px) { .hero { padding: 64px 24px 96px; } }
.hero-glow { pointer-events: none; position: absolute; inset: 0; }
.hero-glow::before {
  content: ""; position: absolute; left: 50%; top: -120px;
  width: 720px; height: 420px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(139,156,255,.15); filter: blur(120px);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; max-width: 80rem; margin: 0 auto; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); } }
.eyebrow {
  margin: 0 0 16px; font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
.hero h1 { margin: 0; font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; line-height: 1.05; } }
.hero .lead { margin: 20px 0 0; max-width: 36rem; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); }
@media (min-width: 640px) { .hero .lead { font-size: 18px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stage { position: relative; height: 380px; overflow: hidden; }
@media (min-width: 640px) { .hero-stage { height: 460px; } }
.float-card {
  position: absolute; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); padding: 16px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
}
.float-card .swatch {
  height: 96px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.float-card p { margin: 0; font-size: 14px; font-weight: 500; }
.float-card .meta { margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
.fc-a { left: 24px; top: 24px; width: 58%; transform: translate3d(var(--mx,0), var(--my,0), 0) rotate(-6deg); background: linear-gradient(to bottom right, #1a1030, #0b0b12); }
.fc-b { right: 8px; top: 96px; width: 52%; transform: translate3d(var(--mx,0), var(--my,0), 0) rotate(7deg); background: linear-gradient(to bottom right, #241018, #0c0c0c); }
.fc-c { bottom: 16px; left: 64px; width: 62%; transform: translate3d(var(--mx,0), var(--my,0), 0) rotate(2deg); background: linear-gradient(to bottom right, #101624, #0a0a0a); }

.section { max-width: 80rem; margin: 0 auto; padding: 0 1rem 80px; }
@media (min-width: 640px) { .section { padding: 0 1.5rem 80px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head.mb-8 { margin-bottom: 32px; }
.kicker { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.section-head h2 { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card {
  border-radius: 16px; border: 1px solid var(--border); background: var(--card);
  padding: 20px 16px; font-size: 14px; transition: border-color .15s, background .15s;
}
.cat-card:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.cat-card strong { display: block; font-weight: 500; }
.cat-card span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .product-grid.cols-4-md { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pcard {
  position: relative; overflow: hidden; border-radius: 16px; min-width: 0;
  border: 1px solid var(--border); background: var(--card);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pcard:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 50px -20px rgba(139,156,255,.18);
}
.pcard-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0c0c0c; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1), transparent);
  opacity: .7; transition: opacity .2s;
}
.pcard:hover .pcard-shade { opacity: .9; }
.pcard-discount {
  position: absolute; left: 12px; top: 12px; border-radius: 999px;
  background: var(--accent); color: var(--background);
  padding: 4px 10px; font-size: 11px; font-weight: 600;
}
.pcard-peek {
  position: absolute; left: 0; right: 0; bottom: 16px; margin: 0 auto; width: fit-content;
  border-radius: 999px; background: #fff; color: var(--background);
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: all .2s;
}
.pcard:hover .pcard-peek { opacity: 1; transform: none; }
.pcard-body { padding: 16px; }
.pcard-body h3 { margin: 8px 0 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-width: 0; }
.price { font-size: 14px; font-weight: 600; }
.price-old { font-size: 12px; color: var(--muted-foreground); text-decoration: line-through; margin-left: 8px; }
.pcard-add {
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; padding: 4px 12px; font-size: 11px; color: var(--muted-foreground);
}
.pcard-add:hover { border-color: rgba(255,255,255,.2); color: var(--foreground); }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  padding: 2px 10px; font-size: 11px; font-weight: 500; color: var(--muted-foreground);
}
.badge-accent { border-color: rgba(139,156,255,.3); color: var(--accent); }

.cta-band {
  overflow: hidden; border-radius: 28px; border: 1px solid var(--border);
  background: linear-gradient(to bottom right, #12121a, #0a0a0a);
  padding: 48px 32px;
}
@media (min-width: 640px) { .cta-band { padding: 48px 56px; } }
.cta-band h2 { margin: 16px 0 0; max-width: 36rem; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; }
@media (min-width: 640px) { .cta-band h2 { font-size: 2.25rem; } }
.cta-band p { margin: 12px 0 0; max-width: 32rem; color: var(--muted-foreground); }
.cta-band .btn { margin-top: 32px; }

.page-header { max-width: 48rem; margin: 0 auto; text-align: center; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { margin: 0; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; }
@media (min-width: 640px) { .page-header h1 { font-size: 3rem; } }
.page-header p { margin: 16px auto 0; max-width: 42rem; font-size: 16px; color: var(--muted-foreground); }
@media (min-width: 640px) { .page-header p { font-size: 18px; } }
.page { max-width: 80rem; margin: 0 auto; padding: 40px 16px 80px; }
@media (min-width: 640px) { .page { padding: 48px 24px 80px; } }
.page-narrow { max-width: 48rem; }
.page-mid { max-width: 64rem; }

.catalog { display: grid; gap: 32px; margin-top: 48px; min-width: 0; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 220px minmax(0, 1fr); } }
.filters { height: fit-content; min-width: 0; border-radius: 16px; border: 1px solid var(--border); background: var(--card); padding: 16px; }
.filters .kicker { margin-bottom: 12px; }
.filters .stack { display: grid; gap: 12px; margin-top: 16px; }
.filters .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.muted { color: var(--muted-foreground); }
.count-line { margin: 0 0 16px; font-size: 14px; color: var(--muted-foreground); }

.field label, .label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.input, .field input, .field select, .field textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); padding: 12px 16px; font-size: 14px;
  outline: none; appearance: none;
}
textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus {
  border-color: rgba(139,156,255,.4); background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 2px rgba(139,156,255,.2);
}
.form-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

.card {
  border-radius: 16px; border: 1px solid var(--border); background: rgba(17,17,17,.8);
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 20px 50px -24px rgba(0,0,0,.7);
}
.card-pad { padding: 24px; }
@media (min-width: 640px) { .card-pad-lg { padding: 32px; } }

.auth-wrap { display: flex; justify-content: center; padding: 80px 16px; }
.auth-card { width: 100%; max-width: 28rem; padding: 32px; }
.auth-card h1 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.auth-card .sub { margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }
.auth-card form { margin-top: 24px; display: grid; gap: 16px; }
.auth-card .foot { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }

.product-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.1fr .9fr; } }
.gallery { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: #0c0c0c; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.product-info h1 { margin: 12px 0 0; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; }
.product-info .desc { margin: 12px 0 0; color: var(--muted-foreground); }
.price-lg { display: flex; align-items: flex-end; gap: 12px; margin-top: 24px; }
.price-lg .now { font-size: 1.875rem; font-weight: 600; }
.info-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; font-size: 14px; }
.info-dl div { border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); padding: 12px; }
.info-dl dt { font-size: 11px; color: var(--muted-foreground); }
.info-dl dd { margin: 4px 0 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.accent-link { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--accent); }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-radius: 16px; border: 1px dashed rgba(255,255,255,.1);
  background: rgba(255,255,255,.02); padding: 64px 24px;
}
.empty p { margin: 0; font-size: 16px; font-weight: 500; }
.empty .sub { margin-top: 8px; max-width: 24rem; font-size: 14px; font-weight: 400; color: var(--muted-foreground); }
.empty .btn { margin-top: 24px; }

.cart-layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 320px; } }
.cart-item { display: flex; gap: 16px; padding: 16px; }
.cart-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { margin: 0; font-size: 14px; font-weight: 500; }
.summary { padding: 20px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin: 8px 0; color: var(--muted-foreground); }
.summary-row.total { color: var(--foreground); font-weight: 600; font-size: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

.pkg-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg { display: flex; flex-direction: column; padding: 24px; }
.pkg h2 { margin: 12px 0 0; font-size: 1.25rem; font-weight: 600; }
.pkg .amt { margin: 24px 0 0; font-size: 1.875rem; font-weight: 600; }
.pkg ul { margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted-foreground); }
.pkg li { margin: 8px 0; }
.pkg .btn { margin-top: 32px; }

.svc-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.svc { padding: 20px; }
.svc h2 { margin: 0; font-weight: 500; font-size: 16px; }
.svc p { margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }
.pf-grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pf-art {
  aspect-ratio: 16/10;
  background: radial-gradient(circle at 80% 20%, rgba(139,156,255,.28), transparent 50%), linear-gradient(135deg, #111, #0a0a0a);
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px; }
.stat .kicker { margin-bottom: 8px; }
.stat strong { font-size: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.table th { font-size: 12px; color: var(--muted-foreground); font-weight: 500; }

.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: #070707; }
.footer-grid { display: grid; gap: 40px; max-width: 80rem; margin: 0 auto; padding: 56px 16px; }
@media (min-width: 640px) { .footer-grid { padding: 56px 24px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 16px 0 0; max-width: 20rem; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.footer-brand .slogan { margin-top: 12px; font-size: 12px; color: rgba(161,161,170,.8); }
.footer-col .ttl { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.footer-col li { margin: 10px 0; }
.footer-col a { font-size: 14px; color: rgba(244,244,245,.8); }
.footer-col a:hover { color: var(--foreground); }
.footer-copy { border-top: 1px solid rgba(255,255,255,.06); padding: 20px; text-align: center; font-size: 12px; color: var(--muted-foreground); }

.admin-body { min-height: 100%; background: #070707; }
.admin-shell { min-height: 100%; }
@media (min-width: 1024px) { .admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); } }
.admin-aside {
  display: none; flex-direction: column; border-right: 1px solid var(--border); background: #0a0a0a;
}
@media (min-width: 1024px) { .admin-aside { display: flex; } }
.admin-nav-open .admin-aside {
  display: flex; position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60;
}
.admin-nav-open::before {
  content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50;
}
.admin-brand { display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.admin-nav { flex: 1; overflow: auto; padding: 0 12px 24px; }
.admin-nav-title {
  margin: 18px 12px 6px; font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(161,161,170,.8);
}
.admin-nav a {
  display: block; border-radius: 12px; padding: 8px 12px; font-size: 13px;
  color: var(--muted-foreground);
}
.admin-nav a:hover { background: rgba(255,255,255,.04); color: var(--foreground); }
.admin-nav a.is-active {
  background: rgba(255,255,255,.08); color: var(--foreground);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.admin-user {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border); padding: 16px;
}
.admin-user-name { margin: 0; font-size: 12px; font-weight: 500; }
.admin-user-role { margin: 2px 0 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); }
.admin-top {
  display: flex; align-items: center; gap: 12px; height: 56px;
  border-bottom: 1px solid var(--border); padding: 0 16px; background: rgba(7,7,7,.8); backdrop-filter: blur(20px);
}
@media (min-width: 640px) { .admin-top { padding: 0 24px; } }
.admin-top-title { margin: 0; flex: 1; font-size: 14px; color: var(--muted-foreground); }
.admin-content { padding: 32px 16px; }
@media (min-width: 640px) { .admin-content { padding: 32px 32px; } }
.admin-kpis { display: grid; gap: 16px; }
@media (min-width: 640px) { .admin-kpis { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .admin-kpis { grid-template-columns: repeat(4, 1fr); } }
.admin-kpis .hint { margin: 6px 0 0; font-size: 11px; color: var(--muted-foreground); }
.admin-split { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) { .admin-split { grid-template-columns: 1fr 1fr; } }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.btn-danger { background: rgba(251,113,133,.15); color: var(--danger); }
.btn-danger:hover { background: rgba(251,113,133,.25); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.table-wrap .table { margin: 0; min-width: 640px; }
.table-wrap .table th { background: rgba(255,255,255,.04); text-transform: uppercase; letter-spacing: .06em; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select, .inline-form input { width: auto; min-width: 120px; padding: 8px 12px; }

.pages { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pages a, .pages span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.05);
}
.pages .is-current { background: var(--primary); color: var(--primary-foreground); }
.prose { margin-top: 40px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }
.prose p { margin: 0 0 16px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.install-wrap { min-height: 100%; display: flex; justify-content: center; padding: 48px 16px 80px; }
.install-card { width: 100%; max-width: 42rem; }
.install-card h1 { margin: 8px 0 0; font-size: 1.75rem; font-weight: 600; }
.install-card .sub { margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }
.install-reqs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.install-reqs li { font-size: 11px; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--border); }
.install-reqs .ok { color: #34d399; }
.install-reqs .bad { color: var(--danger); border-color: rgba(251,113,133,.35); }
.install-error { margin: 20px 0 0; font-size: 14px; color: var(--danger); }
.install-form { margin-top: 28px; display: grid; gap: 16px; }
.install-section { margin: 8px 0 0; font-size: 14px; font-weight: 500; }
.install-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(212, 160, 23, 0.08);
  color: #e8c547;
  font-size: 13px;
  line-height: 1.5;
}
.install-hint { margin: 8px 0 12px; font-size: 12px; color: var(--muted-foreground); }
.install-hint code { font-size: 12px; color: var(--foreground); }
.install-db-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.install-db-msg { margin: 8px 0 0; font-size: 13px; }
.install-db-msg.ok { color: #34d399; }
.install-db-msg.bad { color: var(--danger); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-foreground); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.mail-grid { display: grid; gap: 24px; }
@media (min-width: 1100px) { .mail-grid { grid-template-columns: minmax(0,1fr) 340px; } }
.stat-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
