/* ── Custom tokens ── */
:root {
  --ah-bg:     #0d1117;
  --ah-panel:  #0a0f1a;
  --ah-card:   #161b2e;
  --ah-border: rgba(255,255,255,.07);
  --ah-green:  #22c55e;
  --ah-red:    #ef4444;
  --ah-glow:   rgba(59,130,246,.35);
}

html, body { height: 100%; }
body {
  background: var(--ah-bg);
  font-family: "Inter", sans-serif;
}

/* ── Left branding panel ── */
.ah-panel {
  background: var(--ah-panel);
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--ah-border);
}
.ah-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(59,130,246,.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(16,185,129,.08) 0%, transparent 60%);
  pointer-events: none;
}
.ah-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.ah-panel-inner { position: relative; z-index: 1; }

/* ── Logo mark ── */
.ah-logomark {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px var(--ah-glow);
  flex-shrink: 0;
}

/* ── Decorative chart ── */
.ah-chart {
  opacity: .18;
  animation: chartGlow 4s ease-in-out infinite alternate;
}
@keyframes chartGlow {
  from { opacity: .14; }
  to   { opacity: .26; }
}

/* ── Feature bullets ── */
.ah-feature { display: flex; align-items: flex-start; gap: .75rem; }
.ah-feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Ticker strip ── */
.ah-ticker {
  overflow: hidden;
  border-top: 1px solid var(--ah-border);
  background: rgba(0,0,0,.3);
}
.ah-ticker-track {
  display: flex; gap: 2.5rem;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ah-ticker-item   { display: flex; align-items: center; gap: .45rem; }
.ah-ticker-sym    { color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 500; }
.ah-ticker-up     { color: var(--ah-green); font-size: .75rem; font-weight: 600; }
.ah-ticker-down   { color: var(--ah-red);   font-size: .75rem; font-weight: 600; }
.ah-ticker-pct    { font-size: .7rem !important; font-weight: 500 !important; }

/* ── Right form side ── */
.ah-form-side {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}
.ah-card {
  width: 100%; max-width: 420px;
  background: var(--ah-card);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 20px 60px rgba(0,0,0,.5);
}

/* ── Form inputs ── */
.ah-card .form-control {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #e2e8f0;
  border-radius: 8px;
  height: 42px;
  transition: border-color .2s, box-shadow .2s;
}
.ah-card .form-control:focus {
  background: rgba(255,255,255,.06);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}
.ah-card .form-control::placeholder { color: rgba(255,255,255,.25); }
.ah-card .form-control.is-invalid   { border-color: var(--ah-red); }

.ah-card .input-group-text {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  border-left: none;
  border-radius: 0 8px 8px 0;
}
.ah-card .input-group > .form-control {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

/* ── Form label ── */
.ah-card .form-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .4rem;
}

/* ── Submit button ── */
.ah-btn-submit {
  height: 44px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.ah-btn-submit:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,.45);
}
.ah-btn-submit:active:not(:disabled) { transform: translateY(0); }
.ah-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Error alert ── */
.ah-error {
  display: none;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: .875rem;
  padding: .75rem 1rem;
}
.ah-error.show { display: flex; align-items: center; gap: .5rem; }

/* ── Divider ── */
.ah-divider {
  display: flex; align-items: center; gap: 1rem;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
}
.ah-divider::before, .ah-divider::after {
  content: ""; flex: 1;
  height: 1px;
  background: var(--ah-border);
}

/* ── Spinner ── */
.spinner-grow-sm { width: .65rem; height: .65rem; }

/* ── OTP code input ── */
.ah-code-input {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .5rem;
  text-align: center;
  height: 64px;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #e2e8f0;
  border-radius: 10px;
}
.ah-code-input:focus {
  background: rgba(255,255,255,.06);
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

/* ── Success alert ── */
.ah-success {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 8px;
  color: #86efac;
  font-size: .875rem;
  padding: .75rem 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.ah-pricing-page {
  background: var(--ah-bg);
}

/* ── Billing toggle ── */
.ah-toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.ah-toggle--on { background: #3b82f6; border-color: #3b82f6; }
.ah-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.ah-toggle--on .ah-toggle-knob { transform: translateX(20px); }

/* ── Plan card ── */
.ah-plan-card {
  position: relative;
  background: var(--ah-card);
  border: 1px solid var(--ah-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.ah-plan-card:hover {
  border-color: rgba(59,130,246,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.ah-plan-card--featured {
  border-color: rgba(59,130,246,.5);
  background: linear-gradient(160deg, rgba(59,130,246,.08) 0%, var(--ah-card) 60%);
  box-shadow: 0 0 0 1px rgba(59,130,246,.2) inset,
              0 12px 40px rgba(0,0,0,.45);
}

/* ── Popular badge ── */
.ah-plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Tier badge ── */
.ah-tier-badge {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 6px;
}

/* ── Price ── */
.ah-plan-header { margin-bottom: 1.25rem; }
.ah-plan-price  { display: flex; align-items: baseline; gap: .25rem; margin-bottom: .25rem; }
.ah-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ah-price-period { color: rgba(255,255,255,.4); font-size: .9rem; }
.ah-plan-saving  { font-size: .78rem; color: #22c55e; margin-bottom: .6rem; min-height: 1.2em; }
.ah-plan-desc    { color: rgba(255,255,255,.5); font-size: .85rem; line-height: 1.5; margin: 0; }

/* ── Feature list ── */
.ah-feature-list {
  list-style: none;
  padding: 0; margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-grow: 1;
}
.ah-feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.ah-feature-item svg { flex-shrink: 0; }
.ah-feature-item--off { color: rgba(255,255,255,.25); }

/* ── Plan button ── */
.ah-plan-btn {
  height: 42px;
  font-weight: 600;
  font-size: .875rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  transition: background .2s, border-color .2s, color .2s;
}
.ah-plan-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.ah-plan-btn--featured {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,.4);
}
.ah-plan-btn--featured:hover:not(:disabled) {
  opacity: .9;
  color: #fff;
  box-shadow: 0 6px 20px rgba(59,130,246,.5);
}
.ah-plan-btn:disabled { opacity: .65; cursor: not-allowed; }
