:root {
  --bg-primary: #0a0618;
  --bg-secondary: #130d2a;
  --card-bg: rgba(26, 17, 52, 0.76);
  --card-border: rgba(192, 132, 252, 0.15);
  --card-hover-border: rgba(192, 132, 252, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #c4b5fd;
  --text-dim: #8b7ca6;
  
  --accent-cyan: #c084fc;       /* Neon Lavender-Purple primary accent */
  --accent-purple: #a855f7;     /* Vibrant Electric Violet */
  --accent-fuchsia: #f472b6;    /* Soft Radiant Pink-Violet */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  all: unset;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Custom Purple Scrollbars */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #080414;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  border: 2px solid #080414;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 0.75);
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(168, 85, 247, 0.32), transparent 75%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(147, 51, 234, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(217, 70, 239, 0.18), transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Glowing Background Elements */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  top: -100px;
  right: -50px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%);
}
.bg-glow-2 {
  bottom: 50px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.22), transparent 70%);
}

.hq-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Generic Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.08);
  transition: all 0.25s ease;
}
.glass-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.18);
}

/* Top Header */
.hq-header {
  position: relative;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  margin-bottom: 24px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(217, 70, 239, 0.25));
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}
.brand-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.accent-text {
  color: var(--accent-cyan);
}
.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.meta-val {
  font-size: 14px;
  font-weight: 600;
}
.highlight-ip {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}
.meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.metric-card {
  padding: 22px;
}
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.metric-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--text-dim);
}
.metric-body {
  margin-bottom: 12px;
}
.metric-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.metric-unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Distinct Telemetry Colors */
/* 1. CPU: Electric Cyan / Azure Blue */
.bar-cyan, #cpu-bar { 
  background: linear-gradient(90deg, #00f2fe 0%, #0077ff 100%) !important;
  box-shadow: 0 0 14px rgba(0, 194, 255, 0.6);
}
.card-metric-cpu:hover {
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: 0 8px 30px rgba(0, 194, 255, 0.12);
}
.badge-cpu {
  color: #38bdf8 !important;
  background: rgba(0, 194, 255, 0.12) !important;
  border: 1px solid rgba(0, 194, 255, 0.3) !important;
}

/* 2. RAM: Vivid Neon Violet / Magenta */
.bar-purple, #ram-bar { 
  background: linear-gradient(90deg, #f43f5e 0%, #a855f7 50%, #7c3aed 100%) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}
.card-metric-ram:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12);
}
.badge-ram {
  color: #d8b4fe !important;
  background: rgba(168, 85, 247, 0.12) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

/* 3. NVMe: Emerald Green / Mint */
.bar-emerald, #disk-bar { 
  background: linear-gradient(90deg, #34d399 0%, #10b981 50%, #059669 100%) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}
.card-metric-disk:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}
.badge-disk {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.metric-footer {
  font-size: 12px;
  color: var(--text-dim);
}

.services-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-dim);
}
.service-chip.active .chip-dot {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.service-chip.inactive .chip-dot {
  background-color: var(--accent-rose);
}

/* Main Layout Dual Column */
.main-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

.hq-section {
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mc-icon {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}
.web-icon {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}
.section-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.section-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Minecraft Status Pill */
.mc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.status-running,
.status-ready {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.status-running .status-indicator-dot,
.status-ready .status-indicator-dot {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.5s infinite;
}
.status-stopped {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}
.status-stopped .status-indicator-dot {
  background-color: var(--accent-rose);
}
.status-starting {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}
.status-starting .status-indicator-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse 0.7s infinite;
}

/* Specs Grid */
.mc-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.spec-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* Minecraft Actions Bar */
.mc-actions-bar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 12px;
  margin-bottom: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-start:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-restart {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}
.btn-restart:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}
.btn-stop {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
}
.btn-stop:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.25);
  transform: translateY(-1px);
}
.btn-pregen {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
}
.btn-pregen:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Terminal Panel */
.terminal-panel {
  background: #030508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 280px;
}
.terminal-header {
  background: #090e17;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-dots {
  display: flex;
  gap: 6px;
}
.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tdot.red { background-color: #ef4444; }
.tdot.yellow { background-color: #f59e0b; }
.tdot.green { background-color: #10b981; }
.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.term-actions {
  display: flex;
  gap: 8px;
}
.term-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.term-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.terminal-output {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #a5b4fc;
  overflow-y: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Websites Directory Column */
.badge-count {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--accent-cyan);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}
.sites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-card {
  background: rgba(30, 20, 56, 0.5);
  border: 1px solid rgba(192, 132, 252, 0.16);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s ease;
}
.site-card:hover {
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.2);
}
.site-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.site-name {
  font-size: 17px;
  font-weight: 700;
}
.site-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}
.site-domain {
  margin-bottom: 12px;
}
.domain-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  text-decoration: none;
}
.domain-link:hover {
  text-decoration: underline;
}
.site-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.site-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.stack-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-dim);
}
.site-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-cyan {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.24), rgba(126, 34, 206, 0.32));
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #f3e8ff;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.2);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.42), rgba(126, 34, 206, 0.5));
  border-color: rgba(192, 132, 252, 0.7);
  color: #fff;
  box-shadow: 0 4px 22px rgba(168, 85, 247, 0.45);
}

