:root {
  --bg: #040508;
  --panel: linear-gradient(180deg, rgba(15, 18, 28, 0.96) 0%, rgba(8, 10, 16, 0.98) 100%);
  --panel-soft: rgba(255, 214, 80, 0.08);
  --line: rgba(157, 78, 221, 0.18);
  --line-strong: rgba(255, 214, 80, 0.34);
  --text: #fffdf7;
  --muted: #c7bed8;
  --accent: #9d4edd;
  --accent-strong: #7b2cbf;
  --accent-soft: #ffd650;
  --danger: #ff7d62;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(157, 78, 221, 0.22), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(255, 214, 80, 0.08), transparent 24%),
    linear-gradient(180deg, #030407 0%, #090d15 48%, #040508 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.hero-panel,
.spotlight-card,
.page-title-card,
.dashboard-shell,
.panel-card,
.metric-card,
.admin-shell,
.auth-guard,
.landing-hero,
.support-hero,
.modern-card,
.support-card,
.enterprise-band {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: visible;
  isolation: isolate;
  background-clip: padding-box;
}

.site-header,
.hero-panel,
.spotlight-card,
.page-title-card,
.dashboard-shell,
.panel-card,
.metric-card,
.admin-shell,
.auth-guard,
.hero-card,
.landing-hero,
.support-hero,
.modern-card,
.support-card,
.enterprise-band {
  border-radius: 28px;
}

.site-header {
  padding: 14px 18px;
  position: relative;
  z-index: 200;
}

.topbar,
.topbar-links,
.topbar-actions,
.hero-grid,
.hero-actions,
.hero-badges,
.profile-box,
.section-head,
.form-actions,
.landing-actions,
.machine-header,
.machine-user,
.machine-badges,
.machine-actions,
.machine-resize-form {
  display: flex;
}

.topbar-actions {
  position: relative;
  z-index: 220;
}

.topbar,
.section-head {
  align-items: center;
  justify-content: space-between;
}

.topbar {
  gap: 24px;
}

.brand,
.topbar-links a,
.button,
.profile-dropdown a,
.profile-trigger {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark,
.mini-avatar,
.avatar-frame {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #080808;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-mark-modern {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 20, 0.9);
  color: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
h1,
h2,
h3,
.page-title,
.landing-title,
.support-title {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.brand-text small,
.topbar-links a,
.hero-text,
.timeline-item p,
.spotlight-card p,
.section-copy,
#user-id,
#vm-summary,
#vm-note,
.auth-guard p,
.form-help,
.form-status,
.profile-trigger-copy small,
.landing-text,
.support-copy {
  color: var(--muted);
}

.topbar-links,
.topbar-actions,
.hero-actions,
.hero-badges,
.form-actions,
.landing-actions,
.machine-badges,
.machine-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-links {
  flex: 1;
  justify-content: center;
}

.topbar-links a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  opacity: 0.82;
}

.topbar-links a.is-active {
  opacity: 1;
  color: #18081e;
  background: #ffd650;
}

.topbar-links a:hover:not(.is-active) {
  opacity: 1;
  background: rgba(255, 214, 80, 0.08);
}

.button,
.profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-clip: padding-box;
}

.button-primary {
  border: 1px solid rgba(255, 214, 80, 0.42);
  background: #ffd650;
  color: #18081e;
  box-shadow: 0 8px 20px rgba(255, 214, 80, 0.12);
}

.button-outline,
.button-muted,
.profile-trigger {
  border: 1px solid var(--line-strong);
}

.button-outline,
.profile-trigger {
  color: var(--accent-soft);
  background: rgba(14, 16, 24, 0.92);
}

.button-muted {
  color: var(--text);
  background: rgba(20, 22, 30, 0.92);
}

.button-danger {
  border: 1px solid rgba(255, 125, 98, 0.3);
  background: rgba(255, 125, 98, 0.12);
  color: #ffd8cf;
}

.topbar-links a:hover,
.button:hover,
.profile-trigger:hover {
  box-shadow: 0 0 0 1px rgba(255, 214, 80, 0.2);
}

.profile-menu {
  position: relative;
  z-index: 240;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.profile-trigger {
  gap: 12px;
  background: rgba(11, 13, 20, 0.9);
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
}

.mini-avatar img,
.avatar-frame img,
.verified-avatar img,
.machine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-trigger-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 16, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: var(--shadow);
  z-index: 260;
}

.profile-menu.is-open .profile-dropdown,
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
}

.profile-dropdown a:hover {
  background: rgba(157, 78, 221, 0.12);
}

.main-stack {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.hero-panel,
.page-title-card,
.dashboard-shell,
.admin-shell,
.auth-guard {
  padding: 28px;
}

.eyebrow,
.card-kicker,
.detail-label,
.metric-card span,
.role-chip {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow,
.card-kicker,
.detail-label,
.metric-card span {
  color: var(--accent-soft);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
.page-title {
  margin-top: 14px;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.9rem;
  line-height: 1.02;
}

.hero-text {
  max-width: 64ch;
  margin-top: 18px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions,
.hero-badges {
  margin-top: 24px;
}

.hero-badges span,
.role-chip,
.tag-item,
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(157, 78, 221, 0.08);
}

.hero-card,
.spotlight-card,
.panel-card,
.metric-card,
.modern-card,
.support-card {
  padding: 24px;
}

.landing-hero,
.support-hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 52px 44px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--panel);
}

.landing-hero {
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
}

.landing-title {
  margin-top: 18px;
  max-width: 8ch;
  font-size: clamp(3.8rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.landing-text,
.support-copy {
  max-width: 34rem;
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.button-arrow::before {
  content: "→";
  margin-right: 10px;
}

.video-shell {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 24, 36, 0.9) 0%, rgba(9, 10, 16, 0.98) 100%);
}

.hero-video,
.video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.74;
}

.video-fallback {
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13, 15, 23, 0.48) 0%, rgba(13, 15, 23, 0.74) 100%),
    radial-gradient(circle at center, rgba(157, 78, 221, 0.24), transparent 45%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.video-shell.is-waiting .video-fallback,
.video-shell.is-error .video-fallback {
  opacity: 1;
}

.video-fallback::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.34) 0%, rgba(255, 214, 80, 0.14) 36%, transparent 72%);
  filter: blur(16px);
}

