/* ═══════════════════════════════════════════════════════════
   MASCHAKS SERVER — norisk.gg inspired Design
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:          #000000;
  --surface:     #0d0d0d;
  --surface2:    #161616;
  --surface3:    #1e1e1e;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.13);
  --accent:      #00e5a0;
  --accent2:     #00c896;
  --accent-dim:  rgba(0,229,160,0.1);
  --accent-glow: rgba(0,229,160,0.3);
  --accent-glow2:rgba(0,229,160,0.08);
  --text:        #f0f0f0;
  --text-muted:  #888;
  --text-faint:  #444;
  --red:         #ff4757;
  --yellow:      #ffc107;
  --font:        'Space Grotesk', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-pill: 999px;
  --nav-h:       72px;
  --shadow:      0 4px 32px rgba(0,0,0,.8);
  --glow-btn:    0 0 24px rgba(0,229,160,.35), 0 0 60px rgba(0,229,160,.12);
}

*, *::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;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button { font-family: var(--font); cursor: pointer; }

/* ── Dot Grid Background ── */
.bg-dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Navbar — morphs from full bar → floating pill on scroll ── */
.navbar {
  position: fixed; z-index: 200;
  height: 60px;
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;

  /* ── Flat bar state (top of page) ── */
  top: 0;
  left: 0; right: 0;
  transform: none;
  width: 100%;
  padding: 0 2rem 0 2rem;
  background: rgba(0,0,0,0);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  /* smooth morph */
  transition:
    top .4s cubic-bezier(.4,0,.2,1),
    left .4s cubic-bezier(.4,0,.2,1),
    right .4s cubic-bezier(.4,0,.2,1),
    width .4s cubic-bezier(.4,0,.2,1),
    padding .4s cubic-bezier(.4,0,.2,1),
    transform .4s cubic-bezier(.4,0,.2,1),
    border-radius .4s cubic-bezier(.4,0,.2,1),
    background .3s ease,
    border-color .3s ease,
    box-shadow .4s ease;
}

/* ── Pill state (after scrolling) ── */
.navbar.scrolled {
  top: 14px;
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: min(1660px, calc(100vw - 2rem));
  padding: 0 8px 0 20px;
  height: 52px;
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border2);
  box-shadow: 0 8px 40px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  height: 18px;
  width: auto;
  text-transform: uppercase; margin-right: 4px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-glow);
}
.logo-accent { color: var(--accent); }
.nav-divider {
  width: 1px; height: 24px; background: var(--border2);
  margin: 0 12px; flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: var(--radius-pill);
  color: var(--text-muted); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.08); }
.nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000; border: none; cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  flex-shrink: 0;
}
.nav-cta:hover { box-shadow: var(--glow-btn); transform: scale(1.03); }
.nav-status { display: flex; align-items: center; gap: 6px; margin-left: 12px; flex-shrink: 0; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity:.5; box-shadow: 0 0 3px var(--accent); }
}
.status-text { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── Page wrapper ── */
.main { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 18px); min-height: 100vh; }

/* ── Section titles ── */
.section { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before { content:''; width:20px; height:1px; background:var(--accent); }
.section-title {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; color: var(--text);
}
.accent { color: var(--accent); }

/* ── Hero Section ── */
.hero-section { padding: 2rem 2rem 0; max-width: 1200px; margin: 0 auto; }
.hero-card {
  display: block; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; height: 500px;
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
  background: var(--surface);
}
.hero-card:hover { border-color: rgba(0,229,160,.2); box-shadow: 0 0 60px rgba(0,229,160,.06); }
.hero-img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.hero-card:hover .hero-img { transform: scale(1.02); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,.5) 45%, transparent 100%);
}
.hero-content { position:absolute; bottom:0; left:0; right:0; padding: 2.5rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero-eyebrow-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }
.hero-title {
  font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 0.75rem;
}
.hero-desc { color: var(--text-muted); font-size: 1rem; max-width: 580px; margin-bottom: 1.25rem; }
.hero-meta {
  display: flex; gap: 1.5rem;
  font-size: 0.75rem; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Grid ── */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.grid--quick { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--articles { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; background: transparent; border: none; }

/* ── Cards ── */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); overflow: hidden;
  transition: background .2s;
  cursor: pointer; position: relative;
}
.grid--articles .card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.card:hover { background: var(--surface2); }
.grid--articles .card:hover { border-color: var(--border2); box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.card--article:hover { border-color: rgba(0,229,160,.15) !important; }

.card-img-wrap { height: 200px; overflow: hidden; background: var(--surface2); position: relative; }
.card-img-wrap.card-img-placeholder { display:flex; align-items:center; justify-content:center; font-size:2.5rem; color:var(--text-faint); }
.card-img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.04); }

