/* ==========================================================
   Student Discount Portal – Premium Minimalist Dark Style
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg:              #08080c;
  --bg-card:         rgba(16, 17, 23, 0.85);
  --bg-card-border:  rgba(255, 255, 255, 0.08);
  --bg-input:        rgba(0, 0, 0, 0.35);
  --bg-input-focus:  rgba(0, 0, 0, 0.55);

  --text:            #f8fafc;
  --text-muted:      #cbd5e1;
  --text-dim:        #64748b;

  --purple:          #6366f1; /* Solid Indigo */
  --purple-hover:    #4f46e5;
  --purple-rgb:      99, 102, 241;
  
  --blue:            #38bdf8; /* Solid Cyan */
  --blue-hover:      #0ea5e9;
  --blue-rgb:        56, 189, 248;
  
  --green:           #10b981;
  --green-hover:     #059669;
  --green-rgb:       16, 185, 129;
  
  --red:             #f43f5e;
  --red-hover:       #e11d48;
  --red-rgb:         244, 63, 94;
  
  --amber:           #fbbf24;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-full:50%;

  /* Transition */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:   0.3s;
  --duration-slow: 0.5s;

  /* Misc */
  --blur:   20px;
  --card-max-w: 450px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent text invisibility during browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #101117 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border-radius: inherit;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Premium developer grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 45px 45px;
  background-position: center center;
  mask-image: radial-gradient(circle 500px at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle 500px at center, black, transparent 80%);
  pointer-events: none;
}

/* ── Background Orbs Disabled ── */
.bg-orbs {
  display: none;
}

/* ── Floating Particles Disabled ── */
.particles {
  display: none;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--card-max-w);
  padding: var(--space-xl) var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  max-width: 300px;
  margin-bottom: var(--space-xs);
}
.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--purple);
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dot-inner {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  position: relative;
}
.progress-dot.active .dot-inner {
  background: var(--purple);
  border-color: rgba(var(--purple-rgb), 0.35);
  box-shadow: 0 0 15px rgba(var(--purple-rgb), 0.35);
  transform: scale(1.15);
}
.progress-dot.done .dot-inner {
  background: var(--green);
  border-color: rgba(var(--green-rgb), 0.35);
  box-shadow: 0 0 15px rgba(var(--green-rgb), 0.35);
}
.dot-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color var(--duration) var(--ease);
}
.progress-dot.active .dot-label { color: var(--text-muted); }
.progress-dot.done .dot-label   { color: var(--green); }

/* ── Glassmorphism Card ── */
.card {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.card-glow {
  display: none;
}
.card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-xl);
}

/* ── Step Transitions ── */
.step {
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.step[hidden] {
  display: none !important;
}
.step-active {
  animation: stepIn 0.6s var(--ease) forwards;
}
@keyframes stepIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--purple-rgb), 0.08);
  border: 1px solid rgba(var(--purple-rgb), 0.2);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}
.badge:hover {
  border-color: rgba(var(--purple-rgb), 0.35);
  box-shadow: 0 0 15px rgba(var(--purple-rgb), 0.15);
  transform: translateY(-1px);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* ── Typography ── */
.title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
  color: #ffffff;
}
.title-sm { font-size: 1.65rem; }
.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--purple);
}
.subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-xl);
}

/* ── Inputs ── */
.input-group {
  margin-bottom: var(--space-lg);
  position: relative;
}
.input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease);
}
.input-group:focus-within .input-label {
  color: var(--purple);
}
.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  overflow: hidden;
}
.input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.input-wrapper:focus-within {
  border-color: rgba(var(--purple-rgb), 0.6);
  background: var(--bg-input-focus);
  box-shadow: 
    0 0 0 3px rgba(var(--purple-rgb), 0.15), 
    0 0 25px rgba(var(--purple-rgb), 0.15);
}
.input-wrapper.error {
  border-color: rgba(var(--red-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.15);
}
.input-icon {
  width: 20px; height: 20px;
  color: var(--text-dim);
  margin-left: 16px;
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}
.input-wrapper:focus-within .input-icon {
  color: var(--purple);
}
input[type="text"],
input[type="tel"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 16px;
  letter-spacing: 0.01em;
}
input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

/* Phone input */
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}
.flag { font-size: 1.1rem; }
.input-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Input error */
.input-error {
  display: block;
  min-height: 20px;
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 6px;
  padding-left: 2px;
  transition: all var(--duration) var(--ease);
}

