/* ===========================================
   ValU AI — Reusable Components (Neon Cyber)
   Navbar / Buttons / Cards / Footer / Accordion
   =========================================== */

/* ===========================================
   1. NAVBAR
   =========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-color);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-logo .logo-icon {
  font-size: 1.4em;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-glow-c));
}

.navbar-logo .logo-accent {
  color: var(--accent-cyan);
}

/* Desktop nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
  position: relative;
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-glow-c);
}

/* Underline indicator for active link */
.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-glow-c);
}

/* Navbar CTA */
.navbar-cta .btn {
  padding: 0.5em 1.2em;
  font-size: var(--text-small);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-fast) ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   2. BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.6em;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
  line-height: 1.4;
}

/* Primary — Cyan neon */
.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow-c);
}

.btn-primary:hover {
  background: #00ffaa;
  box-shadow: 0 0 30px var(--accent-glow-c-strong);
  transform: translateY(-1px);
}

/* Outline — Cyan border */
.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow-c);
}

.btn-outline:hover {
  background: rgba(0, 255, 204, 0.08);
  box-shadow: 0 0 20px var(--accent-glow-c-strong);
  transform: translateY(-1px);
}

/* Magenta accent button */
.btn-magenta {
  background: var(--accent-magenta);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--accent-glow-m);
}

.btn-magenta:hover {
  background: #ff22bb;
  box-shadow: 0 0 30px var(--accent-glow-m-strong);
  transform: translateY(-1px);
}

/* Large button */
.btn-lg {
  padding: 0.8em 2.2em;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

/* Small button */
.btn-sm {
  padding: 0.4em 1em;
  font-size: var(--text-small);
}

/* ===========================================
   3. CARDS
   =========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

/* Subtle top highlight border */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
}

.card:hover {
  border-color: rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 24px var(--accent-glow-c);
  transform: translateY(-2px);
}

/* Featured card (highlighted pricing tier) */
.card-featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-glow-c);
  background: var(--bg-elevated);
}

.card-featured::before {
  opacity: 0.7;
}

/* Card icon */
.card-icon {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--element-gap);
  display: inline-block;
}

.card-icon.cyan { color: var(--accent-cyan); filter: drop-shadow(0 0 8px var(--accent-glow-c)); }
.card-icon.magenta { color: var(--accent-magenta); filter: drop-shadow(0 0 8px var(--accent-glow-m)); }

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: var(--text-small);
}

/* Feature card (no hover glow, more subtle) */
.feature-card {
  text-align: center;
  padding: var(--card-padding);
}

.feature-card .card-icon {
  display: block;
}

/* ===========================================
   4. FOOTER
   =========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--content-gap);
  margin-bottom: var(--content-gap);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: var(--text-small);
  max-width: 280px;
}

.footer-column h4 {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: var(--text-small);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer-column a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--element-gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--element-gap);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: var(--element-gap);
  padding-top: var(--element-gap);
  border-top: 1px solid var(--border-color);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================================
   5. ACCORDION (FAQ)
   =========================================== */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}

.accordion-header:hover {
  color: var(--accent-cyan);
}

.accordion-icon {
  font-size: 1.2em;
  color: var(--accent-cyan);
  transition: transform var(--duration-fast) ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out-expo);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 0 1.5rem;
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================================
   6. PRICING CARD
   =========================================== */
.pricing-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card .plan-name {
  font-size: var(--text-h3);
  font-family: var(--font-display);
  margin-bottom: 0.3rem;
}

.pricing-card .plan-price {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  margin: var(--element-gap) 0;
}

.pricing-card .plan-price small {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .plan-features {
  list-style: none;
  text-align: left;
  margin: var(--element-gap) 0 auto;
  flex: 1;
}

.pricing-card .plan-features li {
  padding: 0.5rem 0;
  font-size: var(--text-small);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card .plan-features li::before {
  content: '\2713';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .plan-features li.unavailable {
  opacity: 0.4;
}

.pricing-card .plan-features li.unavailable::before {
  content: '\2717';
  color: var(--text-muted);
}

.pricing-card .plan-cta {
  margin-top: var(--element-gap);
}

/* Feature badge on recommended plan */
.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 0.25em 0.8em;
  border-radius: 50px;
}

/* ===========================================
   7. STAT CARD (metrics display)
   =========================================== */
.stat-card {
  text-align: center;
  padding: var(--card-padding);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent-cyan);
  text-shadow: 0 0 12px var(--accent-glow-c);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* ===========================================
   8. PROCESS STEPS (horizontal flow)
   =========================================== */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.process-step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.process-step-num {
  width: clamp(2.5rem, 4vw, 3.5rem);
  height: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--element-gap);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-glow-c);
  position: relative;
  z-index: 2;
}

.process-step::after {
  content: '';
  position: absolute;
  top: clamp(1.25rem, 2vw, 1.75rem);
  left: calc(50% + 1.75rem);
  width: calc(100% - 3.5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.process-step h4 {
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: var(--text-small);
}

/* ===========================================
   9. HERO SECTION
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 2rem) var(--container-padding) 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,204,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--element-gap);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================
   10. GLOW ORB DECORATION
   =========================================== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.glow-orb.cyan {
  background: var(--accent-cyan);
}

.glow-orb.magenta {
  background: var(--accent-magenta);
}

/* ===========================================
   11. MOBILE NAVBAR OVERLAY
   =========================================== */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: rgba(10, 15, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--duration-normal) var(--ease-out-expo);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-links .navbar-cta {
    display: block;
  }
}

/* ===========================================
   12. AUTH FORMS (Login / Register)
   =========================================== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 2rem) var(--container-padding) 4rem;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .logo-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  color: var(--accent-cyan);
}

.auth-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-header p {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.12);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

/* ===========================================
   13. REPORT TABLE
   =========================================== */
.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th {
  text-align: left;
  padding: 0.75rem 0.875rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.report-table td {
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.report-table tr:hover td {
  background: rgba(0, 255, 204, 0.03);
}

/* ===========================================
   14. MODAL (Recharge)
   =========================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color var(--duration-fast) ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
}

.pay-tab.active,
.amount-btn.active,
.ex-amount.active,
.ex-pay.active {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

/* ===========================================
   15. PROGRESS STEPS (Analyze page)
   =========================================== */
.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  position: relative;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  flex: 1;
  position: relative;
  z-index: 1;
}

.prog-step::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: var(--bg-tertiary);
  z-index: 0;
}

.prog-step:last-child::after { display: none; }

.prog-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  position: relative;
  z-index: 2;
  transition: all var(--duration-fast) ease;
}

.prog-step.active .prog-dot {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow-c);
  animation: pulse-dot 1.5s infinite;
}

.prog-step.done .prog-dot {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.prog-step.active { color: var(--accent-cyan); }
.prog-step.done { color: var(--text-secondary); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent-glow-c); }
  50% { box-shadow: 0 0 16px var(--accent-glow-c); }
}
