@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --app-bg: #e8edf3;
  --shell-bg: #f3f6f9;
  --sidebar: #0b1018;
  --sidebar-soft: #121925;
  --topbar: #ffffff;
  --chat-bg: #e9eef3;
  --panel: #ffffff;
  --bubble-in: #ffffff;
  --bubble-out: #dceaff;
  --bubble-out-line: #bfd6ff;
  --ink: #263244;
  --ink-strong: #0b1220;
  --muted: #667085;
  --muted-dark: #98a2b3;
  --line: #d8e0ea;
  --line-strong: #c4ceda;
  --brand: #1769ff;
  --brand-dark: #0d54d8;
  --telegram: #1769ff;
  --web: #16875e;
  --danger: #d92d20;
  --danger-dark: #b42318;
  --focus: rgba(23, 105, 255, 0.22);
  --apple-bg: #f3f6f9;
  --apple-glass: #ffffff;
  --apple-glass-strong: #ffffff;
  --apple-stroke: rgba(15, 23, 42, 0.13);
  --apple-stroke-soft: rgba(15, 23, 42, 0.09);
  --apple-label: #0b1220;
  --apple-secondary: #667085;
  --apple-tertiary: #98a2b3;
  --apple-blue: #1769ff;
  --apple-purple: #1769ff;
  --apple-green: #16875e;
  --apple-orange: #d97706;
  --apple-red: #d92d20;
  --apple-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  --vs-surface: #ffffff;
  --vs-surface-soft: #f8fafc;
  --vs-surface-raised: #ffffff;
  --vs-stroke: #d8e0ea;
  --vs-stroke-soft: #e8edf3;
  --vs-text: #0b1220;
  --vs-muted: #667085;
  --vs-subtle: #98a2b3;
  --vs-accent: #1769ff;
  --vs-accent-soft: rgba(23, 105, 255, 0.1);
  --vs-sidebar: #0b1018;
  --vs-sidebar-text: #e5eaf1;
  --vs-sidebar-muted: #8490a2;
  --vs-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --vs-radius: 8px;
  font-family: "Pretendard", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  --app-bg: #070a0f;
  --shell-bg: #0d121a;
  --topbar: #111722;
  --chat-bg: #101722;
  --panel: #111722;
  --bubble-in: #17202d;
  --bubble-out: #173158;
  --bubble-out-line: #264c82;
  --ink: #d8dee8;
  --ink-strong: #f4f7fb;
  --muted: #98a2b3;
  --muted-dark: #8490a2;
  --line: #293140;
  --line-strong: #3a4556;
  --brand: #4f8fff;
  --brand-dark: #73a6ff;
  --focus: rgba(79, 143, 255, 0.24);
  --apple-bg: #0d121a;
  --apple-glass: #111722;
  --apple-glass-strong: #17202d;
  --apple-stroke: rgba(255, 255, 255, 0.13);
  --apple-stroke-soft: rgba(255, 255, 255, 0.08);
  --apple-label: #f4f7fb;
  --apple-secondary: #a7b0bf;
  --apple-tertiary: #737f91;
  --apple-blue: #4f8fff;
  --apple-purple: #4f8fff;
  --apple-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  --vs-surface: #111722;
  --vs-surface-soft: #0d131c;
  --vs-surface-raised: #17202d;
  --vs-stroke: #293140;
  --vs-stroke-soft: #202837;
  --vs-text: #f4f7fb;
  --vs-muted: #a7b0bf;
  --vs-subtle: #737f91;
  --vs-accent: #4f8fff;
  --vs-accent-soft: rgba(79, 143, 255, 0.14);
  --vs-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

* {
  letter-spacing: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 112, 133, 0.45) transparent;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

body {
  min-height: 100dvh;
  background: var(--app-bg);
  color: var(--ink);
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:active,
.server-console-link:active,
.home-actions a:active,
.home-login-link:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid var(--vs-stroke);
  border-radius: var(--vs-radius);
  color: var(--vs-text);
  background: var(--vs-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--vs-accent);
  box-shadow: 0 0 0 3px var(--focus);
}

button {
  border-radius: var(--vs-radius);
  background: var(--vs-accent);
  box-shadow: none;
  font-weight: 650;
}

button:hover {
  background: var(--brand-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.secondary,
.auth-switch {
  color: var(--vs-text);
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface-soft);
}

.secondary:hover,
.auth-switch:hover {
  color: var(--vs-text);
  background: var(--vs-surface-raised);
}

.panel,
.list-row,
.empty {
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
}

.panel {
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow);
}

.panel-head h2,
.panel-head h3,
.list-row strong {
  color: var(--vs-text);
}

.panel-head p,
.list-row span,
.hint {
  color: var(--vs-muted);
}

/* Public home */
body.is-home {
  overflow-x: hidden;
  background: #070a0f;
}

body.is-home .shell {
  display: block;
  min-height: 100dvh;
  padding: 0;
}

.home-panel {
  min-height: 100dvh;
  display: block;
  overflow: visible;
  color: #ffffff;
  background: #070a0f;
}

.home-nav {
  position: relative;
  z-index: 10;
  width: min(1480px, 100%);
  min-height: 80px;
  margin: 0 auto;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 15, 0.9);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.home-brand {
  gap: 12px;
}

.home-brand span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--vs-radius);
  color: #ffffff;
  background: #1769ff;
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.home-brand strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
}

.home-nav-actions {
  gap: 10px;
}

.language-switch,
.theme-switch--home {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--vs-radius);
  background: rgba(255, 255, 255, 0.06);
}

.language-switch button,
.theme-switch--home button {
  min-height: 32px;
  color: rgba(255, 255, 255, 0.7);
}

.language-switch button:hover,
.language-switch button.active,
.theme-switch--home button:hover,
.theme-switch--home button.active,
html[data-theme="dark"] .theme-switch--home button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.home-login-link {
  min-height: 40px;
  padding: 8px 16px;
  color: #ffffff;
  border: 1px solid #1769ff;
  background: #1769ff;
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.24);
}

.home-login-link:hover {
  color: #ffffff;
  background: #0d54d8;
}

.home-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100dvh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 56px;
  margin: 0;
  padding: 64px max(32px, calc((100vw - 1416px) / 2));
  overflow: hidden;
  background-image: url("/assets/idc-hero.png");
  background-position: center;
  background-size: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 12, 0.96) 0%, rgba(4, 7, 12, 0.82) 40%, rgba(4, 7, 12, 0.24) 76%, rgba(4, 7, 12, 0.1) 100%);
}