.video-fallback strong {
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
}

.video-fallback p {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.content-section {
  padding: 24px 8px 8px;
}

.section-intro {
  max-width: 52rem;
  margin: 0 auto 24px;
  text-align: center;
}

.section-copy {
  margin-top: 16px;
  line-height: 1.7;
}

.feature-grid,
.metric-grid,
.detail-grid,
.admin-grid,
.form-grid,
.support-card-grid,
.tag-list,
.stack-list {
  display: grid;
  gap: 16px;
}

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

.modern-card h3,
.support-card-copy h3 {
  margin-top: 12px;
}

.modern-card p:last-child,
.support-card-copy p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.support-hero {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 360px;
}

.support-title {
  margin-top: 12px;
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.support-title span {
  color: #ffd650;
}

.support-actions {
  justify-content: center;
}

.support-card-grid {
  place-items: center;
}

.support-card {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
}

.support-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(157, 78, 221, 0.18);
  color: #ffd650;
  font-weight: 800;
}

.support-cta {
  width: 100%;
}

.enterprise-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px;
}

.enterprise-copy strong {
  display: block;
  font-size: 1.1rem;
}

.enterprise-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-grid,
.dashboard-grid,
.profile-box {
  display: flex;
}

.hero-grid,
.dashboard-grid {
  gap: 18px;
}

