/* =============================================================
   Backup Storage Calculator — backup_storage_calculator.css
   ============================================================= */

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

/* ── Hero ── */
.bs-hero {
  background: linear-gradient(135deg, #020617 0%, #0d3d40 55%, #0891b2 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative; overflow: hidden;
}
.bs-hero::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(34,211,238,.06); top: -120px; right: -80px; pointer-events: none;
}
.bs-hero::after {
  content: ''; position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.03); bottom: -60px; left: -40px; pointer-events: none;
}
.bs-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.bs-hero-icon  { width: 64px; height: 64px; margin: 0 auto 20px; filter: drop-shadow(0 4px 20px rgba(34,211,238,.35)); }
.bs-hero-icon svg { width: 100%; height: 100%; }
.bs-hero-title {
  margin: 0 0 14px; color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.25;
}
.bs-hero-sub {
  margin: 0 0 22px; color: rgba(255,255,255,.78);
  font-size: clamp(.9rem, 1.8vw, 1.05rem); line-height: 1.6;
}
.bs-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bs-badge {
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3);
  color: #a5f3fc; border-radius: 20px;
  padding: 4px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .03em;
}

/* ── Outer container ── */
.bs-outer { max-width: 1180px; margin: 0 auto; padding: 32px 20px 48px; }

/* ── Two-column layout ── */
.bs-main-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

