@font-face {
  font-family: "RexoText";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RexoDisplay";
  src: url("/assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07101e;
  --surface: #111c2c;
  --surface-2: #19283b;
  --surface-3: #213247;
  --line: #2b3c52;
  --text: #edf4ff;
  --muted: #8da0ba;
  --blue: #397df6;
  --cyan: #19c6e8;
  --red: #ef3340;
  --green: #24c875;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background:
  radial-gradient(circle at 78% 4%, #1a3d68 0, transparent 30%),
  radial-gradient(circle at 12% 82%, #102f4c 0, transparent 28%),
  var(--bg); color: var(--text); font: 14px/1.45 "RexoText", Inter, ui-sans-serif, system-ui, sans-serif; }
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(58px);
  opacity: .48;
  animation: orb-float 12s ease-in-out infinite;
}
body::before { width: 360px; height: 360px; right: -90px; top: 90px; background: #1bbcff55; }
body::after { width: 430px; height: 430px; left: -150px; bottom: -120px; background: #7c4dff44; animation-delay: -5s; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, .brand strong, .brand-button strong, #tabs button { font-family: "RexoDisplay", "RexoText", Inter, ui-sans-serif, system-ui, sans-serif; }
button { border: 0; cursor: pointer; }
.hidden { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(430px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17, 28, 44, .94); box-shadow: 0 30px 80px #0007; }
.panel-auth-screen {
  background:
    radial-gradient(circle at 20% 18%, #254dc755 0, transparent 28%),
    radial-gradient(circle at 88% 20%, #1ab7ff33 0, transparent 30%),
    linear-gradient(135deg, #050b17 0%, #071326 52%, #050a14 100%);
}
.panel-auth-card {
  width: min(462px, calc(100vw - 32px));
  padding: 34px 32px 30px;
  border-radius: 24px;
  border-color: #2e4570;
  background:
    linear-gradient(180deg, rgba(19, 29, 51, .96), rgba(7, 12, 25, .98)),
    radial-gradient(circle at 18% 0, rgba(57, 125, 246, .2), transparent 32%);
  box-shadow: 0 30px 90px #0009, inset 0 1px 0 #ffffff0b;
}
.panel-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 42px;
  color: #f4f8ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.panel-auth-logo {
  width: 38px;
  height: 34px;
  border-radius: 0;
  background: url("/assets/brand/rexohost-avatar.jpg") center/contain no-repeat;
  box-shadow: none;
}
.panel-auth-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
  letter-spacing: -.04em;
}
.panel-auth-head p {
  margin: 8px 0 26px;
  max-width: 340px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}
.panel-auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.panel-auth-social {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #b9d3ff;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255, 255, 255, .045);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.panel-auth-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.panel-auth-social.tg { color: #67dcff; }
.panel-auth-social.mail { color: #8bb2ff; }
.panel-auth-social:hover {
  transform: translateY(-2px);
  border-color: #4c7fe9;
  background: rgba(58, 125, 246, .14);
}
.panel-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 0;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid #26395a;
  border-radius: 14px;
  background: rgba(6, 14, 28, .72);
}
.panel-auth-tabs button,
.panel-auth-tabs a {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #9daeca;
  text-decoration: none;
  font-weight: 900;
  background: transparent;
}
.panel-auth-tabs .active {
  color: white;
  background: linear-gradient(135deg, #3f86ff, #2268f2);
  box-shadow: 0 12px 30px #2268f233;
}
.panel-auth-field {
  position: relative;
  display: block;
  margin: 12px 0;
}
.panel-auth-field svg {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #8aa7d5;
  pointer-events: none;
}
.panel-auth-field input {
  height: 46px;
  padding-left: 48px;
  border-radius: 10px;
  border-color: #244b82;
  background: #0d2a55cc;
  font-weight: 800;
}
.panel-auth-submit {
  min-height: 48px;
  margin-top: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #438aff, #2368f4);
  box-shadow: 0 16px 38px #2368f433;
}
.panel-auth-bottom {
  margin: 28px 0 0;
  text-align: center;
  color: #75869f;
  font-weight: 800;
}
.panel-auth-bottom a {
  color: #58a6ff;
  text-decoration: none;
}
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 24px; font-weight: 900; margin-bottom: 30px; }
.eyebrow { margin: 0 0 7px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; }
h1 { font-size: 30px; margin-bottom: 10px; }
h2 { font-size: 22px; }
.muted { color: var(--muted); line-height: 1.6; }
label { display: grid; gap: 8px; color: #b9c8dc; font-weight: 700; margin: 24px 0; }
input, textarea, select { width: 100%; color: var(--text); background: #0b1523; border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #397df622; }
.primary, .secondary, .ghost, .start, .restart, .stop { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 8px; padding: 0 18px; color: white; font-weight: 800; }
.primary, .start { background: var(--blue); }
.secondary, .restart { background: #53677e; }
.ghost { color: #b9c8dc; background: transparent; border: 1px solid var(--line); }
.stop { background: var(--red); }
button:disabled { cursor: wait; opacity: .62; }
button.loading { position: relative; overflow: hidden; }
button.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0 35%, #ffffff33 50%, transparent 65% 100%); transform: translateX(-100%); animation: button-shine .9s linear infinite; }
.wide { width: 100%; }
.error { min-height: 20px; color: #ff7d86; }
header { height: 66px; display: grid; grid-template-columns: 200px 1fr 200px; align-items: center; padding: 0 5vw; border-bottom: 1px solid #3e587733; background: linear-gradient(180deg, #101b2af5, #0d1828e8); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); box-shadow: 0 18px 55px #0004; }
.brand {
  position: relative;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f6f9ff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.03em;
}
.brand strong,
.brand-button strong {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #62a6ff 72%, #8b6dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(73, 132, 255, .9), transparent);
  opacity: .55;
}
.brand-button {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f6f9ff;
}
.brand-button span,
.portal-logo span,
.panel-auth-logo {
  width: 38px;
  height: 34px;
  flex: 0 0 38px;
  display: inline-block;
  border-radius: 0;
  background: url("/assets/brand/rexohost-avatar.jpg") center / contain no-repeat;
  box-shadow: none;
  border: 0;
}
@keyframes brand-flow { to { background-position: 260% 0; } }
@keyframes orb-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(26px, -18px, 0) scale(1.08); } }
@keyframes pin-bob { 0%, 100% { transform: translateY(-2px) rotate(-45deg); } 50% { transform: translateY(3px) rotate(-45deg); } }
@keyframes pin-dot { 0%, 100% { transform: translateY(-2px); opacity: .95; } 50% { transform: translateY(3px); opacity: 1; } }
@keyframes chip-glow { 0%, 100% { transform: scale(.96); box-shadow: 0 0 10px #19c6e855; } 50% { transform: scale(1.04); box-shadow: 0 0 22px #19c6e8cc; } }
@keyframes pin-blink { 50% { opacity: .45; } }
@keyframes ram-pulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ram-flow { to { background-position: 6px 0; } }
@keyframes drive-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }
@keyframes drive-led { 0%, 100% { opacity: .55; transform: translateX(-2px); } 50% { opacity: 1; transform: translateX(3px); } }
@keyframes wifi-wave { 0%, 100% { opacity: .55; scale: .9; } 50% { opacity: 1; scale: 1.04; } }
@keyframes button-shine { to { transform: translateX(100%); } }
.toolbar > div:last-child { display: flex; gap: 10px; }
.upload-label { display: inline-flex; margin: 0; color: white; }
.breadcrumbs { color: #9db3cc; font-family: Consolas, monospace; }
.file-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.file-row { min-height: 57px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; padding: 0 17px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.file-row-message { grid-template-columns: 1fr auto; padding: 16px 17px; }
.file-row.clickable-row { cursor: pointer; }
.file-row.clickable-row:hover { background: #24374e; }
.file-row:last-child { border: 0; }
.file-name { display: flex; align-items: center; gap: 12px; color: #bed1e8; }
.file-name button { color: inherit; background: transparent; text-align: left; }
.file-meta { color: var(--muted); font-size: 12px; }
.backup-row { grid-template-columns: minmax(0, 1fr) auto auto 42px; }
.backup-name span:last-child { display: grid; gap: 4px; min-width: 0; }
.backup-name small { color: var(--muted); font-size: 11px; font-family: Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backup-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #dce9f8; background: #263a52; }
.backup-icon.created { color: #94ffc0; background: #143d2b; }
.backup-icon.creating { color: #ffe08a; background: #463717; }
.backup-icon.failed { color: #ff9aa2; background: #4a1b22; }
.backup-icon.locked { color: #cbd5e1; background: #39465a; }
.backup-state { padding: 5px 9px; border-radius: 999px; color: #dce9f8; background: #33465e; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.backup-state.created { color: #94ffc0; background: #143d2b; }
.backup-state.creating { color: #ffe08a; background: #463717; }
.backup-state.failed { color: #ff9aa2; background: #4a1b22; }
.backup-state.locked { color: #cbd5e1; background: #39465a; }
.row-menu-button { width: 34px; height: 34px; border-radius: 8px; color: #b8c8dc; background: transparent; font-size: 17px; font-weight: 900; }
.row-menu-button:hover { color: white; background: #2a3d55; }
.danger-text { color: #ff727b; background: transparent; }
.panel-card { padding: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.startup-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; }
pre { white-space: pre-wrap; color: #c9d8eb; background: #0b1523; border-radius: 8px; padding: 18px; line-height: 1.6; }
.startup-save { width: 100%; margin-top: 12px; }
#dockerImageSelect { margin-top: 8px; border-color: #397df688; background: #0b1523; font-weight: 800; }
.variable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.variable-card { padding: 17px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; }
.variable-card label { margin: 0; }
.variable-card small { color: var(--muted); font-weight: 400; }
.python-card { border-color: #397df6aa; background: linear-gradient(135deg, #172b48, #142236); box-shadow: 0 16px 38px #0002, inset 0 1px 0 #ffffff0a; }
.python-card label::before { content: "🐍 Python"; display: inline-flex; width: max-content; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; color: #cfefff; background: #397df633; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.python-version-select { margin-top: 12px; border-color: #397df688; background: #0b1523; }
.variable-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
dialog { width: min(1000px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: white; background: var(--surface); }
dialog::backdrop { background: #000a; }
.dialog-card { padding: 22px; }
.dialog-card textarea { height: 60vh; resize: vertical; font: 13px/1.5 Consolas, monospace; }
#toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; z-index: 5000; padding: 14px 18px; border-radius: 9px; color: white; background: #1c3048; box-shadow: 0 15px 50px #0007; transform: translateY(100px); opacity: 0; transition: .25s; }
#toast.show { transform: none; opacity: 1; }
.context-menu { position: fixed; z-index: 30; min-width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f4f7fb; color: #243142; box-shadow: 0 18px 50px #0007; }
.context-menu button { display: block; width: 100%; padding: 10px 12px; border-radius: 7px; background: transparent; color: inherit; text-align: left; }
.context-menu button:hover { background: #e8eef7; }
.server-picker { min-height: 100vh; background: radial-gradient(circle at 78% 10%, #1d65d955, transparent 34%), radial-gradient(circle at 0% 80%, #613dff44, transparent 32%), var(--bg); }
.server-picker-main { width: min(1180px, 92vw); margin: 44px auto 70px; }
.picker-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.picker-heading h1 { margin-bottom: 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; }
.server-cards { display: grid; gap: 14px; }
.server-card { position: relative; width: 100%; overflow: hidden; padding: 18px 20px; border: 1px solid #5e91ff38; border-radius: 18px; background: linear-gradient(135deg, rgba(24, 42, 78, .84), rgba(8, 15, 31, .78)); color: var(--text); text-align: left; box-shadow: inset 0 1px 0 #ffffff0b, 0 24px 70px #0004; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.server-card::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 5px; background: linear-gradient(#2f7cff, #2ee59d); opacity: .85; }
.server-card:hover { transform: translateY(-2px); border-color: #68a1ff88; background: linear-gradient(135deg, rgba(31, 56, 104, .92), rgba(10, 19, 38, .82)); }
.server-card-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.server-node-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 999px; color: #7bb7ff; background: #67a1ff1d; border: 1px solid #67a1ff2e; font-size: 22px; }
.server-card h3 { margin: 0 0 6px; font-size: 18px; }
.server-meta { color: var(--muted); }
.server-pill { padding: 6px 10px; border-radius: 999px; background: #33465e; color: #c9d8eb; font-size: 12px; }
.server-pill.danger { background: #5e2632; color: #ffb2bd; }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.server-grid small { display: block; color: var(--muted); margin-bottom: 4px; }
.server-open { margin-top: 14px; color: var(--cyan); font-weight: 800; }
.access-denied { padding: 26px; border: 1px solid #ff526566; border-radius: 18px; background: linear-gradient(135deg, #351321cc, #101827cc); }
.access-denied strong { display: block; margin-bottom: 7px; font-size: 22px; }
.access-denied span { color: var(--muted); }
.users-layout { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; gap: 20px; align-items: start; }
.invite-card { display: grid; gap: 16px; }
.permission-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-presets button { padding: 9px 11px; border-radius: 10px; color: #b7cdf5; background: #67a1ff18; border: 1px solid #67a1ff30; font-weight: 800; }
.permission-list { display: grid; gap: 12px; max-height: none; overflow: visible; padding-right: 0; }
.permission-group { display: block; height: auto; min-height: max-content; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0b152399; }
.permission-group h3 { margin: 0; padding: 12px 14px; background: #142236; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.permission-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; min-height: 62px; margin: 0; padding: 10px 14px; border-top: 1px solid #ffffff08; }
.permission-item input { width: auto; }
.permission-item small { grid-column: 2; color: var(--muted); font-size: 11px; }
.user-list { display: grid; gap: 12px; }
.user-row { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #3577ff, #7c5cff); font-weight: 1000; }
.user-row small { display: block; color: var(--muted); }
.user-row em { margin-left: auto; color: #7ee8ff; font-style: normal; font-weight: 900; }
.server-checklist { display: grid; gap: 10px; margin-top: 8px; }
.server-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b1523; }
.server-check input { width: auto; }
.server-check span { display: grid; }
.server-check small { color: var(--muted); }
.empty-state { padding: 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.server-picker {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, #050c18 0 258px, transparent 258px),
    radial-gradient(circle at 86% 16%, #246fff55, transparent 34%),
    radial-gradient(circle at 0% 78%, #6c3cff55, transparent 34%),
    linear-gradient(180deg, #071120, #050b15);
}
.portal-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 12px 16px;
  border-right: 1px solid #28405f80;
  background: linear-gradient(180deg, #07101fcc, #050915e8);
  box-shadow: inset -1px 0 0 #ffffff08;
}
.portal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: white;
  text-decoration: none;
  font-size: 21px;
  font-weight: 760;
}
.portal-logo strong {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 52%, #62a6ff 76%, #8b6dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portal-menu { display: grid; align-content: start; gap: 8px; }
.portal-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  color: #a9b7cb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}
.portal-menu a:hover,
.portal-menu a.active {
  color: #72b3ff;
  background: linear-gradient(90deg, #123060, #0d244688);
}
.portal-menu span { width: 15px; color: #7d8da6; }
.portal-page { display: none; }
.portal-page.active { display: block; animation: portalFade .18s ease-out; }
@keyframes portalFade { from { opacity: 0; transform: translateY(8px); } }
.portal-user-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #2b3f5b;
  border-radius: 14px;
  background: #111a2a;
}
.portal-avatar,
.portal-profile-glow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 25%, #7edfff, #397df6 55%, #31206f);
  font-weight: 1000;
  box-shadow: 0 0 24px #397df688;
}
.portal-user-card small { display: block; color: var(--muted); font-size: 11px; }
.portal-user-card button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #afbdd0;
  background: #1a2638;
}
.portal-main {
  width: min(1500px, calc(100vw - 310px));
  margin: 0 auto;
  padding: 42px 48px 72px;
}
.portal-topline,
.portal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.portal-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #2c4160;
  border-radius: 999px;
  background: #101a2caa;
}
.portal-profile-glow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}
.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 32px;
}
.portal-stat {
  position: relative;
  min-height: 162px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #2b4162;
  border-radius: 16px;
  background: linear-gradient(145deg, #0e1a2dec, #0a1222d9);
  box-shadow: inset 0 1px 0 #ffffff09, 0 25px 65px #0003;
}
.portal-stat::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: #397df622;
  filter: blur(30px);
}
.portal-stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 11px;
  color: #fff;
  font-weight: 1000;
}
.portal-stat-icon.green { background: #14b86d33; color: #39f399; }
.portal-stat-icon.blue { background: #397df633; color: #6db0ff; }
.portal-stat-icon.orange { background: #ffad3330; color: #ffc260; }
.portal-stat-icon.violet { background: #8057ff33; color: #b598ff; }
.portal-stat small,
.portal-stat em { display: block; color: var(--muted); font-style: normal; font-weight: 800; }
.portal-stat strong { display: block; margin: 10px 0 8px; font-size: 28px; }
.portal-stat em { color: #5fa9ff; }
.portal-title-row { margin: 18px 0; }
.portal-title-row h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -.04em; }
.portal-create { min-width: 174px; text-decoration: none; box-shadow: 0 14px 38px #397df633; }
.portal-profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #2b4162;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 10%, #397df638, transparent 34%),
    linear-gradient(145deg, rgba(18, 32, 56, .92), rgba(7, 14, 28, .96));
  box-shadow: inset 0 1px 0 #ffffff10, 0 30px 90px #0005;
}
.portal-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(63, 125, 255, .72);
  pointer-events: none;
}
.portal-profile-avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: url("/assets/brand/rexohost-avatar.jpg") center / cover no-repeat, linear-gradient(135deg, #3a86ff, #775dff);
  box-shadow: 0 0 34px #397df666, inset 0 0 0 1px #ffffff22;
}
.portal-profile-hero h1 { margin: 4px 0 6px; font-size: 32px; }
.portal-profile-hero small { color: #ff5b6d; font-weight: 800; }
.portal-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.portal-profile-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid #2b4162;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 27, 48, .92), rgba(7, 14, 28, .9));
}
.portal-profile-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  color: #79b3ff;
  background: linear-gradient(145deg, #183a72, #101d36);
  box-shadow: inset 0 0 0 1px #5799ff55;
}
.portal-profile-grid b { display: block; font-size: 20px; }
.portal-profile-grid p { min-height: 46px; color: var(--muted); }
.server-picker .server-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.server-picker .server-card {
  min-height: 196px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 39, 72, .92), rgba(7, 15, 29, .94));
}
.server-picker .server-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.server-picker .server-node-icon {
  border-radius: 14px;
  color: #8bc4ff;
  background: linear-gradient(135deg, #397df633, #19c6e81d);
  box-shadow: 0 0 22px #397df644;
}
.server-picker .server-card h3 { font-size: 21px; }
.server-picker .server-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 10px;
  color: #dff7ff;
  background: #19c6e81b;
}
.dashboard-empty {
  display: grid;
  place-items: center;
  min-height: 250px;
  text-align: center;
  background: linear-gradient(145deg, #0d1829cc, #080f1dcc);
}
.dashboard-empty strong { color: var(--text); font-size: 24px; }
.dashboard-empty span { margin-top: 8px; }
.support-launcher {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 50;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: linear-gradient(145deg, #4b86ff, #2464f5);
  box-shadow: 0 18px 45px #2464f555;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 25px;
}
.support-widget {
  position: fixed;
  right: 28px;
  bottom: 104px;
  z-index: 51;
  width: min(390px, calc(100vw - 32px));
  height: 520px;
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #2b4162;
  background: rgba(7, 14, 28, .96);
  box-shadow: 0 30px 100px #0009;
}
.support-widget.open { display: grid; animation: portalFade .18s ease-out; }
.support-widget header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(47,102,229,.22), rgba(13,26,52,.45));
}
.support-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: url("/assets/brand/rexohost-avatar.jpg") center / cover no-repeat, linear-gradient(135deg, #3a86ff, #775dff);
  font-size: 0;
}
.support-widget header small { display: flex; align-items: center; gap: 6px; color: #8494b1; }
.support-widget header small i { width: 7px; height: 7px; border-radius: 50%; background: #42df91; box-shadow: 0 0 12px #42df91; }
.support-widget header button { margin-left: auto; color: #8c9ab5; background: transparent; font-size: 28px; }
.support-messages { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.support-message { max-width: 88%; padding: 12px 14px; border-radius: 17px 17px 17px 5px; color: #dce7fa; background: rgba(255,255,255,.07); }
.support-message b { color: #78a8ff; font-size: 12px; }
.support-message p { margin: 5px 0 0; line-height: 1.45; white-space: pre-wrap; }
.support-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.support-actions a { min-height: 44px; display: grid; place-items: center; border-radius: 13px; text-decoration: none; font-weight: 900; }
.panel-support-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: #081322; }
.panel-support-form textarea { min-height: 48px; max-height: 120px; resize: vertical; padding: 12px; border: 1px solid #385372; border-radius: 12px; color: #eef6ff; background: #102039; }
.panel-support-form button { align-self: stretch; }
.admin-main { display: grid; grid-template-columns: 390px 1fr; gap: 28px; align-items: start; }
.admin-form label { margin: 18px 0; }
.new-key { margin-top: 20px; padding: 15px; border: 1px solid #2d9e69; border-radius: 8px; background: #102d25; word-break: break-all; }
.new-key code { display: block; margin: 10px 0; font-size: 14px; color: #7ff0ba; }
@media (max-width: 850px) {
  header { grid-template-columns: 1fr auto; padding: 0 18px; }
  header nav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 58px; gap: 0; justify-content: space-around; background: #101b2a; border-top: 1px solid var(--line); }
  header nav button { flex: 1; }
  header .ghost { display: none; }
  main { width: min(94vw, 700px); margin-top: 25px; }
  .console-layout, .startup-grid, .variable-grid, .admin-main { grid-template-columns: 1fr; }
  .server-picker { display: block; }
  .portal-side { position: static; height: auto; }
  .portal-main { width: min(94vw, 700px); padding: 26px 0 90px; }
  .portal-stat-grid { grid-template-columns: 1fr 1fr; }
  .portal-title-row, .portal-topline { align-items: flex-start; flex-direction: column; }
  .server-picker .server-cards { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; order: -1; }
  .terminal-card { height: 500px; min-height: 500px; }
  .title-row, .toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .auth-card { padding: 28px 22px; }
  .stats { grid-template-columns: 1fr; }
  .power-buttons { width: 100%; }
  .power-buttons button { flex: 1; }
}

.panel-boot-screen { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 70% 10%, rgba(41, 111, 255, .28), transparent 34%), #07101f; }
.panel-boot-screen.hidden { display: none; }
.panel-boot-card { display: grid; justify-items: center; gap: 14px; color: #f6f9ff; padding: 34px 44px; border: 1px solid rgba(103, 145, 255, .25); border-radius: 24px; background: rgba(10, 20, 38, .72); box-shadow: 0 28px 90px rgba(0,0,0,.36); }
.panel-boot-card .panel-auth-logo { width: 46px; height: 46px; animation: panelBootPulse 1.05s ease-in-out infinite; }
.panel-boot-card strong { letter-spacing: .14em; color: #75a8ff; }
.panel-boot-card p { margin: 0; color: #9badc9; }
@keyframes panelBootPulse { 0%,100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }

/* Admin v2 */
.admin-v2-body {
  min-height: 100vh;
  margin: 0;
  color: #f5f7fb;
  background: #070707;
}
.admin-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  background: #070707;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #191919;
}
.admin-brand strong {
  display: block;
  color: #ff8168;
  font-size: 21px;
  letter-spacing: .02em;
}
.admin-brand span,
.admin-head p,
.admin-stat-card small,
.admin-stat-card span,
.admin-chart-top p,
.admin-log-row small,
.admin-access-row small {
  color: #9ba3b2;
}
.admin-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-top: 38px;
}
.admin-nav button {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #b7bdc9;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
}
.admin-nav button.active {
  color: #ff7f61;
  background: rgba(255, 103, 74, .15);
}
.admin-user {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff704d, #ff9c6b);
  font-weight: 1000;
}
.admin-user small { display: block; color: #a6adba; }
.admin-user button {
  grid-column: 2;
  width: max-content;
  padding: 0;
  color: #aeb5c1;
  background: transparent;
}
.admin-content {
  width: min(1600px, calc(100vw - 256px));
  padding: 32px;
}
.admin-page { display: none; }
.admin-page.active { display: block; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.admin-head h1 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1;
}
.admin-head p { margin: 0; font-size: 16px; }
.admin-refresh,
.admin-row-actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: #f6f8fb;
  background: #121212;
  font-weight: 760;
}
.admin-refresh.small { min-height: 36px; font-size: 13px; }
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.admin-stat-card,
.admin-panel,
.admin-chart-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: #191919;
}
.admin-stat-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 22px 24px;
}
.admin-stat-card strong {
  margin-top: 18px;
  font-size: 28px;
  color: #fff;
}
.admin-chart-card { padding: 20px; }
.admin-chart-top,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-chart-top h2,
.admin-panel h2,
.admin-list-head h2 {
  margin: 0 0 5px;
}
.admin-segments {
  display: flex;
  padding: 5px;
  border-radius: 10px;
  background: #232733;
}
.admin-segments button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 8px;
  color: #b9c1d2;
  background: transparent;
}
.admin-segments button.active {
  color: #fff;
  background: #3c7dff;
}
.admin-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.admin-chart-metrics article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #20242e;
}
.admin-chart-metrics b { display: block; font-size: 24px; }
.admin-chart-metrics span { color: #aab3c5; }
.admin-chart {
  min-height: 330px;
  padding: 12px;
  border-radius: 16px;
  background: #141821;
}
.admin-chart svg { width: 100%; height: 300px; }
.chart-grid line { stroke: rgba(255,255,255,.08); }
.chart-line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-line.visits { stroke: #5f8cff; }
.chart-line.buyers { stroke: #30d68b; }
.chart-line.revenue { stroke: #8d6dff; }
.chart-labels text { fill: #8f98aa; font-size: 13px; }
.chart-legend {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  color: #b7bfce;
}
.chart-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
}
.chart-legend .visits { background: #5f8cff; }
.chart-legend .buyers { background: #30d68b; }
.chart-legend .revenue { background: #8d6dff; }
.admin-two-col {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.admin-panel { padding: 22px; }
.admin-form label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: #d6ddeb;
  font-weight: 800;
}
.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #33445f;
  border-radius: 9px;
  color: #f4f8ff;
  background: #0b111d;
}
.admin-dropdown { position: relative; margin: 18px 0; }
.admin-dropdown-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid #33445f;
  border-radius: 10px;
  color: #dfe8fb;
  background: #0b111d;
  font-weight: 900;
}
.admin-dropdown-toggle::after {
  content: "⌄";
  color: #7da9ff;
  font-size: 18px;
}
.admin-dropdown-toggle b {
  margin-left: auto;
  margin-right: 10px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
}
.admin-dropdown-menu {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #344b70;
  border-radius: 14px;
  background: #0b111d;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.admin-dropdown-menu input { margin-bottom: 12px; }
.server-checklist.compact {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}
.server-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #263751;
  border-radius: 10px;
  background: #0a1424;
}
.server-check small {
  display: block;
  color: #8fa0bc;
}
.admin-access-list,
.admin-log-list {
  display: grid;
  gap: 10px;
}
.admin-access-row,
.admin-log-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #20242e;
}
.admin-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-row-actions button.ok { color: #bbffd9; border-color: rgba(48,214,139,.3); }
.admin-row-actions button.danger { color: #ff7d89; }
.balance-panel { max-width: 720px; }
.admin-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(95,140,255,.22);
  border-radius: 10px;
  color: #b9c6dd;
  background: #111827;
}
.admin-log-row {
  grid-template-columns: 130px 1fr 170px;
}
.admin-log-row b { color: #7da9ff; }
.admin-log-row time {
  color: #9ca5b4;
  text-align: right;
}
.admin-empty {
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 10px;
  color: #9da8bb;
  text-align: center;
}
@media (max-width: 1180px) {
  .admin-v2 { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-content { width: 100%; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .admin-content { padding: 20px; }
  .admin-stats-grid, .admin-chart-metrics { grid-template-columns: 1fr; }
  .admin-log-row, .admin-access-row { grid-template-columns: 1fr; }
  .admin-log-row time { text-align: left; }
}

/* Server control panel layout */
.app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(34, 112, 202, .42), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(86, 56, 190, .35), transparent 34%),
    linear-gradient(135deg, #07101f 0%, #0a1a2c 58%, #050b14 100%);
}
.app header {
  height: 68px;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  align-items: center;
  gap: 18px;
  padding: 0 5vw;
  border-bottom: 1px solid #30476c88;
  background: linear-gradient(180deg, rgba(16, 28, 48, .96), rgba(8, 17, 31, .94));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px #0005;
}
.brand, .brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 950;
  font-size: 20px;
}
.brand span, .brand-button span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url('/assets/brand/rexohost-avatar.jpg') center/cover;
  box-shadow: 0 0 22px rgba(64, 135, 255, .38);
}
.brand strong, .brand-button strong {
  background: linear-gradient(90deg, #fff 0%, #eaf3ff 45%, #6aa6ff 70%, #8b6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#tabs {
  width: min(760px, 100%);
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}
#tabs button {
  position: relative;
  min-height: 68px;
  padding: 0 4px;
  color: #8fa1bd;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  text-transform: none;
}
#tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #19c6e8, #397df6);
  opacity: 0;
  transform: scaleX(.4);
  transition: .18s ease;
}
#tabs button.active { color: #f8fbff; font-weight: 720; }
#tabs button.active::after { opacity: 1; transform: scaleX(1); }
.ghost, .secondary, .primary {
  min-height: 42px;
  border-radius: 9px;
  padding: 0 18px;
  color: #f4f8ff;
  font-weight: 900;
}
.ghost, .secondary { border: 1px solid var(--line); background: rgba(255,255,255,.045); }
.primary { background: linear-gradient(135deg, #4389ff, #246cf6); box-shadow: 0 16px 38px #246cf633; }
#logoutButton { justify-self: end; min-width: 92px; }
.app main {
  width: min(1280px, 92vw);
  margin: 38px auto 80px;
}
.maintenance-banner {
  width: min(1280px, 92vw);
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #f7c85a44;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 185, 52, .14), rgba(28, 42, 72, .58));
  color: #fff7dc;
}
.maintenance-banner span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #ffb43a24;
  color: #ffd36b;
  font-weight: 950;
}
.maintenance-banner small { color: #c9d5e8; font-weight: 700; }
.promo-banner {
  width: min(620px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 26px;
  border: 1px solid #4e8eff66;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(39, 130, 255, .22), rgba(15, 28, 50, .82));
  color: #edf6ff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff12, 0 20px 70px #0004;
}
.promo-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #42b7ff, #397df6);
  font-weight: 950;
}
.promo-banner strong, .promo-banner small { display: block; }
.promo-banner small { color: #a9b9d2; margin-top: 2px; }
.promo-banner em {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(25,198,232,.14);
  color: #dff9ff;
  font-style: normal;
  font-weight: 900;
}
.title-row, .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 950;
}
.title-row h2, .toolbar h2, .startup-grid h2 { margin: 0; font-size: 28px; font-weight: 720; letter-spacing: 0; }
.power-buttons { display: flex; gap: 10px; }
.power-buttons button { min-height: 44px; padding: 0 20px; border-radius: 9px; color: white; font-weight: 760; }
.power-buttons .start { background: #397df6; }
.power-buttons .restart { background: #617087; }
.power-buttons .stop { background: #ef3340; }
.console-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.terminal-card {
  min-height: 650px;
  height: calc(100vh - 300px);
  display: grid;
  grid-template-rows: 1fr 48px;
  border: 1px solid #365071;
  border-radius: 8px;
  overflow: hidden;
  background: #07101a;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 24px 70px #0005;
}
.terminal {
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #e9f4ff;
  background: #07101a;
}
.terminal-muted { color: #8fa1bd; }
.command-bar {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-top: 1px solid #2c425d;
  background: #102033;
}
.command-bar span { color: var(--cyan); font-size: 24px; font-weight: 950; }
.command-bar input {
  width: 100%;
  height: 100%;
  color: #dce9f8;
  background: transparent;
  border: 0;
  outline: none;
}
.stats { display: grid; gap: 14px; }
.stats article, .status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #365071;
  border-radius: 10px;
  background: rgba(24, 42, 65, .84);
  box-shadow: inset 0 1px 0 #ffffff0b;
}
.stats small { display: block; color: #9fb0ca; font-size: 12px; font-weight: 650; letter-spacing: .01em; margin-bottom: 4px; }
.stats strong { display: block; color: #f4f8ff; font-size: 17px; font-weight: 760; letter-spacing: 0; }
.stat-icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 125, 246, .24), rgba(21, 33, 55, .85));
  border: 1px solid #4c7fe955;
  position: relative;
  overflow: hidden;
}
.stat-icon::before { content: ""; width: 22px; height: 22px; border: 3px solid #7fdcff; border-radius: 8px; opacity: .95; }
.status-dot::before { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #ef3340; box-shadow: 0 0 18px #ef3340; }
.status-dot.online::before { background: #24c875; box-shadow: 0 0 18px #24c875; }
.status-dot.starting::before { background: #ffc247; box-shadow: 0 0 18px #ffc247; }
.icon-chip::before { border-radius: 5px; }
.icon-ram::before { height: 14px; border-radius: 4px; }
.icon-disk::before { height: 16px; border-radius: 5px; border-color: #ffd462; }
.icon-net::before { border-radius: 50%; border-color: #6de7ff; }
.icon-ip::before { border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); }
.icon-sftp::before { width: 20px; height: 15px; border-radius: 5px; border-color: #73e4ff; }
.icon-sftp::after { content: ""; position: absolute; width: 12px; height: 8px; border: 3px solid #73e4ff; border-bottom: 0; border-radius: 8px 8px 0 0; top: 12px; left: 18px; opacity: .95; }
.mini-meter { display: block; height: 5px; margin-top: 10px; background: #061224; border-radius: 999px; overflow: hidden; }
.mini-meter b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #19c6e8, #397df6); border-radius: inherit; }
.tab-panel.hidden { display: none !important; }
.toolbar { padding-top: 8px; }
.toolbar > div:last-child { display: flex; gap: 10px; align-items: center; }
.breadcrumbs { color: #9eb1ce; font-weight: 800; }
.file-list { border: 1px solid #2f4664; border-radius: 12px; overflow: hidden; background: rgba(18, 31, 48, .72); }
.database-list {
  display: grid;
  gap: 14px;
}
.database-empty {
  padding: 26px;
  border: 1px dashed #365170;
  border-radius: 14px;
  color: #9eb1ce;
  text-align: center;
  background: rgba(18, 31, 48, .56);
}
.database-card {
  padding: 18px;
  border: 1px solid #304963;
  border-radius: 14px;
  background: rgba(18, 31, 48, .86);
}
.database-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.database-card-head strong {
  display: block;
  color: #f4f8ff;
  font-size: 20px;
}
.database-card-head small {
  display: block;
  margin-top: 4px;
  color: #8fa6c4;
}
.database-card-head span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #8fd5ff;
  background: rgba(64, 169, 255, .14);
  font-weight: 900;
}
.database-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.database-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 78px 12px 12px;
  border: 1px solid #263a55;
  border-radius: 11px;
  color: #dce9ff;
  background: #0a1424;
  text-align: left;
}
.database-field:hover {
  border-color: rgba(105, 166, 255, .55);
  background: #0d1a2d;
}
.database-fields small {
  color: #8fa6c4;
}
.database-fields b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.database-field-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  display: flex;
  gap: 6px;
  transform: translateY(-50%);
  z-index: 3;
}
.database-icon-button {
  all: unset;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 151, 190, .22);
  border-radius: 8px;
  color: #c6d5eb;
  background: rgba(11, 24, 40, .84);
  cursor: pointer;
}
.database-icon-button:hover {
  color: #fff;
  border-color: rgba(105, 166, 255, .65);
  background: rgba(54, 82, 120, .78);
}
.database-action-glyph {
  display: none;
  font-size: 17px;
  line-height: 1;
}
.database-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@supports not selector(:has(*)) {
  .database-action-glyph { display: block; }
  .database-icon-button svg { display: none; }
}
.database-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .database-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .database-fields { grid-template-columns: 1fr; }
  .database-actions { justify-content: stretch; flex-direction: column; }
}
.file-row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto 42px;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #243850;
  color: #cfe0f8;
}
.file-row:last-child { border-bottom: 0; }
.panel-card {
  padding: 18px;
  border: 1px solid #304963;
  border-radius: 12px;
  background: rgba(18, 31, 48, .84);
}
.startup-grid, .users-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.users-layout { align-items: start; padding-bottom: 48px; }
.invite-card { align-self: start; height: auto; overflow: visible; }
#usersTab { overflow: visible; }
@media (max-width: 1100px) {
  .users-layout { grid-template-columns: 1fr; }
}
.startup-grid pre {
  min-height: 86px;
  padding: 18px;
  border-radius: 8px;
  background: #07101a;
  color: #f4f8ff;
  white-space: pre-wrap;
  overflow: auto;
}
.variable-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.variable-card label { display: grid; gap: 8px; color: #cfe0f8; font-weight: 850; }
.variable-card input, .variable-card select, .variable-card textarea, .invite-card input, #dockerImageSelect {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #385372;
  border-radius: 8px;
  background: #132237;
  color: #f4f8ff;
}
.context-menu { position: fixed; z-index: 60; min-width: 180px; padding: 8px; border-radius: 8px; background: #fff; color: #42556c; box-shadow: 0 20px 70px #0007; }
.context-menu button { display: block; width: 100%; padding: 10px 12px; text-align: left; color: #42556c; background: transparent; border-radius: 6px; }
.context-menu button:hover { background: #edf4ff; }


.terminal-line { display: block; margin: 0 0 3px; color: #e9f4ff; }
.terminal-line.terminal-daemon { color: #ffd35a; font-weight: 800; }
.terminal-line.terminal-error { color: #ff6d7b; font-weight: 850; }
.terminal-line.terminal-warning { color: #ffb86b; }
.terminal-line.terminal-success { color: #73f5a8; }
.terminal-line.terminal-prompt { color: #5be7ff; font-weight: 850; }

/* file-layout-fix: keep file names and metadata from overlapping */
.file-list .file-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 56px;
  padding: 8px 16px;
  column-gap: 18px;
}

.file-list .file-row.file-row-message {
  grid-template-columns: minmax(0, 1fr) auto;
}

.file-list .file-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-list .file-name button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list .file-meta {
  min-width: max-content;
  color: #8fa6c4;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.file-list .danger-text {
  justify-self: end;
}

@media (max-width: 820px) {
  .file-list .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 5px;
  }

  .file-list .file-meta {
    grid-column: 1 / -1;
    min-width: 0;
    white-space: normal;
  }
}


/* icon-hotfix-20260706: keep panel SVG icons compact and colored */
.icon-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.portal-menu a span,
.portal-stat-icon,
.portal-profile-card > span,
.portal-user-card button,
.server-node-icon {
  overflow: hidden !important;
}

.portal-menu a span {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  color: #7db5ff !important;
  background: linear-gradient(145deg, rgba(55, 125, 246, .18), rgba(17, 31, 56, .62)) !important;
  border: 1px solid rgba(102, 161, 255, .34) !important;
}

.portal-menu a svg,
.portal-stat-icon svg,
.portal-profile-grid svg,
.portal-user-card button svg,
.portal-side svg,
.portal-main svg,
.server-node-icon svg,
.server-card svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  overflow: visible !important;
}

.portal-stat-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1px solid rgba(102, 161, 255, .38) !important;
  background: linear-gradient(145deg, rgba(49, 116, 238, .22), rgba(12, 25, 48, .72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(38, 107, 255, .16) !important;
}

.portal-stat-icon.green { color: #44e79b !important; }
.portal-stat-icon.blue { color: #74b7ff !important; }
.portal-stat-icon.orange { color: #ffc45f !important; }
.portal-stat-icon.violet { color: #b996ff !important; }

.panel-auth-social svg,
.panel-auth-field svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  fill: currentColor !important;
  stroke: none !important;
}

.portal-menu a,
.portal-menu a.active,
.portal-menu a:hover {
  min-height: 48px !important;
}
.server-card.is-opening { opacity: .72; cursor: wait; }
.server-card.is-opening .server-open::after { content: ' ...'; }
.server-renew {
  margin-top: 10px;
  display: inline-flex;
  width: fit-content;
  border-radius: 12px;
  padding: 10px 14px;
  color: #071625;
  background: linear-gradient(135deg, #48f0bf, #3aa3ff);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(58, 163, 255, .25);
}

.server-renew:hover {
  filter: brightness(1.05);
}

.server-renew-menu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.server-renew-menu[hidden] {
  display: none;
}

.server-renew-menu span {
  display: block;
  border: 1px solid rgba(83, 158, 255, .45);
  border-radius: 10px;
  padding: 9px 12px;
  color: #b9d5ff;
  background: rgba(16, 49, 95, .55);
  font-weight: 800;
}

.server-renew-menu span:hover {
  color: #fff;
  border-color: rgba(72, 240, 191, .8);
}


.sftp-details-card {
  width: min(720px, 92vw);
  margin: 0 auto;
  border: 1px solid #31506f;
  border-radius: 10px;
  overflow: hidden;
  background: #122235;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 70px rgba(0,0,0,.28);
}
.sftp-details-title {
  padding: 18px 18px 8px;
  color: #18d7ff;
  background: #122235;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
}
.sftp-details-body {
  display: grid;
  gap: 20px;
  padding: 8px 18px 22px;
}
.sftp-field {
  display: grid;
  gap: 8px;
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.sftp-field input {
  width: 100%;
  min-height: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  outline: none;
  color: #f6fbff;
  background: #06111c;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sftp-field input:focus,
.sftp-field input:hover {
  box-shadow: inset 0 0 0 1px rgba(24,215,255,.34);
}

.referral-code-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.referral-code-row > div:first-child { min-width: 0; }
.referral-code-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.referral-code-row strong em {
  color: #9fb0c9;
  font-size: 12px;
  font-style: normal;
}
.referral-code-row small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.referral-code-row .admin-row-actions {
  justify-content: flex-start;
  padding-top: 2px;
}
.referral-code-row .admin-row-actions button {
  min-width: 112px;
  justify-content: center;
}
.referral-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.referral-stats span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #aab5c8;
  background: #141821;
  overflow-wrap: anywhere;
}
.referral-stats b { color: #fff; }

/* Panel typography polish */
.app, .panel-auth-card { font-family: "RexoText", Inter, ui-sans-serif, system-ui, sans-serif; }
#tabs button {
  font-family: "RexoDisplay", "RexoText", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: .01em;
}
#tabs button.active { font-weight: 720; }
.stats small, .sftp-field label, .database-fields small, .backup-name small {
  font-family: "RexoText", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: .01em;
}
.stats strong, .primary, .secondary, .ghost, .power-buttons button {
  font-family: "RexoText", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}


/* RexoHost panel motion layer */
@keyframes rxPanelIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rxPanelSweep {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(230%) skewX(-18deg); }
}
@keyframes rxStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 200, 117, .28); }
  50% { box-shadow: 0 0 0 9px rgba(36, 200, 117, 0); }
}
@keyframes rxTabSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.app header,
.app main,
.server-card,
.terminal-card,
.stats article,
.database-card,
.sftp-details-card,
.startup-command-card,
.admin-panel,
.admin-chart-card,
.admin-stats-grid article,
.admin-access-row,
.admin-log-row {
  animation: rxPanelIn .42s cubic-bezier(.2, .8, .2, 1) both;
}
.stats article:nth-child(2), .database-card:nth-child(2), .admin-stats-grid article:nth-child(2) { animation-delay: .04s; }
.stats article:nth-child(3), .database-card:nth-child(3), .admin-stats-grid article:nth-child(3) { animation-delay: .08s; }
.stats article:nth-child(4), .database-card:nth-child(4), .admin-stats-grid article:nth-child(4) { animation-delay: .12s; }
.tab-panel:not(.hidden) { animation: rxTabSlide .28s ease both; }
#tabs button,
.server-card,
.stats article,
.status-card,
.database-card,
.sftp-details-card,
.admin-panel,
.admin-access-row,
.admin-log-row,
.primary,
.secondary,
.ghost,
.power-buttons button {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
}
#tabs button:hover { color: #e8f2ff; transform: translateY(-1px); }
#tabs button:active { transform: translateY(0) scale(.98); }
.server-card:hover,
.stats article:hover,
.status-card:hover,
.database-card:hover,
.sftp-details-card:hover,
.admin-access-row:hover,
.admin-log-row:hover {
  transform: translateY(-3px);
  border-color: rgba(106, 166, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 60px rgba(8, 30, 80, .24);
}
.primary,
.power-buttons button,
.server-open {
  position: relative;
  overflow: hidden;
}
.primary::after,
.power-buttons button::after,
.server-open::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -50%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.primary:hover::after,
.power-buttons button:hover::after,
.server-open:hover::after { animation: rxPanelSweep .72s ease; }
.primary:hover,
.secondary:hover,
.ghost:hover,
.power-buttons button:hover { transform: translateY(-2px); }
.primary:active,
.secondary:active,
.ghost:active,
.power-buttons button:active { transform: translateY(0) scale(.99); }
.status-dot.online::before { animation: rxStatusPulse 2.2s ease-in-out infinite; }
.mini-meter b { transition: width .45s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* File manager and status icon polish */
.stat-icon::before,
.stat-icon::after { display: none; }
.stat-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.status-dot { color: #ff6470; }
.status-dot.online { color: #39e98d; }
.status-dot.starting { color: #ffd05c; }
.file-toolbar-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.file-selection-count { padding: 5px 9px; border: 1px solid rgba(96,165,250,.28); border-radius: 999px; color: #b9d6ff; background: rgba(59,130,246,.12); font-size: 12px; font-weight: 760; white-space: nowrap; }
.file-list { border-radius: 14px; background: rgba(10,18,31,.66); }
.file-list .file-row { grid-template-columns: 26px minmax(220px, 1fr) minmax(90px, 120px) minmax(150px, 190px) 40px; min-height: 58px; padding: 9px 14px; gap: 12px; background: rgba(26,40,58,.72); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.file-list .file-row:hover { background: rgba(38,58,82,.82); transform: translateY(-1px); }
.file-list .file-row.selected { background: rgba(38,103,246,.15); box-shadow: inset 3px 0 0 #3b82f6; }
.file-select { width: 18px; height: 18px; display: grid; place-items: center; }
.file-select input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #4a627f; border-radius: 4px; background: rgba(7,16,30,.75); cursor: pointer; }
.file-select input:checked { border-color: #5ea1ff; background: #2f7cff; box-shadow: inset 0 0 0 3px #0c1728; }
.file-select input:disabled { opacity: .35; cursor: default; }
.file-select.all { flex: none; }
.file-name { min-width: 0; }
.file-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid rgba(103,150,210,.28); border-radius: 10px; color: #74dfff; background: linear-gradient(135deg, rgba(41,97,175,.22), rgba(9,18,34,.78)); }
.file-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.file-icon-folder { color: #66e0ff; }
.file-icon-archive { color: #ffd35f; }
.file-icon-text { color: #8fb7ff; }
.file-list .file-name button { color: #dceaff; font-weight: 680; }
.file-list .file-meta { min-width: 0; color: #9fb2cc; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size, .file-date { text-align: left; }
.file-list .row-menu-button { justify-self: end; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(121,151,190,.22); border-radius: 10px; color: #c6d5eb; background: rgba(8,16,29,.5); font-size: 16px; line-height: 1; }
.file-list .row-menu-button:hover { color: #fff; border-color: rgba(105,166,255,.55); background: rgba(54,82,120,.68); }
.context-menu { min-width: 205px; border: 1px solid rgba(101,128,166,.28); background: #101a2a; color: #dce9ff; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.context-menu button { color: inherit; }
.context-menu button:hover { background: rgba(59,130,246,.16); }
@media (max-width: 900px) {
  .file-list .file-row { grid-template-columns: 26px minmax(0, 1fr) 40px; row-gap: 6px; }
  .file-list .file-size, .file-list .file-date { grid-column: 2 / -1; }
}


/* File manager polish fixes */
.file-toolbar-left .file-select,
.file-list .file-select {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.file-toolbar-left .file-select input,
.file-list .file-select input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #526783 !important;
  border-radius: 5px !important;
  background: rgba(5, 13, 25, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.file-toolbar-left .file-select input:hover,
.file-list .file-select input:hover {
  border-color: #78aaff !important;
  background: rgba(28, 55, 93, .58) !important;
}
.file-toolbar-left .file-select input:checked,
.file-list .file-select input:checked {
  border-color: #5ea1ff !important;
  background: #2f7cff !important;
}
.file-toolbar-left .file-select input:indeterminate,
.file-list .file-select input:indeterminate {
  border-color: #5ea1ff !important;
  background: linear-gradient(#dceaff, #dceaff) 50% 50% / 8px 2px no-repeat, #2f7cff !important;
}
.file-list .row-menu-button {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.file-list .row-menu-button span {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: radial-gradient(circle, #c9d8ee 2px, transparent 2.5px) 50% 4px / 100% 7px repeat-y;
  opacity: .84;
}
.file-list .row-menu-button:hover {
  background: rgba(82, 116, 164, .18) !important;
}
.file-list .row-menu-button:hover span { opacity: 1; }


/* SFTP secret and copy controls */
.sftp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 0 8px 0 0;
  border-radius: 7px;
  background: #06111c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sftp-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding-right: 8px !important;
}
.sftp-input-wrap:focus-within,
.sftp-input-wrap:hover { box-shadow: inset 0 0 0 1px rgba(24,215,255,.34); }
.sftp-icon-button {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 149, 206, .26);
  border-radius: 10px;
  color: #b9d7ff;
  background: rgba(22, 41, 65, .72);
}
.sftp-icon-button:hover {
  color: #fff;
  border-color: rgba(95, 174, 255, .55);
  background: rgba(49, 86, 130, .78);
}
.sftp-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sftp-icon-button .eye-closed { display: none; }
.sftp-icon-button.is-visible .eye-open { display: none; }
.sftp-icon-button.is-visible .eye-closed { display: block; }


/* Server purpose banners */
.server-card {
  min-height: 212px;
  padding: 24px 22px !important;
  isolation: isolate;
  border-color: rgba(96, 143, 215, .34) !important;
  background: #101b2e !important;
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(5, 12, 24, .96) 0%, rgba(8, 18, 33, .78) 48%, rgba(5, 12, 24, .92) 100%);
}
.server-card::after {
  z-index: -1;
  width: auto !important;
  inset: 0 !important;
  opacity: 1 !important;
  background:
    linear-gradient(90deg, rgba(5, 12, 24, .95) 0%, rgba(5, 12, 24, .68) 46%, rgba(5, 12, 24, .92) 100%),
    var(--server-banner, none) center / cover no-repeat !important;
}
.server-card-minecraft { --server-banner: url('/assets/showcase/minecraft.jpg'); }
.server-card-coding { --server-banner: url('/assets/showcase/coding.jpg'); }
.server-card-default { --server-banner: linear-gradient(135deg, rgba(23, 43, 74, .95), rgba(8, 15, 28, .95)); }
.server-card:hover {
  background: #101b2e !important;
  border-color: rgba(101, 180, 255, .55) !important;
}
.server-card-top,
.server-grid,
.server-open,
.server-renew { position: relative; z-index: 1; }
.server-node-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  color: #d9ecff !important;
  background: rgba(26, 50, 81, .72) !important;
  border-color: rgba(123, 183, 255, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.server-card-minecraft .server-node-icon { color: #91f7b1 !important; border-color: rgba(87, 221, 129, .38) !important; }
.server-card-coding .server-node-icon { color: #91c7ff !important; border-color: rgba(104, 160, 255, .4) !important; }
.server-kind-label {
  display: block;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(130, 166, 214, .28);
  border-radius: 999px;
  color: #bfd2ef;
  background: rgba(7, 15, 27, .45);
  font-size: 11px;
  font-weight: 760;
}
.server-card h3 { font-size: 21px !important; }
.server-grid {
  max-width: 390px;
  padding: 12px 0 2px;
}


/* Server status dot */
.server-status-dot {
  width: 18px;
  height: 18px;
  flex: none;
  align-self: center;
  border-radius: 999px;
  border: 3px solid rgba(8, 16, 30, .86);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 22px currentColor;
}
.server-status-dot.online { color: #35e88f; background: #35e88f; }
.server-status-dot.offline { color: #ff4d66; background: #ff4d66; }
.server-card-top { align-items: center !important; }

/* RexoHost 2026: restrained server controls */
:root { --bg:#080b12; --surface:#121722; --surface-2:#17202d; --surface-3:#1c2939; --line:#293343; --blue:#3d81f6; --muted:#9aa7ba; }
body { background:#080b12; }
body::before,body::after { display:none; }
.portal-side { background:#0e121b !important; border-color:#263043 !important; }
.portal-main { background:transparent; }
.portal-stat,.portal-profile-hero,.portal-profile-grid article,.auth-card { background:#121722; border-color:#293343; box-shadow:none; }
.portal-stat::after,.portal-profile-hero::before { display:none; }
.portal-stat strong { font-size:30px; }
.server-card,.server-card:hover { background:#131a25 !important; border-color:#293343 !important; box-shadow:none !important; transform:none; }
.server-card:hover { border-color:#4a80d0 !important; }
.server-card::before,.server-card::after { display:none !important; }
.server-node-icon { background:#1a2a44 !important; border-color:#304667 !important; box-shadow:none !important; }
.server-status-dot { box-shadow:none; }
.server-kind-label { background:#19283d; border-color:#273a54; }
.portal-create,.primary,.server-open,.power-buttons button { background:#3d81f6 !important; box-shadow:none !important; }
.primary::after,.server-open::after,.power-buttons button::after { display:none; }
.stats article,.status-card,.database-card,.sftp-details-card,.admin-panel,.admin-access-row,.admin-log-row { box-shadow:none !important; }
.stats article:hover,.status-card:hover,.database-card:hover,.sftp-details-card:hover,.admin-access-row:hover,.admin-log-row:hover { transform:none; box-shadow:none !important; }
.app header,.app main,.server-card,.terminal-card,.stats article,.database-card,.sftp-details-card,.startup-command-card,.admin-panel,.admin-chart-card,.admin-stats-grid article,.admin-access-row,.admin-log-row,.tab-panel:not(.hidden) { animation:none; }


.file-list .file-row { position: relative; overflow: hidden; }
.file-list .file-row > *:not(.file-progress-fill):not(.file-progress-label) { position: relative; z-index: 2; }
.file-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(34, 197, 94, .42), rgba(45, 212, 191, .34));
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .18), 0 0 26px rgba(34, 197, 94, .22);
  transition: width .22s ease;
}
.file-progress-label {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #eafff0;
  font-weight: 850;
  text-shadow: 0 2px 10px rgba(0,0,0,.62);
}
.file-row-progressing .row-menu-button,
.file-row-progressing .file-select { opacity: .45; }
.upload-preview-row { border-color: rgba(74,222,128,.28) !important; }

/* Suspended server: diagonal stamp contained by the card. */
.server-card.is-suspended { isolation: isolate; }
.server-suspended-ribbon {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 145%;
  height: 52px;
  transform: translate(-50%, -50%) rotate(25deg);
  pointer-events: none;
  border-top: 2px solid rgba(255, 217, 221, .9);
  border-bottom: 2px solid rgba(255, 217, 221, .9);
  background: linear-gradient(90deg, #8e1d2b, #d73547 38%, #e34959 56%, #9f2231);
  box-shadow: 0 0 0 5px rgba(101, 15, 26, .38), 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(115, 13, 27, .55);
  color: #fff;
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 900;
  letter-spacing: .23em;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(45, 0, 7, .55);
}
