:root {
  --bg: #0d1219;
  --panel: rgba(18, 24, 33, 0.78);
  --panel-strong: rgba(21, 29, 40, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(238, 245, 255, 0.12);
  --line-strong: rgba(83, 224, 180, 0.45);
  --text: #eef5ff;
  --muted: #9aa9bd;
  --green: #55dfbc;
  --cyan: #6cbffc;
  --mint: #55dfbc;
  --blue: #6cbffc;
  --amber: #f2bf68;
  --red: #ff6f66;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}

body {
  min-width: 1060px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input {
  height: 42px;
  padding: 0 12px;
}

select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 44px;
  max-height: 150px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(83, 224, 180, 0.8);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.11);
}

.shell {
  min-height: 100%;
  background:
    linear-gradient(110deg, rgba(13, 18, 25, 0.94), rgba(13, 18, 25, 0.68)),
    url("./assets/xlgames-bg.png") center / cover fixed;
}

.splash-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(108, 191, 252, 0.28), transparent 26%),
    linear-gradient(120deg, rgba(4, 8, 16, 0.88), rgba(7, 12, 24, 0.58)),
    var(--theme-bg, url("./assets/xlgames-bg.png") center / cover);
}

.splash-screen h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(108, 191, 252, 0.45);
}

.splash-screen p {
  margin: 0;
  color: rgba(238, 245, 255, 0.76);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.splash-orbit {
  position: relative;
  width: 194px;
  height: 194px;
  display: grid;
  place-items: center;
}

.splash-orbit span {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(108, 191, 252, 0.34);
  border-radius: 50%;
  transform: rotate(-18deg) scaleX(1.35);
}

.splash-orbit span:nth-child(3) {
  inset: 42px;
  border-color: rgba(85, 223, 188, 0.42);
  transform: rotate(25deg) scaleX(1.18);
}

.splash-orbit span:nth-child(4) {
  inset: 3px;
  border-style: dashed;
  border-color: rgba(238, 245, 255, 0.22);
  transform: none;
}

.splash-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: #061018;
  background: linear-gradient(135deg, #eef5ff, var(--cyan) 45%, var(--green));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  font-size: 46px;
  font-weight: 950;
  box-shadow: 0 0 48px rgba(108, 191, 252, 0.48);
}

.splash-line {
  width: min(340px, 54vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 191, 252, 0.9), transparent);
}

.auth-page {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  min-height: 100vh;
  padding: 64px;
  align-items: center;
}

.brand-title {
  max-width: 680px;
}

.mark,
.brand-glyph {
  display: grid;
  place-items: center;
  color: #081018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 900;
  box-shadow: 0 18px 40px var(--shadow);
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  font-size: 34px;
}

.brand-title h1 {
  margin: 24px 0 12px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.panel,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card {
  padding: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  height: 42px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.tab.active {
  color: #071018;
  background: linear-gradient(135deg, #eef5ff, var(--blue));
  font-weight: 800;
  box-shadow: 0 0 18px rgba(90, 196, 225, 0.2);
}

.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.field label,
.hint,
.status,
.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.status {
  min-height: 20px;
  color: var(--amber);
}

.danger-text {
  color: var(--red);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.btn.primary {
  color: #071018;
  background: var(--green);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.btn.danger {
  color: #fff;
  background: var(--red);
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100vh;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(8, 12, 18, 0.78), rgba(8, 12, 18, 0.52)),
    var(--theme-bg, url("./assets/xlgames-bg.png") center / cover fixed);
}

.theme-orbit {
  --theme-bg: url("./assets/xlgames-bg.png") center / cover fixed;
  --theme-tint: rgba(83, 224, 180, 0.2);
}

.theme-deep {
  --theme-bg: url("./assets/xlgames-bg-deep.png") center / cover fixed;
  --theme-tint: rgba(108, 191, 252, 0.16);
}

.theme-nova {
  --theme-bg: url("./assets/xlgames-bg-nova.png") center / cover fixed;
  --theme-tint: rgba(116, 154, 255, 0.2);
}

.vega-header,
.app-nav,
.workspace,
.side-panel,
.chat-pane,
.admin-main,
.rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.vega-header {
  position: relative;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 191, 252, 0.18), transparent 32%),
    radial-gradient(circle at 100% 50%, rgba(83, 224, 180, 0.13), transparent 34%),
    rgba(13, 19, 28, 0.84);
}

.vega-main {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  overflow: hidden;
}

.app-nav {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: 0;
  padding: 18px;
}

.brand-mini {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-glyph {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 24px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(83, 224, 180, 0.08);
  border: 1px solid rgba(83, 224, 180, 0.22);
  box-shadow: 0 0 28px rgba(83, 224, 180, 0.14);
}

.compass-glyph {
  clip-path: polygon(50% 3%, 61% 38%, 97% 50%, 61% 62%, 50% 97%, 39% 62%, 3% 50%, 39% 38%);
}

.compass-glyph::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(108, 191, 252, 0.32);
  border-radius: 50%;
  transform: rotate(-22deg) scaleX(1.28);
  pointer-events: none;
}

.brand-mini b {
  display: block;
  font-size: 20px;
}

.brand-mini span,
.profile-card span,
.person-line span {
  color: var(--muted);
  font-size: 13px;
}

.radial-menu {
  position: relative;
  width: 360px;
  height: 360px;
  align-self: center;
  justify-self: center;
  margin: 0;
  transform: none;
  display: grid;
  place-items: center;
}

.radial-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.36));
}

.radial-segment {
  cursor: pointer;
  outline: none;
}

.radial-segment path {
  fill: rgba(238, 245, 255, 0.11);
  stroke: rgba(238, 245, 255, 0.16);
  stroke-width: 1.4;
  transition: 170ms ease;
}

.radial-segment:nth-of-type(1) path {
  fill: rgba(83, 224, 180, 0.20);
}

.radial-segment:nth-of-type(2) path {
  fill: rgba(108, 191, 252, 0.17);
}

.radial-segment:nth-of-type(3) path {
  fill: rgba(242, 191, 104, 0.16);
}

.radial-segment:nth-of-type(4) path {
  fill: rgba(83, 224, 180, 0.13);
}

.radial-segment:nth-of-type(5) path {
  fill: rgba(255, 255, 255, 0.10);
}

.radial-segment:nth-of-type(6) path {
  fill: rgba(108, 191, 252, 0.13);
}

.radial-segment:nth-of-type(7) path {
  fill: rgba(83, 224, 180, 0.16);
}

.radial-segment:nth-of-type(8) path {
  fill: rgba(238, 245, 255, 0.12);
}

.radial-segment:hover path,
.radial-segment.active path {
  fill: rgba(90, 196, 225, 0.86);
  stroke: rgba(238, 245, 255, 0.65);
  filter: drop-shadow(0 0 18px rgba(90, 196, 225, 0.38));
}

