/* ============================================================
   Trenify — Platform for personlige trenere
   Design: Dark theme, green accent, Inter font
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f5;
  --muted: #888;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-glow: rgba(34,197,94,0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.section-darker { background: var(--bg3); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.section-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1, h2, h3 { line-height: 1.15; }
.accent { color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,197,94,0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 24px;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 9px 18px;
}
.nav-links .nav-cta:hover { background: var(--accent-dark); color: #000; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 24px 80px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(34,197,94,0.35);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(245,245,245,0.75);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

/* ── SEARCH SECTION ── */
#search {
  background: var(--bg2);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.search-wrapper { max-width: 800px; margin: 0 auto; text-align: center; }
.search-wrapper h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.search-wrapper p { color: var(--muted); margin-bottom: 32px; }
.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.search-bar input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--muted); }
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-glow);
  border-color: rgba(34,197,94,0.4);
  color: var(--accent);
}

/* ── TRAINER CARDS ── */
#trenere { padding: 100px 0; }
.trenere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.trainer-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.trainer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.trainer-card.featured {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2);
}
.trainer-card.placeholder {
  opacity: 0.45;
  pointer-events: none;
}
.trainer-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.trainer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.trainer-card:hover .trainer-img { transform: scale(1.04); }
.trainer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-overlay span {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trainer-info { padding: 20px; }
.trainer-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.trainer-specialty { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.trainer-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.trainer-meta-item { display: flex; flex-direction: column; gap: 2px; }
.trainer-meta-label { font-size: 0.75rem; color: var(--muted); }
.trainer-meta-value { font-size: 0.9rem; font-weight: 600; }
.trainer-rating { color: var(--accent); }
.trainer-card .btn { width: 100%; text-align: center; }

/* ── HOW IT WORKS ── */
#how-it-works { background: var(--bg2); padding: 100px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.step-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1.5px solid rgba(34,197,94,0.4);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 24px;
}
.step-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.step-card p { color: var(--muted); line-height: 1.7; }

/* ── CTA SECTION ── */
#cta-trener {
  padding: 100px 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 24px;
  padding: 80px 48px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta-box p { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-perks {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cta-perk { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.cta-perk-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ── PROFILE PAGE ── */
.back-bar {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 96px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

.profile-hero {
  padding: 40px 24px 80px;
}
.profile-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.profile-img-wrap {
  position: sticky;
  top: 96px;
}
.profile-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.profile-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(34,197,94,0.4);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.profile-verified svg { width: 14px; height: 14px; }

.profile-info { padding-top: 8px; }
.profile-info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 16px 0 8px;
}
.profile-title { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.profile-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.profile-stat { display: flex; flex-direction: column; gap: 4px; }
.profile-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.profile-stat-label { font-size: 0.85rem; color: var(--muted); }

.profile-bio { color: rgba(245,245,245,0.8); line-height: 1.8; margin-bottom: 32px; font-size: 1.05rem; }

.specialties-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.specialty-tag {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg2);
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card.popular {
  border-color: rgba(34,197,94,0.5);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,0.3); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-amount { font-size: 2.4rem; font-weight: 900; }
.pricing-kr { font-size: 1.1rem; font-weight: 600; color: var(--muted); vertical-align: middle; }
.pricing-price span.pricing-period { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-period { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(245,245,245,0.8);
}
.pricing-features .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CONTACT SECTION ── */
#kontakt {
  background: var(--bg2);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-method-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-method-text { display: flex; flex-direction: column; gap: 2px; }
.contact-method-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-method-value { font-weight: 600; font-size: 0.95rem; }

.contact-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: rgba(245,245,245,0.8); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── BLI TRENER PAGE ── */
.bli-hero {
  padding: 140px 24px 80px;
  text-align: center;
}
.bli-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 20px; }
.bli-hero p { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }

.krav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.krav-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.krav-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.krav-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.krav-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.application-section { padding: 80px 0; }
.application-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.application-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.application-form h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.application-form > p { color: var(--muted); margin-bottom: 36px; }
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

/* ── ANIMATIONS ── */
.fade-in { animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .profile-hero-inner { grid-template-columns: 1fr; }
  .profile-img-wrap { position: static; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 48px 24px; }
  .application-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .trenere-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .profile-stats { gap: 20px; }
}

/* ── Hero Accent Glow ── */
@keyframes heroGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(34,197,94,0.4), 0 0 40px rgba(34,197,94,0.2); }
  50% { text-shadow: 0 0 30px rgba(34,197,94,0.7), 0 0 60px rgba(34,197,94,0.35); }
}
.hero-accent-glow { animation: heroGlow 3s ease-in-out infinite; }

/* ── Chat Widget ── */
#chat-toggle {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #22c55e; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(34,197,94,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
#chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(34,197,94,0.5); }
#chat-toggle svg { width: 26px; height: 26px; fill: #000; }

#chat-window {
  position: fixed; bottom: 96px; right: 28px; z-index: 999;
  width: 360px; max-height: 520px; border-radius: 16px;
  background: #111; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(0.97); opacity: 0;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1); pointer-events: none;
}
#chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }

.chat-header {
  padding: 16px 20px; background: #161616;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #22c55e; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #000;
}
.chat-header-info h4 { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.chat-header-info span { font-size: 12px; color: #22c55e; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: #1a1a1a; color: #e5e5e5; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: #22c55e; color: #000; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: transparent; border: 1px solid rgba(34,197,94,0.4); color: #22c55e;
  cursor: pointer; transition: all 0.2s;
}
.chat-chip:hover { background: #22c55e; color: #000; }

.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06); background: #161616;
}
.chat-input-row input {
  flex: 1; background: #222; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 14px; outline: none;
  font-family: inherit;
}
.chat-input-row input:focus { border-color: #22c55e; }
.chat-input-row button {
  padding: 10px 16px; background: #22c55e; border: none; border-radius: 8px;
  color: #000; font-weight: 600; cursor: pointer; font-size: 14px; transition: opacity 0.2s;
}
.chat-input-row button:hover { opacity: 0.85; }

/* ── Typing Indicator ── */
.typing-indicator {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
