/* ============================================
   FEEDING THE BLOCK — Design System & Styles
   Blessed Wheelz × Kalyan's Automotive Services × Sifs Performance Garage
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Anton&family=Sedgwick+Ave+Display&family=Bangers&family=Outfit:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --accent-orange: #ff6a00;
  --accent-orange-glow: rgba(255, 106, 0, 0.35);
  --accent-cyan: #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.25);
  --accent-purple: #b44aff;
  --accent-purple-glow: rgba(180, 74, 255, 0.3);
  --accent-green: #00ff88;
  --accent-green-glow: rgba(0, 255, 136, 0.3);
  --text-primary: #f0f0f5;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-icon {
  font-size: 1.5rem;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.2);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 15, 0.5) 0%,
      rgba(10, 10, 15, 0.7) 50%,
      var(--bg-dark) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Increased z-index */
  padding: 120px 24px 80px;
  max-width: 900px;
}

.flyer-presents {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: transparent;
  -webkit-text-stroke: 2px white;
  margin: 30px 0 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.flyer-title,
.flyer-subtitle {
  font-family: 'Sedgwick Ave Display', cursive;
  color: transparent;
  -webkit-text-stroke: 2px white;
  background: none;
  letter-spacing: 4px;
}

.flyer-title {
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  line-height: 1.1;
  margin-bottom: 0px;
}

.flyer-title .line-1,
.flyer-title .line-2 {
  display: block;
}

.flyer-subtitle {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  margin-bottom: 40px;
}

.flyer-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: white;
  text-transform: uppercase;
  line-height: 1.25;
  border-top: 3px solid #00ff88;
  border-bottom: 3px solid #00ff88;
  padding: 24px 0;
  margin-bottom: 30px;
  text-align: left;
  letter-spacing: 1px;
}

.flyer-datetime {
  text-align: right;
}

.flyer-bring {
  font-family: 'Anton', sans-serif;
  color: #ffcc00;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  margin-bottom: 30px;
  text-transform: uppercase;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.flyer-free {
  font-family: 'Anton', sans-serif;
  color: white;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 20px;
  -webkit-text-stroke: 1px black;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
  padding: 0 40px;
}

.flyer-activities {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  letter-spacing: 2px;
  color: white;
  margin-bottom: 10px;
}

.flyer-music {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 40px;
}

.flyer-music .music-red {
  color: #ff3333;
}

.flyer-music .music-white {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
  }
}

/* --- Countdown Timer --- */
.countdown {
  margin-top: 40px;
}

.countdown-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.countdown-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.countdown-box:hover {
  border-color: rgba(255, 106, 0, 0.3);
  box-shadow: 0 0 25px var(--accent-orange-glow);
  transform: translateY(-2px);
}

.countdown-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-unit {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 6px;
}

.countdown-sep {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dim);
  padding-bottom: 18px;
  animation: blink 2s infinite;
}

@media (max-width: 600px) {
  .countdown-boxes {
    gap: 6px;
  }

  .countdown-box {
    min-width: 60px;
    padding: 12px 10px;
  }

  .countdown-sep {
    font-size: 1.4rem;
  }
}

/* Hero text styles replaced by Flyer typography */

/* --- Hero Logos --- */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  width: 100%;
}

.hero-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: transparent;
  border: none;
  padding: 0;
}

.hero-logo-item img {
  width: clamp(180px, 30vw, 400px);
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.hero-logo-item:hover {
  transform: translateY(-4px) scale(1.05);
}

/* --- Section Shared --- */
section {
  padding: 100px 0;
}

/* --- Partners Showcase --- */
.partners {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0e18 50%, var(--bg-dark) 100%);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.partner-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-card-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all var(--transition);
}

.partner-card:hover .partner-card-logo {
  box-shadow: 0 0 30px var(--accent-cyan-glow);
  border-color: var(--accent-cyan);
}

.partner-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery {
  position: relative;
  background: var(--bg-dark);
}

.gallery-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:first-child img {
  object-position: top center;
}