/* ── Input cards ── */
.bs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.bs-card-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #0891b2; margin-bottom: 18px;
}
.bs-card-sub { margin: -8px 0 18px; font-size: .82rem; color: #6b7280; line-height: 1.5; }

.bs-row { margin-bottom: 18px; }
.bs-row:last-child { margin-bottom: 0; }
.bs-label {
  display: block; margin-bottom: 7px;
  font-size: .83rem; font-weight: 600; color: #374151;
}
.bs-hint  { font-size: .75rem; font-weight: 400; color: #9ca3af; }
.bs-live  { font-size: .78rem; font-weight: 700; color: #0891b2; }

/* Input + unit toggle row */
.bs-input-group { display: flex; align-items: center; gap: 10px; }
.bs-input {
  flex: 1; padding: 8px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .95rem; color: #1a2236; background: #fff;
  transition: border-color .2s;
  min-width: 0;
}
.bs-input:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.bs-select {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .88rem; color: #1a2236; background: #fff;
  cursor: pointer; transition: border-color .2s;
}
.bs-select:focus { outline: none; border-color: #22d3ee; }

/* Unit toggle (GB / TB) */
.bs-unit-toggle { display: flex; border: 1.5px solid #d1d5db; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.bs-utgl {
  padding: 7px 14px; font-size: .8rem; font-weight: 600; border: none;
  background: #fff; color: #6b7280; cursor: pointer; transition: .15s;
}
.bs-utgl--on { background: #0891b2; color: #fff; }
.bs-utgl:not(.bs-utgl--on):hover { background: #f0f9ff; color: #0891b2; }

/* Sliders */
.bs-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 3px;
  background: #e5e7eb; outline: none; cursor: pointer;
}
.bs-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #0891b2; border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(8,145,178,.4);
  cursor: pointer;
}
.bs-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #0891b2; border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(8,145,178,.4);
  cursor: pointer;
}
.bs-range-hints {
  display: flex; justify-content: space-between;
  margin-top: 4px; font-size: .7rem; color: #9ca3af;
}
.bs-change-note {
  margin: 8px 0 0; font-size: .73rem; color: #6b7280;
  line-height: 1.5; font-style: italic;
}

/* Toggle switches */
.bs-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.bs-toggle-row:last-of-type { border-bottom: none; }
.bs-toggle-label { display: flex; flex-direction: column; gap: 2px; }
.bs-toggle-label > span:first-child { font-size: .88rem; font-weight: 600; color: #374151; }
.bs-toggle-sub { font-size: .75rem; color: #9ca3af; }

.bs-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.bs-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.bs-switch-track {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 22px;
  cursor: pointer; transition: background .2s;
}
.bs-switch-track::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.bs-switch input:checked + .bs-switch-track { background: #0891b2; }
.bs-switch input:checked + .bs-switch-track::before { transform: translateX(18px); }

/* Button groups */
.bs-btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-btgl {
  padding: 7px 16px; border-radius: 8px; border: 1.5px solid #d1d5db;
  background: #fff; color: #6b7280; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.bs-btgl--on { background: #0891b2; border-color: #0891b2; color: #fff; }
.bs-btgl:not(.bs-btgl--on):hover { border-color: #0891b2; color: #0891b2; background: #f0f9ff; }

/* ── Results column (sticky) ── */
.bs-results-col { position: relative; }
.bs-results-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }

/* Total card */
.bs-total-card {
  background: linear-gradient(135deg, #0c4a6e 0%, #0891b2 100%);
  border-radius: 12px; padding: 24px 22px;
  text-align: center; color: #fff;
}
.bs-total-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .75; margin-bottom: 8px; }
.bs-total-val   { font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bs-total-copies{ font-size: .78rem; opacity: .7; margin-top: 8px; }

/* Breakdown card */
.bs-breakdown-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.bs-bc-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; margin-bottom: 12px; }
.bs-bc-rows  { display: flex; flex-direction: column; gap: 0; }
.bs-bc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6; gap: 8px;
}
.bs-bc-row:last-child { border-bottom: none; }
.bs-bc-indent { padding-left: 16px; }
.bs-bc-subtotal { background: #f0f9ff; border-radius: 6px; padding: 8px 10px; margin: 4px 0; border: none; }
.bs-bc-label { font-size: .8rem; color: #4b5563; }
.bs-bc-label em { font-style: normal; font-size: .72rem; color: #16a34a; }
.bs-bc-val   { font-size: .82rem; font-weight: 700; color: #0891b2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-bc-subtotal .bs-bc-label { color: #0c4a6e; font-weight: 600; }
.bs-bc-subtotal .bs-bc-val   { color: #0c4a6e; }

/* Tier bars */
.bs-tier-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.bs-tier-title { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; margin-bottom: 12px; }
.bs-tier-list  { display: flex; flex-direction: column; gap: 10px; }
.bs-tier-row   { display: grid; grid-template-columns: 16px 110px 1fr 50px; align-items: center; gap: 8px; }
.bs-tier-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bs-dot-daily  { background: #22d3ee; }
.bs-dot-weekly { background: #0891b2; }
.bs-dot-monthly{ background: #0e7490; }
.bs-dot-yearly { background: #164e63; }
.bs-tier-name  { font-size: .78rem; color: #374151; }
.bs-tier-bar-wrap { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bs-tier-bar   { height: 100%; border-radius: 4px; transition: width .35s ease; min-width: 4px; }
.bs-bar-daily  { background: #22d3ee; }
.bs-bar-weekly { background: #0891b2; }
.bs-bar-monthly{ background: #0e7490; }
.bs-bar-yearly { background: #164e63; }
.bs-tier-sz    { font-size: .75rem; font-weight: 700; color: #0891b2; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Cloud cost card */
.bs-cloud-card {
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.bs-cc-icon { flex-shrink: 0; margin-top: 2px; }
.bs-cc-body { flex: 1; min-width: 0; }
.bs-cc-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #0369a1; margin-bottom: 4px; }
.bs-cc-val   { font-size: 1.35rem; font-weight: 900; color: #0c4a6e; font-variant-numeric: tabular-nums; }
.bs-cc-sub   { font-size: .78rem; color: #0369a1; margin-top: 2px; }
.bs-cc-provider { font-size: .7rem; color: #6b7280; margin-top: 6px; }

/* 3-2-1 badge */
.bs-321-card {
  display: flex; align-items: center; gap: 12px;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 12px; padding: 14px 18px;
}
.bs-321-body { display: flex; flex-direction: column; gap: 2px; }
.bs-321-body strong { font-size: .88rem; color: #166534; }
.bs-321-body span   { font-size: .76rem; color: #15803d; }

/* Copy button */
.bs-copy-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  border: 1.5px solid #0891b2; background: #fff; color: #0891b2;
  font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.bs-copy-btn:hover { background: #0891b2; color: #fff; }

/* ── SEO info cards ── */
.bs-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.bs-info-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 22px 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.bs-info-card h2 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: #0c4a6e; }
.bs-info-card p  { margin: 0 0 10px; font-size: .88rem; color: #4b5563; line-height: 1.65; }
.bs-info-card p:last-child { margin-bottom: 0; }

/* ── CTA card ── */
.bs-cta-card {
  background: linear-gradient(135deg, #0c4a6e 0%, #0891b2 100%);
  border-radius: 16px; padding: 36px 32px;
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.bs-cta-content { flex: 1; min-width: 0; }
.bs-cta-content h2 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.bs-cta-content p  { margin: 0; font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.6; }
.bs-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.bs-cta-btn-primary {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  background: #fff; color: #0c4a6e; font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.bs-cta-btn-primary:hover  { background: #e0f2fe; transform: translateY(-1px); }
.bs-cta-btn-secondary {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: background .15s;
  white-space: nowrap;
}
.bs-cta-btn-secondary:hover { background: rgba(255,255,255,.1); }

/* ── Toast ── */
.bs-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0c4a6e; color: #fff;
  padding: 10px 24px; border-radius: 24px;
  font-size: .86rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.bs-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bs-main-layout { grid-template-columns: 1fr; }
  .bs-results-sticky { position: static; }
}
@media (max-width: 600px) {
  .bs-hero { padding: 36px 16px 30px; }
  .bs-outer { padding: 20px 14px 36px; }
  .bs-card { padding: 16px; }
  .bs-cta-card { padding: 24px 20px; }
  .bs-tier-row { grid-template-columns: 14px 90px 1fr 44px; }
}