.dashboard-grid > * {
  flex: 1;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.dashboard-sidebar,
.dashboard-top-card,
.dashboard-alert-card,
.download-highlight-card,
.download-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-sidebar,
.dashboard-top-card,
.dashboard-alert-card,
.download-highlight-card,
.download-card {
  border-radius: 24px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  min-height: 720px;
  overflow: hidden;
}

.dashboard-sidebar-top {
  display: grid;
  gap: 12px;
}

.dashboard-side-link {
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  transition: 180ms ease;
}

.dashboard-side-link.is-active,
.dashboard-side-link:hover {
  border-color: var(--line-strong);
}

.dashboard-side-link.is-active {
  color: #18081e;
  border-color: rgba(255, 214, 80, 0.42);
  background: #ffd650;
}

.dashboard-side-link:hover:not(.is-active) {
  color: var(--text);
  background: rgba(255, 214, 80, 0.08);
}

.dashboard-profile-rail {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
  padding: 18px 6px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
}

.dashboard-profile-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-profile-copy strong {
  font-size: 0.95rem;
}

.dashboard-profile-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-word;
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.dashboard-title {
  margin-top: 10px;
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.98;
}

.dashboard-panel {
  display: none;
  gap: 18px;
}

.dashboard-panel.is-active {
  display: grid;
}

.dashboard-alert-card {
  padding: 20px 24px;
  background:
    linear-gradient(180deg, rgba(49, 24, 74, 0.72) 0%, rgba(25, 14, 32, 0.92) 100%);
}

.dashboard-alert-card strong {
  color: #ffd650;
  font-size: 1.2rem;
}

.dashboard-alert-card p {
  margin-top: 8px;
  color: #e6ddf3;
}

.dashboard-summary-card {
  min-height: 220px;
}

.dashboard-metrics {
  margin-top: 0;
}

.downloads-grid,
.plans-grid {
  display: grid;
  gap: 18px;
}

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

.download-highlight-card {
  grid-column: span 2;
  padding: 28px;
}

.download-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.download-card-head {
  display: grid;
  gap: 6px;
}

.download-card-head strong {
  font-size: 1.8rem;
}

.download-card-head span,
.download-card p,
.download-list {
  color: var(--muted);
}

.download-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

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

.profile-box {
  align-items: center;
  gap: 18px;
}

.avatar-frame {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
}

.role-chip {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 148px;
  padding: 0 18px;
  border-radius: 999px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  color: #18081e;
  background: #ffd650;
  border: 1px solid rgba(255, 214, 80, 0.32);
  box-shadow: 0 8px 20px rgba(255, 214, 80, 0.12);
  position: relative;
  isolation: isolate;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  color: #fff7ff;
}

.details-card {
  margin-top: 18px;
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid p {
  margin-top: 8px;
  line-height: 1.6;
}

.auth-guard {
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}

.admin-metric-grid {
  margin-top: 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  min-width: 0;
}

.admin-tab {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(14, 16, 24, 0.92);
  color: var(--text);
  text-align: center;
  white-space: normal;
}

.admin-tab.is-active {
  background: #ffd650;
  color: #18081e;
  border-color: rgba(255, 214, 80, 0.42);
}

.admin-tab-panel {
  display: none;
  margin-top: 18px;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.wide-card {
  grid-column: span 2;
}

.admin-form {
  margin-top: 12px;
}

.verify-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 14, 33, 0.84) 0%, rgba(10, 10, 18, 0.96) 100%);
  overflow: hidden;
}

.inline-input-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.inline-input-group input {
  flex: 1;
  min-width: 0;
}

.inline-input-group select {
  flex: 1;
  min-width: 0;
}

.inline-verify-btn {
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 48px;
  align-self: stretch;
}

.verified-user {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.7;
}

.verified-avatar,
.machine-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #7b2cbf 0%, #ffd650 100%);
  display: grid;
  place-items: center;
  color: #080808;
  font-weight: 800;
}

.verified-meta,
.machine-user-meta {
  display: grid;
  gap: 2px;
}

.verified-meta span,
.machine-user-meta span {
  color: var(--muted);
  line-height: 1.5;
}

.admin-form input:disabled,
.admin-form select:disabled,
.machine-resize-form input:disabled,
.machine-resize-form select:disabled,
.machine-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.admin-form label,
.machine-resize-form label {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-form label span,
.machine-resize-form label span {
  color: var(--muted);
}

.admin-form input,
.admin-form select,
.machine-resize-form input,
.machine-resize-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.92) 0%, rgba(11, 11, 21, 0.98) 100%);
  color: var(--text);
  font: inherit;
}

.admin-form input[type="file"] {
  padding: 10px 14px;
}

.admin-form input:focus,
.admin-form select:focus,
.machine-resize-form input:focus,
.machine-resize-form select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--line-strong);
}

.form-help {
  margin-top: 14px;
  line-height: 1.6;
}

.tag-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tag-item,
.stack-item {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  overflow: hidden;
  background-clip: padding-box;
}

.tag-item {
  justify-content: center;
  min-height: 42px;
  color: var(--accent-soft);
}

.stack-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
}

.stack-item strong {
  color: #fff5ff;
}

.stack-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.machine-list {
  margin-top: 18px;
}

.machine-browser {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.machine-selector-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(157, 78, 221, 0.05);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  overflow: hidden;
}

.machine-selector-item:hover {
  border-color: var(--line-strong);
}

.machine-selector-item.is-active {
  border-color: rgba(255, 214, 80, 0.48);
  background: rgba(255, 214, 80, 0.14);
}

.machine-selector-top,
.machine-selector-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.machine-selector-meta {
  display: grid;
  gap: 2px;
}

.machine-selector-meta strong {
  color: var(--text);
}

.machine-selector-meta span,
.machine-selector-bottom span {
  color: var(--muted);
}

.machine-detail-card {
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(157, 78, 221, 0.04);
  overflow: hidden;
}

.machine-detail-empty {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 240px;
  color: var(--muted);
}

.machine-detail-body {
  display: grid;
  gap: 18px;
}

