/* ===========================
   ChargeIQ – Glassmorphism EV
   styles.css
   =========================== */

/* ── Design Tokens ─────────────────── */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1221;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);

  --accent-blue: #3b82f6;
  --accent-teal: #06b6d4;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-teal: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #0f1a35 50%, #0a1628 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-btn: 0 4px 20px rgba(59, 130, 246, 0.35);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

/* ── Scrollbar ─────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Glass Card ────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── Utility ───────────────────────── */
.hidden {
  display: none !important;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────
   NAVBAR
───────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(16px, 4vw, 60px);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled,
.recommend-body .navbar {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #fff;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.nav-cta {
  margin-left: auto;
  padding: 8px 20px;
  background: var(--gradient-primary);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero-body {
  background: var(--bg-primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px clamp(24px, 6vw, 100px) 60px;
  background: var(--gradient-hero);
  width: 100%;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated gradient orbs */
.hero-bg-overlay::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-bg-overlay::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, -20px) scale(1.05);
  }
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Hero Layout */
.hero>.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
}

/* Full viewport layout */
@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 100px);
    align-items: center;
    padding: 120px clamp(48px, 8vw, 120px) 80px;
  }

  .hero>.hero-content {
    max-width: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* ── Buttons ─────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  max-width: fit-content;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 16px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  padding-right: 0;
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border-strong);
  flex-shrink: 0;
}

/* Hero visual: floating preview cards */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

@media (max-width: 959px) {
  .hero-visual {
    display: none;
  }
}

.preview-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  width: clamp(260px, 22vw, 340px);
  box-shadow: var(--shadow-card);
}

.card-float-1 {
  animation: cardFloat1 5s ease-in-out infinite alternate;
}

.card-float-2 {
  animation: cardFloat2 6s ease-in-out infinite alternate;
  margin-right: 36px;
}

@keyframes cardFloat1 {
  from {
    transform: translateY(0px) rotate(-1deg);
  }

  to {
    transform: translateY(-14px) rotate(0.5deg);
  }
}

