/* ============================================================
   components.css — Buttons, Badges, Cards, Switches, Modal
   ============================================================ */

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: #ececec;
  box-shadow: 0 0 44px rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-color: var(--border-soft);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-medium);
}

.btn-accent {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 26px rgba(255,255,255,0.18);
}
.btn-accent:hover {
  background: #d4d4d8;
  border-color: #d4d4d8;
  box-shadow: 0 0 36px rgba(255,255,255,0.30);
  transform: translateY(-1px);
}

.btn-icon { gap: 6px; }
.btn-icon .arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn-icon:hover .arrow { transform: translateX(4px); }

/* ── Pill / Badge ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--t-fast);
}
.pill:hover {
  border-color: var(--border-medium);
  background: rgba(255,255,255,0.07);
}
.pill .pill-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* Status badges */
.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.badge-green .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ── Toggle Switch ──────────────────────────────────────────── */
.toggle {
  position: relative;
  width: 34px; height: 19px;
  flex-shrink: 0;
}
.toggle input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: #2a2a34;
  transition: background var(--t-fast);
  cursor: pointer;
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #888;
  transition: transform var(--t-fast), background var(--t-fast);
}
.toggle input:checked ~ .toggle-track { background: #fff; }
.toggle input:checked ~ .toggle-thumb {
  transform: translateX(15px);
  background: #000;
}

/* ── Range slider ───────────────────────────────────────────── */
.range-wrap { display: flex; flex-direction: column; gap: 6px; }
.range-wrap header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.range-wrap header span:last-child { color: #fff; font-weight: 600; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: #1e1e28;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.35);
}

/* ── Spotlight cards ────────────────────────────────────────── */
[data-glow] {
  position: relative;
  overflow: hidden;
}
[data-glow]::after {
  content: '';
  pointer-events: none;
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  top: var(--gy, -999px);
  left: var(--gx, -999px);
  opacity: 0;
  transition: opacity 0.35s;
}
[data-glow]:hover::after { opacity: 1; }

/* ── Pricing Card ───────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), border-color var(--t-fast);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
}
.pricing-card.featured {
  border-color: rgba(255,255,255,0.22);
  background: linear-gradient(160deg, #111118 0%, #0c0c14 100%);
  box-shadow: 0 0 60px rgba(255,255,255,0.04);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-full);
  padding: 3px 10px;
  margin-bottom: 22px;
  align-self: flex-start;
}

.plan-name  { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.plan-desc  { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 24px;
}
.plan-price .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.plan-price .currency { font-size: 14px; color: var(--text-secondary); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 13px; flex: 1; margin-bottom: 30px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c8c8d2; }
.plan-features li svg { width: 16px; height: 16px; flex-shrink: 0; color: #fff; }

.plan-buy {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: #fff;
  transition: all var(--t-fast);
}
.plan-buy:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-medium);
}
.pricing-card.featured .plan-buy {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.pricing-card.featured .plan-buy:hover {
  background: #e8e8e8;
  box-shadow: 0 0 26px rgba(255,255,255,0.22);
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-wrap {
  max-width: 780px;
  margin-inline: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border-faint); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  transition: background var(--t-fast);
}
.faq-q:hover { background: rgba(255,255,255,0.02); }

.faq-chevron {
  width: 18px; height: 18px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--t-normal), stroke var(--t-fast);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  stroke: #fff;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-body {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Purchase Modal ─────────────────────────────────────────── */
#purchase-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}
#purchase-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 100%;
  max-width: 460px;
  background: #0e0e14;
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  transform: translateY(18px) scale(0.97);
  transition: transform var(--t-normal);
}
#purchase-modal.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  transition: color var(--t-fast);
}
.modal-close-btn:hover { color: #fff; }

.modal-plan-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-title  { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.modal-sub    { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.modal-total-label { font-size: 12.5px; color: var(--text-secondary); }
.modal-total-price { font-size: 18px; font-weight: 700; color: #fff; }

.pay-title { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.pay-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 20px; }

.pay-opt {
  background: #111118;
  border: 1px solid var(--border-faint);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: left;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pay-opt:hover  { border-color: var(--border-medium); background: #15151e; }
.pay-opt.active { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.pay-opt .icon  { font-size: 18px; margin-bottom: 3px; }
.pay-opt .name  { font-size: 12px; font-weight: 600; color: #fff; }
.pay-opt .sub   { font-size: 10px; color: var(--text-muted); }

.modal-label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.modal-input {
  width: 100%;
  background: #111118;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-fast);
  margin-bottom: 18px;
}
.modal-input:focus { border-color: rgba(255,255,255,0.45); }

.modal-submit {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  font-size: 14px;
}

.modal-ssl {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══ LEGAL POLICY MODAL ═══════════════════════════════════════ */
.legal-modal-card {
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 130px);
  padding-right: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 14px;
}

.legal-modal-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 14px;
  margin-bottom: 6px;
}

.legal-modal-body p {
  margin-bottom: 10px;
}

.legal-modal-body::-webkit-scrollbar {
  width: 5px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ═══ CYBER AUDIO HUD (VOLUME-ONLY CONTROLLER) ═════════════════ */
.audio-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  user-select: none;
  font-family: 'Inter', sans-serif;
}

.audio-hud-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.audio-hud-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.audio-hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.audio-visualizer-bars .bar {
  width: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  height: 4px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
  animation: audioWave 1.1s ease-in-out infinite alternate;
}

.audio-visualizer-bars .bar-1 { animation-delay: 0.0s; }
.audio-visualizer-bars .bar-2 { animation-delay: 0.22s; }
.audio-visualizer-bars .bar-3 { animation-delay: 0.44s; }
.audio-visualizer-bars .bar-4 { animation-delay: 0.12s; }

.audio-hud.is-muted .audio-visualizer-bars .bar {
  animation: none;
  height: 3px;
  background: #52525b;
  box-shadow: none;
}

@keyframes audioWave {
  0%   { height: 3px; }
  50%  { height: 14px; }
  100% { height: 6px; }
}

.audio-vol-icon {
  width: 14px;
  height: 14px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.audio-hud-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 110px;
}

.audio-hud-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
}

.audio-hud-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.audio-vol-val {
  font-size: 10px;
  font-weight: 600;
  color: #a1a1aa;
}

#audio-volume-slider {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#audio-volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#audio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

#audio-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

@media (max-width: 768px) {
  .audio-hud {
    bottom: 16px;
    right: 16px;
  }
}