.radial-hole {
  fill: rgba(8, 12, 18, 0.93);
  stroke: rgba(238, 245, 255, 0.12);
  stroke-width: 1.2;
  pointer-events: none;
}

.radial-tab-icon,
.radial-badge {
  pointer-events: none;
  user-select: none;
}

.radial-tab-icon {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(83, 224, 180, 0.34));
  transition: 170ms ease;
}

.radial-segment:hover .radial-tab-icon,
.radial-segment.active .radial-tab-icon {
  opacity: 1;
  filter:
    drop-shadow(0 0 13px rgba(255, 255, 255, 0.42))
    drop-shadow(0 0 18px rgba(83, 224, 180, 0.54));
}

.radial-badge,
.radial-badge-dot {
  pointer-events: none;
  user-select: none;
}

.radial-badge-dot {
  fill: var(--amber);
  stroke: rgba(8, 12, 18, 0.34);
  stroke-width: 1;
}

.radial-badge {
  fill: #071018;
  stroke: none;
  font-size: 13px;
}

.radial-center {
  position: absolute;
  inset: 102px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  z-index: 2;
  width: auto;
  height: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: default;
  touch-action: none;
}

.radial-center.holding {
  filter: drop-shadow(0 0 22px rgba(83, 224, 180, 0.55));
}

.radial-enable {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 176px;
  height: 176px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 34%, rgba(83, 224, 180, 0.2), transparent 46%),
    rgba(8, 12, 18, 0.94);
  border: 1px solid rgba(83, 224, 180, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(83, 224, 180, 0.07),
    0 24px 58px rgba(0, 0, 0, 0.42),
    inset 0 0 32px rgba(108, 191, 252, 0.12);
}