.gallery-item:last-child img {
  object-position: center center;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 15, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transform: translateY(10px);
  transition: transform var(--transition);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 350px;
  }
}

/* --- Mission Section --- */
.mission {
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.mission-image:hover img {
  transform: scale(1.03);
}

.mission-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.mission-image .image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-orange), transparent);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.mission-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.mission-text p:first-of-type {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 400;
}

.mission-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.mission-stat {
  text-align: left;
}

.mission-stat .stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Event Breakdown --- */
.events {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d16 50%, var(--bg-dark) 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.event-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.event-card:hover::before {
  opacity: 1;
}

.event-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.event-card:nth-child(1) .card-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.event-card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(255, 106, 0, 0.05));
  box-shadow: 0 0 25px var(--accent-orange-glow);
}

.event-card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, rgba(180, 74, 255, 0.15), rgba(180, 74, 255, 0.05));
  box-shadow: 0 0 25px var(--accent-purple-glow);
}

.event-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.event-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card ul li::before {
  content: '▸';
  color: var(--accent-cyan);
  font-weight: 700;
}

/* --- Car Meet Image Strip --- */
.car-strip {
  padding: 60px 0;
  position: relative;
}

.car-strip-inner {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  max-height: 400px;
}

.car-strip-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.3);
}

.car-strip-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 20%, transparent 80%, var(--bg-dark) 100%);
}

.car-strip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.car-strip-overlay blockquote {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  max-width: 700px;
  padding: 0 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.car-strip-overlay blockquote span {
  color: var(--accent-orange);
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 48px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 14px;
  opacity: 0.7;
  transition: all var(--transition);
  filter: grayscale(30%);
}

.footer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.footer-partners {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-partners span {
  color: var(--accent-orange);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 960px) {

  .events-grid,
  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .hero-logos {
    gap: 12px;
  }

  .hero-logo-item img {
    width: 90px;
    height: 90px;
  }

  .hero-logo-divider {
    font-size: 1.2rem;
  }

  .mission-stat-row {
    flex-direction: column;
    gap: 24px;
  }

  .partner-card-logo {
    width: 140px;
    height: 140px;
  }

  .footer-logos {
    gap: 20px;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }
}

/* --- Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-orange), #ff9a44);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px var(--accent-orange-glow), 0 0 0 0 rgba(255, 106, 0, 0.4);
  transition: all var(--transition);
  position: relative;
  animation: chat-pulse 2.5s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px var(--accent-orange-glow);
}

.chat-toggle-close {
  display: none;
  font-size: 1.4rem;
  font-weight: 700;
}

.chat-widget.open .chat-toggle-icon {
  display: none;
}

.chat-widget.open .chat-toggle-close {
  display: inline;
}

.chat-widget.open .chat-toggle {
  animation: none;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes chat-pulse {

  0%,
  100% {
    box-shadow: 0 6px 30px var(--accent-orange-glow), 0 0 0 0 rgba(255, 106, 0, 0.35);
  }

  50% {
    box-shadow: 0 6px 30px var(--accent-orange-glow), 0 0 0 14px rgba(255, 106, 0, 0);
  }
}

/* Panel */
.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 106, 0, 0.08);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(0, 229, 255, 0.06));
  border-bottom: 1px solid var(--glass-border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.chat-header-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s infinite;
}

.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 10px;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: chat-msg-in 0.3s ease both;
}

@keyframes chat-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message-user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-message-user .chat-avatar {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.05));
  border-color: rgba(0, 229, 255, 0.2);
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

.chat-bubble strong {
  color: var(--accent-orange);
  font-weight: 600;
}

.chat-message-user .chat-bubble {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.04));
  border-color: rgba(0, 229, 255, 0.15);
  border-radius: 14px 14px 4px 14px;
  color: var(--text-primary);
}

/* Chat confirmation */
.chat-confirmation {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 4px 0;
  animation: chat-msg-in 0.3s ease both;
}

/* Form */
.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-orange), #ff9a44);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}

/* Mobile */
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -12px;
    max-height: 460px;
  }

  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}