/* ── Button ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  margin-top: var(--space-sm);
}
.btn-primary {
  background: var(--purple);
  box-shadow: 0 4px 12px rgba(var(--purple-rgb), 0.2);
}
.btn-primary:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--purple-rgb), 0.3);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Shine Hover Effect disabled */
.btn::after {
  display: none;
}

.btn-arrow {
  width: 18px; height: 18px;
  transition: transform var(--duration) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Button loading */
.btn.loading .btn-text,
.btn.loading .btn-arrow { display: none; }
.btn-loader { display: none; gap: 5px; }
.btn.loading .btn-loader { display: flex; }
.btn-loader .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: btnDots 1.4s var(--ease) infinite;
}
.btn-loader .dot:nth-child(2) { animation-delay: 0.15s; }
.btn-loader .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes btnDots {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); }
  40%           { opacity: 1; transform: scale(1); }
}

/* Error button */
.btn-error {
  background: var(--red);
  box-shadow: 0 4px 12px rgba(var(--red-rgb), 0.2);
}
.btn-error:hover {
  background: var(--red-hover);
}

/* ── Stats Badge ── */
.stats-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.stats-badge:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.stats-pulse {
  position: absolute;
  left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s var(--ease) infinite;
}
.stats-icon {
  width: 16px; height: 16px;
  color: var(--text-dim);
  margin-left: 10px;
}

/* ── OTP ── */
.otp-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.otp-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--purple-rgb), 0.08);
  border: 1.5px solid rgba(var(--purple-rgb), 0.2);
  border-radius: var(--radius-lg);
  color: #a5b4fc;
  animation: iconFloat 3s var(--ease) infinite;
}
.otp-icon svg { width: 30px; height: 30px; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.otp-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}
.otp-box {
  width: 50px; height: 58px;
  background: var(--bg-input);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  caret-color: var(--purple);
  transition: all var(--duration) var(--ease);
}
.otp-box:focus {
  border-color: var(--purple);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.25), 0 0 20px rgba(var(--purple-rgb), 0.2);
  transform: translateY(-2px);
}
.otp-box.filled {
  border-color: rgba(var(--purple-rgb), 0.5);
  background: rgba(var(--purple-rgb), 0.08);
}
.otp-box.error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.15) !important;
  animation: shake 0.4s var(--ease);
}
.otp-dash {
  color: var(--text-dim);
  font-size: 1rem;
  user-select: none;
}
.otp-error {
  text-align: center;
  margin-bottom: var(--space-sm);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Timer & Resend */
.otp-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}
.timer-icon { width: 14px; height: 14px; }

