:root {
  --ink: #132331;
  --muted: #667789;
  --line: #dbe5ea;
  --bg: #f5f8fa;
  --panel: #ffffff;
  --navy: #102a43;
  --cyan: #0e8fb5;
  --green: #2e9f6e;
  --red: #bd3b3b;
  --shadow: 0 18px 40px rgba(16, 42, 67, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main { min-height: calc(100vh - 72px); }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand, .topnav, .sidebar a, .admin-tab, .hero-actions, .captcha-line { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 800; font-size: 20px; }
.brand-icon { width: 34px; height: 34px; }
.topnav { gap: 20px; color: var(--muted); font-size: 14px; }
.topnav a:hover, .text-button:hover { color: var(--cyan); }
.nav-cta { color: var(--cyan); font-weight: 700; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vw, 86px) clamp(20px, 6vw, 90px);
  background:
    linear-gradient(125deg, rgba(16,42,67,.94), rgba(14,143,181,.72)),
    url("/public/img/datacenter.svg") center/cover;
  color: #fff;
}
.eyebrow { color: #a8e2f2; font-weight: 700; }
.hero h1 { font-size: clamp(46px, 7vw, 88px); margin: 10px 0; letter-spacing: 0; }
.hero p { max-width: 720px; line-height: 1.8; color: #e7f2f6; }
.hero-actions { gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-panel {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.26);
  padding: 28px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.signal-row { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.signal-row:last-child { border-bottom: 0; }
.signal-row strong { font-size: 26px; }

.section, .content { padding: 36px clamp(18px, 4vw, 42px); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-head p, .page-head p, .panel p { color: var(--muted); line-height: 1.7; }
.product-grid, .catalog, .metric-grid { display: grid; gap: 18px; }
.product-grid, .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.product-card, .panel, .metric, .auth-card, .server-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.product-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.product-card p { color: var(--muted); line-height: 1.6; min-height: 52px; }
.product-card ul { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.card-icon, .large-icon { width: 42px; height: 42px; }
.price { font-size: 28px; font-weight: 800; color: var(--cyan); margin-top: auto; }
.price span { font-size: 14px; color: var(--muted); }

.button {
  min-height: 42px;
  border-radius: 6px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.button.primary { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.button.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.42); }
.button.danger { background: var(--red); border-color: var(--red); color: #fff; }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; }

.center-panel { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); padding: 30px; display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.captcha-line { gap: 10px; }
.captcha { width: 190px; height: 64px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.form-message { min-height: 22px; color: var(--muted); margin: 0; }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--green); }

.workspace, .admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  background: #0f2435;
  color: #cbd8e0;
  min-height: calc(100vh - 72px);
  padding: 22px 16px;
}
.sidebar a, .admin-tab { gap: 10px; padding: 12px; border-radius: 6px; margin-bottom: 6px; }
.sidebar a:hover, .admin-tab:hover, .admin-tab.active { background: rgba(255,255,255,.08); color: #fff; }
.sidebar img, .admin-tab img { width: 20px; height: 20px; filter: invert(1); opacity: .86; }
.admin-tab {
  width: 100%;
  border: 0;
  background: transparent;
  color: #cbd8e0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.admin-panel[hidden] { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 30px; }
.panel { padding: 22px; margin-bottom: 18px; }
.metric { padding: 18px; display: grid; gap: 8px; }
.metric img { width: 28px; height: 28px; }
.metric span { color: var(--muted); }
.metric strong { font-size: 30px; }
.balance-metric .button { width: max-content; }
.recharge-panel { max-width: 520px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.span-2 { grid-column: span 2; }
.compact-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.compact-form[data-admin-message-form] {
  grid-template-columns: 180px minmax(220px, 280px) minmax(260px, 360px);
  align-items: start;
  max-width: 960px;
}
.compact-form[data-admin-message-form] select,
.compact-form[data-admin-message-form] input {
  min-height: 42px;
  height: 42px;
  padding: 8px 12px;
}
.compact-form[data-admin-message-form] textarea {
  grid-column: 1 / -1;
  min-height: 92px;
  padding: 10px 12px;
}
.compact-form[data-admin-message-form] .button {
  width: 180px;
  min-height: 42px;
  grid-column: 1;
}
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px; font-size: 14px; }
th { color: var(--muted); font-weight: 700; background: #f7fafb; }
.status { display: inline-flex; min-width: 70px; justify-content: center; padding: 5px 8px; border-radius: 999px; background: #edf8f4; color: #20734d; font-size: 12px; font-weight: 700; }
.status.inactive, .status.stopped, .status.closed { background: #f3f5f7; color: #687782; }
.server-list { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 760px; }
.server-card { padding: 20px; }
.server-summary-card { cursor: pointer; min-height: 112px; }
.server-summary-card:hover { border-color: var(--cyan); transform: translateY(-2px); transition: .18s ease; }
.server-title-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}
.server-title-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}
.server-state-icon { width: 22px; height: 22px; }
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-button img { width: 17px; height: 17px; }
.server-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.server-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}
.server-status-card.state-pending { background: #fff7df; border-color: #f3d27b; }
.server-status-card.state-maintenance { background: #fff0f0; border-color: #efb7b7; }
.state-icon { width: 48px; height: 48px; }
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.detail-title-row h1 { margin: 0; font-size: 20px; }
.detail-title-row p { color: var(--muted); margin: 0; }
.detail-hero {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1.4fr) auto minmax(170px, .8fr) 80px 80px minmax(150px, .8fr) minmax(300px, 1.3fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  padding: 22px 24px;
  margin-bottom: 24px;
  border: 1px solid #edf1f5;
}
.detail-power {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 20px rgba(28, 62, 110, .18);
  background: #eff6ff;
}
.detail-power img { width: 38px; height: 38px; }
.detail-name h2 { margin: 0 0 7px; font-size: 22px; }
.detail-name p { margin: 0; color: var(--ink); }
.detail-badge {
  background: #33c77a;
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  justify-self: start;
}
.detail-spec {
  display: grid;
  gap: 8px;
  min-height: 54px;
  border-left: 1px solid #e7edf2;
  padding-left: 18px;
}
.detail-spec span, .muted-title, .detail-meta-strip span { color: #7b8794; font-size: 13px; }
.detail-spec strong { font-size: 17px; }
.detail-spec.wide { min-width: 160px; }
.detail-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.detail-actions .button.primary { background: #0567ff; border-color: #0567ff; }
.detail-main-card, .detail-tabs-card, .detail-console-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}
.server-activation-wrap { position: relative; display: grid; gap: 16px; }
.server-activation-wrap.is-pending > :not(.activation-mask) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.activation-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid rgba(6, 103, 255, .18);
  border-radius: 8px;
  background: rgba(247, 250, 253, .72);
  color: #0f2d44;
  font-size: 24px;
  font-weight: 800;
  backdrop-filter: blur(2px);
}
.detail-login-strip, .detail-billing-strip, .detail-meta-strip {
  background: #f7f8fb;
  padding: 24px;
  margin-bottom: 12px;
}
.detail-login-strip, .detail-billing-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 118px;
}
.detail-login-strip p, .detail-billing-strip p { margin: 5px 0; }
.blue-text { color: #4e79ff; }
.copy-secret {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.copy-secret:hover { text-decoration: underline; }
.big-price { color: #4e79ff; font-size: 25px; margin: 5px 0 20px; }
.renew-line { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-weight: 700; }
.toggle-fake {
  width: 42px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: #c7d0da;
  position: relative;
  cursor: pointer;
}
.toggle-fake::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 1px;
  left: 1px;
  transition: .18s ease;
}
.toggle-fake.active { background: #28b98b; }
.toggle-fake.active::after { left: 23px; }
.pill {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 6px 14px;
  font-weight: 700;
}
.pill.green { background: #28b98b; }
.pill.red { background: #ff6872; }
.days-left { color: #8b95a1; align-self: flex-start; }
.detail-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 18px;
  margin-bottom: 0;
  align-items: start;
}
.detail-meta-strip > div { display: flex; gap: 12px; align-items: center; }
.meta-note {
  grid-column: 1 / -1;
  border-top: 1px solid #e8edf2;
  padding-top: 16px;
}
.detail-console-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: center;
}
.console-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f8fb;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 18px;
}
.console-status img { width: 42px; height: 42px; }
.console-status span { display: block; color: #7b8794; font-size: 13px; margin-bottom: 6px; }
.console-status strong { font-size: 17px; }
.console-status.state-pending { background: #fff7df; border-color: #f3d27b; }
.console-status.state-maintenance { background: #fff0f0; border-color: #efb7b7; }
.console-action-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 10px;
}
.detail-console-card.is-processing .console-action-panel {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.detail-console-card.is-processing::after {
  content: "操作处理中...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  color: #0567ff;
  font-weight: 800;
  z-index: 2;
}
.detail-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e8edf2;
  margin-bottom: 18px;
}
.detail-tabs button {
  border: 0;
  background: transparent;
  padding: 11px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.detail-tabs button.active { color: #0567ff; border-bottom: 2px solid #0567ff; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.chart-grid h2 { font-size: 22px; font-weight: 500; }
.fake-chart {
  height: 150px;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 18px;
}
.fake-chart span {
  flex: 1;
  min-height: 14px;
  background: #37c58b;
  border-radius: 5px 5px 0 0;
}
.fake-chart.blue span { background: #4e79ff; }
.action-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  width: min(520px, calc(100vw - 32px));
}
.action-dialog::backdrop { background: rgba(16, 42, 67, .34); }
.reinstall-dialog {
  width: min(800px, calc(100vw - 48px));
  padding: 0;
}
.reinstall-dialog form { margin: 0; }
.suspend-dialog { padding: 0; }
.suspend-dialog form { margin: 0; }
.suspend-notice {
  display: grid;
  gap: 10px;
  padding: 22px;
  color: #4a5568;
  line-height: 1.7;
}
.suspend-notice p {
  margin: 0;
  background: #f7fafb;
  border-radius: 6px;
  padding: 10px 12px;
}
.dialog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8edf2;
  padding: 18px 22px;
}
.dialog-title-row h2 {
  border-left: 3px solid #0567ff;
  margin: 0;
  padding-left: 14px;
  font-size: 18px;
}
.dialog-close {
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.reinstall-drawer-form {
  display: grid;
  gap: 18px;
  padding: 28px 44px 46px;
  min-height: 214px;
}
.reinstall-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.reinstall-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 24px;
  align-items: center;
}
.drawer-label {
  color: #4d5966;
  font-weight: 700;
  text-align: right;
}
.drawer-select { position: relative; }
.drawer-trigger {
  width: 100%;
  height: 38px;
  border: 1px solid #c9d3df;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font: inherit;
}
.drawer-trigger::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa6b2;
  margin-left: 12px;
}
.drawer-trigger:focus { outline: 2px solid rgba(5, 103, 255, .22); border-color: #0567ff; }
.drawer-trigger span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.drawer-trigger img { width: 22px; height: 22px; flex: 0 0 auto; }
.drawer-menu {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 5px;
  box-shadow: 0 16px 34px rgba(25, 39, 52, .14);
  overflow: hidden;
}
.system-drawer-menu { max-height: 378px; overflow-y: auto; }
.version-drawer-menu { max-height: 482px; overflow-y: auto; }
.drawer-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #4d5966;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-align: left;
  font: inherit;
}
.drawer-option img { width: 22px; height: 22px; flex: 0 0 auto; }
.drawer-option:hover, .drawer-option.active { background: #f4f6f8; color: var(--ink); }
.version-option.active { background: #767676; color: #fff; }
.backup-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4d5966;
  font-weight: 700;
}
.backup-check input { width: 16px; height: 16px; }
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e8edf2;
  padding: 16px 18px;
}
.dialog-footer .button {
  width: 64px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.reinstall-picker {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(180px, .7fr);
  gap: 18px;
  margin: 18px 0;
}
.os-choice-list, .version-choice-list { display: grid; gap: 10px; margin-top: 10px; }
.os-choice, .version-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.os-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
}
.os-choice img { width: 34px; height: 34px; flex: 0 0 auto; }
.version-choice { padding: 13px 14px; text-align: center; }
.os-choice.active, .version-choice.active {
  border-color: #0567ff;
  box-shadow: 0 0 0 3px rgba(5, 103, 255, .12);
  color: #0567ff;
}
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-card {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}
.pay-card input {
  position: absolute;
  top: 16px;
  right: 16px;
  width: auto;
}
.pay-logo {
  width: 92px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pay-logo img { display: block; object-fit: contain; }
.pay-logo.alipay img {
  width: 150px;
  height: 150px;
  max-width: none;
  transform: translate(-1px, -2px);
}
.pay-logo.wechat img {
  width: 58px;
  height: 58px;
}
.ticket-thread { max-height: 260px; overflow: auto; display: grid; gap: 10px; margin-bottom: 14px; }
.ticket-message { background: #f7fafb; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.message-panel { padding: 20px; }
.message-table-wrap { min-height: 220px; background: #f8fafc; }
.message-table { width: 100%; border-collapse: collapse; background: #fff; }
.message-table th, .message-table td {
  border-bottom: 1px solid #edf1f5;
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}
.message-table th { background: #f6f8fb; font-size: 13px; }
.message-table td p { margin: 6px 0 0; color: #4a5568; line-height: 1.6; }
.message-empty { height: 150px; text-align: center !important; vertical-align: middle !important; color: var(--muted); }
.message-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.message-pager { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.pager-button, .pager-current {
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d4dce6;
  color: var(--ink);
  text-decoration: none;
}
.pager-current { background: #0567ff; border-color: #0567ff; color: #fff; }
.pager-button.disabled { color: #b6c1cc; background: #f4f7fa; }
.meter { height: 8px; background: #edf2f5; border-radius: 999px; overflow: hidden; margin: 7px 0 14px; }
.meter span { display: block; height: 100%; background: var(--cyan); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-list { display: grid; gap: 12px; }
.ticket-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfdfe; }
.region-grid, .plan-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.region-card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 210px;
  font: inherit;
  color: var(--ink);
}
.region-card:hover { border-color: var(--cyan); transform: translateY(-2px); transition: .18s ease; }
.region-card span, .plan-topline span { color: var(--muted); font-size: 13px; font-weight: 700; }
.region-card strong { font-size: 26px; }
.region-card p, .plan-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.region-section[hidden], .region-grid[hidden] { display: none; }
.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
  min-height: 320px;
}
.plan-topline, .plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card h3 { margin: 0; font-size: 22px; }
.plan-spec {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 700;
}
.plan-spec span { color: var(--muted); margin: 0 8px; }
.plan-warning {
  padding: 8px 10px;
  border: 1px solid #ffd6a8;
  background: #fff8ed;
  color: #9a5b00 !important;
  border-radius: 6px;
  font-weight: 700;
}
.plan-price {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
}
.order-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.order-detail-shell[hidden] { display: none; }
.order-detail-main,
.order-summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.order-detail-main { min-width: 0; }
.order-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.order-detail-title h2 {
  margin: 0;
  font-size: 18px;
}
.accent-line {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #0567ff;
}
.order-config-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}
.order-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.order-row > strong {
  font-size: 14px;
}
.selected-pill,
.readonly-field,
.option-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 700;
}
.selected-pill {
  width: max-content;
  background: #0567ff;
  color: #fff;
  border-color: #0567ff;
}
.selected-pill img,
.readonly-field img {
  width: 20px;
  height: 20px;
}
.order-os-selectors {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 280px);
  gap: 12px;
  max-width: 540px;
}
.order-os-selectors select {
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
}
.selected-pill img { filter: invert(1); }
.option-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-strip span {
  min-width: 72px;
  justify-content: center;
  background: #f3f6f9;
}
.option-strip span.active {
  background: #0567ff;
  color: #fff;
  border-color: #0567ff;
}
.readonly-meter {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) max-content;
  align-items: center;
  gap: 12px;
}
.readonly-meter span {
  height: 5px;
  border-radius: 999px;
  background: #2d49f2;
}
.readonly-meter output {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}
.order-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.order-summary-card {
  padding-bottom: 20px;
  position: sticky;
  top: 88px;
}
.order-summary-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.order-summary-card dl div,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.order-summary-card dt {
  color: var(--muted);
}
.order-summary-card dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.summary-total {
  padding: 18px 24px 8px;
}
.summary-total strong {
  font-size: 22px;
  color: var(--cyan);
}
.order-inline-message {
  margin: 8px 20px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f6f9fb;
}
.order-inline-message.success {
  background: #eefaf4;
}
.order-inline-message.error {
  background: #fff3f3;
}
.summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 20px 0;
}
.order-message { margin: 4px 0 18px; }
.config-preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  padding: 16px;
}
.config-preview p { margin: 6px 0; color: var(--muted); }
.config-preview ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .hero, .workspace, .admin-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; display: grid; grid-template-columns: repeat(2, 1fr); }
  .product-grid, .catalog, .server-list, .metric-grid, .region-grid, .plan-grid, .server-detail-grid, .pay-grid, .detail-hero, .detail-meta-strip, .detail-console-card, .chart-grid, .order-detail-shell { grid-template-columns: 1fr; }
  .form-grid, .compact-form { grid-template-columns: 1fr; }
  .compact-form[data-admin-message-form] { grid-template-columns: 1fr; max-width: none; }
  .compact-form[data-admin-message-form] .button { width: 100%; }
  .span-2 { grid-column: auto; }
  .section-head, .page-head { align-items: start; flex-direction: column; }
  .detail-spec { border-left: 0; padding-left: 0; border-top: 1px solid #e7edf2; padding-top: 12px; }
  .detail-login-strip, .detail-billing-strip, .detail-meta-strip { flex-direction: column; align-items: flex-start; }
  .detail-actions { justify-content: flex-start; }
  .order-summary-card { position: static; }
  .order-row { grid-template-columns: 1fr; gap: 8px; }
  .order-os-selectors { grid-template-columns: 1fr; max-width: none; }
  .readonly-meter { grid-template-columns: 1fr; }
  .readonly-meter output { text-align: left; }
  .console-action-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reinstall-drawer-form { padding: 22px; }
  .reinstall-row { grid-template-columns: 1fr; gap: 10px; }
  .reinstall-controls { grid-template-columns: 1fr; }
  .drawer-label { text-align: left; }
  .reinstall-picker { grid-template-columns: 1fr; }
  .meta-note { grid-column: auto; }
}

@media (max-width: 620px) {
  .topbar { height: auto; padding: 14px 18px; align-items: flex-start; gap: 12px; flex-direction: column; }
  .topnav { flex-wrap: wrap; gap: 12px; }
  main { min-height: auto; }
  .hero { min-height: 520px; padding: 42px 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
  .captcha-line { align-items: stretch; flex-direction: column; }
}