/* Site Add Placeholder Box */
.site-add-box {
  border: 2px dashed rgba(192, 132, 252, 0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.25s ease;
}
.site-add-box:hover {
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(168, 85, 247, 0.04);
}
.add-icon {
  font-size: 24px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.add-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.add-sub {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 320px;
  margin: 0 auto;
}

/* Header Sound & Notification Controls */
/* Header Sound & Notification Controls */
.header-controls {
  position: relative;
  z-index: 550;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 20, 56, 0.85) !important;
  border: 1px solid rgba(192, 132, 252, 0.28) !important;
  border-radius: 10px;
  padding: 8px 14px;
  color: #f3e8ff !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.header-ctrl-btn:hover {
  background: rgba(168, 85, 247, 0.3) !important;
  border-color: rgba(192, 132, 252, 0.65) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
}
.header-ctrl-btn.muted {
  opacity: 0.65;
  border-color: rgba(192, 132, 252, 0.15) !important;
}
.bell-btn {
  padding: 8px 12px;
}
.notif-bell-wrap {
  position: relative;
  z-index: 600;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f43f5e !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
  animation: pulse 1.8s infinite;
}
.notif-badge.hidden {
  display: none !important;
}

/* Notification Center Dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 390px;
  max-width: 90vw;
  background: rgba(22, 15, 44, 0.98) !important;
  border: 1px solid rgba(192, 132, 252, 0.4) !important;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.25);
  padding: 16px;
  z-index: 99999 !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-dropdown.hidden {
  display: none !important;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
}
.btn-clear-notifs {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-dim) !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-clear-notifs:hover {
  color: var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}
.notif-dropdown-actions {
  display: flex;
  gap: 8px;
}
.notif-action-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(30, 20, 56, 0.85) !important;
  border: 1px solid rgba(192, 132, 252, 0.24) !important;
  border-radius: 8px;
  padding: 8px 12px;
  color: #f3e8ff !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.notif-action-pill:hover {
  background: rgba(168, 85, 247, 0.28) !important;
  border-color: rgba(192, 132, 252, 0.6) !important;
  color: #fff !important;
}
.notif-action-pill.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: var(--accent-emerald) !important;
}
.notif-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}
.notif-dropdown-list::-webkit-scrollbar {
  width: 4px;
}
.notif-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.25);
  border-radius: 4px;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(192, 132, 252, 0.12);
  transition: all 0.2s;
}
.notif-item:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(192, 132, 252, 0.35);
}
.notif-item.ready-event {
  border-left: 3px solid var(--accent-emerald);
}
.notif-item-icon {
  font-size: 20px;
  line-height: 1;
}
.notif-item-body {
  flex: 1;
}
.notif-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.notif-item-time {
  font-size: 10px;
  color: var(--text-dim);
}
.notif-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}
.notif-item-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.notif-item-action:hover {
  background: var(--accent-cyan);
  color: #0a0618;
}
.notif-empty-state {
  text-align: center;
  padding: 24px 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Dedicated Live Server Readiness Banner in Minecraft Card */
.mc-readiness-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mc-readiness-box.ready {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(0, 194, 255, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}
.mc-readiness-box.ready::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #10b981, #00c2ff);
}
.mc-readiness-box.starting {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}
.mc-readiness-box.starting::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  animation: shimmer 2s infinite linear;
}
.mc-readiness-box.stopped {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.readiness-icon-wrap {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.mc-readiness-box.ready .readiness-icon-wrap {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.mc-readiness-box.starting .readiness-icon-wrap {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}
.spin-icon {
  animation: spin 3s infinite linear;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.readiness-info-wrap {
  flex: 1;
}
.readiness-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.readiness-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.readiness-action-wrap {
  flex-shrink: 0;
}

/* Floating Live Notification Banner (Top-Right) */
.notif-banner-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 440px;
  width: 100%;
}
.notif-banner {
  pointer-events: auto;
  background: rgba(26, 17, 52, 0.96);
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.notif-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  animation: shimmer 3s infinite linear;
}
.notif-banner.leaving {
  animation: fadeOutRight 0.35s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeOutRight {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(80px) scale(0.95); }
}
@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.notif-banner-icon {
  font-size: 26px;
  line-height: 1;
  background: rgba(16, 185, 129, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.notif-banner-content {
  flex: 1;
}
.notif-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-banner-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}
.notif-banner-actions {
  display: flex;
  gap: 8px;
}
.notif-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.notif-banner-btn:hover {
  background: var(--accent-cyan);
  color: #0a0618;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
.notif-banner-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}
.notif-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Toast Notification Popup */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  background: rgba(26, 17, 52, 0.96);
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}
.toast-popup.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .header-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .notif-dropdown {
    width: calc(100vw - 32px);
    right: -8px;
  }
  .notif-banner-container {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .mc-specs-grid {
    grid-template-columns: 1fr;
  }
  .mc-actions-bar {
    grid-template-columns: 1fr;
  }
  .mc-readiness-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ATLAS HQ — Multi-Instance Minecraft Servers List & Fleet Cards
   ========================================================================== */
.mc-servers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-server-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;
  position: relative;
}

.mc-server-card:hover {
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(168, 85, 247, 0.04);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.16);
}

.mc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mc-card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.mc-card-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(30, 20, 56, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mc-card-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.mc-tag-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent-cyan);
}

.mc-card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.mc-card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 20, 56, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
}

