/* ==========================================================================
   SwiftForge store design system
   Dark obsidian surfaces, indigo/violet accents, emerald trust signals.
   ========================================================================== */

:root {
  --bg: #09090b;
  --surface: #121216;
  --surface-2: #16161c;
  --surface-3: #1b1b23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --brand: #6366f1;
  --brand-soft: #818cf8;
  --violet: #8b5cf6;
  --mint: #10b981;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --radius: 18px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 38rem at 12% -12%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(46rem 32rem at 92% -4%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(42rem 30rem at 50% 112%, rgba(16, 185, 129, 0.07), transparent 62%);
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0b0e;
}

::-webkit-scrollbar-thumb {
  background: #2a2a34;
  border-radius: 999px;
  border: 2px solid #0b0b0e;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a48;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

[x-cloak] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #c7d2fe 42%, #818cf8 72%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.font-mono-ui {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* --------------------------------------------------------------------------
   Buttons, pills, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 60%, #8b5cf6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px -16px rgba(99, 102, 241, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 20px 42px -18px rgba(99, 102, 241, 1);
}

.btn-ghost {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-mint {
  color: #022c22;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 12px 30px -16px rgba(16, 185, 129, 0.9);
}

.btn-mint:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  border-radius: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pill:hover {
  color: #e4e4e7;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.pill-active,
.pill-active:hover {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.85));
  box-shadow: 0 10px 26px -14px rgba(99, 102, 241, 0.9);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  opacity: 0.75;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.22rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #d4d4d8;
  white-space: nowrap;
}

.badge-brand {
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
}

.badge-mint {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.badge-muted {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.025);
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
  animation: pulseDot 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-dot--brand {
  background: var(--brand-soft);
  box-shadow: 0 0 6px rgba(129, 140, 248, 0.9);
  animation-name: pulseDotBrand;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-glass {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #6366f1, #8b5cf6 55%, #10b981);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 22px -10px rgba(99, 102, 241, 0.9);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.hero-aurora {
  animation: aurora 16s ease-in-out infinite;
  will-change: transform;
}

.hero-showcase {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 23, 29, 0.96), rgba(13, 13, 19, 0.98));
  box-shadow:
    0 44px 90px -44px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  text-decoration: none;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
}

.hero-showcase:hover {
  transform: translateY(-5px);
  box-shadow:
    0 60px 110px -50px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.25);
}

.float-badge {
  animation: float 7s ease-in-out infinite;
}

.license-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
  padding: 0.55rem 0.7rem;
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.1) 45%, rgba(16, 185, 129, 0.6));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 30px 60px -30px rgba(99, 102, 241, 0.55);
}

.product-card:hover::after {
  opacity: 1;
}

.cover-img {
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .cover-img {
  transform: scale(1.055);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.75rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.search-field:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}

.search-field input::placeholder {
  color: var(--dim);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

/* --------------------------------------------------------------------------
   Detail page
   -------------------------------------------------------------------------- */
.integrity-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 0.9rem 1rem;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #d4d4d8;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.copy-chip:hover {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(99, 102, 241, 0.12);
}

.copy-chip.copied {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.doc-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.9), rgba(13, 13, 18, 0.9));
}

.doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.doc-tab:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
}

.doc-tab-active,
.doc-tab[aria-selected="true"] {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
}

.doc-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.price-card {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(22, 22, 28, 0.98), rgba(15, 15, 20, 0.98));
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.9);
}

.tier-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.85rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tier-option:hover {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.tier-option[aria-pressed="true"] {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.22);
}

@media (max-width: 1023px) {
  .price-card {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Markdown (GitHub-flavoured)
   -------------------------------------------------------------------------- */
.md {
  color: #c9c9d1;
  font-size: 0.9375rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.md > :first-child {
  margin-top: 0;
}

.md > :last-child {
  margin-bottom: 0;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  color: #fafafa;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 96px;
}

.md h1 {
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.65rem;
}

.md h2 {
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
}

.md h3 {
  margin: 1.55rem 0 0.7rem;
  font-size: 1.02rem;
}

.md h4 {
  margin: 1.3rem 0 0.6rem;
  font-size: 0.95rem;
}

.md p {
  margin: 0.85rem 0;
}

.md a {
  color: #a5b4fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.3);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.md a:hover {
  color: #c7d2fe;
  border-color: #818cf8;
}

.md strong {
  color: #f4f4f5;
  font-weight: 600;
}

.md em {
  color: #e4e4e7;
}

.md ul,
.md ol {
  margin: 0.8rem 0;
  padding-left: 1.35rem;
}

.md li {
  margin: 0.35rem 0;
}

.md li::marker {
  color: var(--brand-soft);
}

.md li > p {
  margin: 0.3rem 0;
}

.md blockquote {
  margin: 1.1rem 0;
  border-left: 2px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.7rem 1rem;
  color: #b6bdf5;
}

.md blockquote p {
  margin: 0.25rem 0;
}

.md hr {
  margin: 1.7rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.md code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.md pre {
  position: relative;
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0b0b11;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.68;
}

.md pre code {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #d4d4d8;
  font-size: inherit;
  white-space: pre;
}

.md pre code.hljs {
  background: transparent;
  padding: 0;
}

.md table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.1rem 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.md th {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.75rem;
  color: #f4f4f5;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.md td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.md tr:nth-child(2n) td {
  background: rgba(255, 255, 255, 0.015);
}

.md img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.md input[type="checkbox"] {
  margin-right: 0.4rem;
  accent-color: var(--mint);
  vertical-align: middle;
}

.md li:has(> input[type="checkbox"]) {
  list-style: none;
  margin-left: -1.15rem;
}

.md .code-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(23, 23, 31, 0.92);
  padding: 0.28rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.md pre:hover .code-copy,
.md .code-copy:focus-visible {
  opacity: 1;
}

.md .code-copy:hover {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.45);
}

.md .code-copy.copied {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  opacity: 1;
}

@media (hover: none) {
  .md .code-copy {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.anim {
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.anim-d1 {
  animation-delay: 0.1s;
}

.anim-d2 {
  animation-delay: 0.2s;
}

.anim-d3 {
  animation-delay: 0.3s;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseDotBrand {
  0% {
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(129, 140, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes aurora {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(2rem, -1.5rem, 0) scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .product-card:hover,
  .hero-showcase:hover,
  .btn:hover {
    transform: none;
  }

  body::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Admin workspace
   -------------------------------------------------------------------------- */
.admin-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #f4f4f5;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.input::placeholder {
  color: #52525b;
}

textarea.input {
  line-height: 1.7;
}

select.input option {
  background: #121216;
  color: #f4f4f5;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.field-hint {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: #71717a;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #d4d4d8;
  cursor: pointer;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
}

.file-input {
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.file-input::file-selector-button {
  margin-right: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.6rem;
  color: #e4e4e7;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.file-input::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-editor {
  display: block;
  width: 100%;
  min-height: 13rem;
  border: 0;
  border-radius: 0;
  background: rgba(7, 7, 11, 0.5);
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #d4d4d8;
  resize: vertical;
}

.admin-editor:focus {
  outline: none;
  background: rgba(7, 7, 11, 0.72);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.md-editor {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 7, 11, 0.35);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-table th {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71717a;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  color: #d4d4d8;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.btn-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.btn-danger:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.14);
  transform: translateY(-1px);
}

