@font-face {
  font-family: "Exo 2";
  src: url("Exo2-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font: oblique 12deg 16px/1.5 Manrope, system-ui, sans-serif;
  color: #edf3ff;
  background: #070b12;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(4, 7, 13, .12), rgba(5, 9, 17, .27)),
    url("dark-space-terminal-background.jpg") center / cover fixed no-repeat,
    #070b12;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 62% 68% at 50% 44%, transparent 38%, rgba(2, 5, 10, .25) 100%),
    linear-gradient(90deg, rgba(7, 11, 21, .23), transparent 28% 72%, rgba(7, 11, 21, .23));
}

.terminal-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  padding: clamp(25px, 3.2vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(174, 199, 233, .22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13, 19, 31, .88), rgba(8, 13, 23, .83));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52), inset 0 1px rgba(235, 244, 255, .06);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(196, 219, 255, .52) 48%, transparent);
  pointer-events: none;
}

.wide { width: min(100%, 980px); }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9bdd7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8d7ff;
  box-shadow: 0 0 12px rgba(170, 208, 255, .72);
  content: "";
}

h1 {
  margin: 0 0 12px;
  color: #f4f8ff;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.15;
}

p { margin: 0 0 24px; color: #b7c4d8; }

label {
  display: block;
  margin: 18px 0;
  color: #d9e5f4;
  font-size: 14px;
  font-weight: 550;
}

input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid rgba(168, 190, 221, .29);
  border-radius: 10px;
  outline: none;
  background: rgba(4, 9, 17, .75);
  color: #f8fbff;
  font: inherit;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:hover { border-color: rgba(185, 211, 246, .48); }
input:focus-visible {
  border-color: #a9c8ff;
  background: rgba(7, 14, 25, .92);
  box-shadow: 0 0 0 3px rgba(111, 155, 226, .18);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid rgba(185, 211, 249, .24);
  border-radius: 10px;
  background: linear-gradient(120deg, #485b8d, #6859a0);
  color: #fff;
  font: 650 14px/1.25 Manrope, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

button:hover, .button:hover {
  border-color: rgba(213, 231, 255, .55);
  background: linear-gradient(120deg, #5875ae, #7b69b2);
  transform: translateY(-1px);
}

button:focus-visible, .button:focus-visible {
  outline: 2px solid #c1dcff;
  outline-offset: 3px;
}

.button--quiet {
  min-height: 36px;
  padding: 8px 13px;
  background: rgba(92, 119, 162, .18);
  color: #d9e8ff;
}

.button--quiet:hover { background: rgba(92, 119, 162, .36); }

#message {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: #ffb7b7;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 28px 0 18px;
}

.row label { min-width: 0; margin: 0; }
.row button { min-height: 46px; white-space: nowrap; }

#credentials {
  margin: 0 0 17px;
  padding: 14px 16px;
  border: 1px solid rgba(144, 216, 190, .27);
  border-radius: 10px;
  background: rgba(20, 61, 51, .29);
  color: #bcf6d4;
  white-space: pre-wrap;
}

#credentials:empty { display: none; }

.scroll { overflow-x: auto; scrollbar-color: #50627b #111b29; }

.table-hint { display: none; }

table {
  width: 100%;
  min-width: 735px;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(180, 204, 236, .13);
  text-align: left;
  vertical-align: middle;
}

th { color: #adc2de; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
td { color: #e5edfa; }
tbody tr:hover { background: rgba(116, 146, 191, .08); }
td:last-child { min-width: 270px; }
td button { min-height: 31px; margin: 3px; padding: 6px 9px; font-size: 12px; }

@media (max-width: 760px) {
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { align-items: flex-start; padding: 18px 12px; }
  .card { padding: 24px 19px; border-radius: 17px; }
  .card-topline { align-items: flex-start; flex-direction: column; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .row button { grid-column: auto; }
  .row input { margin-top: 5px; }
  .table-hint { display: block; margin: 24px 0 5px; color: #8fa4c0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  button, .button, input { transition: none; }
  button:hover, .button:hover { transform: none; }
}

.card h1,.card h2,.card h3{font-family:'Exo 2',Manrope,sans-serif;font-style:italic;font-weight:560}
.card input,.card button,.card select,.button{font-family:Manrope,sans-serif;font-style:oblique 12deg}

[hidden] { display: none !important; }
.admin-page { align-items: flex-start; }
.access-console { width: min(100%, 1180px); padding: clamp(24px, 3vw, 40px); }
.access-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; margin-bottom: 28px; }
.access-intro h1 { margin-bottom: 10px; }
.access-intro p { max-width: 76ch; margin: 0; line-height: 1.65; }
.access-metrics { display: flex; gap: 8px; }
.access-metrics div { min-width: 105px; padding: 12px 15px; border: 1px solid rgba(177, 193, 229, .16); border-radius: 12px; background: rgba(103, 83, 159, .10); }
.access-metrics strong { display: block; color: #e6d7ff; font-size: 25px; line-height: 1; }
.access-metrics span { display: block; margin-top: 6px; color: #9faec6; font-size: 12px; }
.access-section { margin-top: 20px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(171, 188, 226, .16); border-radius: 18px; background: linear-gradient(135deg, rgba(23, 29, 48, .68), rgba(10, 15, 27, .78)); }
.access-section-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 19px; }
.access-section-title h2 { margin: 0; color: #f2f5ff; font-size: 24px; }
.access-section-title p { margin: 0; font-size: 13px; }
.access-form { display: grid; grid-template-columns: 1.1fr 1.1fr .7fr 1.2fr auto; align-items: end; gap: 12px; }
.access-form label, .client-field { min-width: 0; margin: 0; color: #c8d4e7; font-size: 13px; }
.access-form label small { color: #8394b1; font-weight: 400; }
.access-form input, .access-form select, .client-field input, .client-field select { width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid rgba(163, 185, 221, .26); border-radius: 10px; background: rgba(3, 8, 17, .68); color: #f3f7ff; font: inherit; outline: none; }
.access-form select, .client-field select { color-scheme: dark; }
.access-form input:focus-visible, .access-form select:focus-visible, .client-field input:focus-visible, .client-field select:focus-visible { border-color: #92b9f5; box-shadow: 0 0 0 3px rgba(118, 159, 234, .16); }
.access-form > button { min-height: 44px; white-space: nowrap; }
.secret-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(139, 221, 183, .3); border-radius: 13px; background: rgba(13, 55, 43, .32); }
.secret-panel strong { color: #d0ffe8; }
.secret-panel p { margin: 8px 0; color: #ecfff5; white-space: pre-wrap; font: 600 15px/1.55 Manrope, sans-serif; }
.secret-panel small { color: #abd7c3; }
.secret-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.client-list { display: grid; gap: 12px; }
.client-card { padding: 18px 20px; border: 1px solid rgba(177, 197, 233, .17); border-radius: 14px; background: rgba(4, 9, 19, .55); }
.client-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.client-card h3 { margin: 0; color: #f0f5ff; font-size: 19px; }
.client-status { padding: 6px 10px; border: 1px solid rgba(118, 218, 177, .34); border-radius: 999px; color: #9ef0cb; background: rgba(27, 102, 74, .19); font-size: 12px; white-space: nowrap; }
.client-status--expired { border-color: rgba(237, 191, 111, .33); color: #f3ce90; background: rgba(122, 80, 23, .18); }
.client-status--free, .client-status--disabled { border-color: rgba(169, 181, 200, .27); color: #b8c3d3; background: rgba(110, 121, 142, .12); }
.client-details { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(190px, 1fr) minmax(210px, 1.2fr); align-items: end; gap: 15px; }
.client-field { display: flex; flex-direction: column; justify-content: end; }
.client-field strong { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
.client-field-label { font-size: 13px; }
.client-field button { align-self: flex-start; min-height: 29px; margin-top: 7px; padding: 5px 10px; font-size: 11px; }
.client-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.client-actions button { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.client-action--quiet { background: rgba(107, 128, 168, .16); color: #dce9fb; }
.client-action--quiet:hover { background: rgba(107, 128, 168, .3); }
.client-actions button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.client-hint, .client-empty { margin: 13px 0 0; color: #dfc69e; font-size: 13px; }
.password-setup-card { width: min(100%, 540px); }
.password-setup-card p { line-height: 1.65; }
.password-setup-card button[type="submit"] { width: 100%; margin-top: 12px; }
.password-signout { width: 100%; margin-top: 12px; }
@media (max-width: 1050px) {
  .access-intro { grid-template-columns: 1fr; }
  .access-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-form > button { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .access-metrics { flex-wrap: wrap; }
  .access-metrics div { flex: 1; }
  .access-form, .client-details { grid-template-columns: 1fr; }
  .access-form > button { grid-column: auto; }
  .client-card-top { align-items: flex-start; flex-direction: column; }
  .secret-panel { align-items: flex-start; flex-direction: column; }
}
