:root {
  --primary: #0f766e;
  --primary-dark: #0d5c56;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 118, 110, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 118, 110, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-link:hover { color: var(--primary); }
.logo-link img { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 50%, #0d9488 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(94, 234, 212, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-box {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  outline: none;
}

.search-box input:focus { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.4), var(--shadow-lg); }

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
  text-align: left;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover,
.search-result-item:focus {
  background: #ecfdf5;
  color: var(--primary);
}

.search-result-item span {
  font-weight: 600;
  font-size: 0.9375rem;
}

.search-result-item small {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.search-results-empty {
  margin: 0;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.section--filtered-empty {
  display: none;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 3rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.tool-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--primary);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-card span {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.tool-card.hidden { display: none; }

/* Ad slots — hidden until Google AdSense is approved */
.ad-slot {
  display: none;
  margin: 2rem 0;
  text-align: center;
}

.ad-slot.ad-slot--live {
  display: block;
  min-height: 90px;
}

/* Tool Page */
.tool-page { padding: 2rem 0 4rem; }

.tool-header { margin-bottom: 2rem; }

.tool-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tool-header p { color: var(--text-muted); max-width: 640px; }

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
}

.tool-workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: #ecfdf5;
}

.drop-zone-icon { font-size: 3rem; margin-bottom: 1rem; }

.drop-zone p { color: var(--text-muted); margin-bottom: 0.5rem; }

.drop-zone .btn { margin-top: 1rem; }

.file-upload-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.file-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  z-index: 2;
}

.sr-only-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  z-index: 2;
}

label.btn {
  user-select: none;
}

.drop-zone.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.drop-zone.is-loading::after {
  content: 'Loading image...';
  display: block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.preview-area { display: none; margin-top: 1.5rem; position: relative; min-height: 120px; }
.preview-area.active { display: block; }

.preview-area.is-loading::after,
.preview-area.is-processing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  z-index: 5;
}

.preview-area.is-loading::before,
.preview-area.is-processing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 6;
}

.preview-area.is-loading .preview-loading-label {
  display: block;
}

.preview-loading-label {
  display: none;
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  width: min(100%, 280px);
}

@keyframes spin { to { transform: rotate(360deg); } }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .tool-workspace { padding: 1rem; }
  .drop-zone { padding: 2rem 1rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-area.active {
    margin-top: 0;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.75rem;
    background: #fff;
  }
}

.mobile-upload-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.85rem 1rem;
  background: #0f766e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-upload-toast[hidden] {
  display: none !important;
}

.preview-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fafc;
}

.preview-box h3 {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.preview-box img, .preview-box canvas {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.preview-box img.preview-empty {
  display: none;
}

.preview-placeholder {
  display: none;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.5;
}

.preview-box img.preview-empty + .preview-placeholder {
  display: flex;
}

.preview-box.preview-box--ready {
  border-color: #5eead4;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.25);
}

.preview-info {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.controls-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.controls-panel h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.control-group { margin-bottom: 1.25rem; }

.control-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.control-group input[type="range"],
.control-group input[type="number"],
.control-group input[type="text"],
.control-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.control-group input:focus, .control-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.range-value {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { background: #d97706; }

.btn-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.drop-zone.show-delete-notice::after {
  content: 'File deleted. Your data was only in this browser and is now cleared.';
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  color: #0f766e;
  font-size: 0.875rem;
  line-height: 1.4;
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Content pages */
.content-page { padding: 3rem 0 4rem; }

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary-dark);
}

.content-page p, .content-page li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.content-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* Blog */
.blog-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.blog-header h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.blog-header p { color: var(--text-muted); font-size: 1.05rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: #ecfdf5;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--primary); }

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
}

.article-card .breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.article-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.article-card ol li { margin-bottom: 0.5rem; }

.article-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(120px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: #5eead4; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.privacy-banner {
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Features strip */
.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: -2rem auto 0;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding: 0 1.25rem;
}

@media (max-width: 768px) {
  .features-strip { grid-template-columns: 1fr; margin-top: 1rem; }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.feature-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .header-inner { position: relative; }
}

/* Help chatbot */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  font-family: var(--font);
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.4);
}

.chat-toggle-icon { font-size: 1.25rem; line-height: 1; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 6rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] { display: none !important; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.875rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.chat-header strong { display: block; font-size: 1rem; }
.chat-header span { font-size: 0.75rem; opacity: 0.9; }

.chat-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.chat-close:hover { background: rgba(255, 255, 255, 0.25); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  max-height: 280px;
  background: #f8fafc;
}

.chat-msg { display: flex; flex-direction: column; gap: 0.5rem; max-width: 92%; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg--bot { align-self: flex-start; }

.chat-bubble {
  padding: 0.75rem 0.875rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg--user .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg--bot .chat-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-tool-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.chat-tool-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chat-tool-link:hover {
  background: #ccfbf1;
  color: var(--primary-dark);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.625rem 1rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-chip {
  padding: 0.35rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.chat-chip:hover {
  border-color: var(--primary-light);
  background: #ecfdf5;
  color: var(--primary-dark);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.chat-send {
  padding: 0.625rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chat-toggle-label { display: none; }
  .chat-toggle { padding: 0.875rem; border-radius: 50%; }
  .chat-panel { width: calc(100vw - 1.5rem); }
}
