/* ============================================================
   Deadhand – KeyCore UI (v20260825-kc2)
   Doxbin Style + Deadhand Trademark Eyes
   ============================================================ */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel2: #111111;
  --line: #1f1f1f;
  --line2: #282828;
  --muted: #666666;
  --text: #cccccc;
  --text-dim: #888888;
  --accent: #00d000;   /* Neon Green */
  --accent2: #44aaff;  /* Light Blue */
  --red: #ee4444;
  --green: #22cc22;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ── Topbar ── */
.topbar {
  height: 40px;
  background: #050505;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  width: min(980px, calc(100% - 24px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-right: 6px;
}
.brand:hover { text-decoration: none; color: #fff; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.topbar nav a, .nav-button {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.topbar nav a:hover, .nav-button:hover,
.topbar nav a.active {
  color: #fff;
  background: #111;
  text-decoration: none;
}
.nav-add-paste {
  color: var(--accent) !important;
  font-weight: bold;
}
.nav-add-paste:hover {
  background: #0a1f0a !important;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.language-select {
  border: 1px solid #282828;
  background: #080808;
  color: #888;
  padding: 3px 6px;
  font-size: 10px;
  cursor: pointer;
  border-radius: 2px;
}

/* ── Page shells ── */
.site-shell, .listing-shell, .status-shell, .article-shell {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── Trademark Deadhand Eyes (Brighter) ── */
.eyes-container {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.eyes {
  display: flex;
  gap: 14px;
}
.eye {
  width: 50px;
  height: 50px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 8px #999999, 0 0 16px rgba(255,255,255,0.25);
}
.eye i {
  display: block;
  width: 22px;
  height: 22px;
  background: #000000;
  border-radius: 50%;
  transform: translateX(-10px);
  animation: watch 5.2s cubic-bezier(.6,0,.4,1) infinite;
  box-shadow: inset 3px 2px 0 #555555;
}
.eye i:after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  margin: 4px;
}
@keyframes watch {
  0%, 16% { transform: translateX(-9px); }
  34%, 57% { transform: translateX(9px); }
  75%, 100% { transform: translateX(-9px); }
}

.system-line {
  font: bold 9px/1.2 "Courier New", monospace;
  letter-spacing: .12em;
  color: #777777;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 6px;
}

/* ── Hero / Search ── */
.hero {
  text-align: center;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--white);
}
.sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 14px;
}
.search-opts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.search-opts label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.search-opts input[type=radio] { accent-color: var(--accent2); }

.search {
  width: min(480px, 100%);
  height: 30px;
  display: flex;
  align-items: center;
  border: 1px solid #282828;
  background: #080808;
  margin: 0 auto;
  border-radius: 3px;
}
.search span { font-size: 14px; padding-left: 8px; color: #555; }
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #ddd;
  outline: 0;
  padding: 0 8px;
  font-size: 11px;
}
.search kbd {
  font: 9px 'Courier New', monospace;
  border: 1px solid #333;
  color: #666;
  padding: 2px 5px;
  margin-right: 6px;
  border-radius: 2px;
}

.paste-count {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
  margin: 0;
}