.home-copy {
  gap: 20px;
  max-width: 720px;
  transform: none;
}

.home-kicker {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #b9c7dc;
  background: rgba(9, 15, 24, 0.5);
  font-size: 12px;
  font-weight: 650;
}

.home-copy h1 {
  max-width: 700px;
  color: #ffffff;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 760;
}

.home-copy p {
  max-width: 620px;
  color: #bac4d2;
  font-size: 17px;
  line-height: 1.7;
}

.home-actions {
  gap: 10px;
}

.home-actions button,
.home-actions a {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--vs-radius);
  font-weight: 650;
}

.home-actions button {
  color: #ffffff;
  background: #1769ff;
  box-shadow: 0 10px 30px rgba(23, 105, 255, 0.28);
}

.home-actions button:hover {
  color: #ffffff;
  background: #0d54d8;
}

.home-actions a {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 15, 24, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  align-content: end;
  gap: 10px;
  transform: none;
}

.home-visual::before,
.home-visual::after,
.network-lines {
  display: none;
}

.orbit-card,
.orbit-card-main,
.orbit-card-side,
.orbit-card-small {
  position: static;
  min-width: 0;
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--vs-radius);
  color: #ffffff;
  background: rgba(6, 11, 18, 0.74);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  transform: none;
}

.orbit-card-main {
  grid-column: 1 / -1;
  min-height: 138px;
}

.orbit-card span {
  color: #98a8bd;
  font-size: 11px;
  font-weight: 650;
}

.orbit-card strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 720;
}

.orbit-card p {
  color: #c3ccd8;
  font-size: 13px;
}

.home-ip-tool {
  width: 100%;
  margin: 0;
  padding: 44px max(32px, calc((100vw - 1416px) / 2));
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.2fr);
  gap: 48px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1118;
}

.home-ip-copy span {
  padding: 0;
  border: 0;
  color: #5e96ff;
  background: transparent;
}

.home-ip-copy h2 {
  color: #ffffff;
  font-size: 28px;
}

.home-ip-copy p {
  color: #98a6b9;
}

.home-ip-form {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--vs-radius);
  background: #111822;
  box-shadow: none;
}

.home-ip-form input {
  color: #ffffff;
  border-color: #303b4c;
  background: #0b1018;
}

.home-ip-form button {
  color: #ffffff;
  background: #1769ff;
  box-shadow: none;
}

.home-products {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 max(32px, calc((100vw - 1416px) / 2)) 48px;
  background: #0c1118;
}

.home-products article,
.home-products article:nth-child(2) {
  min-height: 150px;
  padding: 24px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  background: transparent;
  transform: none;
}

.home-products article:last-child {
  border-right: 0;
}

.home-products span {
  color: #5e96ff;
  font-size: 12px;
}

.home-products h2 {
  color: #ffffff;
  font-size: 18px;
}

.home-products p {
  color: #98a6b9;
}

/* Authentication */
body.is-login {
  background-color: #070a0f;
  background-image: linear-gradient(90deg, rgba(4, 7, 12, 0.62), rgba(4, 7, 12, 0.9)), url("/assets/idc-hero.png");
  background-position: center;
  background-size: cover;
}

body.is-login .shell {
  min-height: 100dvh;
  place-items: center end;
  padding: 32px max(32px, calc((100vw - 1320px) / 2));
}

.login-panel {
  width: min(440px, 100%);
  max-height: calc(100dvh - 64px);
  overflow: auto;
  gap: 20px;
  padding: 86px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--vs-radius);
  color: #ffffff;
  background: rgba(12, 17, 24, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
}

.login-panel h1 {
  color: #ffffff;
  font-size: 26px;
}

.login-panel p,
.login-panel label {
  color: #aeb9c8;
}

.login-panel input {
  color: #ffffff;
  border-color: #344052;
  background: #0a0f16;
}

.login-panel input::placeholder {
  color: #6d7889;
}

.login-panel form > button[type="submit"] {
  min-height: 46px;
}

.login-toolbar {
  top: 16px;
}

.login-back,
.theme-switch--login {
  border-color: rgba(255, 255, 255, 0.12);
  color: #d4dbe5;
  background: rgba(255, 255, 255, 0.06);
}

.theme-switch--login button {
  color: #aeb9c8;
}

.theme-switch--login button.active,
html[data-theme="dark"] .theme-switch--login button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Product shell */
body.is-app .shell {
  width: 100%;
  min-height: 100dvh;
  display: block;
  padding: 0;
}

.app-panel {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  grid-template-columns: 248px minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: var(--shell-bg);
  box-shadow: none;
}

.topbar {
  gap: 10px;
  padding: 14px 12px 12px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--vs-sidebar);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar > div:first-child,
html[data-theme="dark"] .topbar > div:first-child {
  min-height: 66px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  row-gap: 2px;
  align-content: center;
  padding: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar > div:first-child::before {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--vs-radius);
  color: #ffffff;
  background: #1769ff;
  box-shadow: 0 8px 22px rgba(23, 105, 255, 0.25);
  font-size: 15px;
  font-weight: 760;
}

.brand-eyebrow {
  grid-column: 2;
  grid-row: 1;
  color: #66758b;
  font-size: 10px;
  font-weight: 650;
}

.topbar h1,
html[data-theme="dark"] .topbar h1 {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: #f5f7fa;
  font-size: 16px;
  font-weight: 680;
}

#status {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8490a2;
  font-size: 11px;
}

.top-actions {
  gap: 8px;
}

.tabs {
  gap: 2px;
  padding: 0 2px;
}

.nav-group-label {
  margin: 14px 10px 5px;
  color: #596579;
  font-size: 10px;
  font-weight: 650;
}

.tab,
html[data-theme="dark"] .tab {
  min-height: 40px;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--vs-sidebar-muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
}

.tab::before {
  display: none;
}

