/* Customer dashboard shell, matched to the VMHeaven console layout. */
body.vmh {
  --bg: #0c0c0d;
  --fg: #f2f2f3;
  --muted: #8d8d93;
  --line: rgba(255, 255, 255, 0.08);
  --card: #111113;
  --raised: #18181b;
  --sans: Inter, "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}

body.vmh::before { display: none; }

body.vmh .sidebar {
  width: 248px;
  padding: 1.15rem 0.85rem 1rem;
  background: #0e0e10;
  border-right: 1px solid var(--line);
}

body.vmh .sidebar-logo {
  padding: 0.35rem 0.7rem 1.15rem;
  margin: 0;
  gap: 0.55rem;
}

body.vmh .sidebar-logo span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

body.vmh .sidebar-logo svg { width: 18px; height: 18px; }

body.vmh .sidebar-nav { padding: 0; gap: 0.1rem; }

body.vmh .nav-section-label {
  margin: 1.05rem 0.7rem 0.35rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d6d73;
}

body.vmh .nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.48rem 0.7rem;
  border-radius: 8px;
  color: #c8c8cc;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}

body.vmh .nav-item .nav-icon { width: 16px; height: 16px; opacity: 0.8; }

body.vmh .nav-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }

body.vmh .nav-item.active {
  background: #1c1c20;
  color: #fff;
}

body.vmh .nav-item.active::before { display: none; }