.radial-enable::before,
.radial-enable::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(108, 191, 252, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.radial-enable::before {
  inset: -24px;
  transform: rotate(-18deg) scaleX(1.12);
}

.radial-enable::after {
  inset: -44px;
  border-style: dashed;
  opacity: 0.48;
}

.radial-enable span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radial-enable strong {
  margin-top: 6px;
  font-size: 27px;
  line-height: 1;
}

.radial-center span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radial-center strong {
  margin-top: 5px;
  font-size: 22px;
}

.profile-card {
  align-self: end;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #071018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 50%;
  font-weight: 900;
}

.avatar-lg {
  width: 58px;
  height: 58px;
}

.avatar-xl {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  font-size: 38px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.workspace-head {
  position: relative;
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 24, 0.52);
}

.workspace-head h1 {
  margin: 3px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-pills span,
.notification-bell,
.pill-action {
  min-height: 32px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notification-bell {
  color: var(--muted);
  cursor: pointer;
}

.notification-bell.active {
  color: #071018;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-color: rgba(238, 245, 255, 0.34);
  box-shadow: 0 0 18px rgba(83, 224, 180, 0.28);
}

.notification-panel {
  position: absolute;
  top: 76px;
  right: 22px;
  z-index: 30;
  display: none;
  width: min(420px, calc(100vw - 44px));
  max-height: min(520px, calc(100vh - 110px));
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(238, 245, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 224, 180, 0.14), transparent 34%),
    rgba(11, 16, 23, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.notification-panel.open {
  display: grid;
  gap: 12px;
}

.notification-head,
.notification-counters {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.notification-head b {
  font-size: 18px;
}

.notification-counters span {
  min-height: 28px;
  padding: 6px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(83, 224, 180, 0.24);
  border-radius: 8px;
  background: rgba(83, 224, 180, 0.11);
}

.notification-item.read {
  opacity: 0.72;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.notification-item span,
.notification-item small {
  color: var(--muted);
}

.pill-action {
  color: #071018;
  background: var(--green);
  border-color: rgba(83, 224, 180, 0.55);
  font-weight: 900;
}

.pill-action:disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.status-pills .update-status {
  max-width: 260px;
  color: var(--amber);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pills .update-status.is-empty {
  display: none;
}

.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast-note {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
  pointer-events: auto;
  border: 1px solid rgba(83, 224, 180, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 224, 180, 0.18), transparent 42%),
    rgba(14, 21, 30, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.toast-note span {
  color: var(--muted);
}

.workspace-body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 14px;
}

.app-shell.tab-vpn .workspace-body,
.app-shell.tab-admin .workspace-body,
.app-shell.tab-ai .workspace-body,
.app-shell.tab-translator .workspace-body {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.tab-vpn .chat-pane,
.app-shell.tab-ai .chat-pane,
.app-shell.tab-translator .chat-pane {
  display: none;
}

.app-shell.tab-admin .side-panel,
.app-shell.tab-admin .workspace-head,
.app-shell.tab-admin .chat-head,
.app-shell.tab-admin .composer {
  display: none;
}

.app-shell.tab-admin .workspace-body {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.app-shell.tab-admin .chat-pane,
.app-shell.tab-admin .messages {
  display: block;
  min-height: 0;
  height: 100%;
}

.app-shell.tab-admin .messages {
  padding: 0;
  overflow: hidden;
}

.vpn-admin-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
  background: var(--bg);
}

.app-shell.tab-vpn .side-panel,
.app-shell.tab-ai .side-panel,
.app-shell.tab-translator .side-panel {
  padding: 20px;
}

.app-shell.tab-vpn .side-panel > .panel-head,
.app-shell.tab-vpn .vpn-stage,
.app-shell.tab-ai .side-panel > *,
.app-shell.tab-translator .side-panel > .panel-head,
.app-shell.tab-translator .translator-stage {
  width: min(920px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.app-shell.tab-vpn .vpn-stage {
  align-content: start;
}

.side-panel,
.chat-pane {
  min-height: 0;
  overflow: hidden;
}

.app-shell.tab-chats .side-panel,
.app-shell.tab-chats .chat-pane {
  background:
    radial-gradient(circle at 22% 14%, rgba(90, 196, 225, 0.16), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(83, 224, 180, 0.11), transparent 32%),
    rgba(9, 15, 24, 0.82);
}

.side-panel {
  padding: 16px;
  overflow: auto;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-head p {
  margin: 7px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 12px;
}

.panel-head-row p {
  margin-bottom: 0;
}

.icon-command {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  font-weight: 900;
}

.icon-command:hover,
.icon-command.active {
  color: #071018;
  border-color: var(--green);
  background: var(--green);
}

.icon-command img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.danger-icon {
  color: #ffd8df;
  border-color: rgba(255, 86, 114, 0.28);
  background: rgba(255, 86, 114, 0.1);
}

.danger-icon:hover {
  color: #fff;
  border-color: rgba(255, 86, 114, 0.72);
  background: rgba(255, 86, 114, 0.35);
}

.conversation-list {
  gap: 6px;
}

.conversation-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.075);
}

.conversation-item.active {
  border-color: rgba(83, 224, 180, 0.42);
  background: rgba(83, 224, 180, 0.1);
}

.conversation-copy,
.conversation-title {
  min-width: 0;
}

.conversation-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.conversation-title b,
.conversation-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-title time,
.conversation-copy small {
  color: var(--muted);
  font-size: 12px;
}

.conversation-copy small {
  display: block;
  margin-top: 5px;
}

.group-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #071018;
  background: var(--cyan);
  font-weight: 950;
}

.tool-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tool-title span {
  color: var(--muted);
  font-size: 12px;
}

.compact-create {
  margin-bottom: 10px;
}

.friend-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mini-head-actions,
.friend-mini-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.request-count,
.pending-mini {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #071018;
  border-radius: 50%;
  background: var(--amber);
  font-size: 12px;
  font-weight: 950;
}

.pending-mini {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
}

.mini-tool-drawer {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(83, 224, 180, 0.24);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.72);
}

.friend-search-drawer {
  animation: mini-drawer-in 150ms ease-out;
}

.friend-row-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.friend-row-mini:hover {
  background: rgba(255, 255, 255, 0.075);
}

.friend-row-mini.active {
  border-color: rgba(83, 224, 180, 0.38);
  background: rgba(83, 224, 180, 0.09);
}

.friend-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: var(--text);
  text-align: left;
  border: 0;
  background: transparent;
}

.friend-copy {
  min-width: 0;
}

.friend-copy b,
.friend-copy small,
.friend-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.friend-copy small,
.friend-copy em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.friend-copy em {
  color: rgba(238, 245, 255, 0.78);
}

@keyframes mini-drawer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.list-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 8px;
  color: var(--text);
  font-size: 13px;
}

.list-section-title span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #071018;
  border-radius: 12px;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.muted-title {
  color: var(--muted);
}

.friend-card-clean .card-actions {
  align-items: center;
}

.call-button {
  margin-left: auto;
}

.empty-state-clean,
.call-idle {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 180px;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state-clean img,
.call-idle img,
.welcome-pane img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.8;
}

.empty-state-clean b,
.call-idle b {
  color: var(--text);
  font-size: 16px;
}

.call-contact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.call-icon {
  width: 44px;
  height: 44px;
  border-color: rgba(83, 224, 180, 0.32);
  background: rgba(83, 224, 180, 0.1);
}

.active-call-card {
  border-color: rgba(83, 224, 180, 0.36);
}

.active-call-card.incoming {
  border-color: rgba(242, 191, 104, 0.52);
  background: rgba(242, 191, 104, 0.08);
}

.call-pane-focus {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
}

.call-focus-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(83, 224, 180, 0.32);
  border-radius: 50%;
  background: rgba(83, 224, 180, 0.09);
}

.call-pane-focus.incoming .call-focus-icon {
  border-color: rgba(242, 191, 104, 0.58);
  background: rgba(242, 191, 104, 0.1);
}

.call-focus-icon img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.call-pane-focus h2,
.call-pane-focus p {
  margin: 0;
}

.call-pane-focus h2 {
  font-size: 24px;
}

.call-pane-focus p {
  color: var(--muted);
}

.call-participants {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.call-participants > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 72px;
  color: var(--muted);
  font-size: 12px;
}

.call-focus-actions {
  justify-content: center;
  margin-top: 2px;
}

.call-focus-actions .btn {
  min-width: 132px;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-list.compact {
  margin-top: 14px;
}

.communication-stack {
  display: grid;
  gap: 12px;
}

.communication-section {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(238, 245, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 224, 180, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.collapse-head {
  display: grid;
  grid-template-columns: 46px 1fr 34px;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.collapse-head.open {
  border-color: rgba(83, 224, 180, 0.28);
  background: rgba(83, 224, 180, 0.1);
}

.collapse-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(83, 224, 180, 0.28));
}

.collapse-head b,
.collapse-head small {
  display: block;
}

.collapse-head b {
  font-size: 16px;
}

.collapse-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.collapse-head strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #071018;
  border-radius: 50%;
  background: var(--green);
  font-size: 20px;
  line-height: 1;
}

.list-card,
.empty-card,
.tool-box,
.profile-settings,
.voice-stage {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
}

.list-card.active {
  border-color: rgba(90, 196, 225, 0.62);
  background:
    linear-gradient(135deg, rgba(90, 196, 225, 0.16), rgba(83, 224, 180, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 rgba(90, 196, 225, 0.75);
}

.card-title {
  font-weight: 900;
}

.list-card small {
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.friend-message-preview {
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid rgba(238, 245, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.friend-message-preview.active {
  color: var(--text);
  border-color: rgba(90, 196, 225, 0.42);
  background: rgba(90, 196, 225, 0.11);
}

.person-card {
  gap: 12px;
}

.person-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.person-line b,
.person-line span {
  display: block;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-create-box,
.voice-add-box {
  margin-bottom: 12px;
}

.chat-create-box h3,
.voice-add-box h3 {
  margin: 0;
  font-size: 16px;
}

.message-delete {
  margin-top: 8px;
  padding: 5px 9px;
  color: #ffd8df;
  background: rgba(255, 86, 114, 0.12);
  border: 1px solid rgba(255, 86, 114, 0.32);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.message-body {
  position: relative;
}

.message-more {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
}

.message-body:hover .message-more,
.message-more:focus-visible {
  opacity: 1;
}

.message-more:hover {
  color: #ffd8df;
  border-color: rgba(255, 86, 114, 0.35);
  background: rgba(255, 86, 114, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.68);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(83, 224, 180, 0.16), transparent 34%),
    rgba(14, 21, 30, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-card h2,
.modal-card p {
  margin: 0;
  text-align: center;
}

.modal-card small {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
}

.nav-order-list {
  display: grid;
  gap: 8px;
}

.nav-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-order-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.nav-order-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.icon-btn {
  width: 36px;
  height: 34px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.icon-btn:disabled {
  opacity: 0.35;
}

.tool-box {
  gap: 12px;
}

.check-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.check-list label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
}

.check-list input {
  width: auto;
  height: auto;
}

.check-list span {
  color: var(--muted);
  font-size: 12px;
}

.profile-settings {
  justify-items: center;
  text-align: center;
}

.settings-stack {
  display: grid;
  gap: 14px;
}

.settings-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(238, 245, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, var(--theme-tint, rgba(83, 224, 180, 0.16)), transparent 32%),
    rgba(255, 255, 255, 0.06);
}

.settings-card h3 {
  margin: 4px 0 2px;
  font-size: 20px;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-card .btn {
  width: fit-content;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.icon-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.icon-pack-choice {
  position: relative;
  display: grid;
  grid-template-rows: 72px auto 1fr;
  gap: 7px;
  min-width: 0;
  min-height: 148px;
  padding: 11px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.44);
  overflow: hidden;
}

.icon-pack-choice:hover {
  border-color: rgba(108, 191, 252, 0.5);
  background: rgba(108, 191, 252, 0.08);
}

.icon-pack-choice.active {
  border-color: var(--line-strong);
  background: rgba(83, 224, 180, 0.11);
  box-shadow: inset 0 0 0 1px rgba(83, 224, 180, 0.18);
}

.icon-pack-choice b,
.icon-pack-choice small {
  position: relative;
  z-index: 1;
}

.icon-pack-choice small {
  color: var(--muted);
  line-height: 1.35;
}

.icon-pack-choice em {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 6px;
  color: #071014;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  border-radius: 6px;
  background: var(--accent);
}

.icon-pack-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  width: 100%;
  height: 72px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.icon-pack-preview img {
  width: 48px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.3));
}

.theme-choice {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.theme-choice.active {
  border-color: var(--line-strong);
  background: rgba(83, 224, 180, 0.1);
}

.theme-choice small {
  color: var(--muted);
  line-height: 1.35;
}

.theme-preview {
  height: 58px;
  border-radius: 6px;
  border: 1px solid rgba(238, 245, 255, 0.16);
  background:
    linear-gradient(120deg, rgba(7, 11, 16, 0.3), rgba(7, 11, 16, 0.05)),
    var(--theme-bg);
  background-size: cover;
}

@media (max-width: 700px) {
  .icon-pack-grid {
    grid-template-columns: 1fr;
  }

  .icon-pack-choice {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 96px;
  }

  .icon-pack-preview {
    grid-row: 1 / 3;
    height: 72px;
  }

  .icon-pack-preview img {
    width: 36px;
    height: 36px;
  }
}

.settings-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #061018;
  background: linear-gradient(135deg, #eef5ff, var(--cyan) 44%, var(--green));
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 0 36px rgba(108, 191, 252, 0.22);
}

.profile-settings h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.profile-settings p {
  margin: 0 0 10px;
  color: var(--muted);
}

.voice-stage {
  justify-items: center;
  text-align: center;
  padding: 20px;
}

.voice-stage.compact-voice {
  padding: 16px;
}

.voice-stage.compact-voice .voice-orbit {
  width: 116px;
  height: 116px;
}

.vpn-stage {
  display: grid;
  gap: 14px;
  min-height: 320px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(83, 224, 180, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(83, 224, 180, 0.16), transparent 34%),
    rgba(14, 21, 30, 0.72);
}

.vpn-overview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(620px, 100%);
  text-align: left;
}

.vpn-overview .eyebrow {
  display: block;
  margin-bottom: 4px;
}

.vpn-shield {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(83, 224, 180, 0.26));
}

.vpn-stage h3 {
  margin: 0;
  font-size: 22px;
}

.vpn-stage p,
.vpn-status {
  margin: 0;
  color: var(--muted);
}

.vpn-region-grid {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vpn-region-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "badge title"
    "badge ip";
  align-items: center;
  gap: 2px 8px;
  min-height: 70px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.vpn-region-choice b {
  grid-area: badge;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #071018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 8px;
  font-size: 14px;
}

.vpn-region-choice span {
  grid-area: title;
  min-width: 0;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpn-region-choice small {
  grid-area: ip;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vpn-region-choice.active {
  border-color: rgba(83, 224, 180, 0.76);
  background: rgba(83, 224, 180, 0.13);
  box-shadow: 0 0 22px rgba(83, 224, 180, 0.14);
}

.vpn-status {
  min-height: 20px;
  font-weight: 800;
}

.vpn-apps-block {
  width: min(760px, 100%);
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 245, 255, 0.1);
  text-align: left;
}

.vpn-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(238, 245, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 10, 17, 0.58);
}

.vpn-mode-choice {
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.vpn-mode-choice:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.vpn-mode-choice.active {
  color: #071018;
  border-color: rgba(114, 232, 211, 0.76);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(83, 224, 180, 0.14);
}

.vpn-mode-summary {
  display: grid;
  gap: 3px;
  padding: 2px 2px 4px;
}

.vpn-mode-summary strong {
  font-size: 17px;
}

.vpn-mode-summary span,
.vpn-catalog-head span,
.vpn-apps-empty span,
.vpn-scope-note,
.vpn-full-card span {
  color: var(--muted);
  font-size: 12px;
}

.vpn-full-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(83, 224, 180, 0.32);
  border-radius: 8px;
  background: rgba(83, 224, 180, 0.08);
}

.vpn-full-card > div {
  display: grid;
  gap: 4px;
}

.vpn-full-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #071018 !important;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 950;
}

.vpn-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.vpn-catalog-head > div {
  display: grid;
  gap: 2px;
}

.vpn-catalog-head b {
  font-size: 16px;
}

.vpn-catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.vpn-catalog-tools input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(238, 245, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(5, 11, 18, 0.72);
}

.vpn-catalog-tools input:focus {
  border-color: rgba(83, 224, 180, 0.72);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.08);
}

.vpn-catalog-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  padding-right: 3px;
}

.vpn-catalog-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid rgba(238, 245, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.vpn-catalog-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.vpn-catalog-row.selected {
  border-color: rgba(83, 224, 180, 0.55);
  background: rgba(83, 224, 180, 0.09);
}

.vpn-catalog-row > strong {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #071018;
  border-radius: 8px;
  background: var(--cyan);
  font-size: 15px;
}

.vpn-catalog-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vpn-catalog-copy b,
.vpn-catalog-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vpn-catalog-copy small {
  color: var(--muted);
  font-size: 11px;
}

.vpn-running-badge {
  padding: 4px 7px;
  color: var(--green);
  border: 1px solid rgba(83, 224, 180, 0.24);
  border-radius: 6px;
  background: rgba(83, 224, 180, 0.07);
  font-size: 10px;
  font-weight: 900;
}

.vpn-app-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.vpn-apps-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 84px;
  align-content: center;
  padding: 14px;
  border: 1px dashed rgba(238, 245, 255, 0.14);
  border-radius: 8px;
  text-align: center;
}

.vpn-scope-note {
  margin: 0;
}

.ai-panel-head {
  padding-bottom: 2px;
}

.ai-balance-row,
.ai-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-balance-row {
  min-height: 48px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(108, 191, 252, 0.22);
  border-radius: 8px;
  background: rgba(22, 31, 44, 0.88);
}

.ai-balance-row span {
  color: var(--green);
  font-weight: 900;
}

.ai-balance-row small {
  color: var(--muted);
  text-align: right;
}

.ai-balance-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-speech-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  user-select: none;
}

.ai-speech-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ai-speech-switch i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 9, 15, 0.78);
  transition: background 160ms ease, border-color 160ms ease;
}

.ai-speech-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.ai-speech-switch input:checked + i {
  border-color: rgba(83, 224, 180, 0.7);
  background: rgba(83, 224, 180, 0.22);
}

.ai-speech-switch input:checked + i::after {
  background: var(--green);
  transform: translateX(18px);
}

.ai-speech-switch input:focus-visible + i {
  outline: 3px solid rgba(83, 224, 180, 0.18);
  outline-offset: 2px;
}

.ai-composer-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(83, 224, 180, 0.28);
  border-radius: 8px;
  background: rgba(8, 15, 23, 0.9);
}

.ai-composer-card > label {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-composer-card textarea {
  width: 100%;
  min-height: 112px;
  max-height: 280px;
  padding: 14px;
  color: var(--text);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: rgba(3, 8, 14, 0.72);
  font: inherit;
  line-height: 1.5;
}

.ai-composer-card textarea:focus {
  border-color: rgba(83, 224, 180, 0.72);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.1);
}

.ai-composer-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 0.55fr);
  gap: 10px;
}

.ai-status {
  min-height: 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ai-status.is-empty {
  visibility: hidden;
}

.ai-history-head {
  margin: 16px 0 9px;
}

.ai-conversation {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
}

.ai-message,
.ai-welcome {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 34, 0.9);
}

.ai-message.assistant {
  border-color: rgba(83, 224, 180, 0.3);
  background: rgba(13, 42, 40, 0.72);
}

.ai-message.mine {
  margin-left: min(80px, 12%);
  border-color: rgba(108, 191, 252, 0.34);
  background: rgba(22, 42, 62, 0.78);
}

.ai-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--green);
}

