.proxmox-course {
  --px-orange: #f97316;
  --px-orange-soft: rgba(249, 115, 22, 0.13);
  --px-blue: #38bdf8;
  --px-green: #34d399;
  --px-danger: #fb7185;
  background: #060a12;
}

.proxmox-course code {
  font-family: var(--font-mono);
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 5px;
  padding: 2px 6px;
}

.px-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 76px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 26%, rgba(249, 115, 22, 0.16), transparent 27%),
    radial-gradient(circle at 22% 12%, rgba(56, 189, 248, 0.11), transparent 28%),
    linear-gradient(135deg, #080d17 0%, #07111f 62%, #0d111a 100%);
}

.px-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.px-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: center;
}

.px-hero h1 {
  max-width: 800px;
  margin: 22px 0 22px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.px-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--px-orange), #fbbf24 48%, var(--px-blue));
  background-clip: text;
  -webkit-background-clip: text;
}

.px-lead {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
}

.px-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 999px;
  color: #fdba74;
  background: var(--px-orange-soft);
  font: 700 0.72rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.px-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--px-orange);
  box-shadow: 0 0 14px var(--px-orange);
}

.px-hero-actions,
.px-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.px-hero-actions { margin-top: 30px; }
.px-meta { margin-top: 26px; color: var(--text-muted); font-size: 0.86rem; }
.px-meta span { padding-right: 14px; border-right: 1px solid var(--border); }
.px-meta span:last-child { border-right: 0; }