body.vmh .sidebar-foot {
  margin-top: auto;
  padding: 1rem 0.7rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.vmh .sidebar-foot a {
  color: #6f6f75;
  font-size: 0.78rem;
  text-decoration: none;
}

body.vmh .sidebar-foot a:hover { color: #ddd; }

body.vmh .logout-link {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
  text-align: left;
  color: #6f6f75;
}

body.vmh .content { margin-left: 248px; min-height: 100vh; background: #0c0c0d; }

body.vmh .topbar {
  height: 58px;
  padding: 0 1.6rem;
  background: #0c0c0d;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.vmh .vmh-crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #8a8a90;
  font-size: 0.82rem;
}

body.vmh .vmh-crumb strong { color: #f3f3f4; font-weight: 500; }

body.vmh .topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

body.vmh .vmh-balance {
  color: #d7d7db;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

body.vmh .vmh-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #eee;
  font-size: 0.88rem;
  background: none;
  border: 0;
  cursor: pointer;
}

body.vmh .vmh-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2a2a30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

body.vmh .command-menu-trigger,
body.vmh .topbar-status,
body.vmh .deploy-btn.top-deploy { display: none; }

body.vmh .topbar-logout {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
}

body.vmh .page { padding: 1.6rem 1.75rem 3rem; max-width: 1180px; }

body.vmh #planLockBanner,
body.vmh .dashboard-hero,
body.vmh .command-strip,
body.vmh .stats,
body.vmh .dashboard-grid,
body.vmh .feature-section { display: none !important; }

body.vmh .vmh-view { display: none; }
body.vmh[data-view="services"] [data-view="services"],
body.vmh[data-view="invoices"] [data-view="invoices"],
body.vmh[data-view="vps"] [data-view="vps"],
body.vmh[data-view="dedicated"] [data-view="dedicated"],
body.vmh[data-view="hosting"] [data-view="hosting"],
body.vmh[data-view="settings"] [data-view="settings"],
body.vmh[data-view="support"] [data-view="support"] { display: block; }

body.vmh[data-view="settings"] #settings { display: block !important; }

body.vmh .vmh-legacy-on { display: block !important; }

body.vmh .vmh-title {
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

body.vmh .vmh-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.15rem; }

body.vmh .vmh-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101012;
  min-height: 280px;
}

body.vmh .vmh-panel .empty,
body.vmh .vmh-panel .vmh-empty,
body.vmh .vmh-panel .billing-empty,
body.vmh .vmh-empty {
  width: 100%;
  margin: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.vmh .empty-graphic,
body.vmh .vmh-empty-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #bdbdc2;
  margin-bottom: 0.45rem;
}

body.vmh .empty h3,
body.vmh .vmh-empty strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5;
}

body.vmh .empty p,
body.vmh .vmh-empty span { color: #8d8d93; font-size: 0.84rem; max-width: 28rem; }

body.vmh .empty .deploy-btn,
body.vmh .vmh-btn {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2e;
  color: #f4f4f5;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

body.vmh .vmh-pay {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

body.vmh .vmh-pay .vmh-btn { margin-top: 0; width: 100%; }

body.vmh .vmh-btn.primary {
  width: 100%;
  min-height: 40px;
  background: #2c2c31;
}

body.vmh .vmh-btn:hover { background: #34343a; }
body.vmh .vmh-btn:disabled { opacity: 0.45; cursor: not-allowed; }

body.vmh .vmh-filters { display: flex; gap: 0.35rem; margin-bottom: 0.9rem; }

body.vmh .vmh-filters button {
  border: 1px solid transparent;
  background: transparent;
  color: #b7b7bc;
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
  font: 500 0.82rem var(--sans);
  cursor: pointer;
}

body.vmh .vmh-filters button.is-on {
  background: #222226;
  border-color: var(--line);
  color: #fff;
}

body.vmh .vmh-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 1rem;
  align-items: start;
}

body.vmh .vmh-block { margin-bottom: 1rem; }

body.vmh .vmh-kicker {
  color: #8a8a90;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

body.vmh .vmh-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

body.vmh .vmh-choice {
  text-align: left;
  border: 1px solid var(--line);
  background: #121214;
  color: inherit;
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  cursor: pointer;
  min-height: 78px;
  position: relative;
}

body.vmh .vmh-choice strong { display: block; font-size: 0.92rem; font-weight: 600; }
body.vmh .vmh-choice em { display: block; margin-top: 0.2rem; color: #8d8d93; font-style: normal; font-size: 0.78rem; }

body.vmh .vmh-choice.is-on { border-color: rgba(255, 255, 255, 0.28); background: #161618; }

body.vmh .vmh-choice.is-on::after {
  content: "✓";
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  color: #4ade80;
  font-size: 0.85rem;
}

body.vmh .vmh-choice:disabled { opacity: 0.45; cursor: not-allowed; }

body.vmh .vmh-table { width: 100%; border-collapse: collapse; }

body.vmh .vmh-table th {
  text-align: left;
  color: #7d7d84;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.5rem;
}

body.vmh .vmh-row {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(140px, 1.3fr) repeat(4, minmax(70px, 1fr)) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.72rem 0.55rem;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: 400 0.84rem var(--sans);
}

body.vmh .vmh-row.is-on { background: rgba(255, 255, 255, 0.03); }
body.vmh .vmh-row:disabled { opacity: 0.4; cursor: not-allowed; }
body.vmh .vmh-row .price { font-variant-numeric: tabular-nums; }
body.vmh .vmh-row .price s,
body.vmh .vmh-pill small s,
body.vmh .vmh-due strong s {
  display: inline-block;
  margin-left: 0.35rem;
  color: #8d8d93;
  font-weight: 400;
  text-decoration: line-through;
}
body.vmh .vmh-radio {
  width: 14px;
  height: 14px;
  border-radius: 99px;
  border: 1px solid #666;
}
body.vmh .vmh-row.is-on .vmh-radio { border-color: #fff; box-shadow: inset 0 0 0 3px #0c0c0d, inset 0 0 0 7px #fff; }

body.vmh .vmh-summary {
  position: sticky;
  top: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121214;
  padding: 1rem;
}

body.vmh .vmh-summary h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.8rem; }
body.vmh .vmh-spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; color: #bdbdc2; font-size: 0.84rem; }
body.vmh .vmh-spec span { color: #8a8a90; }
body.vmh .vmh-due { margin: 0.9rem 0 0.7rem; }
body.vmh .vmh-due small { display: block; color: #8a8a90; font-size: 0.75rem; }
body.vmh .vmh-due strong { font-size: 1.35rem; letter-spacing: -0.03em; }
body.vmh .vmh-checks { list-style: none; margin: 0.75rem 0 0; padding: 0; color: #9a9aa0; font-size: 0.78rem; }
body.vmh .vmh-checks li { padding: 0.18rem 0 0.18rem 1rem; position: relative; }
body.vmh .vmh-checks li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; }
body.vmh .vmh-error { color: #f87171; font-size: 0.78rem; min-height: 1rem; margin-top: 0.45rem; }

body.vmh .vmh-field { margin-bottom: 0.7rem; }
body.vmh .vmh-field label { display: block; color: #9a9aa0; font-size: 0.78rem; margin-bottom: 0.3rem; }
body.vmh .vmh-field input,
body.vmh .vmh-field select {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0e10;
  color: #f4f4f5;
  padding: 0 0.7rem;
  font: 400 0.88rem var(--sans);
}

body.vmh .vmh-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
body.vmh .vmh-pill {
  border: 1px solid var(--line);
  background: #121214;
  color: #eee;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  min-width: 132px;
  text-align: left;
  cursor: pointer;
  font: 500 0.84rem var(--sans);
}
body.vmh .vmh-pill small { display: block; color: #8d8d93; font-weight: 400; margin-top: 0.15rem; }
body.vmh .vmh-pill.is-on { border-color: rgba(255, 255, 255, 0.35); }
body.vmh .vmh-pill .save { color: #4ade80; }

body.vmh .machine-grid { display: grid; gap: 0.65rem; padding: 0.85rem; }
body.vmh .machine-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141416;
  padding: 0.9rem 1rem;
}
body.vmh .machine-title { font-family: var(--sans); font-weight: 600; }
body.vmh .billing-table-wrap { padding: 0.4rem 0.2rem 0.8rem; overflow-x: auto; }
body.vmh .billing-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
body.vmh .billing-table th,
body.vmh .billing-table td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
body.vmh .billing-table th { color: #8a8a90; font-weight: 500; font-size: 0.75rem; }
body.vmh #settings h2,
body.vmh #settings p,
body.vmh #settings label { font-family: var(--sans); }
body.vmh .settings-form input {
  font-family: var(--sans);
  border-radius: 8px;
  background: #121214;
}

body.vmh .vmh-support-head { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 760px) {
  body.vmh .sidebar { display: none; }
  body.vmh .content { margin-left: 0; }
  body.vmh .vmh-order,
  body.vmh .vmh-cards,
  body.vmh .vmh-row { grid-template-columns: 1fr; }
}
