:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #02070a;
  color: #eef7fa;
  --bg: #02070a;
  --surface: #071218;
  --surface-2: #0a1820;
  --surface-3: #0d202a;
  --line: #17313d;
  --line-bright: #205268;
  --muted: #8099a5;
  --cyan: #43d8ff;
  --cyan-2: #20b9df;
  --cyan-soft: rgba(67, 216, 255, .1);
  --red: #ff747e;
  --green: #66e5b0;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -5%, rgba(32, 185, 223, .12), transparent 30%),
    linear-gradient(rgba(67, 216, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 216, 255, .018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 52px 52px, 52px 52px, auto;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; letter-spacing: -.02em; }
h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 22px; }
button, input, textarea { font: inherit; }
.eyebrow { margin-bottom: 8px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.muted { margin: 10px 0 27px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1420px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 12, .9);
  backdrop-filter: blur(18px);
}
.admin-brand, .header-actions { display: flex; align-items: center; }
.admin-brand { gap: 20px; }
.admin-brand img { width: 142px; height: auto; }
.brand-divider { width: 1px; height: 34px; background: var(--line-bright); }
.admin-brand .eyebrow { margin: 0 0 4px; }
.admin-brand h1 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { gap: 12px; }
.system-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #88a2ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.system-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(102, 229, 176, .75); }
.quiet-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d5e5eb;
  background: rgba(10, 24, 32, .75);
  font-size: 11px;
  text-decoration: none;
  transition: .2s ease;
}
.quiet-button:hover { border-color: var(--line-bright); color: var(--cyan); transform: translateY(-1px); }

