/* ========================================
   Jerry Yang Portfolio — Editorial Dark
   Aesthetic: Refined editorial with dramatic
   typography, generous negative space, and
   warm amber accents on deep charcoal.
   ======================================== */

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

:root {
  /* Palette: warm charcoal + amber gold */
  --bg: #0e0e0e;
  --bg-elevated: #161616;
  --bg-card: #1a1a1a;
  --surface: #222222;
  --border: #2a2a2a;
  --border-light: #333333;
  --text: #e8e4de;
  --text-muted: #8a857d;
  --text-dim: #5a5650;
  --accent: #d4a853;
  --accent-dim: #b8922e;
  --accent-glow: rgba(212, 168, 83, 0.12);
  --white: #f5f2ed;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  margin-left: 8px;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  bottom: -8%;
  right: -3%;
  font-family: var(--serif);
  font-size: clamp(180px, 25vw, 420px);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  line-height: 0.85;
  user-select: none;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
}

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

.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.stat-plus {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Hero Avatar */
.hero-avatar {
  flex-shrink: 0;
  width: clamp(220px, 20vw, 300px);
  aspect-ratio: 3/4;
  position: relative;
  z-index: 2;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: grayscale(15%) contrast(1.05);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.hero-avatar::before {
  content: '';
  position: absolute;
  inset: -8px -8px auto auto;
  width: 50%;
  height: 50%;
  border-top: 1px solid var(--accent-dim);
  border-right: 1px solid var(--accent-dim);
  pointer-events: none;
}

.hero-avatar::after {
  content: '';
  position: absolute;
  inset: auto auto -8px -8px;
  width: 50%;
  height: 50%;
  border-bottom: 1px solid var(--accent-dim);
  border-left: 1px solid var(--accent-dim);
  pointer-events: none;
}

/* Stats Bar */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-bar .hero-stats {
  justify-content: center;
  gap: 72px;
}

@media (max-width: 900px) {
  .hero-avatar {
    width: 140px;
    aspect-ratio: 1;
    margin: 0 auto 32px;
    order: -1;
  }
  .hero-avatar img { border-radius: 50%; }
  .hero-avatar::before,
  .hero-avatar::after { display: none; }
}

/* (scroll indicator removed) */

/* --- Sections --- */
.section {
  padding: 120px 0;
  position: relative;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 48px;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--white);
  font-weight: 500;
}

.about-education {
  position: relative;
  overflow: hidden;
}

.about-education::before {
  content: '';
  position: absolute;
  bottom: -35%;
  right: -5%;
  width: 550px;
  height: 600px;
  background: url('oxford-crest.png') center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  filter: brightness(3);
}

.edu-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, background 0.3s;
  background: rgba(18, 18, 18, 0.85);
}

.edu-card:hover {
  border-color: var(--accent-dim);
  background: rgba(24, 24, 24, 0.9);
}

.edu-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 2px;
}

.edu-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 200px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
  position: absolute;
  left: -200px;
  top: 2px;
  width: 160px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.timeline-content h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--accent-dim);
  border-radius: 2px;
}

.timeline-content h4 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.timeline-content ul {
  padding-left: 0;
}

.timeline-content li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 1px;
  background: var(--accent-dim);
}

/* --- Projects --- */
.projects { background: var(--bg-elevated); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s,
              box-shadow 0.35s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-dim);
}

.project-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card), #1f1b14);
  border-color: var(--accent-dim);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 2px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 2px;
}

.project-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.project-link {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1rem;
  margin-left: 6px;
  transition: opacity 0.3s;
}

.project-link:hover { opacity: 0.7; }

.live-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s;
}

.live-link:hover {
  border-color: var(--accent);
}

.project-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-metrics span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.projects-github {
  text-align: center;
  margin-top: 48px;
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.skill-group {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  transition: border-color 0.3s;
}

.skill-group:hover {
  border-color: var(--accent-dim);
}

.skill-group h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}

.skill-tags span:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

/* --- Contact --- */
.contact {
  text-align: center;
  padding: 160px 0;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 48px;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.35s;
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.1);
}

.contact-icon {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 32px;
  }

  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    padding-left: 28px;
  }

  .timeline-item::before {
    left: -4px;
  }

  .timeline-date {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 4px;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .hero-stats {
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    justify-content: center;
  }

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

/* ========================================
   Chatbot Widget
   ======================================== */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(212, 168, 83, 0.5);
}

.chat-fab.hidden { display: none; }

.chat-window {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 400px;
  max-height: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  overflow: hidden;
}

.chat-window.open {
  display: flex;
  animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.chat-header h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.chat-header span {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.chat-msg p { margin: 0; }

.chat-msg-bot {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}

.chat-msg-user {
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  font-weight: 400;
}

.chat-msg-loading {
  align-self: flex-start;
  background: var(--surface);
  padding: 14px 20px;
  border-bottom-left-radius: 2px;
}

.chat-dots {
  display: flex;
  gap: 5px;
}

.chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: dotBounce 1.4s infinite ease-in-out;
}

.chat-dots span:nth-child(2) { animation-delay: 0.16s; }
.chat-dots span:nth-child(3) { animation-delay: 0.32s; }

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

.chat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-example-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-align: left;
  line-height: 1.4;
}

.chat-example-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent-dim);
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-send {
  background: var(--accent);
  border: none;
  color: var(--bg);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--white);
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 12px 12px 0 0;
  }
}