.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.card-author { font-size: 0.72rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; }
.card-date { font-size: 0.72rem; color: var(--text-faint); }
.card-cta { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-top: 0.5rem; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px;
  border-radius: 5px; width: fit-content;
}
.badge--article { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,229,160,.2); }
.badge--article::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.badge--quick { background: rgba(255,193,7,.09); color: var(--yellow); border: 1px solid rgba(255,193,7,.2); }
.badge--quick::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--yellow); flex-shrink:0; }

/* ── Empty State ── */
.empty-state { text-align:center; padding:7rem 2rem; color:var(--text-muted); }
.empty-icon { font-size:3.5rem; margin-bottom:1rem; filter:grayscale(1); }
.empty-state h2 { font-size:1.4rem; font-weight:700; color:var(--text); margin-bottom:.5rem; letter-spacing:-.02em; }

/* ── Article Page ── */
.article-container { max-width:740px; margin:0 auto; padding:3rem 2rem 7rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color .2s; margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); }
.article-title { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0.75rem 0 1rem; }
.article-meta {
  display: flex; gap: 1.5rem; align-items: center;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; max-height: 460px; border: 1px solid var(--border); margin: 1.5rem 0; }
.article-lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.article-divider { height: 1px; background: linear-gradient(to right, var(--accent), transparent); margin: 1.5rem 0; opacity: .4; }
.article-body { font-size: 1rem; line-height: 1.9; color: #aaa; }

/* ── About Hero ── */
.about-hero {
  position: relative; z-index: 1;
  padding: calc(var(--nav-h) + 5rem) 2rem 6rem;
  text-align: center;
}
/* Radial glow behind hero */
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,229,160,.07) 0%, transparent 70%);
  pointer-events: none;
}
.about-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(0,229,160,.2);
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 2rem;
}
.about-hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 1.5rem;
}
.about-hero-title .line2 { color: var(--accent); }
.about-hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 3rem; line-height: 1.7;
}
.about-hero-ip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border2);
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.about-hero-ip:hover { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.copy-hint { font-size: 0.68rem; color: var(--text-faint); font-family: var(--font); }

/* ── Stats ── */
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.about-stat {
  padding: 2.5rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.about-stat:last-child { border-right: none; }
.about-stat:hover { background: var(--surface); }
.stat-num {
  font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--accent); line-height: 1; display: block;
}
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.4rem; }

/* ── About content ── */
.about-content { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 6rem; position: relative; z-index:1; }
.about-section { margin-bottom: 5rem; }
.about-section-title {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.25rem; color: var(--text);
  display: flex; align-items: center; gap: 0.6rem;
}
.about-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.about-text + .about-text { margin-top: 0.85rem; }

.about-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.5rem; }
.about-feature { background: var(--surface); padding: 1.5rem; transition: background .2s; }
.about-feature:hover { background: var(--surface2); }
.about-feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.about-feature-title { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); margin-bottom: 0.4rem; }
.about-feature-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

.about-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.about-team-card { background: var(--surface); padding: 1.75rem 1.25rem; text-align: center; transition: background .2s; }
.about-team-card:hover { background: var(--surface2); }
.about-team-avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--surface2); margin: 0 auto 1rem; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; }
.about-team-avatar img { width:100%; height:100%; object-fit:cover; }
.about-team-name { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.about-team-role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 0.3rem; }

