/* ==========================================================================
   NEXUS CLOUD PC - Dashboard, Hero, Spec Configurator & Telemetry
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.metric-item .metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-item .metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Showcase Card */
.hero-visual-card {
  background: linear-gradient(145deg, rgba(22, 30, 49, 0.8), rgba(12, 17, 29, 0.95));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 210, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), #10b981);
}

.visual-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.screen-dot.red { background: #ef4444; }
.screen-dot.yellow { background: #f59e0b; }
.screen-dot.green { background: #10b981; }

.visual-rig-preview {
  background: #060911;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.rig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.rig-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.rig-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.spec-mini-box {
  background: var(--bg-tertiary);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.spec-mini-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-mini-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Live Ping & Latency Tester Section */
.ping-tester-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.ping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.node-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--transition-normal);
  position: relative;
}

.node-card:hover {
  border-color: var(--accent-cyan);
}

.node-card.recommended {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.node-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.node-flag-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.node-ping-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-success);
}

.node-ping-display.moderate {
  color: var(--color-warning);
}

.node-ping-display.high {
  color: var(--color-danger);
}

.node-ping-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.node-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

/* Pricing & Preset Tier Cards */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.tier-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tier-card.featured {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.06) 0%, rgba(18, 26, 43, 0.85) 100%);
  box-shadow: var(--shadow-cyan);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00d2ff, #2563eb);
  color: #030712;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tier-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.tier-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tier-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}

.tier-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tier-feature-item .check-icon {
  color: var(--color-success);
  flex-shrink: 0;
}

/* Custom Configurator Grid */
.configurator-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.spec-picker-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.config-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.option-tile {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.option-tile:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.option-tile.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.15);
}

.option-tile-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.option-tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.option-tile-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
}

/* Slider Controls */
.slider-control-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.slider-val-display {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.custom-range-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  outline: none;
  -webkit-appearance: none;
  margin: 1rem 0 0.5rem 0;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Summary Checkout Box */
.summary-checkout-card {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.summary-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.summary-spec-label {
  color: var(--text-muted);
}

.summary-spec-val {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-total-box {
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}

.summary-total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.summary-total-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Game & App Catalog */
.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.catalog-search-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  width: 280px;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-card-banner {
  height: 130px;
  background: #111827;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.app-card-category {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.app-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
}

/* RustDesk Machine Connection Display Card (Matching User Diagram) */
.rustdesk-ready-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rustdesk-display-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(10, 15, 26, 0.98));
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.rustdesk-display-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #00d2ff);
}

.rd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.rd-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rd-field-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.rd-field-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.1);
}

.rd-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.rd-field-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rd-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.rd-action-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.rd-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* Boot Stepper (Wake-on-LAN -> Windows Boot -> Agent Auth -> Ready) */
.flow-stepper-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0.45;
  transition: all var(--transition-smooth);
}

.flow-step.active {
  opacity: 1;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: var(--font-mono);
  transition: all var(--transition-normal);
}

.flow-step.active.running .step-circle {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
  animation: pulse-step 1.5s infinite;
}

.flow-step.active.completed .step-circle {
  border-color: var(--color-success);
  color: #fff;
  background: var(--color-success);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

@keyframes pulse-step {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.step-info {
  flex: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-line {
  width: 2px;
  height: 24px;
  background: var(--border-subtle);
  margin-left: 21px;
  transition: all var(--transition-normal);
}

.flow-line.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

@media (max-width: 768px) {
  .rd-creds-grid {
    grid-template-columns: 1fr;
  }
  .rd-val {
    font-size: 1.35rem;
  }
}

