@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap");

/* ── Variables ── */
:root {
  --primary: #000c1a;
  --surface: #071628;
  --surface-alt: #0b1f35;
  --accent: #00d4ff;
  --accent-dark: #009ec0;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text: #e2ecf5;
  --text-muted: #6b8aa8;
  --white: #ffffff;
  --font-mono: "Space Mono", monospace;
  --font-body: "DM Sans", sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ── Light mode ── */
body.light {
  --primary: #f0f4f8;
  --surface: #ffffff;
  --surface-alt: #e8eef5;
  --accent: #0099bb;
  --accent-dark: #007a99;
  --accent-glow: rgba(0, 153, 187, 0.12);
  --text: #0d1f2d;
  --text-muted: #4a6070;
  --white: #0d1f2d;
}

body.light nav {
  background: rgba(240, 244, 248, 0.92);
  border-bottom-color: rgba(0, 153, 187, 0.12);
}

body.light .header__grid-lines {
  background-image:
    linear-gradient(rgba(0, 153, 187, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 187, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

body.light .header__glow {
  background: radial-gradient(circle, rgba(0, 153, 187, 0.1) 0%, transparent 70%);
}

body.light a { color: inherit; }


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

html { scroll-behavior: smooth; }

body {
  background-color: var(--primary);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Shared ── */
.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section__title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section__title span { color: var(--accent); }

.section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.section__subtitle span { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--primary);
}

.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-glow);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(0, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.75rem 2rem;
  border-bottom-color: rgba(0, 212, 255, 0.15);
}

.nav__logo a {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.nav__logo a span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
}

/* ── HEADER ── */
header {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
}

.header__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.header__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.header__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.header__container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.header__text {
  flex: 1;
  max-width: 580px;
}

.header__greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.header__greeting .tag {
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.header__name {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.header__name span { color: var(--accent); }

.header__role {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.header__role .accent { color: var(--accent); }

.header__desc {
  color: var(--text-muted);
  max-width: 440px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.header__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Orb toggle (above 3D canvas) ── */
.orb__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

#orbCanvas {
  width: 90px;
  height: 90px;
  cursor: pointer;
  border-radius: 50%;
  display: block;
  transition: transform 0.2s ease;
  touch-action: manipulation;
  position: relative;
  top: 12px;
}

#orbCanvas:hover {
  transform: scale(1.08);
}

/* 3D Coder Scene */
.coder3d__wrap {
  position: relative;
  width: 420px;
  height: 420px;
}

.coder3d__wrap canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px;
}

.coder3d__label {
  position: absolute;
  bottom: 12px;
  right: 8px;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: var(--text);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── ABOUT ── */
.about {
  background-color: var(--surface);
}

.about__container {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-direction: column;
}

.about__image {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

.about__image img {
  border-radius: var(--radius);
  filter: grayscale(15%);
}

.about__image-border {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.4;
  z-index: -1;
}

.about__content {
  flex: 1;
}

.about__content .section__title {
  text-align: left;
}

.about__details {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.25rem 0 2rem;
  line-height: 1.9;
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── SKILLS ── */
.skills {
  background-color: var(--primary);
}

.skills__container {
  flex-direction: column;
  align-items: center;
}

.skills__container .section__title {
  text-align: center;
}

.skills__container .section__label {
  text-align: center;
  display: block;
  width: 100%;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  width: 100%;
}

.skill__card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  cursor: default;
}

.skill__card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-4px);
}

.skill__icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill__card h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.skill__card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── SERVICES ── */
.service {
  background-color: var(--surface);
}

.service__container {
  flex-direction: column;
  align-items: center;
}

.service__container .section__title {
  text-align: center;
}

.service__container .section__label {
  display: block;
  text-align: center;
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

.service__card {
  background: var(--surface-alt);
  border: 1px solid rgba(0, 212, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.service__card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.service__icon {
  font-size: 1.6rem;
  color: var(--accent);
}

.service__card h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.service__card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.read__more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  transition: var(--transition);
  width: max-content;
}

.read__more:hover { opacity: 0.7; }


/* ── PROJECTS ── */
.project {
  background-color: var(--primary);
}

.project__container {
  flex-direction: column;
  align-items: center;
}

.project__container .section__title {
  text-align: center;
}

.project__container .section__label {
  display: block;
  text-align: center;
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

.project__card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.project__card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.project__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project__card:hover .project__img-wrap img {
  transform: scale(1.06);
}

.project__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project__card:hover .project__overlay {
  opacity: 1;
}

.project__info {
  padding: 1.25rem 1.5rem;
}

.project__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.project__info h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.project__info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.project__card--coming {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.project__coming-soon {
  text-align: center;
  color: var(--text-muted);
}

.project__coming-soon i {
  font-size: 2rem;
  color: rgba(0, 212, 255, 0.3);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── FOOTER ── */
footer {
  background-color: var(--surface);
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer__content .section__title {
  text-align: left;
}

.footer__details {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__details p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__details i {
  color: var(--accent);
  font-size: 1rem;
}

.social__icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social__icons .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social__icons .icon:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Form */
.footer__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__form :is(input, textarea) {
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.footer__form :is(input, textarea):focus {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.footer__form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  font-size: 0.78rem;
  color: #f87171;
  font-family: var(--font-mono);
}

.form__success {
  font-size: 0.85rem;
  color: #22c55e;
  font-family: var(--font-mono);
  text-align: center;
  min-height: 1.2rem;
}

.footer__bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Orb hint arrow ── */
.orb__hint-wrap {
  position: relative;
  display: inline-block;
}

/* hidden in light mode */
body.light .orb__hint {
  display: none;
}

.orb__hint {
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  transform: translateY(-50%);
  pointer-events: none;
  animation: hintBob 2.4s ease-in-out infinite;
}

.orb__arrow {
  width: 70px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 0 4px var(--accent));
}

@keyframes hintBob {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(-5px); }
}

/* mobile: orb is centered, arrow flips to the right side pointing left */
@media (max-width: 768px) {
  .orb__hint {
    right: auto;
    left: calc(100% + 6px);
    animation: hintBobMobile 2.4s ease-in-out infinite;
  }

  .orb__arrow {
    transform: scaleX(-1);
  }
}

@keyframes hintBobMobile {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(5px); }
}

/* ── BEYOND CODE ── */
.beyond {
  background-color: var(--surface);
}

.beyond__container {
  flex-direction: column;
  align-items: center;
}

.beyond__container .section__title,
.beyond__container .section__label,
.beyond__container .section__subtitle {
  text-align: center;
  display: block;
  width: 100%;
}

.beyond__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  width: 100%;
}

.beyond__card {
  background: var(--surface-alt);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.beyond__card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.06);
}

.beyond__card--wide {
  grid-column: span 1;
}

.beyond__card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.beyond__icon {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.beyond__card h4 {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.beyond__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.beyond__card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

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

  .beyond__card--wide {
    grid-column: span 1;
  }


}


@media (min-width: 640px) {
  .about__container {
    flex-direction: row;
  }

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

@media (min-width: 768px) {
  .header__name {
    font-size: 4.5rem;
  }

  .section__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header__container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 6rem;
  }

  .header__desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .header__btns { justify-content: center; }
  .header__visual { margin: 0 auto; }
  .coder3d__wrap { width: 240px; height: 240px; }

  .about__image { max-width: 260px; margin: 0 auto; }
  .about__content .section__title { text-align: center; }
  .about__stats { justify-content: center; }
  .about__content { align-items: center; text-align: center; display: flex; flex-direction: column; }
}


/* ══════════════════════════════════════
   CHATBOT
   paste at the bottom of index.css
══════════════════════════════════════ */

/* ── Floating button ── */
.chatbot__fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot__fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0, 212, 255, 0.5);
}

.chatbot__fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chatbot__fab:hover .chatbot__fab-tooltip {
  opacity: 1;
}

/* ── Panel ── */
.chatbot__panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 900;
  width: 360px;
  max-height: 520px;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}

.chatbot__panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* ── Header ── */
.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  flex-shrink: 0;
}

.chatbot__header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chatbot__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.chatbot__header-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.chatbot__header-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1;
}

.chatbot__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.chatbot__close:hover { color: var(--accent); }

/* ── Message area ── */
.chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.chatbot__body::-webkit-scrollbar { width: 4px; }
.chatbot__body::-webkit-scrollbar-track { background: transparent; }
.chatbot__body::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.15);
  border-radius: 4px;
}

/* ── Messages ── */
.chatbot__msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 86%;
}

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