.ai-message-head time {
  color: var(--muted);
  font-size: 11px;
}

.ai-message-body {
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: text;
}

.ai-welcome {
  color: var(--muted);
  line-height: 1.55;
}

.translator-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.translator-direction {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(238, 245, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 11, 18, 0.72);
}

.translator-language {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 900;
}

.translator-language.active {
  color: #071018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.translator-swap {
  width: 48px;
  height: 46px;
  color: var(--text);
  border: 1px solid rgba(238, 245, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  font-weight: 900;
}

.translator-swap:hover {
  border-color: rgba(83, 224, 180, 0.6);
  background: rgba(83, 224, 180, 0.1);
}

.translator-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 338px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(90, 196, 225, 0.1), transparent 34%),
    rgba(10, 17, 26, 0.82);
}

.translator-result-card {
  border-color: rgba(83, 224, 180, 0.24);
  background:
    radial-gradient(circle at 12% 4%, rgba(83, 224, 180, 0.12), transparent 38%),
    rgba(10, 17, 26, 0.82);
}

.translator-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  font-weight: 900;
}

.translator-card-head .btn.compact {
  min-height: 34px;
  padding: 0 12px;
}

.translator-clear {
  font-size: 23px;
  line-height: 1;
}

.translator-textarea {
  min-height: 210px;
  max-height: 420px;
  padding: 16px;
  resize: vertical;
  background: rgba(3, 8, 14, 0.62);
  font-size: 17px;
  line-height: 1.5;
}