@keyframes cardFloat2 {
  from {
    transform: translateY(0px) rotate(1deg);
  }

  to {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

.preview-card-header {
  margin-bottom: 10px;
}

.preview-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.preview-badge.best {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.preview-badge.wait {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.preview-station-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.preview-meta {
  margin-bottom: 14px;
}

.preview-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-stat {
  text-align: center;
  white-space: nowrap;
}

.pstat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.pstat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────── */
.how-it-works {
  padding: 100px clamp(24px, 7vw, 120px);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 36px 30px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  opacity: 0.5;
  margin-bottom: 20px;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card:hover .step-icon {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────
   CTA SECTION
───────────────────────────────────── */
.cta-section {
  padding: 60px clamp(24px, 7vw, 120px) 100px;
  display: flex;
  justify-content: center;
}

.cta-glass {
  max-width: 700px;
  width: 100%;
  padding: 60px 40px;
  text-align: center;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px clamp(24px, 6vw, 100px);
  background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  opacity: 0.7;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─────────────────────────────────────
   RECOMMEND PAGE
───────────────────────────────────── */
.recommend-body {
  background: var(--bg-secondary);
}

.page-banner {
  padding: 120px clamp(24px, 7vw, 120px) 48px;
  background: linear-gradient(180deg, #0a0e1a 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59, 130, 246, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.page-banner-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-banner-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-banner-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.recommend-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 7vw, 120px) 80px;
}

/* ── Search Form ─────────────────── */
.form-section {
  margin-bottom: 40px;
}

.form-card {
  padding: 36px 36px;
}

@media (max-width: 640px) {
  .form-card {
    padding: 24px 20px;
  }
}

.form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.form-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.form-card-icon svg {
  width: 20px;
  height: 20px;
}

.form-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-label svg {
  width: 14px;
  height: 14px;
}

/* Searchable Dropdown */
.searchable-dropdown {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  user-select: none;
}

.form-select.has-value {
  color: var(--text-primary);
}

.form-select:focus,
.form-select[aria-expanded="true"] {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  outline: none;
}

.dropdown-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform var(--transition);
}

.dropdown-arrow svg {
  width: 100%;
  height: 100%;
}

/* For the select box (not input), arrow is inside flex */
.form-select .dropdown-arrow {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.form-select[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* City input arrow stays positioned */
.searchable-dropdown:has(.form-input) .dropdown-arrow {
  pointer-events: none;
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 18, 33, 0.97);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  padding: 6px;
}

.dropdown-list.open {
  display: block;
  animation: dropIn 0.18s ease;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover,
.dropdown-item.highlighted {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
}

.dropdown-item.selected {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-weight: 600;
}

.dropdown-item.no-results {
  color: var(--text-muted);
  cursor: default;
  justify-content: center;
}

.dropdown-item.no-results:hover {
  background: none;
  color: var(--text-muted);
}

.charger-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.charger-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.charger-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select {
  border-color: #ef4444;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0;
  width: 100%;
}

/* ── Loading ────────────────────── */
.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
}

.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}

.loader:after {
  color: #7DF9FF;
  transform: rotateY(70deg);
  animation-delay: .4s;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {

  0%,
  100% {
    box-shadow: .2em 0px 0 0px currentcolor;
  }

  12% {
    box-shadow: .2em .2em 0 0 currentcolor;
  }

  25% {
    box-shadow: 0 .2em 0 0px currentcolor;
  }

  37% {
    box-shadow: -.2em .2em 0 0 currentcolor;
  }

  50% {
    box-shadow: -.2em 0 0 0 currentcolor;
  }

  62% {
    box-shadow: -.2em -.2em 0 0 currentcolor;
  }

  75% {
    box-shadow: 0px -.2em 0 0 currentcolor;
  }

  87% {
    box-shadow: .2em -.2em 0 0 currentcolor;
  }
}

/* .loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 6rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  animation: pulsOut 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
}

.loader:before {
  width: 100%;
  padding-bottom: 100%;
  box-shadow: inset 0 0 0 1rem #fff;
  animation-name: pulsIn;
}

.loader:after {
  width: calc(100% - 2rem);
  padding-bottom: calc(100% - 2rem);
  box-shadow: 0 0 0 0 #fff;
}

@keyframes pulsIn {
  0% {
    box-shadow: inset 0 0 0 1rem #fff;
    opacity: 1;
  }

  50%,
  100% {
    box-shadow: inset 0 0 0 0 #fff;
    opacity: 0;
  }
}

@keyframes pulsOut {

  0%,
  50% {
    box-shadow: 0 0 0 0 #fff;
    opacity: 0;
  }

  100% {
    box-shadow: 0 0 0 1rem #fff;
    opacity: 1;
  }
} */


/* ── Results ────────────────────── */
.results-section {
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.results-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.results-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-charger-badge {
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.results-timestamp {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 1300px) {
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* Result Cards */
.result-card {
  padding: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}

.rank-gold::before {
  background: var(--gradient-gold);
}

.rank-blue::before {
  background: var(--gradient-primary);
}

.rank-teal::before {
  background: var(--gradient-teal);
}

.rank-green::before {
  background: var(--gradient-green);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-rank-badge {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-rank-badge.gold {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-gold);
}

.card-rank-badge.blue {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
}

.card-rank-badge.teal {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-teal);
}

.card-rank-badge.green {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-station-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-charger-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.card-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-icon {
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-left: auto;
}

/* Score row */
.card-score-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.score-label {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-gold);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.score-fill.blue-fill {
  background: var(--gradient-primary);
}

.score-fill.teal-fill {
  background: var(--gradient-teal);
}

.score-fill.green-fill {
  background: var(--gradient-green);
}

.score-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
}

/* New search row */
.new-search-row {
  display: flex;
  justify-content: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.empty-desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .stats-bar {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .stat-item {
    padding: 0;
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

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

  .results-header {
    flex-direction: column;
  }
}

/* ── AI Assistant Section ──────────────── */
.ai-assistant-section {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius-lg);
  width: 100%;
}

.ai-assistant-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.ai-header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-header-icon {
  font-size: 2rem;
  animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.ai-assistant-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-assistant-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ai-assistant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 960px) {
  .ai-assistant-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.ai-column-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

/* Left Column: Insights */
.ai-insights-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  min-height: 340px;
}

.ai-insights-content p {
  margin-bottom: 12px;
}

.ai-insights-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ai-insights-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.ai-insights-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.ai-insights-content li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent-blue);
  font-weight: bold;
}

/* Right Column: Chat */
.ai-chat-column {
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  .ai-chat-column {
    border-left: 1px solid var(--glass-border);
    padding-left: 32px;
  }
}

.ai-chat-history {
  flex: 1;
  min-height: 270px;
  max-height: 270px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.ai-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.ai-message.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.ai-message-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-message.user .ai-message-bubble {
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ai-message.assistant .ai-message-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--glass-border);
}

/* Chips inside messages */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-chip-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all var(--transition);
}

.quick-chip-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Chat Form */
.ai-chat-input-form {
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.ai-chat-send-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.ai-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading skeletal styles */
.ai-loading-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.ai-skeleton-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 200px;
}

.ai-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.ai-loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounceDot {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Page Transition Animations */
body {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}