/* ── Doxbin Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 2px;
  user-select: none;
}
.page-btn {
  background: #080808;
  border: 1px solid #202020;
  color: #888;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  min-width: 26px;
  text-align: center;
}
.page-btn:hover {
  background: #181818;
  color: #fff;
  border-color: #333;
}
.page-btn.active {
  background: #252525;
  color: var(--accent);
  border-color: var(--accent);
  font-weight: bold;
}
.page-dots {
  color: #555;
  padding: 0 4px;
  font-size: 11px;
}

/* ── Tables (Doxbin Style) ── */
.section-head {
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-head h2 {
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  margin: 0;
}
.table-wrap {
  border: 1px solid var(--line);
  border-top: none;
  overflow-x: auto;
  margin-bottom: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
thead { background: #060606; }
th {
  font-size: 10px;
  font-weight: bold;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  font-size: 11px;
  color: var(--text);
  padding: 8px 12px;
  border-bottom: 1px solid #141414;
}
tbody tr:hover { background: #0d0d0d; }
tbody tr:last-child td { border-bottom: 0; }
.col-title { min-width: 220px; }
.col-num  { width: 80px; text-align: right; color: var(--muted); }
.col-author { width: 140px; }
.col-date { width: 110px; color: var(--muted); font-size: 10px; white-space: nowrap; }

/* Author Roles */
.role-admin   { color: #ff5555; font-weight: bold; }
.role-manager { color: #5599ff; font-weight: bold; }
.role-elite   { color: #ffaa00; font-weight: bold; }
.role-rich    { color: #00dd00; font-weight: bold; }
.role-user    { color: var(--accent2); }

.row-pinned { background: #080f08 !important; }
.row-pinned td:first-child { border-left: 2px solid var(--accent); }

/* ── Buttons ── */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: 0;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
}
.btn-primary:hover { background: #00ff00; }
.btn-subtle {
  background: #111;
  color: #ccc;
  border: 1px solid #282828;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}
.btn-subtle:hover { color: #fff; border-color: #444; }

/* ── Hall of Fame (Card Grid) ── */
.hall-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line);
}
.hall-title-wrap h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.hall-title-wrap p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}
.hof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
}
.hof-card {
  background: #080808;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  transition: border-color 0.15s;
}
.hof-card:hover { border-color: #333; }
.hof-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #111;
}
.hof-initials {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font: bold 36px 'Courier New', monospace;
  color: #333;
}
.hof-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hof-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
}
.hof-text {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  white-space: pre-wrap;
  flex: 1;
}
.hof-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  border-top: 1px solid #141414;
  padding-top: 6px;
}
.hof-date { font: 9px 'Courier New', monospace; color: #555; }
.hof-delete {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid #222;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.hof-delete:hover { border-color: #843; color: #f88; background: #1a0808; }

/* ── Dialogs & Modals ── */
dialog {
  border: 1px solid #282828;
  background: #080808;
  color: #eee;
  padding: 0;
  width: min(520px, calc(100% - 24px));
  box-shadow: 0 24px 80px rgba(0,0,0,0.9);
  border-radius: 4px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.dialog-box {
  padding: 22px;
  position: relative;
  display: grid;
  gap: 12px;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 10px;
}
.dialog-header h2 {
  font-size: 15px;
  margin: 0;
  color: #fff;
}
.dialog-close {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}
.dialog-close:hover { color: #fff; border-color: #666; }

/* Form Elements */
.field-group { display: grid; gap: 4px; }
.field-group label { font-size: 10px; color: #888; }
.field-group input, .field-group textarea, .field-group select {
  background: #040404;
  border: 1px solid #222;
  color: #ddd;
  padding: 8px 10px;
  font-size: 11px;
  border-radius: 2px;
  outline: none;
}
.field-group input:focus, .field-group textarea:focus {
  border-color: #444;
}
.field-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

/* Captcha Widget */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.captcha-img {
  border: 1px solid #222;
  background: #060606;
  cursor: pointer;
  height: 60px;
  border-radius: 2px;
}
.captcha-input {
  width: 80px;
  background: #040404;
  border: 1px solid #222;
  color: #fff;
  padding: 8px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  text-align: center;
  border-radius: 2px;
}
.captcha-refresh {
  background: #111;
  border: 1px solid #222;
  color: #777;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 2px;
}
.captcha-refresh:hover { color: #fff; }

/* Disclaimer Banner */
.disclaimer-box {
  border: 1px solid #332200;
  background: #100b00;
  color: #cc9933;
  padding: 12px;
  font-size: 11px;
  line-height: 1.6;
  border-radius: 2px;
}
.disclaimer-box strong { color: #ffbb33; }

/* Seed Notification */
.seed-box {
  border: 1px solid #1a3a1a;
  background: #061006;
  color: #66dd66;
  padding: 12px;
  font-size: 11px;
  border-radius: 2px;
}
.seed-box code {
  display: block;
  margin: 6px 0;
  padding: 6px;
  background: #020602;
  border: 1px solid #1a3a1a;
  color: #88ff88;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* Status Cards */
.status-section { padding: 18px 0; border-top: 1px solid var(--line); }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title h2 { font-size: 12px; margin: 0; color: var(--white); }
.server-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.server-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #060606;
  color: var(--text);
  text-decoration: none;
  border-radius: 2px;
}
.server-card:hover { border-color: #333; }
.server-card strong { font-size: 11px; color: var(--white); }
.server-card small { grid-column: 2; color: var(--muted); font-size: 10px; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  grid-row: 1 / 3;
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* Newsletter */
.notify-section { padding: 20px 0; border-top: 1px solid var(--line); }
.notify-section h2 { font-size: 13px; margin: 4px 0 12px; color: var(--white); }
.notify {
  display: flex;
  width: min(440px, 100%);
  height: 32px;
  border: 1px solid #282828;
  background: #040404;
  border-radius: 2px;
}
.notify input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  color: #ddd; padding: 0 10px;
  outline: 0; font-size: 11px;
}
.notify button {
  border: 0;
  background: #ccc;
  color: #000;
  padding: 0 14px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}
.notify button:hover { background: #fff; }
.privacy-check {
  width: min(440px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  color: #666;
  font-size: 9px;
  line-height: 1.5;
}
.privacy-check input { margin: 1px 0; }
.form-note { font-size: 10px; color: var(--muted); margin: 6px 0 0; }
.form-note[data-tone="error"] { color: #ff6666; }
.form-note[data-tone="success"] { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  color: #444;
  font: 9px 'Courier New', monospace;
}
footer > div {
  width: min(980px, calc(100% - 24px));
  min-height: 40px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
footer > div span:nth-child(2) { flex: 1; }
footer a { color: #555; text-decoration: none; }
footer a:hover { color: #888; }

/* Snow */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.flake { position: absolute; top: -20px; color: #fff; opacity: .2; animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(20px, 105vh, 0) rotate(360deg); } }

/* ── Status Page (/status) ── */
.status-shell {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 30px 0 60px;
}
.status-hero {
  text-align: center;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.overall-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: bold;
}
.overall-icon.ok {
  background: rgba(0, 208, 0, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 16px rgba(0, 208, 0, 0.2);
}
.overall-icon.warn {
  background: rgba(255, 170, 0, 0.12);
  color: #ffaa00;
  border: 1px solid #ffaa00;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.2);
}
.overall-icon.down {
  background: rgba(255, 51, 51, 0.12);
  color: #ff3333;
  border: 1px solid #ff3333;
  box-shadow: 0 0 16px rgba(255, 51, 51, 0.2);
}
.status-hero h1 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 6px;
}
.status-hero p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.status-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-kicker {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 0 0 2px;
}
.status-toolbar h2 {
  font-size: 15px;
  color: #fff;
  margin: 0;
}
.range-picker {
  display: flex;
  gap: 4px;
  background: #080808;
  border: 1px solid var(--line);
  padding: 2px;
  border-radius: 2px;
}
.range-picker button {
  background: transparent;
  border: 0;
  color: #666;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}
.range-picker button.active, .range-picker button:hover {
  background: #181818;
  color: #fff;
}
.detailed-status {
  display: grid;
  gap: 12px;
}
.status-card {
  background: #060606;
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 2px;
  transition: border-color 0.15s;
}
.status-card:hover {
  border-color: #2a2a2a;
}
.status-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.status-card-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-card-head strong {
  font-size: 13px;
  color: #fff;
}
.status-card-head small {
  font-size: 10px;
  color: #666;
}
.status-card-head > div:last-child {
  text-align: right;
}
.status-card-head > div:last-child strong {
  font-size: 14px;
  color: var(--accent);
  display: block;
}
.uptime-bars {
  display: flex;
  gap: 3px;
  height: 24px;
  align-items: stretch;
}
.uptime-bars i {
  flex: 1;
  border-radius: 1px;
  transition: opacity 0.1s;
}
.uptime-bars i:hover {
  opacity: 0.8;
}
.uptime-bars i.ok { background: #00bb00; }
.uptime-bars i.warn { background: #ffaa00; }
.uptime-bars i.down { background: #ee2222; }
.uptime-bars i.unknown { background: #161616; }

.status-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 10px;
  color: #666;
}
.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 14px;
}
.status-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
}
.status-legend i.ok { background: #00bb00; }
.status-legend i.warn { background: #ffaa00; }
.status-legend i.down { background: #ee2222; }

/* Responsive */
@media (max-width: 760px) {
  .server-cards { grid-template-columns: repeat(2, 1fr); }
  .hof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .server-cards { grid-template-columns: 1fr 1fr; }
  .hof-grid { grid-template-columns: 1fr; }
  .topbar nav a { padding: 4px 6px; font-size: 10px; }
  .uptime-bars { gap: 1px; height: 18px; }
}
