/* ================================================================
   Server Cost Calculator — server_cost_calculator.css
   ================================================================ */

.sc-wrap { font-family: inherit; color: #1a2236; }

/* ── Hero ── */
.sc-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative; overflow: hidden;
}
.sc-hero::before {
  content: ''; position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(56,189,248,.08); top: -120px; right: -80px; pointer-events: none;
}
.sc-hero::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.03); bottom: -60px; left: -40px; pointer-events: none;
}
.sc-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.sc-hero-icon { width: 64px; height: 64px; margin: 0 auto 20px; filter: drop-shadow(0 4px 20px rgba(37,99,235,.4)); }
.sc-hero-icon svg { width: 100%; height: 100%; }
.sc-hero-title {
  margin: 0 0 14px; color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.sc-hero-sub { margin: 0; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.65; }

/* ── Outer ── */
.sc-outer { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Two-column layout ── */
.sc-main-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  margin-top: -24px;
  align-items: start;
}
@media (max-width: 860px) { .sc-main-layout { grid-template-columns: 1fr; } }

/* ── Cards (shared) ── */
.sc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 16px;
}
.sc-card:last-child { margin-bottom: 0; }
.sc-card-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #6b7280; margin-bottom: 18px;
}
.sc-card-heading svg { flex-shrink: 0; }

/* Fields */
.sc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.sc-field:last-child { margin-bottom: 0; }
.sc-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #6b7280;
}
.sc-label-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #9ca3af; font-size: .72rem; cursor: help;
}
.sc-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Inputs */
.sc-input {
  padding: 10px 13px; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: .95rem; color: #111827;
  background: #f9fafb; outline: none; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.sc-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff; }
.sc-input-sm { max-width: 100%; }

/* Sliders */
.sc-slider {
  -webkit-appearance: none; height: 5px; border-radius: 4px;
  background: #e5e7eb; outline: none; cursor: pointer; width: 100%;
}
.sc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; box-shadow: 0 2px 6px rgba(37,99,235,.35);
  cursor: pointer; transition: transform .15s;
}
.sc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sc-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,.35); cursor: pointer;
}
.sc-duration-live {
  font-size: .9rem; font-weight: 700; color: #2563eb;
  font-variant-numeric: tabular-nums;
}