.chatbot__msg--bot {
  align-self: flex-start;
}

.chatbot__msg-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.chatbot__bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.65;
}

.chatbot__msg--user .chatbot__bubble {
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px 10px 2px 10px;
}

.chatbot__msg--bot .chatbot__bubble {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 10px 10px 10px 2px;
}

/* ── Typing indicator ── */
.chatbot__typing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-self: flex-start;
}

.chatbot__typing-bubble {
  background: var(--surface-alt);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 10px 10px 10px 2px;
  padding: 0.7rem 1rem;
  display: flex;
  gap: 5px;
  align-items: center;
}

.chatbot__typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: chatTyping 1.2s infinite;
}

.chatbot__typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot__typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ── Suggestion chips ── */
.chatbot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chatbot__chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chatbot__chip:hover {
  background: var(--accent-glow);
  border-color: rgba(0, 212, 255, 0.5);
}

/* ── Input footer ── */
.chatbot__footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
  background: var(--surface-alt);
  flex-shrink: 0;
}

.chatbot__input {
  flex: 1;
  background: var(--primary);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

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

.chatbot__input:focus {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chatbot__send {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chatbot__send:hover { background: var(--accent-dark); }
.chatbot__send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .chatbot__panel {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
  }

  .chatbot__fab {
    right: 1rem;
    bottom: 1.5rem;
  }
}