.machine-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.machine-detail-title {
  display: grid;
  gap: 4px;
}

.machine-detail-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.machine-item {
  gap: 16px;
}

.machine-header,
.machine-user {
  align-items: center;
  justify-content: space-between;
}

.machine-header {
  flex-wrap: wrap;
}

.machine-user {
  justify-content: flex-start;
}

.machine-badges {
  justify-content: flex-end;
}

.machine-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.machine-facts,
.machine-resize-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 13, 29, 0.94) 0%, rgba(9, 10, 17, 0.98) 100%);
  overflow: hidden;
}

.machine-facts {
  display: grid;
  gap: 8px;
}

.machine-facts p {
  line-height: 1.6;
  color: var(--muted);
}

.machine-facts strong {
  color: var(--text);
}

.machine-resize-form {
  flex-wrap: wrap;
  align-items: end;
}

.snapshot-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(29, 22, 12, 0.46) 0%, rgba(14, 12, 10, 0.82) 100%);
  color: var(--muted);
  overflow: hidden;
}

.snapshot-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.snapshot-preview p + p {
  margin-top: 4px;
}

.create-vm-grid .wide-field {
  grid-column: span 2;
}

.native-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 40;
}

.custom-select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 14, 36, 0.92) 0%, rgba(11, 11, 21, 0.98) 100%);
  color: var(--text);
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  overflow: hidden;
}

.custom-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.custom-select-trigger:focus {
  outline: 1px solid var(--accent);
  border-color: var(--line-strong);
}

.custom-select.is-open .custom-select-trigger {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(26, 16, 47, 0.96) 0%, rgba(12, 11, 22, 0.98) 100%);
}

.custom-select-arrow {
  color: var(--accent-soft);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.custom-select.is-open .custom-select-arrow {
  transform: rotate(45deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 16, 0.98);
  box-shadow: var(--shadow);
}

.custom-select-label {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.custom-select-label strong,
.custom-select-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-label strong {
  font-weight: 700;
}

.custom-select-label span {
  color: var(--muted);
  font-size: 0.9rem;
}

.custom-select-label.is-placeholder strong {
  color: var(--muted);
  font-weight: 600;
}

.custom-select-option {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 14, 35, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
  color: var(--text);
  font: inherit;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.custom-select-option:hover {
  border-color: var(--line-strong);
}

.custom-select-option.is-selected {
  border-color: rgba(255, 214, 80, 0.48);
  background: rgba(255, 214, 80, 0.14);
}

.custom-select-option strong {
  color: var(--text);
}

.custom-select-option span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.custom-select-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.custom-select-disabled .custom-select-trigger {
  opacity: 0.5;
}

.inline-input-group > .custom-select {
  flex: 1;
  min-width: 0;
}

.admin-tabs > *,
.inline-input-group > *,
.form-actions > * {
  min-width: 0;
  max-width: 100%;
}

.form-actions {
  min-width: 0;
}

.form-status {
  flex: 1 1 260px;
  min-width: 0;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(157, 78, 221, 0.12);
  color: #ffd650;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-grid,
  .section-head,
  .topbar,
  .landing-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .detail-grid,
  .admin-grid,
  .form-grid,
  .modern-feature-grid,
  .enterprise-band,
  .machine-grid,
  .downloads-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab {
    width: 100%;
  }

  .dashboard-sidebar-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .download-highlight-card {
    grid-column: auto;
  }

  .wide-card {
    grid-column: auto;
  }

  .machine-detail-grid,
  .create-vm-grid .wide-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .inline-input-group {
    flex-direction: column;
  }

  .inline-verify-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .metric-grid,
  .detail-grid,
  .admin-grid,
  .form-grid,
  .modern-feature-grid,
  .enterprise-band,
  .machine-grid,
  .downloads-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .hero-panel,
  .spotlight-card,
  .page-title-card,
  .dashboard-shell,
  .panel-card,
  .metric-card,
  .admin-shell,
  .auth-guard,
  .hero-card,
  .landing-hero,
  .support-hero,
  .modern-card,
  .support-card,
  .enterprise-band {
    border-radius: 22px;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
  }

  .machine-resize-form,
  .machine-actions,
  .machine-badges,
  .topbar-links,
  .dashboard-top-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-sidebar-top {
    grid-template-columns: 1fr;
  }

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

  .form-actions > .button {
    width: 100%;
  }

  .landing-hero,
  .support-hero {
    padding: 28px 22px;
  }

  .landing-title,
  .support-title,
  .page-title,
  h1 {
    max-width: none;
  }
}