/* ── Mods ── */
.mods-header { position:relative; z-index:1; padding: calc(var(--nav-h) + 3rem) 2rem 2rem; max-width:1200px; margin:0 auto; }
.mods-header-title { font-size: 2.8rem; font-weight:700; letter-spacing:-0.03em; }
.mods-header-sub { color:var(--text-muted); font-size:.95rem; margin-top:.5rem; }
.mods-search-wrap { margin-top:1.5rem; position:relative; max-width:400px; }
.mods-search { width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:var(--radius-pill); padding:.7rem 1rem .7rem 2.75rem; font-family:var(--font); font-size:.9rem; transition:border-color .2s; outline:none; }
.mods-search:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }
.mods-search-icon { position:absolute; left:1rem; top:50%; transform:translateY(-50%); color:var(--text-faint); font-size:.9rem; }
.mods-count { font-size:.75rem; color:var(--text-faint); font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-top:.6rem; }

.mods-grid { display:grid; gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; padding:0 2rem 5rem; max-width:1200px; margin:0 auto; background:transparent; border:none; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); }
.mod-card { display:flex; gap:1rem; align-items:flex-start; background:var(--surface); border-bottom:1px solid var(--border); padding:1rem 1.25rem; transition:background .2s; }
.mods-grid { border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:transparent; }
.mod-card:hover { background:var(--surface2); }
.mod-icon { font-size:1.4rem; flex-shrink:0; width:40px; height:40px; background:var(--surface2); border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); }
.mod-info { flex:1; min-width:0; }
.mod-name { font-size:.9rem; font-weight:600; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mod-desc { font-size:.78rem; color:var(--text-muted); line-height:1.55; margin-top:.2rem; }
.mod-version { font-size:.65rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); background:var(--accent-dim); border:1px solid rgba(0,229,160,.15); padding:.2rem .5rem; border-radius:5px; white-space:nowrap; flex-shrink:0; align-self:flex-start; margin-top:2px; }