.mc-chip-ip {
  cursor: pointer;
  border-color: rgba(192, 132, 252, 0.35);
  transition: all 0.2s ease;
}

.mc-chip-ip:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-cyan);
}

.chip-lbl {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.chip-val {
  font-weight: 600;
}

.chip-copy-icon {
  font-size: 11px;
  opacity: 0.7;
}

.mc-chip-chunky {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.mc-card-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-selected-term {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   DEPLOY MODAL STYLING (ATLAS HQ)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.deploy-modal-box {
  background: rgba(24, 16, 48, 0.96);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.2);
  max-width: 620px;
  width: 100%;
  padding: 28px;
  color: #f1f5f9;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
  padding-bottom: 14px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: #c4b5fd;
  font-size: 15px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.drop-zone {
  border: 2px dashed rgba(192, 132, 252, 0.35);
  background: rgba(30, 20, 56, 0.65);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.drop-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.drop-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.drop-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-group {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.form-input, .form-select {
  background: rgba(30, 20, 56, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  background: rgba(30, 20, 56, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.16);
  padding: 12px 16px;
  border-radius: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #e2e8f0;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-cyan);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
}

.btn-primary.btn-deploy {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
  transition: all 0.2s ease;
}

.btn-primary.btn-deploy:hover {
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.65);
  transform: translateY(-1px);
}

/* Deploy Progress Track */
.deploy-progress-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0 6px;
}

.progress-spinner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.deploy-progress-view .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c084fc, #a855f7);
  width: 15%;
  transition: width 0.4s ease;
}

.progress-steps-list {
  background: rgba(30, 20, 56, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c4b5fd;
}

.step-line.done {
  color: #86efac;
}

.step-line.active {
  color: #c084fc;
  font-weight: 700;
}

.deploy-success-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

