/* ============================================================
   Vampitech Git — style.css
   Dark Glassmorphism Design System
   ============================================================ */

/* ── Variables ── */
:root {
  /* Background – deep red-black with warm undertone */
  --bg: #0f0808;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(192, 21, 42, 0.55);

  /* Primary accent – elegant crimson */
  --accent: #c0152a;
  --accent-2: #f87171;
  --accent-glow: rgba(192, 21, 42, 0.35);

  /* Status colors */
  --red: #ef4444;
  --green: #22c55e;
  --amber: #f59e0b;
  --blue: #3b82f6;

  --text: #f0e8e8;
  --text-muted: #b09494;
  --text-dim: #7a5a5a;

  --sidebar-w: 240px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;

  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas: "sidebar main" "sidebar footer";
}
a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
}

/* ── Animated bg orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: #7f1d1d;
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: #991b1b;
  bottom: 0px;
  right: -100px;
  animation-delay: 4s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: #b91c1c;
  top: 40%;
  left: 40%;
  animation-delay: 8s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ── Sidebar ── */
.sidebar {
  grid-area: sidebar;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 0.3s ease;
}
.sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text) !important;
}
.brand-icon {
  font-size: 1.5rem;
}
.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text) !important;
}
.nav-item.active {
  background: rgba(192, 21, 42, 0.2);
  color: var(--accent-2) !important;
}
.nav-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red) !important;
}
.nav-icon {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}
.nav-section-label {
  padding: 0.75rem 0.75rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.nav-spacer {
  flex: 1;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.sidebar-version {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ── Top bar (mobile) ── */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 56px;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.topbar-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text) !important;
}

/* ── Main content ── */
.main-content {
  grid-area: main;
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 2rem;
  min-height: calc(100vh - 56px);
}

/* ── Footer ── */
.site-footer {
  grid-area: footer;
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-sep {
  color: var(--border);
}

/* ── Flash messages ── */
.flash-container {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid transparent;
  animation: slideIn 0.3s ease;
}
.flash-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.flash-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.flash-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
  opacity: 0.7;
}
.flash-close:hover {
  opacity: 1;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Glass card ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.glass-card:hover {
  border-color: var(--border-hover);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #96111f;
  border-color: #96111f;
  box-shadow: 0 0 22px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted) !important;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text) !important;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red) !important;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.ms-auto {
  margin-left: auto;
}
.w-full {
  width: 100%;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-latest {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-pre {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-stable {
  background: rgba(192, 21, 42, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(192, 21, 42, 0.3);
}
.badge-tiny {
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
}

/* ── Tag pill ── */
.tag-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: rgba(192, 21, 42, 0.1);
  border: 1px solid rgba(192, 21, 42, 0.22);
  color: var(--accent-2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.tag-pill.large {
  font-size: 0.875rem;
  padding: 0.3rem 0.75rem;
}
.tag-pill.small {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}

/* ── Version display ── */
.version-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-2);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  background: rgba(192, 21, 42, 0.12);
  border: 1px solid rgba(192, 21, 42, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #f87171 55%, #c0152a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
}
.hero-stat {
  padding: 0.5rem 1.5rem;
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Section ── */
.section {
  margin-bottom: 2.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Projects grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-icon {
  font-size: 2rem;
  line-height: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.project-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.stat-icon {
  font-size: 0.9rem;
}
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.card-btn {
  color: var(--accent-2) !important;
}

/* ── Page header ── */
.page-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.page-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-hero-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.page-header-text {
  flex: 1;
  min-width: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.breadcrumb span:not(:first-child):not(:last-child) {
  color: var(--text-dim);
}
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.page-link {
  font-size: 0.85rem;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.page-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* Latest banner */
.latest-banner {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.latest-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.latest-sep {
  color: var(--text-dim);
}
.latest-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Release timeline ── */
.releases-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.release-row {
  display: flex;
  gap: 1rem;
}
.release-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.4rem;
  width: 20px;
  flex-shrink: 0;
}
.release-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow);
}
.dot-pre {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.release-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin: 4px 0;
  min-height: 20px;
}

.release-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.release-card:hover {
  border-color: var(--border-hover);
}
.release-row-latest .release-card {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.03);
}
.release-card-head {
  margin-bottom: 0.75rem;
}
.release-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.release-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text) !important;
}
.release-link:hover {
  color: var(--accent-2) !important;
}
.release-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.meta-sep {
  color: var(--text-dim);
}
.release-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.release-details-link {
  font-size: 0.85rem;
  color: var(--accent-2);
}
.release-details-link:hover {
  color: #fff;
}

/* Asset mini list */
.asset-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.asset-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.asset-mini-icon {
  font-size: 1rem;
}
.asset-mini-name {
  flex: 1;
  font-size: 0.85rem;
  font-family: var(--mono);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-mini-size {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Admin actions on release card */
.release-card-admin {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Release layout (2-col) ── */
.release-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.release-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.release-assets-col {
  position: sticky;
  top: 1rem;
}
.asset-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.asset-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.asset-type-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.asset-details {
  min-width: 0;
}
.asset-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.asset-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.asset-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.empty-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.back-link {
  font-size: 0.875rem;
  color: var(--accent-2);
}
.back-link:hover {
  color: #fff;
}

/* Changelog */
.changelog-card {
}
.markdown-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.markdown-body h1 {
  font-size: 1.4rem;
}
.markdown-body h2 {
  font-size: 1.15rem;
}
.markdown-body h3 {
  font-size: 1rem;
}
.markdown-body p {
  margin-bottom: 0.75rem;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.markdown-body li {
  margin-bottom: 0.25rem;
}
.markdown-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--accent-2);
}
.markdown-body pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
.markdown-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
}
.markdown-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}
.markdown-body th,
.markdown-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}
.markdown-body th {
  background: rgba(139, 92, 246, 0.08);
  font-weight: 600;
}
.markdown-body a {
  color: var(--accent-2);
}
.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ── Admin dashboard stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.stat-card-icon {
  font-size: 2rem;
}
.stat-card-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* ── Data table ── */
.table-card {
  padding: 0;
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.table-link {
  color: var(--text) !important;
  font-weight: 500;
}
.table-link:hover {
  color: var(--accent-2) !important;
}
.action-cell {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ── Forms ── */
.form-page {
  max-width: 700px;
}
.form-card {
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.flex-grow {
  flex: 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group-check {
  justify-content: flex-end;
  padding-bottom: 0.2rem;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder {
  color: var(--text-dim);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.code-textarea {
  font-family: var(--mono);
  font-size: 0.85rem;
}
.form-select {
  cursor: pointer;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mt-1 {
  margin-top: 0.25rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  user-select: none;
}
.checkbox-label input {
  display: none;
}
.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkbox-label input:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input:checked ~ .checkmark::after {
  content: "✓";
  font-size: 0.7rem;
  color: #fff;
}

/* Input prefix */
.input-prefix {
  display: flex;
}
.input-prefix-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0.65rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.input-prefix .form-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.emoji-input {
  font-size: 1.4rem;
  text-align: center;
  max-width: 80px;
  padding: 0.5rem;
}

/* Input with toggle */
.input-with-toggle {
  position: relative;
}
.input-with-toggle .form-input {
  padding-right: 2.5rem;
}
.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Drag-and-drop ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.2s,
    background 0.2s;
  position: relative;
  overflow: hidden;
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}
.drop-zone-inner {
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
}
.drop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.drop-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.drop-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.drop-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-preview {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(34, 197, 94, 0.05);
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}
.drop-preview-icon {
  font-size: 1.2rem;
}
#dropPreviewName {
  font-family: var(--mono);
  font-size: 0.875rem;
  flex: 1;
}
.drop-preview-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Upload progress ── */
.upload-progress {
  margin-top: 1rem;
}
.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 0.3s;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    filter: brightness(1);
  }
}
.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Markdown editor tabs ── */
.editor-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.tab-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font);
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.markdown-preview {
  min-height: 100px;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Existing assets area */
.existing-assets {
  margin-bottom: 0.75rem;
}
.existing-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

/* ── Login page ── */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr;
  grid-template-areas: "main";
  min-height: 100vh;
}
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}
.login-card {
  text-align: center;
}
.login-logo {
  margin-bottom: 1.25rem;
}
.login-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}
.login-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.login-title {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-full {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.empty-icon {
  font-size: 2.5rem;
}
.empty-state p {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "footer";
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    display: flex;
  }
  .main-content {
    margin-top: 56px;
    padding: 1.25rem 1rem 1rem;
  }
  .site-footer {
    grid-area: footer;
    padding: 1rem;
  }
  .release-layout {
    grid-template-columns: 1fr;
  }
  .release-assets-col {
    position: static;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
  .page-header-inner {
    flex-direction: column;
  }
  .page-actions {
    width: 100%;
  }
  .data-table {
    font-size: 0.8rem;
  }
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.6rem;
  }
}