/* ── Buttons ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; font-family:var(--font); font-weight:700; font-size:.82rem; letter-spacing:.04em; text-transform:uppercase; padding:.65rem 1.5rem; border-radius:var(--radius-pill); border:none; cursor:pointer; transition:all .2s; white-space:nowrap; }
.btn-primary { background:linear-gradient(135deg, var(--accent), var(--accent2)); color:#000; }
.btn-primary:hover { box-shadow:var(--glow-btn); transform:translateY(-1px); }
.btn-secondary { background:transparent; color:var(--text-muted); border:1px solid var(--border2); }
.btn-secondary:hover { border-color:rgba(255,255,255,.2); color:var(--text); background:rgba(255,255,255,.04); }
.btn-danger { background:transparent; color:var(--red); border:1px solid rgba(255,71,87,.25); }
.btn-danger:hover { background:rgba(255,71,87,.08); }
.btn-sm { padding:.38rem .85rem; font-size:.72rem; }
.btn:disabled { opacity:.35; cursor:not-allowed; transform:none !important; }

/* ── Form ── */
.form { display:flex; flex-direction:column; gap:1.25rem; max-width:700px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { display:flex; flex-direction:column; gap:.45rem; }
.field-label { font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.field-input,.field-select,.field-textarea { background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:var(--radius); padding:.65rem .9rem; font-family:var(--font); font-size:.9rem; transition:border-color .2s,box-shadow .2s; outline:none; width:100%; }
.field-input:focus,.field-select:focus,.field-textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }
.field-textarea { resize:vertical; min-height:140px; line-height:1.65; }
.field-select option { background:var(--surface2); }
.field-img-preview { width:100%; max-height:200px; object-fit:cover; border-radius:var(--radius); border:1px solid var(--border); display:none; margin-top:.5rem; }
.field-img-preview.visible { display:block; }
.upload-area { border:1px dashed var(--border2); border-radius:var(--radius); padding:1.5rem; text-align:center; cursor:pointer; transition:border-color .2s,background .2s; }
.upload-area:hover,.upload-area.dragging { border-color:var(--accent); background:var(--accent-dim); }
.upload-area-text { font-size:.82rem; color:var(--text-faint); }
.upload-area-input { display:none; }

/* ── Admin Layout ── */
.admin-layout { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.admin-sidebar { background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; overflow-y:auto; }
.admin-sidebar-header { padding:1.25rem 1.25rem 1rem; border-bottom:1px solid var(--border); font-size:.82rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); display:flex; align-items:center; gap:.5rem; }
.admin-nav { display:flex; flex-direction:column; padding:.75rem; gap:.2rem; }
.admin-nav-btn { background:none; border:none; color:var(--text-muted); padding:.6rem 1rem; border-radius:var(--radius); text-align:left; font-size:.85rem; font-weight:500; cursor:pointer; transition:background .15s,color .15s; display:flex; align-items:center; gap:.6rem; font-family:var(--font); }
.admin-nav-btn:hover { background:rgba(255,255,255,.05); color:var(--text); }
.admin-nav-btn.active { background:var(--accent-dim); color:var(--accent); }
.admin-sidebar-footer { margin-top:auto; padding:.75rem; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:.4rem; }
.admin-main { padding:2rem; overflow-y:auto; }
.admin-panel-title { font-size:1.8rem; font-weight:700; letter-spacing:-.03em; margin-bottom:1.5rem; }
.admin-login { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:2rem; }
.admin-login-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:2.5rem; width:100%; max-width:380px; box-shadow:var(--shadow); }
.admin-login-title { font-size:1.8rem; font-weight:700; letter-spacing:-.03em; text-align:center; margin-bottom:.4rem; }
.admin-login-sub { text-align:center; color:var(--text-muted); font-size:.85rem; margin-bottom:2rem; }
.admin-articles-list { display:flex; flex-direction:column; gap:.5rem; }
.admin-article-item { display:flex; align-items:center; gap:1rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:.85rem 1rem; transition:border-color .2s,background .2s; }
.admin-article-item:hover { background:var(--surface2); border-color:var(--border2); }
.admin-article-img { width:56px; height:40px; border-radius:8px; object-fit:cover; background:var(--surface2); flex-shrink:0; }
.admin-article-img-ph { width:56px; height:40px; border-radius:8px; background:var(--surface2); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:var(--text-faint); }
.admin-article-info { flex:1; min-width:0; }
.admin-article-title { font-weight:600; font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.admin-article-meta { font-size:.72rem; color:var(--text-muted); margin-top:.2rem; }
.admin-article-actions { display:flex; gap:.4rem; flex-shrink:0; }

/* ── Toast ── */
.toast-container { position:fixed; bottom:2rem; right:2rem; z-index:9999; display:flex; flex-direction:column; gap:.5rem; }
.toast { background:var(--surface); border:1px solid var(--border); padding:.8rem 1.25rem; border-radius:var(--radius); font-size:.85rem; box-shadow:var(--shadow); animation:toast-in .25s ease; max-width:300px; }
.toast--success { border-color:rgba(0,229,160,.3); color:var(--accent); }
.toast--error { border-color:rgba(255,71,87,.3); color:var(--red); }
@keyframes toast-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── Footer ── */
.footer { position:relative; z-index:1; border-top:1px solid var(--border); padding:2rem; }
.footer-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; gap:2rem; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:.6rem; font-size:.85rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.footer-copy { font-size:.75rem; color:var(--text-faint); }
.footer-ip { font-size:.75rem; color:var(--accent); font-weight:600; font-family:var(--font-mono); margin-left:auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--surface3); border-radius:3px; }

/* ── Responsive ── */
@media(max-width:768px){
  .navbar{min-width:calc(100vw - 2rem); top:10px; padding:0 6px 0 14px;}
  .nav-divider{display:none;}
  .hero-title{font-size:1.9rem;}
  .about-hero-title{font-size:3rem;}
  .grid--articles{grid-template-columns:1fr;}
  .admin-layout{grid-template-columns:1fr;}
  .admin-sidebar{position:static;height:auto;}
  .form-row{grid-template-columns:1fr;}
}

/* ═══════════════════════════════════════════════════════════
   POLLS & SURVEYS
   ═══════════════════════════════════════════════════════════ */

