/* Dinosaur - clean, simple, no external dependencies */

:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-hover: #1c2230;
  --border: #262d38;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --green: #3fb950;
  --red: #f85149;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav nav a:hover { color: var(--text); }
.nav nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.btn.secondary:hover { background: var(--bg-hover); }
.btn.danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn.danger:hover { background: rgba(248, 81, 73, .1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Grid + cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

section { padding: 56px 0; }
section > .wrap > h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
section > .wrap > .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

/* Sub tabs */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  overflow-x: auto;
  padding-bottom: 0;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.panel { display: none; }
.panel.active { display: block; }

/* Command table */
.search {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 22px;
  font-family: inherit;
}
.search:focus { outline: none; border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:hover td { background: var(--bg-soft); }
code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}
.perm {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}
.perm.staff { color: #d29922; border-color: #d2992244; }
.perm.admin { color: var(--red); border-color: #f8514944; }

/* Forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.field input[type=text], .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.note.warn { border-left-color: #d29922; }
.note strong { color: var(--text); }

.status { font-size: 14px; padding: 10px 0; min-height: 20px; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }

.server-list { display: grid; gap: 10px; }
.server {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s;
}
.server:hover { border-color: var(--accent); }
.server .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--muted);
  flex-shrink: 0;
}
.server .meta { flex: 1; min-width: 0; }
.server .meta strong { display: block; font-size: 15px; }
.server .meta span { color: var(--muted); font-size: 13px; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-in a { color: var(--muted); }
.footer-in a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .nav { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .nav nav { gap: 16px; margin-left: 0; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td { border: none; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 14px 0; display: block; }
}