.translator-result {
  min-height: 210px;
  padding: 16px;
  color: var(--text);
  border: 1px solid rgba(83, 224, 180, 0.16);
  border-radius: 8px;
  background: rgba(3, 8, 14, 0.46);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.5;
  user-select: text;
}

.translator-result.empty {
  color: var(--muted);
}

.translator-actions {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(160px, 1fr);
  gap: 10px;
}

.translator-voice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.translator-voice.listening {
  color: var(--green);
  border-color: rgba(83, 224, 180, 0.64);
}

.translator-mic-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.translator-mic-icon::before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  left: -6px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0 0 10px 10px;
}

.translator-mic-icon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 4px;
  width: 2px;
  height: 5px;
  background: currentColor;
}

.translator-status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--green);
  text-align: center;
  font-weight: 800;
}

.translator-status.is-empty {
  visibility: hidden;
}

@media (max-width: 700px) {
  .vpn-overview {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .vpn-shield {
    width: 72px;
    height: 72px;
  }

  .vpn-mode-choice {
    min-height: 56px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .vpn-catalog-tools {
    grid-template-columns: 1fr;
  }

  .vpn-catalog-row {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 8px;
    padding: 8px;
  }

  .vpn-catalog-row > strong {
    width: 38px;
    height: 38px;
  }

  .vpn-running-badge {
    display: none;
  }

  .translator-stage {
    grid-template-columns: 1fr;
  }

  .translator-direction,
  .translator-status {
    grid-column: 1;
  }

  .translator-card {
    min-height: 0;
  }

  .translator-actions {
    grid-template-columns: 1fr;
  }

  .ai-balance-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-balance-row small {
    text-align: left;
  }

  .ai-balance-tools {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .ai-composer-actions {
    grid-template-columns: 1fr;
  }

  .ai-message.mine {
    margin-left: 0;
  }
}

.voice-orbit {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: rgba(83, 224, 180, 0.09);
  border: 1px solid rgba(83, 224, 180, 0.25);
}

.voice-orbit span {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(108, 191, 252, 0.28);
}

.voice-orbit span:nth-child(2) {
  inset: 28px;
  border-color: rgba(242, 191, 104, 0.24);
}

.voice-orbit span:nth-child(3) {
  inset: 44px;
  border-color: rgba(83, 224, 180, 0.32);
}

.voice-orbit strong {
  font-size: 42px;
}

.chat-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(10, 15, 22, 0.72);
}

.chat-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-head h2 {
  margin: 0;
  font-size: 20px;
}

.chat-head span {
  color: var(--muted);
  font-size: 13px;
}

.messages {
  padding: 20px;
  overflow: auto;
}

.app-shell.tab-voice .messages {
  padding: 0;
  overflow: hidden;
}

.message {
  display: grid;
  grid-template-columns: 44px minmax(0, 720px);
  gap: 10px;
  margin: 12px 0;
}

.message-body {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-body strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 13px;
}

.message-body p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-photo {
  display: block;
  max-width: min(520px, 100%);
  max-height: 360px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.message-video-circle {
  display: block;
  width: min(240px, 70vw);
  aspect-ratio: 1;
  margin-top: 10px;
  border: 2px solid rgba(89, 220, 194, 0.72);
  border-radius: 50%;
  background: #050a10;
  object-fit: cover;
}

.circle-expiry {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.composer {
  display: block;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(18, 24, 33, 0.84);
}

.composer-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: end;
}

.composer-line textarea {
  min-height: 42px;
  max-height: 124px;
  padding: 10px 12px;
  resize: none;
}

.composer-tool-drawer {
  margin-bottom: 8px;
}

.mini-tool-option {
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.mini-tool-option span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #071018;
  border-radius: 50%;
  background: var(--green);
  font-size: 20px;
}

.mini-tool-option small {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.send-command {
  font-size: 20px;
}

.confirm-mini-modal {
  width: min(380px, calc(100vw - 32px));
}

.welcome-pane {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.welcome-pane h2 {
  margin: 0;
  color: var(--text);
}

.welcome-pane p {
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

.file-input {
  display: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
  background:
    linear-gradient(112deg, rgba(7, 11, 16, 0.88), rgba(7, 11, 16, 0.62)),
    url("./assets/xlgames-bg-nova.png") center / cover fixed;
}

.rail {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 18px;
}

.admin-main {
  padding: 24px;
  overflow: auto;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 28%, rgba(108, 191, 252, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.admin-hero h1 {
  margin: 4px 0 6px;
  font-size: 34px;
}

.admin-hero p,
.section-head p {
  margin: 0;
  color: var(--muted);
}

.hero-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #071018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  font-size: 42px;
  font-weight: 950;
  filter: drop-shadow(0 0 28px rgba(108, 191, 252, 0.42));
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.stat b {
  display: block;
  font-size: 28px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.section {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.section h2 {
  margin: 0 0 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.profile strong,
.profile span {
  display: block;
}

.profile span:not(.avatar) {
  color: var(--muted);
  font-size: 13px;
}

.nav-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.nav-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compose-box,
.server-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.server-card span {
  color: var(--muted);
  font-size: 13px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.pill.on {
  color: #061018;
  border-color: rgba(83, 224, 180, 0.8);
  background: var(--green);
}

.pill.off {
  color: #fff;
  border-color: rgba(255, 111, 102, 0.55);
  background: rgba(255, 111, 102, 0.22);
}

.admin-control {
  grid-template-columns: 320px minmax(0, 1fr);
}

.admin-rail {
  min-height: calc(100vh - 36px);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 64px;
  padding: 11px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-nav-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #061018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 8px;
  font-weight: 950;
}

.admin-nav-item b,
.admin-nav-item small {
  display: block;
}

.admin-nav-item small {
  color: var(--muted);
}

.admin-nav-item.active {
  border-color: rgba(83, 224, 180, 0.75);
  background:
    radial-gradient(circle at 95% 20%, rgba(83, 224, 180, 0.2), transparent 36%),
    rgba(83, 224, 180, 0.09);
}

.admin-stage {
  display: block;
  min-width: 0;
}

.command-hero {
  margin-bottom: 14px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.admin-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.flow-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 224, 180, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.flow-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.flow-primary {
  border-color: rgba(83, 224, 180, 0.28);
}

.flow-head,
.card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.flow-head h2,
.card-top h3 {
  margin: 0;
}

.flow-head p,
.card-top p {
  margin: 4px 0 0;
  color: var(--muted);
}

.flow-icon,
.device-badge {
  display: grid;
  place-items: center;
  color: #061018;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 8px;
  font-weight: 950;
}

.flow-icon {
  width: 56px;
  height: 56px;
}

.flow-icon.ok {
  background: linear-gradient(135deg, #eef5ff, var(--green));
}

.device-badge {
  width: 46px;
  height: 46px;
}

.issue-grid.two {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.issue-grid.three {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.clean-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
}

.profile-grid,
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.profile-grid.single {
  grid-template-columns: 1fr;
}

.admin-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.profile-picker {
  display: grid;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.profile-picker-head b,
.profile-picker-head span,
.profile-pick-copy b,
.profile-pick-copy small {
  display: block;
}

.profile-picker-head span,
.profile-pick-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-picker-head input,
.profile-search-field input {
  width: min(320px, 100%);
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 16, 0.72);
}

.profile-picker-head input:focus,
.profile-search-field input:focus {
  border-color: rgba(83, 224, 180, 0.78);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.1);
}

.profile-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 248px;
  padding-right: 3px;
  overflow: auto;
}

.profile-pick {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-pick:hover {
  border-color: rgba(108, 191, 252, 0.58);
  background: rgba(108, 191, 252, 0.08);
}

.profile-pick.selected {
  border-color: rgba(83, 224, 180, 0.85);
  background: rgba(83, 224, 180, 0.13);
  box-shadow: inset 3px 0 0 var(--green);
}

.profile-pick-copy {
  min-width: 0;
}

.profile-pick-copy b,
.profile-pick-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-search-field {
  display: grid;
  gap: 5px;
  min-width: min(300px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-list {
  display: grid;
  gap: 9px;
}

.user-admin-card {
  grid-template-columns: minmax(230px, 1fr) minmax(190px, 0.75fr) minmax(280px, auto);
  align-items: center;
  box-shadow: none;
}

.user-profile-main {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.user-profile-copy {
  min-width: 0;
}

.user-profile-copy > small,
.user-profile-copy time {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.user-profile-copy h3 {
  margin: 2px 0 5px;
  overflow-wrap: anywhere;
}

.user-profile-copy p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.user-profile-copy p b {
  color: var(--cyan);
}

.user-admin-card .card-actions {
  justify-content: flex-end;
}

.ai-credit-summary {
  margin-bottom: 14px;
}

.ai-credit-card {
  grid-template-columns: minmax(200px, 0.8fr) minmax(150px, 0.5fr) minmax(0, 1.5fr);
}

.ai-credit-controls {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
}

.ai-credit-controls .btn {
  min-width: 0;
  padding: 8px 12px;
  line-height: 1.15;
  white-space: normal;
}

.ai-credit-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ai-credit-controls input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 16, 0.72);
}

.ai-credit-controls input:focus {
  border-color: rgba(83, 224, 180, 0.78);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.1);
}

.device-reference {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-filter-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.muted-card {
  opacity: 0.72;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-code-box {
  padding: 16px;
  color: #071018;
  text-align: center;
  letter-spacing: 0.08em;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef5ff, var(--green));
  font-size: 28px;
  font-weight: 950;
  user-select: all;
}

.qr-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(83, 224, 180, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(83, 224, 180, 0.14), transparent 34%),
    rgba(6, 10, 16, 0.48);
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 238px;
  height: 238px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 28px rgba(83, 224, 180, 0.18);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-panel h3 {
  margin: 0 0 8px;
}

.qr-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.config-grid label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.config-grid textarea {
  min-height: 210px;
  max-height: 300px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.admin-empty {
  min-height: 120px;
  align-content: center;
  border-color: var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.split-grid h3 {
  margin: 0 0 12px;
}

@media (max-width: 1100px) {
  body {
    min-width: 0;
  }

  .auth-page,
  .vega-main,
  .workspace-body,
  .admin-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-shell {
    min-height: 100vh;
    overflow: auto;
  }

  .vega-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .workspace-head {
    align-items: flex-start;
    gap: 12px;
  }

  .notification-panel {
    top: 92px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .admin-stats,
  .issue-grid,
  .issue-grid.two,
  .issue-grid.three,
  .qr-panel,
  .config-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .user-admin-card {
    grid-template-columns: 1fr;
  }

  .ai-credit-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-admin-card .card-actions {
    justify-content: flex-start;
  }

  .profile-picker-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-picker-head input,
  .profile-search-field input {
    width: 100%;
  }

  .admin-rail {
    position: static;
    min-height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-frame {
    width: min(238px, 100%);
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .admin-layout {
    gap: 10px;
    padding: 8px;
  }

  .admin-rail {
    padding: 12px;
  }

  .admin-main {
    padding: 0;
    overflow: visible;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-nav-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 8px;
    min-height: 68px;
    padding: 8px;
  }

  .admin-nav-item span {
    width: 36px;
    height: 36px;
  }

  .admin-nav-item b {
    overflow-wrap: anywhere;
  }

  .admin-nav-item small {
    font-size: 11px;
  }

  .admin-hero {
    grid-template-columns: minmax(0, 1fr) 58px;
    padding: 16px;
  }

  .admin-hero h1 {
    font-size: 27px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 12px;
  }

  .hero-mark {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .section,
  .flow-card {
    padding: 14px;
  }

  .profile-picker-list {
    grid-template-columns: 1fr;
    max-height: 280px;
  }
}

.vpn-admin-page {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.vpn-admin-page::before,
.vpn-admin-login::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, rgba(7, 11, 16, 0.94), rgba(7, 11, 16, 0.72)),
    url("./assets/xlgames-bg-nova.png") center / cover fixed;
}

.vpn-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.9);
}

.vpn-admin-brand,
.vpn-admin-account,
.vpn-admin-form-head,
.vpn-admin-selected,
.vpn-admin-history-row {
  display: flex;
  align-items: center;
}

.vpn-admin-brand,
.vpn-admin-account {
  gap: 12px;
}

.vpn-admin-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.vpn-admin-brand h1,
.vpn-admin-section-head h2,
.vpn-admin-form-head h2 {
  margin: 2px 0 0;
}

.vpn-admin-brand h1 {
  font-size: 24px;
}

.vpn-admin-account > div {
  min-width: 0;
}

.vpn-admin-account b,
.vpn-admin-account span {
  display: block;
}

.vpn-admin-account span {
  color: var(--muted);
  font-size: 12px;
}

.vpn-admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.vpn-admin-tabs button {
  display: grid;
  gap: 3px;
  min-height: 60px;
  padding: 10px 14px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.vpn-admin-tabs button span {
  color: var(--muted);
  font-size: 12px;
}

.vpn-admin-tabs button.active {
  border-color: rgba(83, 224, 180, 0.82);
  background: rgba(83, 224, 180, 0.12);
  box-shadow: inset 3px 0 0 var(--green);
}

.vpn-admin-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

.vpn-admin-users,
.vpn-admin-issue,
.vpn-admin-history {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.9);
}

.vpn-admin-users,
.vpn-admin-issue {
  min-height: 480px;
  padding: 16px;
}

.vpn-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vpn-admin-users > input {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 9px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: rgba(4, 9, 15, 0.76);
}

.vpn-admin-users > input:focus,
.vpn-admin-fields input:focus {
  border-color: rgba(83, 224, 180, 0.82);
  box-shadow: 0 0 0 3px rgba(83, 224, 180, 0.1);
}

.vpn-admin-user-list {
  display: grid;
  gap: 7px;
  max-height: 376px;
  padding-right: 3px;
  overflow: auto;
}

.vpn-admin-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.vpn-admin-user b,
.vpn-admin-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpn-admin-user small {
  margin-top: 3px;
  color: var(--muted);
}

.vpn-admin-user.selected {
  border-color: rgba(83, 224, 180, 0.9);
  background: rgba(83, 224, 180, 0.13);
  box-shadow: inset 3px 0 0 var(--green);
}

.vpn-admin-form-head {
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.vpn-admin-form-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.platform-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #061018;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 950;
}

.platform-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.vpn-admin-selected {
  gap: 11px;
  min-height: 76px;
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: rgba(83, 224, 180, 0.08);
}

.vpn-admin-selected b,
.vpn-admin-selected span {
  display: block;
}

.vpn-admin-selected span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.vpn-admin-selected.empty {
  border-left-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.vpn-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vpn-admin-fields.single {
  grid-template-columns: 1fr;
}

.vpn-admin-fields label,
.vpn-admin-login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vpn-admin-fields input,
.vpn-admin-login-form input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: rgba(4, 9, 15, 0.76);
}

.vpn-admin-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
}

.vpn-admin-issue .status {
  min-height: 22px;
  margin-top: 8px;
}

.vpn-admin-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vpn-admin-result-copy b,
.vpn-admin-result-copy small {
  display: block;
  margin-top: 7px;
}

.vpn-admin-result-copy small {
  color: var(--muted);
}

.vpn-admin-result img {
  grid-row: span 2;
  width: 164px;
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
}

.vpn-admin-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vpn-admin-history {
  margin-top: 12px;
  padding: 16px;
}

.vpn-admin-history-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.vpn-admin-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.vpn-admin-history-row b,
.vpn-admin-history-row span {
  display: block;
}

.vpn-admin-history-row > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.vpn-admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  width: min(920px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
}

.vpn-admin-login-brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.vpn-admin-login-brand h1 {
  margin: 8px 0;
  font-size: 42px;
}

.vpn-admin-login-brand p {
  max-width: 480px;
  color: var(--muted);
}

.vpn-admin-login-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 19, 28, 0.92);
}

@media (max-width: 800px) {
  .vpn-admin-page {
    width: min(100% - 16px, 720px);
    padding-top: 8px;
  }

  .vpn-admin-header,
  .vpn-admin-account {
    align-items: flex-start;
  }

  .vpn-admin-header {
    flex-direction: column;
  }

  .vpn-admin-account {
    width: 100%;
  }

  .vpn-admin-account .btn {
    margin-left: auto;
  }

  .vpn-admin-workspace,
  .vpn-admin-fields,
  .vpn-admin-result,
  .vpn-admin-login {
    grid-template-columns: 1fr;
  }

  .vpn-admin-users,
  .vpn-admin-issue {
    min-height: auto;
  }

  .vpn-admin-user-list {
    max-height: 310px;
  }

  .vpn-admin-result img {
    grid-row: auto;
    justify-self: center;
  }

  .vpn-admin-login {
    align-content: center;
    padding: 20px 0;
  }

  .vpn-admin-login-brand h1 {
    font-size: 34px;
  }
}

/* Installable iPhone web app */
.brand-home {
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
}

.brand-home:hover {
  background: transparent;
}

.settings-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.settings-shortcut img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-button-symbol,
.mobile-menu-button,
.mobile-back-button {
  display: none;
}

.install-vega {
  grid-column: 1 / -1;
  min-height: 44px;
  color: #061018;
  font-weight: 900;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.install-help-card {
  width: min(430px, calc(100vw - 28px));
  text-align: left;
}

.install-help-card > img {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  object-fit: contain;
}

.install-help-card h2 {
  margin: 5px 0 12px;
}

.install-steps {
  display: grid;
  gap: 10px;
  padding-left: 24px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  html,
  body,
  #app {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  body {
    position: fixed;
    inset: 0;
    overscroll-behavior: none;
  }

  button,
  input,
  textarea,
  select {
    font-size: 16px;
  }

  button,
  [role="button"] {
    touch-action: manipulation;
  }

  .app-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: calc(62px + env(safe-area-inset-top)) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    background-attachment: scroll;
  }

  .vega-header {
    z-index: 40;
    min-height: 0;
    height: calc(62px + env(safe-area-inset-top));
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(8, 14, 22, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(22px);
  }

  .brand-mini {
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .brand-mini .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-mini b,
  .brand-mini span {
    display: block;
  }

  .brand-mini b {
    font-size: 18px;
  }

  .brand-mini span {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-pills {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 7px;
  }

  .version-pill,
  .header-button-label,
  .settings-shortcut span {
    display: none;
  }

  .notification-bell,
  .settings-shortcut {
    width: 42px;
    height: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
  }

  .header-button-symbol {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    color: #081018;
    font-size: 13px;
    font-weight: 950;
    border-radius: 50%;
    background: var(--cyan);
  }

  .notification-bell.active .header-button-symbol {
    background: #ffbf5f;
    box-shadow: 0 0 18px rgba(255, 191, 95, 0.48);
  }

  .settings-shortcut img {
    width: 27px;
    height: 27px;
  }

  .notification-panel {
    position: fixed;
    top: calc(66px + env(safe-area-inset-top));
    right: max(9px, env(safe-area-inset-right));
    bottom: calc(9px + env(safe-area-inset-bottom));
    left: max(9px, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    border-radius: 8px;
  }

  .vega-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    gap: 0;
    overflow: hidden;
  }

  .app-nav,
  .workspace,
  .side-panel,
  .chat-pane {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-nav {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    overflow: hidden;
    background: rgba(7, 13, 21, 0.58);
  }

  .radial-menu {
    width: min(90vw, calc(100dvh - 205px), 390px);
    height: min(90vw, calc(100dvh - 205px), 390px);
    min-width: 278px;
    min-height: 278px;
    margin: auto;
  }

  .radial-svg {
    width: 100%;
    height: 100%;
  }

  .radial-center strong {
    font-size: clamp(18px, 5vw, 26px);
  }

  .profile-card {
    width: min(100%, 430px);
    min-height: 70px;
    justify-self: center;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    background: rgba(8, 15, 24, 0.86);
    backdrop-filter: blur(14px);
  }

  .profile-card .avatar.lg {
    width: 50px;
    height: 50px;
  }

  .install-vega {
    min-height: 42px;
  }

  .mobile-menu-visible .workspace {
    display: none;
  }

  .app-shell:not(.mobile-menu-visible) .app-nav {
    display: none;
  }

  .workspace {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: 58px minmax(0, 1fr);
    background: rgba(7, 13, 21, 0.78);
  }

  .workspace-head,
  .app-shell.tab-admin .workspace-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px max(12px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
    background: rgba(11, 18, 27, 0.86);
  }

  .workspace-head h1 {
    margin-top: 1px;
    font-size: 20px;
  }

  .workspace-head .eyebrow {
    font-size: 9px;
  }

  .mobile-menu-button,
  .mobile-back-button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-menu-button span,
  .mobile-back-button span {
    color: inherit;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-2px);
  }

  .workspace-body {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .side-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 14px max(13px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
  }

  .chat-pane {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(7, 13, 21, 0.86);
  }

  .app-shell .chat-pane {
    display: none;
  }

  .app-shell.tab-chats.mobile-detail .side-panel,
  .app-shell.tab-voice.mobile-detail .side-panel {
    display: none;
  }

  .app-shell.tab-chats.mobile-detail .chat-pane,
  .app-shell.tab-voice.mobile-detail .chat-pane,
  .app-shell.tab-admin .chat-pane {
    display: grid;
  }

  .app-shell.tab-admin .side-panel {
    display: none;
  }

  .app-shell.tab-admin .workspace-body {
    height: 100%;
  }

  .app-shell.tab-admin .messages {
    height: 100%;
  }

  .vpn-admin-frame {
    min-height: 0;
  }

  .chat-head {
    min-height: 62px;
    gap: 9px;
    justify-content: flex-start;
    padding: 9px max(12px, env(safe-area-inset-right)) 9px max(10px, env(safe-area-inset-left));
    background: rgba(14, 22, 32, 0.92);
  }

  .chat-head > div:first-of-type {
    min-width: 0;
    flex: 1 1 auto;
  }

  .chat-head h2 {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-head .row {
    margin-left: auto;
  }

  .messages {
    min-height: 0;
    padding: 12px max(11px, env(safe-area-inset-right)) 12px max(11px, env(safe-area-inset-left));
    overscroll-behavior: contain;
  }

  .message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    margin: 9px 0;
  }

  .message .avatar {
    width: 34px;
    height: 34px;
  }

  .message-body {
    min-width: 0;
    padding: 9px 10px;
  }

  .message-body p {
    overflow-wrap: anywhere;
  }

  .message-photo {
    max-width: 100%;
  }

  .composer {
    padding: 9px max(10px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: rgba(12, 19, 28, 0.96);
  }

  .composer-line {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .composer-line textarea {
    min-height: 44px;
    max-height: 108px;
  }

  .conversation-item,
  .person-row,
  .mini-tool-option {
    min-height: 58px;
  }

  .app-shell.tab-ai .side-panel,
  .app-shell.tab-translator .side-panel,
  .app-shell.tab-vpn .side-panel {
    padding: 12px max(11px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(11px, env(safe-area-inset-left));
  }

  .auth-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    padding: calc(24px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow: auto;
  }

  .brand-title {
    text-align: center;
  }

  .brand-title .mark {
    margin: 0 auto;
  }

  .brand-title h1 {
    font-size: 38px;
  }

  .auth-card {
    width: 100%;
    padding: 18px;
  }

  .splash-screen {
    min-height: 100vh;
    min-height: 100dvh;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .install-help-backdrop {
    padding: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .install-help-card {
    max-height: 100%;
    overflow: auto;
  }
}

@media (max-width: 370px), (max-height: 690px) and (max-width: 700px) {
  .radial-menu {
    width: min(84vw, calc(100dvh - 190px), 320px);
    height: min(84vw, calc(100dvh - 190px), 320px);
    min-width: 250px;
    min-height: 250px;
  }

  .profile-card {
    min-height: 60px;
  }

  .profile-card .avatar.lg {
    width: 42px;
    height: 42px;
  }
}