/* ── Extra badges ── */
.badge--poll   { background:rgba(139,92,246,.12); color:#a78bfa; border:1px solid rgba(139,92,246,.25); }
.badge--poll::before   { content:''; width:5px; height:5px; border-radius:50%; background:#a78bfa; flex-shrink:0; }
.badge--survey { background:rgba(59,130,246,.12); color:#60a5fa; border:1px solid rgba(59,130,246,.25); }
.badge--survey::before { content:''; width:5px; height:5px; border-radius:50%; background:#60a5fa; flex-shrink:0; }

/* card grid (replaces old separate grids) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cards-grid .card { border-radius: 0; border: none; }
.cards-grid .card:hover { background: var(--surface2); }

/* ── Poll box ── */
.poll-box {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.poll-question {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-muted); margin-bottom: 0.35rem;
  display: flex; align-items: center; gap: 8px;
}
.poll-total-hint {
  font-size: 0.72rem; color: var(--text-faint);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.poll-options { display: flex; flex-direction: column; gap: 0.55rem; }

.poll-option {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
  display: grid; grid-template-columns: 1fr 100px 64px;
  align-items: center; gap: 0.85rem; text-align: left; color: var(--text);
  font-family: var(--font); font-size: 0.9rem; position: relative; overflow: hidden;
}
.poll-option:hover:not(:disabled) {
  border-color: #a78bfa;
  background: rgba(139,92,246,.06);
  box-shadow: 0 0 0 1px rgba(167,139,250,.15) inset;
}
.poll-option--voted { cursor: default; }
.poll-option--chosen {
  border-color: #a78bfa !important;
  background: rgba(139,92,246,.1) !important;
  box-shadow: 0 0 18px rgba(139,92,246,.12) !important;
}
.poll-option:disabled { opacity: 0.9; }

.poll-option-label { font-weight: 600; position: relative; z-index: 1; font-size: 0.88rem; }
.poll-bar-wrap {
  height: 5px; background: rgba(255,255,255,.07);
  border-radius: 3px; overflow: hidden; flex-shrink: 0;
}
.poll-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 3px; transition: width .7s cubic-bezier(.4,0,.2,1);
}
.poll-option--chosen .poll-bar { box-shadow: 0 0 8px rgba(167,139,250,.5); }
.poll-pct {
  font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono);
  text-align: right; flex-shrink: 0; letter-spacing: 0.02em;
}

.poll-footer {
  margin-top: 1.25rem; padding-top: 0.85rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.03em;
}
.poll-footer-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2);
  color: #a78bfa; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.poll-voted-msg {
  display: none; text-align: center; padding: 0.6rem 0 0;
  font-size: 0.8rem; color: #a78bfa; font-weight: 600;
}
.poll-voted-msg.visible { display: block; }

/* ── Survey box ── */
.survey-box {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.survey-question {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 1.5rem; color: var(--text);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.survey-fields { display: flex; flex-direction: column; gap: 1rem; }

.survey-thanks { text-align: center; padding: 2.5rem 1rem; }
.survey-thanks-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.survey-thanks h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.survey-thanks p  { color: var(--text-muted); font-size: 0.9rem; }
.survey-char-count {
  font-size: 0.7rem; color: var(--text-faint); font-family: var(--font-mono);
  text-align: right; margin-top: 0.3rem;
}

/* ── Admin survey responses panel ── */
.survey-responses { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.survey-response-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.survey-response-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem;
}
.survey-response-name { font-weight: 700; font-size: 0.88rem; color: #60a5fa; }
.survey-response-date { font-size: 0.72rem; color: var(--text-faint); font-family: var(--font-mono); }
.survey-response-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Admin form extras ── */
.options-list { display: flex; flex-direction: column; gap: 0.5rem; }
.option-row { display: flex; gap: 0.5rem; align-items: center; }
.option-row .field-input { flex: 1; }
.btn-icon { background: none; border: 1px solid var(--border); color: var(--text-faint); width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; display:flex;align-items:center;justify-content:center; cursor:pointer; flex-shrink:0; transition: border-color .15s, color .15s; }
.btn-icon:hover { border-color:var(--red); color:var(--red); }
.btn-add-option { background: none; border: 1px dashed var(--border2); color: var(--text-muted); border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.82rem; cursor: pointer; transition: border-color .2s, color .2s; font-family: var(--font); width: 100%; margin-top: 0.25rem; }
.btn-add-option:hover { border-color: #a78bfa; color: #a78bfa; }

/* ── Admin tabs (for survey view) ── */
.admin-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; width: fit-content; }
.admin-tab { background: none; border: none; color: var(--text-muted); padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; font-family: var(--font); }
.admin-tab.active { background: var(--surface2); color: var(--text); }