/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --card-bg: rgba(14, 14, 16, 0.88);
  --card-border: rgba(255, 255, 255, 0.055);
  --card-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
  --text: #e8e8ea;
  --text-muted: #606068;
  --text-dim: #888892;
  --accent: #b83060;
  --accent-soft: rgba(184, 48, 96, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --font-head: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --transition: 200ms ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ── Custom Cursor ─────────────────────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

/* ── Background ────────────────────────────────────────────────────────────── */
.home-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.home-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(30,20,30,0.4) 0%, rgba(10,10,10,0.95) 70%);
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99), box-shadow 0.5s ease;
  will-change: transform;
}
.card:hover {
  box-shadow: var(--card-shadow), 0 0 0 1px rgba(255,255,255,0.07);
}
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.card-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

/* ── Home Layout ───────────────────────────────────────────────────────────── */
.home-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.home-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 1000px;
}
.card-side {
  width: 260px;
  flex-shrink: 0;
  align-self: stretch;
}
.card-profile {
  width: 360px;
  flex-shrink: 0;
}

/* ── Card Label ────────────────────────────────────────────────────────────── */
.card-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Latest Card ───────────────────────────────────────────────────────────── */
.latest-group { margin-bottom: 1.4rem; }
.latest-group:last-child { margin-bottom: 0; }
.latest-section-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.latest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
  font-size: 13px;
}
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { color: #fff; }
.latest-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: var(--text-dim);
}
.latest-item:hover .latest-title { color: var(--text); }
.latest-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.latest-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.latest-badge--mod      { background: rgba(100,160,255,0.12); color: #6aa0ff; }
.latest-badge--software { background: rgba(100,255,160,0.12); color: #64ffa0; }
.latest-badge--tool     { background: rgba(255,200,100,0.12); color: #ffc864; }
.latest-badge--plugin   { background: rgba(200,100,255,0.12); color: #c864ff; }
.latest-empty { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* ── Profile Card ──────────────────────────────────────────────────────────── */
.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.profile-avatar--default {
  background: radial-gradient(135deg, #3a1a2e 0%, #1a0e1e 100%);
  border: 2px solid rgba(255,255,255,0.08);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-badges { font-size: 0.85rem; margin-left: 0.3rem; }
.profile-desc { font-size: 13px; color: var(--text-dim); }

/* ── Social Icons ──────────────────────────────────────────────────────────── */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.social-btn img { width: 18px; height: 18px; filter: brightness(0.9); }
.social-btn:hover img { filter: brightness(1); }

/* ── Home Nav Card ─────────────────────────────────────────────────────────── */
.home-nav { display: flex; flex-direction: column; gap: 4px; }
.home-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.home-nav-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: var(--text);
}
.home-nav-item svg:first-child { flex-shrink: 0; opacity: 0.6; }
.home-nav-item span { flex: 1; }
.nav-arrow { flex-shrink: 0; opacity: 0; transition: opacity var(--transition), transform var(--transition); }
.home-nav-item:hover .nav-arrow { opacity: 0.4; transform: translateX(2px); }
.home-admin-link {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), border-color var(--transition);
}
.home-admin-link:hover { color: var(--text-dim); border-color: rgba(255,255,255,0.1); }

/* ── Site Header (inner pages) ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header-logo {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color var(--transition);
}
.header-logo:hover { color: #fff; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.header-admin {
  color: var(--accent) !important;
  border: 1px solid rgba(184,48,96,0.3) !important;
}
.header-admin:hover { background: var(--accent-soft) !important; }

/* ── Page Layout ───────────────────────────────────────────────────────────── */
.page-main { min-height: calc(100vh - 54px); padding: 3rem 0 5rem; }
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-container--narrow { max-width: 740px; }
.page-hero { margin-bottom: 2.5rem; }
.page-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text-dim); }
.empty-state {
  color: var(--text-muted);
  font-style: italic;
  padding: 3rem 0;
}

/* ── Post Grid ─────────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(20px);
}
.post-card:hover { border-color: rgba(255,255,255,0.1); }
.post-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.post-card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.post-card:hover .post-card-title { color: #fff; }
.post-card-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.5; flex: 1; }
.post-card-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.post-date { font-size: 12px; color: var(--text-muted); }

/* ── Tags ──────────────────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Mod Grid ──────────────────────────────────────────────────────────────── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.mod-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: border-color var(--transition);
}
.mod-card:hover { border-color: rgba(255,255,255,0.1); }
.mod-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.mod-cover--empty {
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
}
.mod-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.mod-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.mod-card-name { font-size: 1rem; font-weight: 600; }
.mod-card-desc { font-size: 13px; color: var(--text-dim); flex: 1; }
.mod-card-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.mod-type-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
}
.mod-type-badge--mod      { background: rgba(100,160,255,0.1); color: #6aa0ff; border: 1px solid rgba(100,160,255,0.2); }
.mod-type-badge--software { background: rgba(100,255,160,0.1); color: #64ffa0; border: 1px solid rgba(100,255,160,0.2); }
.mod-type-badge--tool     { background: rgba(255,200,100,0.1); color: #ffc864; border: 1px solid rgba(255,200,100,0.2); }
.mod-type-badge--plugin   { background: rgba(200,100,255,0.1); color: #c864ff; border: 1px solid rgba(200,100,255,0.2); }
.mod-version { font-size: 11px; color: var(--text-muted); font-family: var(--font-head); }

/* ── Mod Detail ────────────────────────────────────────────────────────────── */
.mod-detail-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.mod-detail-desc { font-size: 1rem; color: var(--text-dim); margin-bottom: 1rem; }
.mod-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Article ───────────────────────────────────────────────────────────────── */
.article-cover {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.article-header { margin-bottom: 2rem; }
.article-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.article-body { line-height: 1.75; }
.admin-bar { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Prose ─────────────────────────────────────────────────────────────────── */
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-head);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.1rem; }
.prose p  { margin-bottom: 1.1rem; color: var(--text-dim); }
.prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #d44070; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; color: var(--text-dim); }
.prose code {
  font-family: var(--font-head);
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 6px;
}
.prose pre {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.88rem; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 2rem 0; }

/* ── Artwork Grid ──────────────────────────────────────────────────────────── */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.artwork-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.artwork-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.artwork-item:hover img { transform: scale(1.05); }
.artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.artwork-item:hover .artwork-overlay { opacity: 1; }
.artwork-item-title { font-size: 12px; font-weight: 600; color: #fff; }

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: none;
}
.lightbox-frame {
  position: relative;
  z-index: 1;
  max-width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.lightbox.active .lightbox-frame { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }
.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.lightbox-caption { text-align: center; }
.lightbox-title { font-weight: 600; margin-bottom: 0.25rem; }
.lightbox-desc { font-size: 13px; color: var(--text-dim); }

/* ── FAB ───────────────────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184,48,96,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 200;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(184,48,96,0.5); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover { background: #d44070; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.btn-danger {
  background: rgba(220,50,50,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(220,50,50,0.2);
}
.btn-danger:hover { background: rgba(220,50,50,0.22); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 12px; }

/* ── Error Page ────────────────────────────────────────────────────────────── */
.error-card { max-width: 400px; }
.error-code {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-msg { font-size: 1rem; color: var(--text-dim); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-login-card { max-width: 340px; width: 100%; }
.admin-login-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.admin-login-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 1.5rem; }
.admin-login-form { display: flex; flex-direction: column; gap: 0.75rem; }

.admin-quick-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.admin-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 100px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(20px);
}
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

.admin-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
}
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-section-header h2 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

.admin-list { display: flex; flex-direction: column; gap: 2px; }
.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.admin-list-item:hover { background: rgba(255,255,255,0.03); }
.admin-list-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; }
.admin-list-title { font-size: 13px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-title:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.admin-list-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.admin-list-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  flex-shrink: 0;
}
.admin-list-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.status-dot {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}
.status-dot--live  { background: rgba(80,200,100,0.1); color: #50c864; }
.status-dot--draft { background: rgba(200,160,60,0.1); color: #c8a03c; }

/* ── Mod Status Badge ──────────────────────────────────────────────────────── */
.mod-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.mod-status-badge--green  { background: rgba(80,200,100,0.12); color: #50c864; border: 1px solid rgba(80,200,100,0.25); }
.mod-status-badge--yellow { background: rgba(200,170,50,0.12);  color: #c8aa32; border: 1px solid rgba(200,170,50,0.25); }
.mod-status-badge--red    { background: rgba(220,60,60,0.12);   color: #e05050; border: 1px solid rgba(220,60,60,0.25); }
.mod-status-badge--warn   { background: rgba(220,150,20,0.12);  color: #d4920a; border: 1px solid rgba(220,150,20,0.25); }

/* ── Admin Status Selector ─────────────────────────────────────────────────── */
.status-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.status-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.status-option input[type="radio"] { display: none; }
.status-option:hover { background: rgba(255,255,255,0.08); }
.status-option--none.active  { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.status-option--green.active  { background: rgba(80,200,100,0.15); border-color: rgba(80,200,100,0.4); color: #50c864; }
.status-option--yellow.active { background: rgba(200,170,50,0.15);  border-color: rgba(200,170,50,0.4);  color: #c8aa32; }
.status-option--red.active    { background: rgba(220,60,60,0.15);   border-color: rgba(220,60,60,0.4);   color: #e05050; }
.status-option--warn.active   { background: rgba(220,150,20,0.15);  border-color: rgba(220,150,20,0.4);  color: #d4920a; }

.admin-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.admin-art-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.admin-art-item img { width: 100%; height: 100%; object-fit: cover; }
.admin-art-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 0.5rem;
}
.admin-art-item:hover .admin-art-overlay { opacity: 1; }
.admin-art-overlay span { font-size: 11px; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── Admin Forms ───────────────────────────────────────────────────────────── */
.admin-form { display: flex; flex-direction: column; gap: 0; }
.form-group { margin-bottom: 1.4rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }
.form-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-hint { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-muted); opacity: 0.7; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.form-select { appearance: none; }
.form-file { padding: 0.5rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.form-check label { font-size: 13px; color: var(--text-dim); margin-bottom: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 0.5rem; }
.form-error {
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.25);
  color: #ff8080;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 13px;
  margin-bottom: 1.5rem;
}
.form-success {
  background: rgba(50,200,100,0.1);
  border: 1px solid rgba(50,200,100,0.25);
  color: #64e08c;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 13px;
  margin-bottom: 1.5rem;
}
.current-image { margin-bottom: 0.75rem; }
.current-image img { border-radius: var(--radius-sm); max-height: 180px; object-fit: cover; }
.current-image span { font-size: 11px; color: var(--text-muted); display: block; margin-top: 0.25rem; }

/* ── Drop Zone ─────────────────────────────────────────────────────────────── */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.drop-zone:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.02); }
.drop-zone-inner { pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-muted); }
.drop-zone-inner p { font-size: 14px; }
#dropZoneFilename { font-size: 12px; color: var(--text-dim); }
.drop-zone-preview { display: none; margin-top: 1rem; }
.drop-zone-preview img { max-height: 240px; object-fit: contain; border-radius: var(--radius-sm); margin: 0 auto; }

/* ── Settings Sections ─────────────────────────────────────────────────────── */
.settings-section {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── EasyMDE overrides ─────────────────────────────────────────────────────── */
.EasyMDEContainer .CodeMirror {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--text) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}
.EasyMDEContainer .editor-toolbar {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: none !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}
.EasyMDEContainer .editor-toolbar button { color: var(--text-dim) !important; }
.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active { background: rgba(255,255,255,0.07) !important; color: var(--text) !important; }
.EasyMDEContainer .editor-toolbar i.separator { border-color: rgba(255,255,255,0.1) !important; }
.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
  background: rgba(14,14,16,0.97) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.EasyMDEContainer .editor-preview pre,
.EasyMDEContainer .editor-preview-side pre {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* ── Music Player ──────────────────────────────────────────────────────────── */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 300;
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  max-width: 300px;
  animation: slideInPlayer 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes slideInPlayer {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.music-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.music-play-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
.music-play-btn.is-playing {
  background: var(--accent-soft);
  border-color: rgba(184,48,96,0.35);
  color: var(--accent);
}
.music-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}
.music-bars.visible { display: flex; }
.music-bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: bar 0.8s ease-in-out infinite alternate;
}
.music-bars span:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.music-bars span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 8px;  animation-delay: 0.3s;  }
.music-bars span:nth-child(4) { height: 10px; animation-delay: 0.1s;  }
@keyframes bar {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1);    }
}
.music-title-text {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  flex: 1;
}
.music-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
  flex-shrink: 0;
  cursor: none;
}
.music-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.music-vol:hover::-webkit-slider-thumb { background: #fff; }

/* ── Artwork Loader ────────────────────────────────────────────────────────── */
.artwork-loader {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  backdrop-filter: blur(8px);
}
.artwork-loader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.artwork-loader-inner { text-align: center; }
.artwork-loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
}
.artwork-loader-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.artwork-loader-text { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; }

/* ── Artwork video ──────────────────────────────────────────────────────────── */
.artwork-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artwork-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  transition: opacity 0.2s;
}
.artwork-item:hover .artwork-video-icon { opacity: 0; }
.lightbox-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

/* ── Filter Bar ────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { background: rgba(255,255,255,0.07); color: var(--text); border-color: rgba(255,255,255,0.16); }
.filter-chip.active { background: var(--accent-soft); border-color: rgba(184,48,96,0.35); color: var(--accent); }

/* ── Patch Notes ───────────────────────────────────────────────────────────── */
.patch-notes {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.patch-notes-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
}

/* ── Mod Updated Badge ─────────────────────────────────────────────────────── */
.mod-updated-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(80,220,120,0.15);
  color: #50dc78;
  border: 1px solid rgba(80,220,120,0.25);
  pointer-events: none;
}
.mod-cover { position: relative; }
.mod-cover--empty { position: relative; }

/* ── Latest Thumbnail ──────────────────────────────────────────────────────── */
.latest-thumb {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── Discord Widget ─────────────────────────────────────────────────────────── */
.discord-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: rgba(12,12,14,0.92);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 12px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  animation: slideInPlayer 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  max-width: 260px;
}
.discord-widget-icon { color: #5865f2; flex-shrink: 0; }
.discord-widget-info { flex: 1; min-width: 0; }
.discord-widget-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-widget-online { font-size: 11px; color: var(--text-muted); }
.discord-widget-join {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  background: #5865f2;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.discord-widget-join:hover { background: #4752c4; }

/* ── Social Discord user button ──────────────────────────────────────────────── */
.social-btn--discord {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  gap: 3px;
}
.social-discord-label {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Input Toggle (upload vs URL) ────────────────────────────────────────────── */
.input-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
  width: fit-content;
  margin-bottom: 0.75rem;
}
.input-toggle-btn {
  padding: 0.3rem 0.8rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.input-toggle-btn.active {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

/* ── Checkbox List ───────────────────────────────────────────────────────────── */
.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-item:hover { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.03); }
.checkbox-item input { accent-color: var(--accent); flex-shrink: 0; }

/* ── Form check row ─────────────────────────────────────────────────────────── */
.form-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.form-check-row .form-group { margin-bottom: 0; }

/* ── Custom Link Row ────────────────────────────────────────────────────────── */
.custom-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* ── Shelf (Steam-style collection rows) ────────────────────────────────────── */
.shelf {
  margin-bottom: 2.5rem;
}
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.shelf-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.shelf-icon { font-size: 1.1rem; }
.shelf-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shelf-title a { color: inherit; transition: color var(--transition); }
.shelf-title a:hover { color: #fff; }
.shelf-count {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1px 7px;
}
.shelf-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.shelf-nav-btn, .shelf-expand-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.shelf-nav-btn:hover, .shelf-expand-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.shelf-expand-btn svg { transition: transform 0.25s ease; }
.shelf-expand-btn.rotated svg { transform: rotate(180deg); }

.shelf-track-wrap {
  overflow: hidden;
  position: relative;
}
.shelf-track-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}
.shelf-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }

.shelf-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(20px);
}
.shelf-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }
.shelf-card-cover {
  position: relative;
  height: 120px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.shelf-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.shelf-card:hover .shelf-card-cover img { transform: scale(1.04); }
.shelf-card-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
}
.shelf-card-type {
  position: absolute;
  bottom: 6px;
  left: 6px;
}
.shelf-card-info {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.shelf-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-card:hover .shelf-card-name { color: var(--text); }
.shelf-card-version { font-size: 10px; color: var(--text-muted); font-family: var(--font-head); }
.shelf-card-os { display: flex; gap: 4px; margin-top: 2px; }
.shelf-expanded-grid { margin-top: 1rem; }
.shelf--unassigned { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── OS Icons ────────────────────────────────────────────────────────────────── */
.os-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.65;
  vertical-align: middle;
}
.os-icons-small { display: inline-flex; gap: 4px; align-items: center; }
.os-icons-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
}
.os-badge--windows { background: rgba(0,120,215,0.12); color: #3fa3f5; border: 1px solid rgba(0,120,215,0.2); }
.os-badge--linux   { background: rgba(200,200,200,0.08); color: #c8c8c8; border: 1px solid rgba(200,200,200,0.15); }
.os-badge--macos   { background: rgba(200,200,200,0.08); color: #c8c8c8; border: 1px solid rgba(200,200,200,0.15); }

/* ── Admin OS checkboxes ─────────────────────────────────────────────────────── */
.os-checkbox-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.os-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.os-checkbox-item input { display: none; }
.os-checkbox-item:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); color: var(--text-dim); }
.os-checkbox-item.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* ── Admin Downloads list ────────────────────────────────────────────────────── */
.downloads-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.download-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}
.download-entry:first-child { border-color: rgba(184,48,96,0.3); background: rgba(184,48,96,0.04); }
.download-entry-fields { display: flex; gap: 0.5rem; flex: 1; flex-wrap: wrap; }
.download-entry-fields .form-input { flex: 1; min-width: 120px; margin: 0; padding: 0.4rem 0.7rem; font-size: 13px; }
.download-entry-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Download history (detail page) ─────────────────────────────────────────── */
.download-history { position: relative; }
.older-versions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(14,14,16,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  min-width: 180px;
  z-index: 50;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.older-version-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
}
.older-version-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .home-wrap { padding: 1.25rem 1rem; align-items: flex-start; }
  .home-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .home-cards > * { order: 2; }
  .card-profile { order: 1; width: 100%; }
  .card-side { width: 100%; }
}
@media (max-width: 600px) {
  .home-wrap { padding: 1rem 0.75rem; }
  .home-cards { gap: 10px; max-width: 100%; }
  .page-container { padding: 0 1.25rem; }
  .article-title { font-size: 1.4rem; }
  .page-title { font-size: 1.5rem; }
  .header-inner { padding: 0 1.25rem; }
  .header-nav a { padding: 0.3rem 0.5rem; font-size: 12px; }
  .admin-grid { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .discord-widget { right: 0.75rem; bottom: 0.75rem; max-width: calc(100vw - 1.5rem); }
  .music-player { left: 0.75rem; bottom: 0.75rem; }
  .custom-link-row { flex-direction: column; align-items: stretch; }
  .custom-link-row .btn-danger { align-self: flex-end; }
}