.sc-field-note { font-size: .76rem; color: #9ca3af; margin-top: 6px; line-height: 1.5; }
.sc-field-note a { color: #2563eb; font-weight: 600; }
.sc-disclaimer { padding: 2px 4px; }
.sc-disclaimer a { color: #2563eb; font-weight: 600; }

/* Tier / option card selector (3-up by default, 4-up variant for RAID) */
.sc-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-tier-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 480px) { .sc-tier-grid, .sc-tier-grid--4 { grid-template-columns: repeat(2, 1fr); } }
.sc-tier-card {
  border: 1.5px solid #d1d5db; border-radius: 10px;
  padding: 12px 10px; background: #f9fafb; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  transition: border-color .15s, background .15s;
}
.sc-tier-card:hover { border-color: #93c5fd; }
.sc-tier-card--on { border-color: #2563eb; background: #eff6ff; }
.sc-tier-name { font-size: .86rem; font-weight: 800; color: #111827; }
.sc-tier-card--on .sc-tier-name { color: #1e3a8a; }
.sc-tier-desc { font-size: .68rem; color: #6b7280; }

/* Checkbox row */
.sc-checkbox-row {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .86rem; color: #374151; cursor: pointer; line-height: 1.5;
}
.sc-checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }

/* Currency / toggle */
.sc-currency-toggle {
  display: inline-flex; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px; gap: 2px;
}
.sc-ctgl {
  padding: 4px 10px; border: none; border-radius: 4px;
  background: transparent; font-size: .75rem; font-weight: 700;
  color: #6b7280; cursor: pointer; transition: background .15s, color .15s;
}
.sc-ctgl--on { background: #fff; color: #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sc-currency-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px 0; font-size: .78rem; color: #6b7280; font-weight: 600;
}

/* ── Results column ── */
.sc-results-col { position: sticky; top: 20px; }
@media (max-width: 860px) { .sc-results-col { position: static; } }

.sc-results-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 12px;
  padding: 28px 24px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(30,58,138,.3);
}
.sc-results-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.sc-results-total {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 900;
  color: #fff; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  margin-bottom: 6px;
}
.sc-results-duration { font-size: .82rem; color: rgba(255,255,255,.6); }
.sc-results-packs {
  font-size: .8rem; color: #93c5fd; font-weight: 600;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* Breakdown card */
.sc-breakdown-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 14px;
}
.sc-breakdown-title {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #6b7280; margin-bottom: 14px;
}
.sc-breakdown-title-note { text-transform: none; font-weight: 400; letter-spacing: 0; color: #9ca3af; }
.sc-breakdown-item { margin-bottom: 14px; }
.sc-breakdown-item:last-child { margin-bottom: 0; }
.sc-bi-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sc-bi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-bi-dot--chassis { background: #64748b; }
.sc-bi-dot--cpu     { background: #2563eb; }
.sc-bi-dot--ram     { background: #7c3aed; }
.sc-bi-dot--storage { background: #0d9488; }
.sc-bi-dot--extras  { background: #d97706; }
.sc-bi-label { font-size: .82rem; color: #374151; flex: 1; }
.sc-bi-val   { font-size: .88rem; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }
.sc-bi-bar-track { height: 4px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.sc-bi-bar { height: 100%; border-radius: 4px; transition: width .4s ease; }
.sc-bi-bar--chassis { background: #64748b; }
.sc-bi-bar--cpu     { background: #2563eb; }
.sc-bi-bar--ram     { background: #7c3aed; }
.sc-bi-bar--storage { background: #0d9488; }
.sc-bi-bar--extras  { background: #d97706; }
.sc-bi-sub { font-size: .7rem; color: #9ca3af; margin-top: 3px; }

/* Rates card */
.sc-rates-card {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px 20px;
  margin-bottom: 14px;
}
.sc-rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6;
  font-size: .84rem;
}
.sc-rate-row:last-child { border-bottom: none; }
.sc-rate-row span { color: #6b7280; }
.sc-rate-row strong { color: #111827; font-variant-numeric: tabular-nums; }
.sc-rate-row--total strong { color: #1e3a8a; font-size: .88rem; }

.sc-copy-btn-full {
  width: 100%; padding: 11px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 8px; font-size: .84rem; font-weight: 700;
  color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.sc-copy-btn-full:hover { background: #e5e7eb; }

/* ── Info grid ── */
.sc-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 28px;
}
@media (max-width: 680px) { .sc-info-grid { grid-template-columns: 1fr; } }
.sc-info-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.sc-info-card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #111827; }
.sc-info-card p  { margin: 0; font-size: .9rem; line-height: 1.7; color: #4b5563; }
.sc-info-card strong { color: #111827; }
.sc-info-card em { font-style: normal; color: #1e3a8a; }
.sc-info-card a { color: #2563eb; font-weight: 600; }

/* ── CTA card ── */
.sc-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 14px; padding: 36px;
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.sc-cta-content { flex: 1 1 280px; }
.sc-cta-content h2 { margin: 0 0 10px; color: #fff; font-size: 1.2rem; font-weight: 800; }
.sc-cta-content p  { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; }
.sc-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.sc-cta-btn-primary {
  display: inline-block; padding: 13px 24px;
  background: #f05a28; color: #fff !important;
  border-radius: 8px; font-size: .9rem; font-weight: 700;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .18s, box-shadow .18s;
}
.sc-cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.28); }
.sc-cta-btn-secondary {
  display: inline-block; padding: 11px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85) !important;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  transition: background .18s;
}
.sc-cta-btn-secondary:hover { background: rgba(255,255,255,.14); }

/* ── Toast ── */
.sc-toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #111827; color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999;
}
.sc-toast--show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .sc-hero { padding: 40px 16px 36px; }
  .sc-outer { padding: 0 12px 40px; }
  .sc-card, .sc-info-card, .sc-cta-card { padding: 18px 16px; }
  .sc-cta-card { padding: 24px 16px; }
}
