/* Cloud VPS page styles — extends styles.css */

.vps-hero {
  padding: 100px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}
.vps-hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 18px 0 22px;
  font-weight: 800;
}
.vps-hero-title .grad {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vps-hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--text-muted, #94a3b8);
  font-size: 1.05rem;
}
.vps-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.vps-hero-stats > div {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 12px;
  border-radius: 12px;
}
.vps-hero-stats strong {
  display: block;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.vps-hero-stats span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 6px;
}
@media (max-width: 640px) {
  .vps-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.vps-plans {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 48px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .25s ease, border-color .25s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.4); }
.plan-card.featured {
  border-color: rgba(99,102,241,0.6);
  background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(255,255,255,0.02));
}
.plan-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.plan-card h3 { font-size: 1.5rem; margin: 0 0 6px; }
.plan-desc { color: var(--text-muted, #94a3b8); font-size: 0.9rem; margin: 0; }
.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 8px 0;
}
.plan-price .currency { font-size: 1.2rem; color: var(--text-muted, #94a3b8); }
.plan-price .amount { font-size: 3rem; font-weight: 800; line-height: 1; }
.plan-price .period { font-size: 0.95rem; color: var(--text-muted, #94a3b8); margin-left: 4px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.vps-order {
  padding: 80px 0;
  background: rgba(255,255,255,0.02);
}
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; gap: 40px; }
}
.order-info h2 { font-size: 2rem; margin-bottom: 16px; }
.order-info ol { padding-left: 20px; line-height: 1.8; color: var(--text-muted, #94a3b8); }
.order-info .muted { color: var(--text-muted, #94a3b8); margin-top: 20px; }

.order-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color, #e2e8f0);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-color, #e2e8f0);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.6);
}
.form-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
  margin-bottom: 16px;
}
.form-summary strong { font-size: 1.3rem; color: #10b981; }
.form-summary .muted { font-size: 0.85rem; color: var(--text-muted, #94a3b8); }
.btn-block { width: 100%; justify-content: center; }
.form-error {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 12px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vps-status {
  padding: 60px 0;
}
.status-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px;
}
.status-card code {
  background: rgba(255,255,255,0.05);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}
.status-row { margin: 16px 0 24px; }
.status-label { color: var(--text-muted, #94a3b8); margin-right: 12px; }
.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
}
.status-badge.completed { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.status-badge.processing { background: rgba(245,158,11,0.2); color: #fcd34d; }
.status-badge.failed { background: rgba(239,68,68,0.2); color: #fca5a5; }

.status-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.progress-step {
  padding: 12px 8px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  transition: all .25s ease;
}
.progress-step.done {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.progress-step.active {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}
@media (max-width: 640px) {
  .status-progress { grid-template-columns: repeat(2, 1fr); }
}

.status-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.status-result pre {
  background: rgba(0,0,0,0.3);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
.status-error {
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
}

.primary-nav a.active { color: #a5b4fc; }
