:root {
  --bg: #0c0f14;
  --bg-elevated: #12161e;
  --surface: #181d27;
  --surface-hover: #1e2430;
  --surface-inset: #0f1319;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f2f5;
  --text-secondary: #9aa3b2;
  --text-muted: #6b7585;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --star: #fbbf24;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --nav-height: 64px;
  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(96, 165, 250, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--info); text-decoration: none; transition: color var(--transition); }
a:hover { color: #93c5fd; }

img { max-width: 100%; display: block; }

/* ── Layout ── */

.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main { flex: 1; padding: 32px 0 64px; }

/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(12, 15, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover { color: var(--text); text-decoration: none; }

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.user-chip:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--info-soft));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #1a1000;
  border-color: transparent;
  box-shadow: 0 2px 16px var(--accent-glow);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #1a1000;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn.good {
  background: var(--good-soft);
  color: var(--good);
  border-color: rgba(52, 211, 153, 0.25);
}

.btn.bad {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn.sm { font-size: 13px; padding: 7px 14px; }
.btn.lg { font-size: 16px; padding: 14px 28px; border-radius: var(--radius); }

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Hero ── */

.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--accent), #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-card:nth-child(1) { transform: translateY(0); }
.hero-card:nth-child(2) { transform: translateY(24px); }
.hero-card:nth-child(3) { transform: translateY(-12px); grid-column: span 2; }

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--info-soft));
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-card h3 { margin: 0 0 4px; font-size: 15px; }
.hero-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ── Page header ── */

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.page-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-header a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.section-header a:hover { color: var(--accent-hover); }

.section { margin-bottom: 48px; }

/* ── Cards grid ── */

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── App card ── */

.app-card,
.pack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.app-card:hover,
.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.app-card-banner {
  height: 120px;
  background: linear-gradient(135deg, #1a2030 0%, #252d3d 100%);
  position: relative;
  overflow: hidden;
}

.app-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}

.app-card-icon {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  overflow: hidden;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.app-card-body {
  padding: 32px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-body h3,
.pack-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-card-desc,
.pack-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-meta,
.pack-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.app-card-footer,
.pack-card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

/* ── Pack card ── */

.pack-card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1e2430, #2a3344);
  position: relative;
  overflow: hidden;
}

.pack-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pack-card:hover .pack-card-thumb img { transform: scale(1.05); }

.pack-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
  opacity: 0.4;
}

.pack-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pack-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
}

.pack-price.free { color: var(--good); }

/* ── Badges & pills ── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
}

.pill.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(245, 158, 11, 0.2); }
.pill.good { background: var(--good-soft); color: var(--good); border-color: rgba(52, 211, 153, 0.2); }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(248, 113, 113, 0.2); }

.badge-owned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--good);
}

.badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bad);
}

/* ── Stars ── */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--star);
  font-weight: 700;
  font-size: 13px;
}

.stars .count { color: var(--text-muted); font-weight: 500; }

.stars-lg { font-size: 18px; }

.star-bar {
  display: flex;
  gap: 2px;
}

.star-bar .star { color: var(--star); }
.star-bar .star.empty { color: var(--border-strong); }

/* ── Detail page ── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.detail-main {}

.detail-banner {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: linear-gradient(135deg, #1a2030, #2a3344);
  margin-bottom: 24px;
}

.detail-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 36px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-icon img { width: 100%; height: 100%; object-fit: cover; }

.detail-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.detail-preview {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface-inset);
  margin-bottom: 24px;
}

.detail-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 16px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

/* ── Reviews ── */

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.review-card .stars { margin-bottom: 8px; }
.review-card p { margin: 0 0 8px; color: var(--text-secondary); }
.review-author { font-size: 13px; color: var(--text-muted); }

.reviews-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* ── Forms ── */

.form { max-width: 440px; }

.form-wide { max-width: 100%; }

.form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.form label:first-child { margin-top: 0; }

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-inset);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form textarea { min-height: 100px; resize: vertical; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.form-actions { margin-top: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-check input { width: auto; }

/* ── Auth pages ── */

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 120px);
  padding: 32px 0;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.auth-panel .subtitle {
  color: var(--text-secondary);
  margin: 0 0 28px;
  font-size: 15px;
}

.auth-aside h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.auth-aside p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-benefits li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Alerts ── */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert.info { background: var(--info-soft); border-color: rgba(96, 165, 250, 0.2); color: #93c5fd; }
.alert.err { background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.2); color: var(--bad); }
.alert.ok { background: var(--good-soft); border-color: rgba(52, 211, 153, 0.2); color: var(--good); }

/* ── Tables ── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Stats ── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Admin ── */

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-form-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-tabs a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.admin-tabs a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.admin-tabs a.active {
  color: var(--text);
  background: var(--accent-soft);
  color: var(--accent);
}

.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table .row-link {
  color: var(--text);
  font-weight: 600;
}

.table .row-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.active::before { background: var(--good); }
.status-dot.inactive::before { background: var(--bad); }

.admin-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.admin-preview h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.admin-preview img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface-inset);
}

.admin-preview-placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background: var(--surface-inset);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.admin-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.admin-quick-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.admin-quick-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.admin-quick-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-readonly {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Utilities ── */

.muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 13px;
  color: var(--accent);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 15, 20, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-actions .btn.sm { display: none; }

  .hero { padding: 32px 0; }

  .form-row { grid-template-columns: 1fr; }

  .cardgrid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}
