/* Ghidra · ruldin.net network console. All-gray theme. */
:root {
  --page: #1f1f1f; --page-deep: #191919; --bar: #171717;
  --card: #2a2a2a; --card-raised: #313131; --well: #232323;
  --line: #3a3a3a; --line-soft: #333; --line-strong: #4a4a4a;
  --text: #d2d2d2; --muted: #8e8e8e; --faint: #6b6b6b; --strong: #f3f3f3;
  --chrome: #c8c8c8; --chrome-hover: #e2e2e2; --ink: #1a1a1a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--strong); }
a:hover { color: #fff; }
h1, h2, h3 { color: var(--strong); font-weight: 400; margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: #5a5a5a; color: #fff; }

/* ---- Controls (UIkit-style) ---- */
.input, select.input {
  display: block; width: 100%; height: 42px; padding: 0 12px; margin: 0 0 12px;
  background: var(--well); color: var(--strong); border: 1px solid var(--line); border-radius: 2px;
  font: 15px var(--font); transition: border-color .15s, background .15s; outline: none;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: #8a8a8a; background: #262626; }
.input.code { text-align: center; font: 22px/1 var(--mono); letter-spacing: .4em; height: 50px; }
.button {
  display: inline-block; height: 40px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: transparent; color: var(--text); font: 500 13px/38px var(--font); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.button:hover { background: #383838; color: var(--strong); border-color: #5a5a5a; }
.button.primary { background: var(--chrome); border-color: var(--chrome); color: var(--ink); }
.button.primary:hover { background: var(--chrome-hover); border-color: var(--chrome-hover); }
.button.small { height: 30px; line-height: 28px; padding: 0 12px; font-size: 11px; }
.button.wide { width: 100%; }
.button:disabled { opacity: .5; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--strong); }
label.field { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.alert { padding: 11px 14px; margin: 0 0 16px; background: #333; border-left: 3px solid var(--chrome); color: var(--strong); font-size: 14px; text-align: left; }
.alert.ok { border-left-color: #8a8a8a; background: #2e2e2e; color: var(--text); }
.alert.flash { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---- Login (layout after goliath.hypixel.net) ---- */
body.login { background: radial-gradient(ellipse at 50% 35%, #2b2b2b 0%, #202020 45%, var(--page-deep) 100%) fixed; display: flex; flex-direction: column; min-height: 100vh; }
.login-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.login-card {
  width: 100%; max-width: 380px; padding: 40px; text-align: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 2px;
  box-shadow: 0 14px 25px rgba(0, 0, 0, .45); animation: rise .45s ease-out;
}
.login-logo { display: block; width: 200px; height: 200px; margin: 0 auto 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.wordmark { font-size: 26px; font-weight: 300; letter-spacing: .42em; margin: 0 0 2px .42em; color: var(--strong); }
.tagline { margin: 0 0 26px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.login-card .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.login-card .button.wide { margin-top: 4px; }
.row-links { margin-top: 18px; font-size: 13px; color: var(--faint); }
.login-foot { padding: 0 0 26px; text-align: center; color: var(--faint); font-size: 12px; letter-spacing: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Console chrome ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bar { background: var(--bar); border-bottom: 1px solid #0f0f0f; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); position: sticky; top: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; height: 64px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--strong); }
.brand img { width: 38px; height: 38px; }
.brand b { font-weight: 300; font-size: 19px; letter-spacing: .32em; }
.brand small { display: block; color: var(--faint); font-size: 10px; letter-spacing: .16em; margin-top: -3px; }
.nav { display: flex; height: 64px; flex: 1; }
.nav a { display: flex; align-items: center; padding: 0 14px; color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--strong); }
.nav a.active { color: var(--strong); border-bottom-color: var(--chrome); }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.who b { color: var(--strong); font-weight: 500; }
.badge { display: inline-block; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 10px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.badge.on { background: var(--chrome); border-color: var(--chrome); color: var(--ink); }
body.locked .nav, body.locked .bar .who .button.account { visibility: hidden; }
body.locked #serviceNotice { display: none; }

.crumb { color: var(--faint); font-size: 11px; letter-spacing: .1em; padding: 20px 0 12px; text-transform: uppercase; }
.notice { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-soft); border-left: 3px solid var(--chrome); padding: 10px 14px; margin: 0 0 20px; font-size: 13px; }
.notice b { color: var(--strong); letter-spacing: .06em; font-weight: 600; }
.notice .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 0 0 rgba(200, 200, 200, .6); animation: pulse 2s infinite; }
.notice.error { border-left-color: #777; }
.notice.error .pulse { background: #666; animation: none; }
.notice .lastUpdate { margin-left: auto; color: var(--faint); font-size: 12px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200, 200, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 200, 200, 0); } }

.cols { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 2px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, .18); }
.card > h2 { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; height: 46px; border-bottom: 1px solid var(--line-soft); }
.card > h2 em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 11px; font-weight: 400; }
.inside { padding: 18px; }
.inside > p:first-child { margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; }
.view { display: none; animation: fade .2s ease-out; }
.view.on { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 18px; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: 0; }
.metric .num { font-size: 34px; font-weight: 300; line-height: 1.1; color: var(--strong); }
.metric .label { margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.metric .sub { font-size: 11px; color: var(--faint); }

.graph { height: 190px; display: flex; gap: 4px; align-items: flex-end; padding: 10px 2px 0; border-bottom: 1px solid var(--line-strong);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #303030 37px, #303030 38px); }
.col { flex: 1; min-width: 6px; background: linear-gradient(to top, #7c7c7c, #b9b9b9); border-radius: 1px 1px 0 0; transition: filter .15s; }
.col:hover { filter: brightness(1.25); }
.chartLabels { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; padding: 6px 1px 0; }
.axis { font-size: 12px; color: var(--muted); padding-top: 10px; }
.key { display: inline-block; width: 9px; height: 9px; background: #a0a0a0; margin-right: 5px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #2f2f2f; }
td:last-child, th:last-child { text-align: right; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--strong); }
th.sort.asc::after { content: " ▲"; } th.sort.desc::after { content: " ▼"; }
.wide td:first-child { color: var(--strong); }
.system td:first-child { width: 42%; color: var(--muted); }
.system td:last-child { text-align: left; color: var(--strong); }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.toolbar .input { margin: 0; height: 34px; max-width: 280px; font-size: 13px; }
.toolbar .button { height: 34px; line-height: 32px; }
.toolbar .spacer { flex: 1; }
.playerLink { color: var(--strong); cursor: pointer; text-decoration: underline; text-decoration-color: #5a5a5a; text-underline-offset: 3px; }
.playerLink:hover { text-decoration-color: var(--strong); }
.footer { border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 11px; letter-spacing: .08em; margin-top: 10px; padding: 16px 0 40px; display: flex; gap: 10px; align-items: center; }
.footer img { width: 18px; height: 18px; opacity: .6; }

.profileHead { display: flex; align-items: center; gap: 16px; }
.profileHead img { width: 56px; height: 56px; image-rendering: pixelated; background: var(--well); border: 1px solid var(--line); }
.profileName { font-size: 26px; font-weight: 300; color: var(--strong); }
.profileMetrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line-soft); }
.profileMetric { padding: 14px; border-right: 1px solid var(--line-soft); }
.profileMetric:last-child { border-right: 0; }
.profileMetric b { display: block; font-size: 19px; font-weight: 300; color: var(--strong); overflow-wrap: anywhere; }
.profileMetric span { color: var(--faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Account & users ---- */
.form { max-width: 380px; }
.setup { display: grid; grid-template-columns: 188px 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.qr { width: 188px; height: 188px; padding: 0; background: #fff; border-radius: 2px; }
.qr svg { display: block; width: 100%; height: 100%; }
.secret { display: block; padding: 9px 12px; margin: 6px 0 14px; background: var(--well); border: 1px dashed var(--line-strong); color: var(--strong); font: 14px var(--mono); letter-spacing: .08em; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 16px; padding: 14px; background: var(--well); border: 1px dashed var(--line-strong); font: 15px var(--mono); color: var(--strong); text-align: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subform { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.oneTime { margin-top: 14px; }
.oneTime .secret { font-size: 16px; }
td .actions { justify-content: flex-end; }

@media (max-width: 900px) {
  .cols, .cols.even, .setup { grid-template-columns: 1fr; }
  .metrics, .profileMetrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .bar .wrap { flex-wrap: wrap; height: auto; gap: 0 10px; padding-top: 10px; }
  .who { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; height: 44px; overflow-x: auto; margin: 6px -10px 0; }
  .nav a { padding: 0 10px; }
  .notice { flex-wrap: wrap; }
  .notice .lastUpdate { margin-left: 0; flex-basis: 100%; }
  .toolbar { flex-wrap: wrap; }
  td .actions { justify-content: flex-start; }
  th, td { padding: 9px 12px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .brand span, .who > span { display: none; }
  .login-card { padding: 30px 22px; }
  .login-logo { width: 160px; height: 160px; }
  .metric .num { font-size: 28px; }
  /* Long tables scroll sideways instead of squashing. */
  .card { overflow-x: auto; }
}