.shell { width: min(1420px, 100%); margin: auto; padding: 32px 24px 90px; }
.dashboard-intro { display: flex; align-items: end; justify-content: space-between; margin: 4px 0 22px; }
.dashboard-intro h2 { margin: 0; font-size: 28px; }
.dashboard-intro p:last-child { max-width: 540px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stats article, .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(11, 28, 37, .96), rgba(4, 13, 18, .96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.stats article:before, .panel:before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(67, 216, 255, .28), transparent); }
.stats article { min-height: 118px; padding: 22px; border-radius: 15px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stats span { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.stat-index { color: #34505d !important; font-size: 9px !important; font-weight: 800; letter-spacing: .15em !important; }
.stats strong { display: block; margin-top: 13px; font-size: 31px; line-height: 1; }
.stats strong:after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); vertical-align: middle; }

.columns { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.release-columns { grid-template-columns: .9fr 1.1fr; }
.panel { padding: 25px; border-radius: 17px; }
.section-title { display: flex; align-items: start; justify-content: space-between; }
.section-title h2 { margin-bottom: 22px; }

.server-list, .release-list { display: grid; gap: 9px; }
.empty-state { padding: 30px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; text-align: center; }
.server-row {
  display: grid;
  grid-template-columns: 46px 1fr 10px auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #142c37;
  border-radius: 13px;
  background: rgba(2, 10, 14, .76);
  transition: .18s ease;
}
.server-row:hover { border-color: var(--line-bright); background: rgba(8, 25, 33, .88); }
.server-row img, .logo-fallback { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; }
.logo-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #123544, #0a2029); color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.server-row strong, .server-row span { display: block; }
.server-row strong { font-size: 13px; }
.server-row span, .release-list span, .release-list time { margin-top: 5px; color: var(--muted); font-size: 10px; }
.server-row i { width: 8px; height: 8px; border-radius: 50%; background: #53636a; }
.server-row i.online { background: var(--green); box-shadow: 0 0 13px rgba(102, 229, 176, .8); }
.server-row a, .link-danger { padding: 0; border: 0; color: #a9bec7; background: none; font-size: 10px; text-decoration: none; cursor: pointer; }
.server-row a:hover { color: var(--cyan); }
.link-danger { color: var(--red); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #8ca4ae; font-size: 10px; font-weight: 650; letter-spacing: .025em; }
input, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #173542;
  border-radius: 10px;
  outline: none;
  color: #edf8fb;
  background: rgba(2, 10, 14, .9);
  font-size: 12px;
  transition: .18s ease;
}
textarea { resize: vertical; min-height: 82px; }
input[type="file"] { color: #6f8994; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 10px; border: 0; border-radius: 7px; color: #031016; background: #7ce6ff; font-size: 10px; font-weight: 800; cursor: pointer; }
input:focus, textarea:focus { border-color: var(--cyan-2); box-shadow: 0 0 0 3px rgba(67, 216, 255, .09); }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: auto; accent-color: var(--cyan); }
button {
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  color: #031016;
  background: linear-gradient(100deg, #66e3ff, #24b8dd);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .035em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(31, 178, 214, .14);
  transition: .18s ease;
}
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 3px 0; color: #4c6874; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.form-divider:before, .form-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.release-list article { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; padding: 14px; border: 1px solid transparent; border-bottom-color: #142b35; border-radius: 10px; }
.release-list article:hover { border-color: var(--line); background: rgba(4, 15, 20, .65); }
.release-list strong { color: var(--cyan); font-size: 13px; }
.release-list time { margin-top: 0; }
.alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.alert.success { border-color: rgba(102, 229, 176, .3); color: #94efc7; background: rgba(28, 91, 68, .25); }
.alert.error { border-color: rgba(255, 116, 126, .34); color: #ffadb3; background: rgba(108, 30, 37, .28); }

.login-page { display: grid; place-items: center; padding: 28px; background: #02070a; overflow: hidden; }
.login-page:before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(1, 6, 9, .35), rgba(1, 6, 9, .92)), url('/assets/the-isle-bg.jpg') center/cover; filter: saturate(.35); transform: scale(1.02); }
.login-page:after { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 68% 45%, rgba(67, 216, 255, .11), transparent 28%); }
.login-shell { position: relative; z-index: 1; width: min(1040px, 100%); min-height: 610px; display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(2, 9, 13, .93); box-shadow: 0 45px 130px rgba(0, 0, 0, .8), 0 0 90px rgba(31, 179, 215, .05); }
.login-visual { min-height: 610px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: linear-gradient(150deg, rgba(3, 13, 18, .58), rgba(2, 8, 11, .9)), url('/assets/the-isle-bg.jpg') 37% center/cover; }
.brand-logo { width: 168px; height: auto; }
.login-visual .isle-logo { width: min(340px, 88%); margin-bottom: 22px; filter: drop-shadow(0 10px 30px #000); }
.login-visual-copy { max-width: 430px; }
.login-visual-copy h1 { max-width: 390px; margin-bottom: 18px; font-size: 37px; line-height: 1.08; letter-spacing: -.045em; }
.login-visual-copy > p:last-child { max-width: 410px; color: #91a8b2; font-size: 13px; line-height: 1.7; }
.visual-footer { display: flex; align-items: center; gap: 12px; color: #536f7b; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.visual-footer span { width: 30px; height: 1px; background: var(--cyan); }
.login-card { padding: 52px 44px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 50% 36%, rgba(67, 216, 255, .055), transparent 42%); }
.login-security { align-self: flex-start; display: flex; align-items: center; gap: 8px; margin-bottom: 39px; padding: 9px 11px; border: 1px solid var(--line-bright); border-radius: 9px; color: #75a1b2; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.login-security i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--cyan); }
.login-card h2 { margin-bottom: 0; font-size: 31px; }
.login-form { display: grid; gap: 16px; }
.login-form button { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding-inline: 18px; }
.login-form button span { font-size: 18px; font-weight: 400; }
.login-note { margin-top: 23px; color: #4d6874; font-size: 9px; line-height: 1.6; }
.login-note:first-letter { color: var(--cyan); }

@media (max-width: 960px) {
  .columns, .release-columns { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; max-width: 620px; }
  .login-visual { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-visual-copy h1 { font-size: 30px; }
  .login-visual .isle-logo { width: 250px; }
}
@media (max-width: 720px) {
  .admin-header { min-height: 72px; padding: 0 16px; }
  .admin-brand img { width: 116px; }
  .brand-divider, .admin-brand > div { display: none; }
  .system-badge { display: none; }
  .shell { padding: 24px 16px 70px; }
  .dashboard-intro { display: block; }
  .dashboard-intro p:last-child { margin-top: 10px; text-align: left; }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: 1; }
  .server-row { grid-template-columns: 46px 1fr 8px; }
  .server-row a, .server-row form { grid-row: 2; }
  .release-list article { grid-template-columns: 70px 1fr; }
  .release-list time { display: none; }
  .login-page { padding: 14px; overflow: auto; }
  .login-visual { min-height: 280px; padding: 28px; }
  .login-visual-copy > p:last-child, .visual-footer { display: none; }
  .login-card { padding: 38px 28px; }
}