.px-progress-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 24px;
  background: rgba(13, 20, 31, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.px-logo-mark {
  position: absolute;
  top: -32px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 23px;
  background: linear-gradient(145deg, #172033, #0b111e);
  color: var(--px-orange);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.18);
  transform: rotate(7deg);
}

.px-logo-mark span { font: 900 2.5rem/1 var(--font-display); transform: rotate(-7deg); }
.px-logo-mark i { position: absolute; right: 14px; bottom: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--px-green); box-shadow: 0 0 12px var(--px-green); }
.px-kicker { color: #7dd3fc; font: 700 0.68rem/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.px-progress-value { display: flex; gap: 10px; align-items: baseline; margin: 22px 0 12px; }
.px-progress-value strong { color: var(--text-primary); font: 800 3.2rem/1 var(--font-display); }
.px-progress-value span { color: var(--text-muted); }
.px-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #1b2839; }
.px-progress-track div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--px-orange), #fbbf24); transition: width 300ms ease; }
.px-progress-copy { margin: 18px 0 14px; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; }
.px-text-button { padding: 0; border: 0; color: #fdba74; background: none; font: 600 0.78rem var(--font-mono); cursor: pointer; }
.px-text-button:hover { color: #fff; }

.px-before { padding: 56px 0 24px; }
.px-alert {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}
.px-alert h2, .px-alert h3 { margin: 0 0 7px; color: var(--text-primary); font-size: 1rem; }
.px-alert p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.px-alert-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 900; }
.px-alert-danger { border-color: rgba(251, 113, 133, 0.35); background: rgba(78, 22, 40, 0.22); }
.px-alert-danger .px-alert-icon { color: #fecdd3; background: rgba(244, 63, 94, 0.24); }
.px-alert-warning { border-color: rgba(251, 191, 36, 0.34); background: rgba(78, 55, 15, 0.2); }
.px-alert-warning .px-alert-icon { color: #fde68a; background: rgba(245, 158, 11, 0.2); }
.px-alert-info { border-color: rgba(56, 189, 248, 0.3); background: rgba(14, 66, 90, 0.18); }
.px-alert-info .px-alert-icon { color: #bae6fd; background: rgba(14, 165, 233, 0.2); }

.px-prereq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.px-prereq { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15, 23, 36, 0.72); }
.px-prereq > span { color: var(--px-orange); font: 700 0.7rem var(--font-mono); }
.px-prereq h3 { margin: 0 0 7px; color: var(--text-primary); font-size: 0.96rem; }
.px-prereq p { margin: 0; color: var(--text-muted); font-size: 0.84rem; line-height: 1.55; }

.px-program { padding: 64px 0 100px; }
.px-course-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.px-nav-sticky { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(11, 17, 28, 0.86); }
.px-nav-sticky h2 { margin: 7px 0 18px; color: var(--text-primary); font-size: 1.3rem; }
.px-course-nav nav { display: flex; flex-direction: column; gap: 5px; }
.px-course-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--text-muted); font-size: 0.78rem; text-decoration: none; transition: 160ms ease; }
.px-course-nav a span { color: #64748b; font: 700 0.67rem var(--font-mono); }
.px-course-nav a:hover, .px-course-nav a.active { color: var(--text-primary); background: rgba(249, 115, 22, 0.12); }
.px-course-nav a.active span { color: var(--px-orange); }

.px-modules { display: flex; min-width: 0; flex-direction: column; gap: 24px; }
.px-module {
  scroll-margin-top: 95px;
  overflow: hidden;
  border: 1px solid #223147;
  border-radius: 20px;
  background: #0d1521;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}
.px-module.completed { border-color: rgba(52, 211, 153, 0.4); }
.px-module-head { display: flex; gap: 20px; padding: 28px; border-bottom: 1px solid #223147; background: linear-gradient(120deg, rgba(23, 35, 52, 0.9), rgba(13, 21, 33, 0.82)); }
.px-module-number { display: grid; flex: 0 0 54px; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(249, 115, 22, 0.4); border-radius: 15px; color: #fdba74; background: rgba(249, 115, 22, 0.11); font: 800 1rem var(--font-mono); }
.px-module-head h2 { margin: 5px 0 7px; color: var(--text-primary); font-size: clamp(1.35rem, 3vw, 1.85rem); }
.px-module-head p:last-child { margin: 0; color: var(--text-muted); line-height: 1.5; }
.px-module-body { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.px-module-body > p { margin: 0; color: var(--text-secondary); line-height: 1.75; }
.px-module-body h3 { margin: 2px 0 -8px; color: var(--text-primary); font-size: 1.02rem; }
.px-module-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 28px; border-top: 1px solid #223147; background: rgba(7, 12, 20, 0.48); }
.px-module-footer label { display: flex; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 0.84rem; cursor: pointer; }
.px-module-footer input { width: 18px; height: 18px; accent-color: var(--px-green); }
.px-module-footer a { flex: 0 0 auto; color: #7dd3fc; font: 700 0.76rem var(--font-mono); text-decoration: none; }

.px-compare, .px-security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.px-compare > div, .px-security-grid > div { padding: 18px; border: 1px solid #26364d; border-radius: 13px; background: rgba(8, 14, 23, 0.52); }
.px-compare strong, .px-security-grid strong { display: block; margin-bottom: 7px; color: var(--text-primary); }
.px-compare span, .px-security-grid p { margin: 0; color: var(--text-muted); font-size: 0.84rem; line-height: 1.55; }
.px-security-grid span { display: block; margin-bottom: 10px; font-size: 1.35rem; }
.px-tip { padding: 18px 20px; border-left: 3px solid var(--px-green); border-radius: 0 12px 12px 0; background: rgba(16, 185, 129, 0.08); }
.px-tip strong { display: block; margin-bottom: 5px; color: #6ee7b7; }
.px-tip p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.px-check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.px-check-list li { position: relative; padding-left: 28px; color: var(--text-secondary); line-height: 1.55; }
.px-check-list li::before { content: "✓"; position: absolute; top: 1px; left: 0; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #6ee7b7; background: rgba(16, 185, 129, 0.13); font-size: 0.7rem; font-weight: 800; }

.px-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.px-steps li { display: flex; gap: 15px; padding: 16px; border: 1px solid #25344a; border-radius: 13px; background: rgba(8, 14, 23, 0.5); }
.px-steps li > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fdba74; background: var(--px-orange-soft); font: 800 0.75rem var(--font-mono); }
.px-steps strong { color: var(--text-primary); }
.px-steps p { margin: 5px 0 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }

.px-command { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 16px; border: 1px solid #283950; border-radius: 12px; background: #080e17; }
.px-command div { min-width: 0; }
.px-command span { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: 0.72rem; }
.px-command code { display: block; overflow: auto; padding: 0; border: 0; color: #7dd3fc; background: transparent; white-space: nowrap; }
.copy-command { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid #334761; border-radius: 9px; color: #9fb4ce; background: #111c2a; cursor: pointer; }
.copy-command:hover { color: #fff; border-color: var(--px-blue); }

.px-table-wrap { overflow-x: auto; border: 1px solid #27384f; border-radius: 13px; }
.px-table-wrap table { width: 100%; border-collapse: collapse; min-width: 680px; }
.px-table-wrap th, .px-table-wrap td { padding: 13px 15px; border-bottom: 1px solid #223147; color: var(--text-secondary); font-size: 0.8rem; text-align: left; }
.px-table-wrap th { color: var(--text-primary); background: #111b29; }
.px-table-wrap tr:last-child td { border-bottom: 0; }

.px-network-diagram { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 26px 16px; border: 1px dashed #354960; border-radius: 14px; background: rgba(7, 13, 21, 0.55); }
.px-network-diagram div { padding: 11px 13px; border: 1px solid #31445d; border-radius: 9px; color: var(--text-secondary); background: #101a28; font-size: 0.78rem; text-align: center; }
.px-network-diagram div.active { color: #fdba74; border-color: rgba(249, 115, 22, 0.5); background: var(--px-orange-soft); }
.px-network-diagram > span { color: #52677f; }

.px-backup-layers, .px-routine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.px-backup-layers > div, .px-routine > div { padding: 18px; border: 1px solid #25364d; border-radius: 13px; background: rgba(8, 14, 23, 0.52); }
.px-backup-layers span { display: grid; width: 30px; height: 30px; margin-bottom: 12px; place-items: center; border-radius: 9px; color: #fdba74; background: var(--px-orange-soft); font: 800 0.75rem var(--font-mono); }
.px-backup-layers strong, .px-routine strong { display: block; color: var(--text-primary); }
.px-backup-layers p, .px-routine p { margin: 7px 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.55; }

.px-final { scroll-margin-top: 100px; padding: 40px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 22px; text-align: center; background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(13, 21, 33, 0.85)); }
.px-final-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 18px; color: #a7f3d0; background: rgba(16, 185, 129, 0.18); font-size: 1.8rem; }
.px-final h2 { margin: 8px 0 26px; color: var(--text-primary); }
.px-final-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; }
.px-final-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 10px; color: var(--text-secondary); background: rgba(7, 13, 21, 0.4); font-size: 0.84rem; line-height: 1.45; }
.px-final-grid input { margin-top: 2px; accent-color: var(--px-green); }

.px-resources { padding: 86px 0; border-top: 1px solid var(--border); background: #08101b; }
.px-resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.px-resource-grid a { position: relative; padding: 22px; border: 1px solid #26374e; border-radius: 16px; color: inherit; background: #0d1724; text-decoration: none; transition: 180ms ease; }
.px-resource-grid a:hover { border-color: rgba(249, 115, 22, 0.55); transform: translateY(-3px); }
.px-resource-grid a > span { position: absolute; top: 16px; right: 16px; color: #64748b; }
.px-resource-grid strong { display: block; padding-right: 22px; color: var(--text-primary); }
.px-resource-grid p { margin: 9px 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.px-draft-footer { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(249, 115, 22, 0.35); border-radius: 999px; color: #fdba74; background: var(--px-orange-soft); font: 700 0.7rem var(--font-mono); }

.px-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  padding: 12px 16px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 11px;
  color: #d1fae5;
  background: #0b271f;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
  font-size: 0.82rem;
}
.px-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .px-hero-grid { grid-template-columns: 1fr 290px; gap: 34px; }
  .px-course-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .px-resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .px-hero { padding-top: 88px; }
  .px-hero-grid, .px-course-layout { grid-template-columns: 1fr; }
  .px-progress-card { margin-top: 26px; }
  .px-course-nav { display: none; }
  .px-prereq-grid, .px-backup-layers, .px-routine { grid-template-columns: 1fr; }
  .px-program { padding-top: 30px; }
}

@media (max-width: 620px) {
  .px-hero { padding: 76px 0 54px; }
  .px-hero h1 { font-size: 2.55rem; }
  .px-meta { align-items: flex-start; flex-direction: column; }
  .px-meta span { border-right: 0; }
  .px-progress-card { padding: 25px; }
  .px-module-head { gap: 13px; padding: 20px; }
  .px-module-number { flex-basis: 44px; width: 44px; height: 44px; }
  .px-module-body { padding: 20px; }
  .px-module-footer { align-items: flex-start; flex-direction: column; padding: 17px 20px; }
  .px-compare, .px-security-grid, .px-final-grid, .px-resource-grid { grid-template-columns: 1fr; }
  .px-network-diagram { align-items: stretch; flex-direction: column; }
  .px-network-diagram > span { transform: rotate(90deg); text-align: center; }
  .px-final { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .px-progress-track div, .px-toast, .px-resource-grid a { transition: none; }
}