.tab svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.tab:hover,
html[data-theme="dark"] .tab:hover {
  color: var(--vs-sidebar-text);
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active,
html[data-theme="dark"] .tab.active {
  color: #ffffff;
  border-color: rgba(79, 143, 255, 0.28);
  background: rgba(23, 105, 255, 0.18);
  box-shadow: inset 3px 0 0 #4f8fff;
}

.tab.active svg {
  color: #73a6ff;
}

.session-actions,
html[data-theme="dark"] .session-actions {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 2px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.session-actions .theme-switch--sidebar {
  padding: 3px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.theme-switch--sidebar button {
  min-height: 30px;
  padding: 5px 7px;
  color: #768398;
}

.theme-switch--sidebar button.active,
html[data-theme="dark"] .theme-switch--sidebar button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

#homeButton,
#logoutButton,
html[data-theme="dark"] #homeButton,
html[data-theme="dark"] #logoutButton {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  color: #8490a2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

#homeButton:hover,
#logoutButton:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

#homeButton svg,
#logoutButton svg {
  width: 15px;
  height: 15px;
}

.view,
.chat-view,
.shop-view,
.store-view,
.server-manage-view,
.support-view,
.nav-view,
.agency-view,
.admin-view,
.interface-view,
.accelerator-store-view,
html[data-theme="dark"] .chat-view,
html[data-theme="dark"] .shop-view,
html[data-theme="dark"] .store-view,
html[data-theme="dark"] .server-manage-view,
html[data-theme="dark"] .support-view,
html[data-theme="dark"] .nav-view,
html[data-theme="dark"] .agency-view,
html[data-theme="dark"] .admin-view,
html[data-theme="dark"] .interface-view {
  background: var(--shell-bg);
}

/* Chat */
.roombar,
html[data-theme="dark"] .roombar {
  min-height: 68px;
  padding: 12px 16px;
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.roombar label {
  gap: 4px;
  color: var(--vs-subtle);
  font-size: 11px;
  font-weight: 600;
}

.roombar select {
  min-height: 34px;
  padding-block: 6px;
  font-size: 13px;
}

.chat-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.room-list-panel,
html[data-theme="dark"] .room-list-panel {
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
}

.room-list-head {
  min-height: 48px;
  padding: 0 14px;
  border-color: var(--vs-stroke);
}

.room-list-item {
  min-height: 58px;
  margin: 2px 7px;
  border-radius: 7px;
}

.room-list-item.active {
  color: #ffffff;
  background: #1769ff;
}

.messages {
  padding: 14px 24px 16px;
  gap: 6px;
  background: var(--chat-bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.17) 1px, transparent 1px);
  background-size: 28px 28px;
}

html[data-theme="dark"] .messages {
  background-color: var(--chat-bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.message {
  max-width: min(880px, 78%);
}

.bubble {
  border-radius: 9px 9px 9px 3px;
  padding: 7px 9px 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.message.outgoing .bubble {
  border-radius: 9px 9px 3px 9px;
}

.avatar {
  background: #1769ff;
}

.composer,
html[data-theme="dark"] .composer {
  min-height: 64px;
  padding: 10px 14px;
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.composer input {
  min-height: 42px;
  background: var(--vs-surface-soft);
}

.composer button {
  width: 40px;
  height: 40px;
  background: var(--vs-accent);
}

.notice-strip,
.pinned-strip {
  background: var(--vs-surface-soft);
}

/* Commerce */
.shop-head,
html[data-theme="dark"] .shop-head {
  min-height: 82px;
  padding: 16px 22px;
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.commerce-kicker {
  min-height: auto;
  margin-bottom: 4px;
  color: var(--vs-accent);
  font-size: 10px;
  font-weight: 700;
}

.shop-head h2,
.store-section-head h2 {
  color: var(--vs-text);
  font-size: 24px;
  font-weight: 720;
}

.shop-head p,
.store-section-head p {
  color: var(--vs-muted);
  font-size: 13px;
}

.store-balance,
html[data-theme="dark"] .store-balance {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--vs-stroke);
  border-radius: var(--vs-radius);
  background: var(--vs-surface-soft);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.store-balance strong {
  color: var(--vs-text);
  font-size: 20px;
}

.store-body,
.shop-body,
.server-manage-body {
  gap: 16px;
  padding: 16px 22px 24px;
}

.store-main {
  gap: 12px;
}

.store-promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--vs-stroke);
  border-radius: var(--vs-radius);
  background: var(--vs-stroke);
}

.store-promo-card,
.store-promo-card:nth-child(2),
.store-promo-card:nth-child(3),
html[data-theme="dark"] .store-promo-card {
  min-height: 96px;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  color: var(--vs-text);
  background: var(--vs-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.store-promo-card::after {
  display: none;
}

.store-promo-card div {
  gap: 3px;
}

.store-promo-card span {
  padding: 0;
  border: 0;
  color: var(--vs-subtle);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}

.store-promo-card strong {
  color: var(--vs-text);
  font-size: 17px;
  font-weight: 680;
}

.store-promo-card p {
  color: var(--vs-muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-promo-card button,
html[data-theme="dark"] .store-promo-card button {
  min-width: 86px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--vs-accent);
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface-soft);
  box-shadow: none;
  font-size: 12px;
}

.store-promo-card button:hover {
  color: #ffffff;
  border-color: var(--vs-accent);
  background: var(--vs-accent);
}

.store-section-head {
  align-items: end;
  padding: 14px 2px 4px;
}

.store-filter-tabs {
  gap: 6px;
}

.store-filter-tabs button,
.server-package-tabs button,
html[data-theme="dark"] .store-filter-tabs button,
html[data-theme="dark"] .server-package-tabs button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--vs-muted);
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: none;
  font-size: 12px;
}

.store-filter-tabs button.active,
.server-package-tabs button.active,
html[data-theme="dark"] .store-filter-tabs button.active,
html[data-theme="dark"] .server-package-tabs button.active {
  color: #ffffff;
  border-color: var(--vs-accent);
  background: var(--vs-accent);
  box-shadow: none;
}

.server-products {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.server-market-card,
html[data-theme="dark"] .server-market-card {
  min-width: 0;
  align-content: start;
  grid-template-rows: 94px auto auto;
  border: 1px solid var(--vs-stroke);
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transform: none;
}

.server-market-card:hover {
  border-color: rgba(23, 105, 255, 0.5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transform: none;
}

.server-card-visual {
  min-height: 94px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  background-image: linear-gradient(90deg, rgba(5, 9, 14, 0.94), rgba(5, 9, 14, 0.32)), url("/assets/idc-hero.png");
  background-position: center;
  background-size: cover;
}

.server-card-visual::before,
.server-card-visual::after,
.server-rig,
.server-card-glow {
  display: none;
}

.server-visual-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  color: #ffffff;
}

.server-visual-copy svg {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  color: #76a8ff;
}

.server-visual-copy span {
  color: #9facc0;
  font-size: 9px;
  font-weight: 650;
}

.server-visual-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-visual-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c3ccd8;
  font-size: 9px;
  font-weight: 650;
}

.server-visual-status b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 3px rgba(50, 213, 131, 0.16);
}

.server-card-content {
  gap: 8px;
  padding: 13px 14px 10px;
}

.server-code-pill,
.server-stock-pill,
.server-tag-row span,
html[data-theme="dark"] .server-code-pill,
html[data-theme="dark"] .server-stock-pill,
html[data-theme="dark"] .server-tag-row span {
  min-height: 21px;
  padding: 3px 7px;
  color: var(--vs-muted) !important;
  border: 1px solid var(--vs-stroke-soft);
  background: var(--vs-surface-soft);
  font-size: 10px !important;
  font-weight: 580 !important;
}

.server-stock-pill {
  color: #16875e !important;
}

.server-market-card h3 {
  min-height: 38px;
  color: var(--vs-text);
  font-size: 16px;
  line-height: 1.32;
  font-weight: 680;
}

.server-tag-row {
  gap: 4px !important;
}

.server-specs,
html[data-theme="dark"] .server-specs {
  min-height: 0;
  max-height: 58px;
  overflow: hidden;
  padding: 8px 9px;
  color: var(--vs-muted);
  border: 1px solid var(--vs-stroke-soft);
  border-radius: 6px;
  background: var(--vs-surface-soft);
  font-size: 12px;
  line-height: 1.4;
}

.server-description {
  min-height: 36px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--vs-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.server-price-line {
  margin-top: 2px;
}

.server-price-line strong {
  color: var(--vs-text);
  font-size: 25px;
  font-weight: 720;
}

.server-price-line span,
.server-price-note {
  color: var(--vs-subtle) !important;
  font-size: 11px !important;
}

.server-buy-form {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  padding: 0 14px 14px;
}

.server-buy-form textarea {
  min-height: 42px;
  max-height: 70px;
  padding: 9px 10px;
  font-size: 12px;
}

.server-buy-form input {
  min-height: 42px;
  padding: 9px;
}

.server-buy-summary,
html[data-theme="dark"] .server-buy-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  padding: 8px 10px;
  border: 1px solid var(--vs-stroke-soft);
  border-radius: 6px;
  background: var(--vs-surface-soft);
}

.server-buy-summary span,
.server-buy-summary strong {
  font-size: 11px;
}

.server-buy-summary strong {
  grid-column: 1 / -1;
  color: #16875e;
}

.server-buy-form button {
  min-height: 40px;
  background: var(--vs-accent);
  box-shadow: none;
  font-size: 13px;
}

.server-buy-form button:hover {
  background: var(--brand-dark);
}

.server-console-link,
html[data-theme="dark"] .server-console-link {
  min-height: 40px;
  color: #ffffff;
  border: 1px solid var(--vs-accent);
  background: var(--vs-accent);
  box-shadow: none;
}

.server-console-link::before {
  background: #32d583;
}

.server-manage-overview {
  gap: 10px;
}

.server-manage-overview article,
html[data-theme="dark"] .server-manage-overview article {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: none;
}

.server-manage-overview article::after {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.server-renewal-panel,
.server-orders-panel,
.server-telegram-panel,
html[data-theme="dark"] .server-renewal-panel,
html[data-theme="dark"] .server-orders-panel,
html[data-theme="dark"] .server-telegram-panel {
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: none;
}

/* Admin workspaces */
.admin-view {
  padding: 0;
  background: var(--shell-bg);
}

.admin-section-tabs,
html[data-theme="dark"] .admin-section-tabs {
  min-height: 62px;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  padding: 10px 16px;
  overflow-x: auto;
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-section-tabs button,
html[data-theme="dark"] .admin-section-tabs button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--vs-muted);
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
}

.admin-section-tabs button svg {
  width: 16px;
  height: 16px;
}

.admin-section-tabs button:hover,
.admin-section-tabs button.active,
html[data-theme="dark"] .admin-section-tabs button:hover,
html[data-theme="dark"] .admin-section-tabs button.active {
  color: var(--vs-accent);
  border-color: rgba(23, 105, 255, 0.2);
  background: var(--vs-accent-soft);
}

.admin-grid {
  width: min(1560px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 12px;
  padding: 16px;
}

.admin-grid > .panel {
  padding: 16px;
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.user-management-panel,
.server-commerce-panel,
html[data-theme="dark"] .user-management-panel,
html[data-theme="dark"] .server-commerce-panel {
  padding: 0 !important;
  border: 1px solid var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.user-management-head,
.server-commerce-head {
  padding: 18px 20px;
  border-color: var(--vs-stroke);
}

.user-management-head h2,
.server-commerce-head h2 {
  color: var(--vs-text);
  font-size: 22px;
}

.user-summary-grid,
.server-commerce-summary {
  gap: 6px;
}

.user-summary-grid div,
.server-commerce-summary div,
html[data-theme="dark"] .user-summary-grid div,
html[data-theme="dark"] .server-commerce-summary div {
  min-height: 60px;
  padding: 8px 10px;
  border-color: var(--vs-stroke-soft);
  background: var(--vs-surface-soft);
}

.user-create-panel,
.server-product-create,
html[data-theme="dark"] .user-create-panel,
html[data-theme="dark"] .server-product-create {
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
}

.user-tools,
.server-customer-tools,
.server-order-tools,
html[data-theme="dark"] .user-tools,
html[data-theme="dark"] .server-customer-tools,
html[data-theme="dark"] .server-order-tools {
  top: 62px;
  gap: 7px;
  margin: 12px 20px;
  padding: 7px;
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.user-search-field,
.server-customer-search,
html[data-theme="dark"] .user-search-field,
html[data-theme="dark"] .server-customer-search {
  grid-template-columns: 20px minmax(0, 1fr);
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
}

.user-search-field > svg,
.server-customer-search > svg {
  width: 16px;
  height: 16px;
  color: var(--vs-subtle);
}

.user-management-workspace,
.server-customer-workspace {
  min-height: 540px;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  border-color: var(--vs-stroke);
}

.user-directory,
.server-customer-directory,
html[data-theme="dark"] .user-directory,
html[data-theme="dark"] .server-customer-directory {
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
}

.user-directory-item,
.server-customer-item {
  min-height: 60px;
}

.user-directory-item.active,
.server-customer-item.active,
html[data-theme="dark"] .user-directory-item.active,
html[data-theme="dark"] .server-customer-item.active {
  border-color: rgba(23, 105, 255, 0.2);
  background: var(--vs-accent-soft);
}

.user-avatar,
.server-customer-avatar {
  background: #1769ff;
  box-shadow: none;
}

.user-detail,
.server-customer-detail,
html[data-theme="dark"] .user-detail,
html[data-theme="dark"] .server-customer-detail {
  padding: 20px;
  background: var(--vs-surface);
}

.user-metric-grid > div,
.user-setting-section,
.server-customer-summary-card,
.server-admin-card,
.server-admin-note,
.server-admin-delivery,
.server-admin-edit-panel,
html[data-theme="dark"] .user-metric-grid > div,
html[data-theme="dark"] .user-setting-section,
html[data-theme="dark"] .server-customer-summary-card,
html[data-theme="dark"] .server-admin-card,
html[data-theme="dark"] .server-admin-note,
html[data-theme="dark"] .server-admin-delivery,
html[data-theme="dark"] .server-admin-edit-panel {
  border-color: var(--vs-stroke-soft);
  background: var(--vs-surface-soft);
}

.server-commerce-tabs,
html[data-theme="dark"] .server-commerce-tabs {
  gap: 6px;
  padding: 10px 20px;
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
}

.server-commerce-tabs button,
html[data-theme="dark"] .server-commerce-tabs button {
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border-color: var(--vs-stroke-soft);
  background: var(--vs-surface);
}

.server-commerce-tab-icon {
  width: 30px;
  height: 30px;
}

.server-commerce-tab-icon svg {
  width: 16px;
  height: 16px;
}

.server-commerce-tabs button.active,
html[data-theme="dark"] .server-commerce-tabs button.active {
  border-color: rgba(23, 105, 255, 0.24);
  background: var(--vs-accent-soft);
}

.server-commerce-tabs button.active .server-commerce-tab-icon {
  background: var(--vs-accent);
}

.server-transfer-guide,
.server-transfer-form,
.server-product-create,
html[data-theme="dark"] .server-transfer-guide,
html[data-theme="dark"] .server-transfer-form,
html[data-theme="dark"] .server-product-create {
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
}

/* Dark correction for legacy surfaces */
html[data-theme="dark"] body,
html[data-theme="dark"] body.is-home {
  background: #070a0f;
}

html[data-theme="dark"] .app-panel {
  border-color: var(--vs-stroke);
  background: var(--shell-bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .topbar {
  border-right-color: rgba(255, 255, 255, 0.07);
  background: var(--vs-sidebar);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .copy-field {
  color: var(--vs-text);
  border-color: var(--vs-stroke);
  background: var(--vs-surface-soft);
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .list-row,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .account-records,
html[data-theme="dark"] .balance-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .server-owned-card,
html[data-theme="dark"] .renewal-focus,
html[data-theme="dark"] .server-inventory {
  color: var(--vs-text);
  border-color: var(--vs-stroke);
  background: var(--vs-surface);
  box-shadow: none;
}

html[data-theme="dark"] .home-panel {
  background: #070a0f;
}

html[data-theme="dark"] .home-products article,
html[data-theme="dark"] .home-ip-tool,
html[data-theme="dark"] .orbit-card {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1180px) {
  .app-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .store-promo-card p {
    display: none;
  }

  .server-products {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }

  .home-copy h1 {
    font-size: 50px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  body.is-app .shell {
    padding: 0;
  }

  .app-panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: 116px minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }

  .app-panel .topbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    grid-template-rows: 54px 48px;
    gap: 4px;
    padding: 4px 8px 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .app-panel .topbar > div:first-child,
  html[data-theme="dark"] .app-panel .topbar > div:first-child {
    height: 54px;
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 9px 18px 14px;
    column-gap: 10px;
    row-gap: 1px;
    padding: 4px 6px;
  }

  .topbar > div:first-child::before {
    width: 38px;
    height: 38px;
  }

  .topbar h1,
  html[data-theme="dark"] .topbar h1 {
    font-size: 14px;
  }

  .app-panel .top-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .app-panel .tabs {
    display: flex;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding: 0;
  }

  .tab,
  html[data-theme="dark"] .tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    gap: 6px;
    padding: 6px 9px;
    white-space: nowrap;
    font-size: 11px;
  }

  .tab svg {
    width: 16px;
    height: 16px;
  }

  .tab.active,
  html[data-theme="dark"] .tab.active {
    box-shadow: inset 0 -2px 0 #4f8fff;
  }

  .nav-group-label {
    display: none;
  }

  .app-panel .session-actions,
  html[data-theme="dark"] .app-panel .session-actions {
    display: flex;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .session-actions .theme-switch--sidebar {
    width: auto;
    padding: 2px;
  }

  .theme-switch--sidebar button {
    min-width: 30px;
    padding: 4px;
  }

  .theme-switch--sidebar button em,
  #homeButton span,
  #logoutButton span {
    display: none;
  }

  #homeButton,
  #logoutButton {
    width: 32px;
    min-width: 32px;
    height: 34px;
    padding: 0;
  }

  .chat-view,
  .shop-view,
  .store-view,
  .server-manage-view,
  .support-view,
  .nav-view,
  .agency-view,
  .admin-view,
  .interface-view,
  .accelerator-store-view {
    grid-column: 1;
    grid-row: 2;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .room-list-panel {
    max-height: 118px;
  }

  .messages {
    padding-inline: 12px;
  }

  .message {
    max-width: 94%;
  }

  .shop-head,
  html[data-theme="dark"] .shop-head {
    min-height: 76px;
    padding: 12px 16px;
  }

  .shop-head h2,
  .store-section-head h2 {
    font-size: 21px;
  }

  .store-body,
  .shop-body,
  .server-manage-body {
    padding: 14px 16px 20px;
  }

  .store-promo-grid {
    grid-template-columns: 1fr;
  }

  .store-promo-card,
  .store-promo-card:nth-child(2),
  .store-promo-card:nth-child(3) {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .store-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .store-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .store-filter-tabs button {
    flex: 0 0 auto;
  }

  .server-products {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .admin-section-tabs {
    min-height: 56px;
    padding: 8px 10px;
  }

  .user-management-head,
  .server-commerce-head {
    display: grid;
    padding: 16px;
  }

  .user-tools,
  .server-customer-tools,
  .server-order-tools {
    position: static;
    margin: 10px 16px;
  }

  .user-management-workspace,
  .server-customer-workspace {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .user-directory-list,
  .server-customer-directory-list {
    max-height: 240px;
  }

  .user-detail,
  .server-customer-detail {
    padding: 16px;
  }

  .home-nav {
    min-height: 72px;
    padding: 12px 16px;
  }

  .home-hero {
    min-height: calc(100dvh - 126px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 20px 28px;
    background-position: 60% center;
  }

  .home-hero::before {
    background: linear-gradient(90deg, rgba(4, 7, 12, 0.94), rgba(4, 7, 12, 0.58)), linear-gradient(0deg, rgba(4, 7, 12, 0.72), transparent 46%);
  }

  .home-copy h1 {
    font-size: 40px;
  }

  .home-copy p {
    font-size: 15px;
  }

  .home-visual {
    min-height: 0;
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .orbit-card,
  .orbit-card-main {
    grid-column: auto;
    min-height: 90px;
    padding: 12px;
  }

  .orbit-card strong {
    font-size: 24px;
  }

  .orbit-card p {
    display: none;
  }

  .home-ip-tool {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 20px;
  }

  .home-products {
    grid-template-columns: 1fr;
    padding: 0 20px 36px;
  }

  .home-products article {
    min-height: 118px;
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .home-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 112px;
  }

  .home-nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .language-switch {
    justify-self: center;
  }

  .home-login-link {
    white-space: nowrap;
  }

  .home-hero {
    min-height: calc(100dvh - 154px);
    padding-top: 34px;
  }

  .home-copy h1 {
    font-size: 34px;
    line-height: 1.12;
  }

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

  .home-actions button,
  .home-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .orbit-card,
  .orbit-card-main {
    min-height: 78px;
    padding: 9px;
  }

  .orbit-card span {
    font-size: 9px;
  }

  .orbit-card strong {
    font-size: 20px;
  }

  body.is-login .shell {
    align-items: stretch;
    padding: 0;
  }

  .login-panel {
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    align-content: center;
    padding: 88px 24px 30px;
    border: 0;
    border-radius: 0;
    background: rgba(8, 12, 18, 0.92);
  }

  .app-panel {
    grid-template-rows: 116px minmax(0, 1fr);
  }

  .app-panel .topbar {
    grid-template-rows: 54px 48px;
    gap: 4px;
    padding: 4px 8px 6px;
  }

  .app-panel .topbar > div:first-child,
  html[data-theme="dark"] .app-panel .topbar > div:first-child {
    height: 54px;
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 9px 18px 14px;
    column-gap: 10px;
    row-gap: 1px;
    padding: 4px 6px;
  }

  .app-panel .top-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
  }

  .app-panel .tabs {
    width: 100%;
    max-width: none;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding: 0;
  }

  .app-panel .session-actions,
  html[data-theme="dark"] .app-panel .session-actions {
    display: flex;
    grid-template-columns: none;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .brand-eyebrow {
    font-size: 9px;
  }

  .session-actions .theme-switch--sidebar {
    display: none;
  }

  .tab,
  html[data-theme="dark"] .tab {
    min-height: 40px;
    padding: 5px 8px;
  }

  .roombar {
    min-height: 60px;
    padding: 9px 12px;
  }

  .shop-head,
  .store-view .shop-head,
  .server-manage-view .shop-head,
  .agency-view .shop-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .shop-head p {
    display: none;
  }

  .store-balance {
    min-width: 92px;
    padding: 8px 10px;
  }

  .store-balance strong {
    font-size: 17px;
  }

  .server-products {
    grid-template-columns: 1fr;
  }

  .server-market-card h3 {
    min-height: 0;
  }

  .server-buy-summary {
    grid-template-columns: 1fr;
  }

  .server-buy-summary strong {
    grid-column: 1;
  }

  .server-manage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .server-console-link {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .admin-section-tabs button {
    min-height: 38px;
    padding: 7px 9px;
  }

  .admin-section-tabs button svg {
    width: 15px;
    height: 15px;
  }

  .user-summary-grid,
  .server-commerce-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-tools,
  .server-customer-tools,
  .server-order-tools {
    grid-template-columns: 1fr;
  }

  .user-search-field,
  .server-customer-search,
  .user-tools #userSearchCount,
  .server-customer-tools > span,
  .server-order-tools > span {
    grid-column: 1;
  }

  .user-metric-grid,
  .server-admin-overview,
  .server-order-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* Shared SL brand mark */
.home-brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.home-brand .brand-mark img,
.login-brand-lockup > img,
.delivery-brand-lockup > img,
.app-brand-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.login-brand-copy {
  display: grid;
  gap: 12px;
}

.login-brand-lockup,
.delivery-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-lockup > img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.login-brand-lockup > div,
.delivery-brand-lockup > div {
  min-width: 0;
}

.login-brand-lockup span {
  display: block;
  margin-bottom: 5px;
  color: #e14b5f;
  font-size: 10px;
  font-weight: 760;
}

.login-brand-lockup h1 {
  margin: 0;
}

.delivery-heading {
  display: grid;
  gap: 10px;
}

.delivery-brand-lockup > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.delivery-brand-lockup h1 {
  margin: 2px 0 0;
}

.topbar > div:first-child::before {
  content: none;
  display: none;
}

.app-brand-mark {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
  .app-brand-mark {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 620px) {
  .app-panel .app-brand-mark {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .home-nav,
  .orbit-card,
  .login-panel,
  .home-actions a {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Enterprise IDC homepage refinement, inspired by Korean infrastructure sites. */
body.is-home,
html[data-theme="dark"] body.is-home {
  background: #f3f6f9;
}

.home-panel,
html[data-theme="dark"] .home-panel {
  min-height: 100dvh;
  color: #141820;
  background: #f3f6f9;
}

.home-nav {
  width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 0 max(28px, calc((100vw - 1420px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border: 0;
  background: #171a20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-brand {
  flex: 0 0 auto;
  gap: 11px;
}

.home-brand span {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: #1769ff;
  box-shadow: none;
}

.home-brand strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 720;
  white-space: nowrap;
}

.home-service-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.home-service-nav a {
  padding: 29px 0 27px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

.home-service-nav a:hover {
  color: #ffffff;
  border-bottom-color: #4f8fff;
}

.home-nav-actions {
  gap: 8px;
}

.language-switch,
.theme-switch--home {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.language-switch button,
.theme-switch--home button {
  min-height: 32px;
  color: rgba(255, 255, 255, 0.68);
}

.language-switch button:hover,
.language-switch button.active,
.theme-switch--home button:hover,
.theme-switch--home button.active,
html[data-theme="dark"] .theme-switch--home button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.home-login-link {
  min-height: 42px;
  padding: 9px 18px;
  color: #ffffff;
  border-color: #1769ff;
  background: #1769ff;
  box-shadow: none;
  font-weight: 680;
}

.home-hero {
  width: min(1420px, calc(100% - 56px));
  min-height: calc(100dvh - 108px);
  margin: 0 auto;
  padding: 44px 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: 68px;
  overflow: visible;
  background: transparent;
}

.home-hero::before {
  display: none;
}

.home-copy {
  max-width: 640px;
  gap: 22px;
  transform: none;
}

.home-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: #3f4c5f;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1769ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}

.home-copy h1 {
  max-width: 640px;
  color: #11151b;
  font-size: 52px;
  line-height: 1.06;
  font-weight: 790;
}

.home-copy h1 span,
.home-copy h1 strong {
  display: block;
}

.home-copy h1 strong {
  margin-top: 5px;
  color: #1769ff;
  font-weight: 790;
}

.home-copy p {
  max-width: 590px;
  color: #5f6978;
  font-size: 16px;
  line-height: 1.75;
}

.home-actions {
  gap: 10px;
}

.home-actions button,
.home-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--vs-radius);
  font-weight: 680;
  white-space: nowrap;
}

.home-actions button {
  color: #ffffff;
  background: #1769ff;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.18);
}

.home-actions button:hover {
  color: #ffffff;
  background: #0d54d8;
}

.home-actions a {
  color: #222a36;
  border-color: #cfd7e2;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-actions a:hover {
  color: #1769ff;
  border-color: #9ebcf1;
  background: #ffffff;
}

.home-actions svg {
  width: 17px;
  height: 17px;
}

.home-metrics {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #ccd4df;
}

.home-metrics > div {
  min-width: 0;
  padding: 16px 13px 0 0;
  border-right: 1px solid #d9e0e8;
}

.home-metrics > div:not(:first-child) {
  padding-left: 13px;
}

.home-metrics > div:last-child {
  border-right: 0;
}

.home-metrics strong,
.home-metrics span {
  display: block;
}

.home-metrics strong {
  color: #141820;
  font-family: "SF Mono", "Cascadia Mono", monospace;
  font-size: 20px;
  font-weight: 760;
}

.home-metrics span {
  margin-top: 5px;
  color: #7b8492;
  font-size: 10px;
  font-weight: 650;
}

.home-hero-media {
  height: min(540px, calc(100dvh - 205px));
  min-height: 430px;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d4dbe4;
  border-radius: var(--vs-radius);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(23, 35, 54, 0.12);
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: right center;
  filter: brightness(1.16) contrast(0.96);
  transform: scale(1.1);
  transform-origin: right center;
}

.home-hero-media figcaption {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: #161b23;
  border-top: 1px solid #e0e5ec;
  background: #ffffff;
}

.home-hero-media figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1769ff;
  font-size: 11px;
}

.home-hero-media figcaption svg {
  width: 16px;
  height: 16px;
}

.home-hero-media figcaption strong {
  color: #596474;
  font-size: 12px;
  font-weight: 620;
  text-align: right;
}

.home-products {
  width: 100%;
  margin: 0;
  display: block;
  padding: 84px max(28px, calc((100vw - 1420px) / 2));
  color: #141820;
  background: #ffffff;
}

.home-section-head {
  max-width: 720px;
  display: grid;
  gap: 10px;
}

.home-section-head > span,
.home-ip-copy > span,
.home-closing > span {
  color: #1769ff;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.home-section-head h2 {
  color: #141820;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 750;
}

.home-section-head p {
  color: #687282;
  font-size: 15px;
  line-height: 1.7;
}

.home-product-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfd7e2;
  border-bottom: 1px solid #cfd7e2;
}

.home-product-grid article,
.home-product-grid article:nth-child(2) {
  position: relative;
  min-height: 250px;
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 12px;
  color: #141820;
  border: 0;
  border-right: 1px solid #dce2e9;
  background: transparent;
  transform: none;
}

.home-product-grid article:last-child {
  border-right: 0;
}

.home-product-grid article:hover {
  background: #f7f9fc;
}

.home-product-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #1769ff;
  border: 1px solid rgba(23, 105, 255, 0.2);
  border-radius: var(--vs-radius);
  background: rgba(23, 105, 255, 0.07);
}

.home-product-icon svg {
  width: 19px;
  height: 19px;
}

.home-product-grid article > span {
  position: absolute;
  top: 30px;
  right: 28px;
  color: #a1aab7;
  font-family: "SF Mono", "Cascadia Mono", monospace;
  font-size: 11px;
}

.home-product-grid h3 {
  color: #161b23;
  font-size: 19px;
  font-weight: 720;
}

.home-product-grid p {
  color: #687282;
  font-size: 13px;
  line-height: 1.7;
}

.home-ip-tool,
html[data-theme="dark"] .home-ip-tool {
  width: 100%;
  margin: 0;
  padding: 72px max(28px, calc((100vw - 1420px) / 2));
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: 70px;
  color: #141820;
  border: 0;
  border-top: 1px solid #d9e0e8;
  background: #edf3fa;
}

.home-ip-copy {
  max-width: 520px;
  gap: 10px;
}

.home-ip-copy > span {
  padding: 0;
  border: 0;
  background: transparent;
}

.home-ip-copy h2 {
  color: #141820;
  font-size: 32px;
  font-weight: 750;
}

.home-ip-copy p {
  color: #657181;
  line-height: 1.7;
}

.home-ip-form {
  min-height: 112px;
  padding: 16px;
  border: 1px solid #d0dae6;
  border-radius: var(--vs-radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(35, 54, 81, 0.07);
}

.home-ip-form label {
  color: #566171;
}

.home-ip-form input,
html[data-theme="dark"] .home-ip-form input {
  color: #141820;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.home-ip-form button {
  color: #ffffff;
  background: #1769ff;
  box-shadow: none;
}

.home-ip-form .hint {
  color: #667085;
}

.home-ip-result {
  grid-column: 1 / -1;
  color: #141820;
  border-color: #cfd9e6;
  background: #ffffff;
}

.home-closing {
  min-height: 370px;
  padding: 74px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #141820;
  border-top: 1px solid #dce2e9;
  background: #f8fafc;
  text-align: center;
}

.home-closing h2 {
  max-width: 800px;
  color: #141820;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 760;
}

.home-closing p {
  max-width: 650px;
  color: #687282;
  line-height: 1.7;
}

.home-closing button {
  width: auto;
  min-height: 48px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: #ffffff;
  background: #1769ff;
}

.home-closing button svg {
  width: 17px;
  height: 17px;
}

.home-footer {
  min-height: 100px;
  padding: 20px max(28px, calc((100vw - 1420px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.58);
  background: #171a20;
}

.home-footer-brand span {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.home-footer p {
  font-size: 12px;
}

html[data-theme="dark"] body.is-home {
  background: #0c1016;
}

html[data-theme="dark"] .home-panel {
  color: #f3f6fa;
  background: #0c1016;
}

html[data-theme="dark"] .home-kicker {
  color: #a5b0bf;
}

html[data-theme="dark"] .home-copy h1,
html[data-theme="dark"] .home-metrics strong,
html[data-theme="dark"] .home-section-head h2,
html[data-theme="dark"] .home-product-grid h3,
html[data-theme="dark"] .home-ip-copy h2,
html[data-theme="dark"] .home-closing h2 {
  color: #f5f7fa;
}

html[data-theme="dark"] .home-copy p,
html[data-theme="dark"] .home-section-head p,
html[data-theme="dark"] .home-product-grid p,
html[data-theme="dark"] .home-ip-copy p,
html[data-theme="dark"] .home-closing p {
  color: #9ca7b6;
}

html[data-theme="dark"] .home-actions a {
  color: #e6ebf2;
  border-color: #343e4d;
  background: #151b24;
}

html[data-theme="dark"] .home-actions a:hover {
  color: #73a6ff;
  border-color: #4c6590;
  background: #182131;
}

html[data-theme="dark"] .home-metrics {
  border-color: #323b49;
}

html[data-theme="dark"] .home-metrics > div {
  border-color: #2a3340;
}

html[data-theme="dark"] .home-metrics span {
  color: #7f8a9b;
}

html[data-theme="dark"] .home-hero-media {
  border-color: #2b3441;
  background: #111720;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .home-hero-media figcaption {
  color: #f2f5f9;
  border-color: #293240;
  background: #111720;
}

html[data-theme="dark"] .home-hero-media figcaption strong {
  color: #9ba7b7;
}

html[data-theme="dark"] .home-products {
  color: #f3f6fa;
  background: #11161e;
}

html[data-theme="dark"] .home-product-grid {
  border-color: #313a48;
}

html[data-theme="dark"] .home-product-grid article,
html[data-theme="dark"] .home-product-grid article:nth-child(2) {
  color: #f3f6fa;
  border-color: #29323f;
  background: transparent;
}

html[data-theme="dark"] .home-product-grid article:hover {
  background: #151c26;
}

html[data-theme="dark"] .home-ip-tool {
  color: #f3f6fa;
  border-color: #29323f;
  background: #0d131b;
}

html[data-theme="dark"] .home-ip-form {
  border-color: #303a48;
  background: #141b25;
  box-shadow: none;
}

html[data-theme="dark"] .home-ip-form label,
html[data-theme="dark"] .home-ip-form .hint {
  color: #9ba7b7;
}

html[data-theme="dark"] .home-ip-form input {
  color: #f2f5f9;
  border-color: #364151;
  background: #0d131b;
}

html[data-theme="dark"] .home-ip-result {
  color: #f2f5f9;
  border-color: #303a48;
  background: #141b25;
}

html[data-theme="dark"] .home-closing {
  color: #f3f6fa;
  border-color: #29323f;
  background: #11161e;
}

@media (max-width: 1180px) {
  .home-nav {
    gap: 20px;
  }

  .home-service-nav {
    gap: 18px;
  }

  .home-service-nav a {
    font-size: 12px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 42px;
  }

  .home-copy h1 {
    font-size: 50px;
  }

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

  .home-product-grid article:nth-child(2) {
    border-right: 0;
  }

  .home-product-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #dce2e9;
  }
}

@media (max-width: 940px) {
  .home-service-nav {
    display: none;
  }

  .home-nav {
    grid-template-columns: auto 1fr;
  }

  .home-nav-actions {
    justify-self: end;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 0 60px;
  }

  .home-copy {
    max-width: 760px;
  }

  .home-copy h1 {
    max-width: 760px;
  }

  .home-hero-media {
    height: 520px;
    min-height: 0;
  }

  .home-ip-tool,
  html[data-theme="dark"] .home-ip-tool {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .home-nav {
    min-height: 112px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-brand strong {
    font-size: 15px;
  }

  .home-nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-self: stretch;
  }

  .language-switch {
    justify-self: center;
  }

  .home-login-link {
    white-space: nowrap;
  }

  .home-hero {
    width: calc(100% - 32px);
    padding: 24px 0 28px;
    gap: 20px;
  }

  .home-copy {
    gap: 14px;
  }

  .home-copy h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .home-copy p {
    font-size: 14px;
  }

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

  .home-actions button,
  .home-actions a {
    width: 100%;
    padding-inline: 10px;
    font-size: 13px;
  }

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

  .home-metrics > div {
    padding: 10px 8px 8px 0;
    border-bottom: 1px solid #d9e0e8;
  }

  .home-metrics > div:nth-child(even) {
    border-right: 0;
  }

  .home-metrics > div:nth-child(n + 3) {
    padding-top: 10px;
    border-bottom: 0;
  }

  .home-metrics strong {
    font-size: 18px;
  }

  .home-metrics span {
    margin-top: 3px;
  }

  .home-hero-media {
    height: 160px;
  }

  .home-hero-media img {
    transform: scale(1.04);
  }

  .home-hero-media figcaption {
    display: none;
  }

  .home-products {
    padding: 60px 16px;
  }

  .home-section-head h2,
  .home-ip-copy h2,
  .home-closing h2 {
    font-size: 28px;
  }

  .home-product-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .home-product-grid article,
  .home-product-grid article:nth-child(2) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid #dce2e9;
  }

  .home-product-grid article:last-child {
    border-bottom: 0;
  }

  .home-ip-tool,
  html[data-theme="dark"] .home-ip-tool {
    padding: 56px 16px;
  }

  .home-ip-form {
    grid-template-columns: 1fr;
  }

  .home-ip-form button {
    min-height: 44px;
  }

  .home-closing {
    min-height: 340px;
    padding: 60px 20px;
  }

  .home-footer {
    min-height: 120px;
    padding: 22px 16px;
    align-items: flex-start;
    flex-direction: column;
  }
}