.resend-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  margin-bottom: var(--space-lg);
  transition: color var(--duration) var(--ease);
}
.resend-link:hover { color: var(--text); }
.resend-text {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.phone-display { color: var(--text); }

/* ── Success ── */
.success-content {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.success-check {
  margin: 0 auto var(--space-lg);
  width: 80px; height: 80px;
}
.checkmark {
  width: 80px; height: 80px;
}
.checkmark-circle {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleStroke 0.6s 0.2s var(--ease) forwards;
}
.checkmark-tick {
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: tickStroke 0.4s 0.7s var(--ease) forwards;
}
@keyframes circleStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes tickStroke {
  to { stroke-dashoffset: 0; }
}

.success-title { color: var(--green); }
.success-subtitle { margin-bottom: var(--space-lg); }

.success-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-xl);
}
.success-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: #6ee7b7;
}
.success-info-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.close-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Confetti ── */
.confetti-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 10px; height: 10px;
  top: -10px;
  animation: confettiFall linear forwards;
}
.confetti-1  { left:  5%; background: var(--purple);  animation-duration: 2.6s; animation-delay: 0.0s; border-radius: 2px; transform: rotate(12deg);  }
.confetti-2  { left: 15%; background: var(--pink);    animation-duration: 2.2s; animation-delay: 0.1s; border-radius: 50%; width: 8px; height: 8px;   }
.confetti-3  { left: 25%; background: var(--blue);    animation-duration: 2.8s; animation-delay: 0.2s; width: 6px; height: 12px; border-radius: 1px;  }
.confetti-4  { left: 35%; background: var(--green);   animation-duration: 2.4s; animation-delay: 0.05s; border-radius: 50%;                          }
.confetti-5  { left: 45%; background: var(--amber);   animation-duration: 2.5s; animation-delay: 0.15s; width: 8px; height: 8px; border-radius: 2px;  }
.confetti-6  { left: 55%; background: var(--purple);  animation-duration: 2.1s; animation-delay: 0.25s; border-radius: 50%; width: 6px; height: 6px;  }
.confetti-7  { left: 65%; background: var(--pink);    animation-duration: 2.7s; animation-delay: 0.1s; width: 12px; height: 6px; border-radius: 1px;  }
.confetti-8  { left: 75%; background: var(--blue);    animation-duration: 2.3s; animation-delay: 0.3s; border-radius: 2px;                            }
.confetti-9  { left: 85%; background: var(--green);   animation-duration: 2.6s; animation-delay: 0.08s; border-radius: 50%; width: 7px; height: 7px;  }
.confetti-10 { left: 92%; background: var(--amber);   animation-duration: 2.0s; animation-delay: 0.2s; width: 5px; height: 10px; border-radius: 1px;  }
.confetti-11 { left: 50%; background: var(--purple);  animation-duration: 2.9s; animation-delay: 0.12s; border-radius: 50%; width: 9px; height: 9px;  }
.confetti-12 { left: 30%; background: var(--pink);    animation-duration: 2.3s; animation-delay: 0.22s; border-radius: 2px; width: 7px; height: 7px;  }

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg) scale(1);
    opacity: 1;
  }
  75% { opacity: 1; }
  100% {
    transform: translateY(500px) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

/* ── Error State ── */
.error-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.error-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--red-rgb), 0.1);
  border: 1.5px solid rgba(var(--red-rgb), 0.2);
  border-radius: var(--radius-lg);
  color: #fca5a5;
  animation: iconFloat 3s var(--ease) infinite;
}
.error-icon svg { width: 30px; height: 30px; }
.error-title { color: var(--red); }
.error-subtitle { color: var(--text-muted); }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.footer-inner strong {
  color: var(--text-muted);
  font-weight: 600;
}
.footer-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  :root {
    --card-max-w: 100%;
  }
  .container {
    padding: var(--space-lg) var(--space-sm);
  }
  .card-content {
    padding: var(--space-xl) var(--space-md);
  }
  .title {
    font-size: 1.75rem;
  }
  .title-sm {
    font-size: 1.35rem;
  }
  .otp-box {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
  }
  .otp-inputs {
    gap: 5px;
  }
  .otp-dash {
    font-size: 0.8rem;
    margin: 0 2px;
  }
}

@media (max-width: 360px) {
  .otp-box {
    width: 38px;
    height: 46px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }
  .card-content {
    padding: var(--space-lg) var(--space-sm);
  }
}

@media (min-width: 768px) {
  .title {
    font-size: 2.3rem;
  }
  .card-content {
    padding: var(--space-2xl) var(--space-2xl);
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus-visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
input:focus-visible {
  outline: none; /* handled by wrapper styles */
}

/* ── Rates Panel ── */
.discount-rates-card {
  margin-top: var(--space-xs);
}
.rates-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-lg);
  gap: 4px;
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: calc(var(--radius-md) - 4px);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.tab-btn:hover {
  color: var(--text-muted);
}
.tab-btn.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--purple-rgb), 0.2);
}
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
.rates-table th {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rates-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}
.rates-table tbody tr:last-child td {
  border-bottom: none;
}
.rates-table tbody tr {
  transition: background var(--duration) var(--ease);
}
.rates-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tab-content {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}
.tab-content::-webkit-scrollbar { width: 4px; }
.tab-content::-webkit-scrollbar-track { background: transparent; }
.tab-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }

/* ── FAQ & How-To Section ── */
.faq-card {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xl);
}
.howto-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.howto-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}
.howto-steps {
  list-style: none;
  counter-reset: steps-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.howto-steps li {
  position: relative;
  padding-left: 2.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.howto-steps li::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: rgba(var(--purple-rgb), 0.15);
  border: 1px solid rgba(var(--purple-rgb), 0.3);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  gap: 16px;
  transition: color var(--duration) var(--ease);
}
.faq-trigger:hover {
  color: var(--purple);
}
.faq-icon {
  width: 16px; height: 16px;
  color: var(--text-dim);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--purple);
}
.faq-panel {
  padding: 8px 0 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  animation: slideDown 0.3s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
