/*
Theme Name: 001IA Custom Tools
Theme URI: https://001ia.com
Author: 001IA
Description: A minimalist, light-mode AI tools theme with advanced UI animations.
Version: 2.0
*/

/* ═══════════════════════════════════════════════════════
   1. CSS VARIABLES & RESET
═══════════════════════════════════════════════════════ */

:root {
  --bg:            #f8fafc;
  --card:          #ffffff;
  --card2:         #f1f5f9;
  --border:        #e2e8f0;
  --primary:       #6366f1;
  --primary-hover: #4f46e5;
  --text:          #0f172a;
  --muted:         #64748b;
  --success:       #10b981;
  --danger:        #ef4444;
  --shadow:        0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl:     0 20px 40px -8px rgb(0 0 0 / 0.1);
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════
   2. TYPOGRAPHY HELPERS
═══════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   3. NAVIGATION / HEADER
═══════════════════════════════════════════════════════ */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links > a:hover,
.nav-links > a.active {
  background: var(--card2);
  color: var(--text);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.nav-drop-btn:hover { background: var(--card2); color: var(--text); }
.drop-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown.open .drop-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 270px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 200;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--card2); }
.dm-icon { font-size: 22px; flex-shrink: 0; }
.dm-text { display: flex; flex-direction: column; gap: 2px; }
.dm-text strong { font-size: 14px; color: var(--text); font-weight: 600; }
.dm-text small  { font-size: 12px; color: var(--muted); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--text);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 7px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open { display: block; opacity: 1; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 10;
}
.mobile-close {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-close:hover { background: var(--border); }

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 2px;
}
.mobile-nav-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}
.mobile-nav-links a:hover { background: var(--card2); }
.mobile-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 14px 14px 6px;
}
.mobile-cta {
  margin: 12px 16px 0;
  text-align: center;
  text-decoration: none !important;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   4. SHARED CARD & FORM ELEMENTS
═══════════════════════════════════════════════════════ */

.site-main { min-height: 60vh; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
}
label:first-child { margin-top: 0; }

textarea, select, input[type="text"], input[type="email"] {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition);
}
textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
textarea::placeholder,
input::placeholder { color: #94a3b8; }

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 20px;
  font-family: inherit;
}
.btn-primary:hover  { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; transform: none; opacity: 0.7; box-shadow: none; }

/* ═══════════════════════════════════════════════════════
   5. HOME — HERO
═══════════════════════════════════════════════════════ */

.home-hero {
  text-align: center;
  padding: 80px 20px 56px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.home-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
}
.home-hero h1 span {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  box-shadow: var(--shadow);
  display: inline-flex;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  gap: 4px;
}
.stat-item strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-item span { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ═══════════════════════════════════════════════════════
   6. HOME — TOOL SECTION (Image to Prompt)
═══════════════════════════════════════════════════════ */

.tool-section { padding: 0 20px 80px; }
.tool-wrapper { max-width: 780px; margin: 0 auto; }

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 64px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: #eef2ff;
}
.upload-zone .icon { font-size: 52px; margin-bottom: 16px; display: block; }
.upload-zone h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.upload-zone p  { color: var(--muted); font-size: 14px; }
.upload-formats { margin-top: 8px; font-size: 12px !important; color: #94a3b8 !important; }
input[type="file"] { display: none; }

.img-preview-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
}
.img-preview-wrapper img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.scan-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary), 0 0 32px var(--primary);
  top: 0; left: 0;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}
.scanning .scan-line {
  opacity: 1;
  animation: cyberScan 2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes cyberScan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.steps-wrap {
  display: none;
  margin: 20px 0;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
}
.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s;
}
.step-item.active { color: var(--primary); }
.step-item.done   { color: var(--success); }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result card */
.result-wrap { display: none; margin-top: 0; }
.result-card {
  background: #1e293b;
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}
.result-label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.15);
  color: var(--success);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.md-body {
  line-height: 1.7;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  max-height: 380px;
  overflow-y: auto;
}
.md-body h1, .md-body h2 { color: #38bdf8; font-size: 15px; margin: 14px 0 8px; font-weight: 600; }
.md-body h3 { color: #818cf8; font-size: 14px; margin: 10px 0 6px; }
.md-body p  { margin-bottom: 10px; color: #cbd5e1; }
.md-body strong { color: #a3e635; }
.md-body em     { color: #fb923c; font-style: normal; }
.md-body li     { color: #cbd5e1; margin-bottom: 4px; padding-left: 12px; }
.md-body li::before { content: "•"; color: #6366f1; margin-right: 6px; }

.btn-row { display: flex; gap: 12px; margin-top: 20px; }
.btn-secondary {
  flex: 1;
  padding: 14px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-secondary:hover { background: #334155; }
.btn-copy-full {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.btn-copy-full:hover { background: var(--primary-hover); }

/* ═══════════════════════════════════════════════════════
   7. HOME — COMPATIBLE WITH
═══════════════════════════════════════════════════════ */

.compat-section {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.compat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 20px;
}
.compat-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.compat-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.compat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef2ff;
}

/* ═══════════════════════════════════════════════════════
   8. HOME — HOW IT WORKS
═══════════════════════════════════════════════════════ */

.how-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-arrow {
  font-size: 28px;
  color: #cbd5e1;
  padding: 0 12px;
  margin-top: 60px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   9. HOME — FEATURES GRID
═══════════════════════════════════════════════════════ */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.feature-card .f-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   10. HOME — OTHER TOOLS CTA
═══════════════════════════════════════════════════════ */

.tools-cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  padding: 80px 20px;
  text-align: center;
}
.tools-cta-inner { max-width: 900px; margin: 0 auto; }
.tools-cta-section h2 { color: #fff; font-size: clamp(24px,4vw,36px); font-weight: 800; margin-bottom: 12px; }
.tools-cta-section > .tools-cta-inner > p { color: #a5b4fc; font-size: 16px; margin-bottom: 44px; }
.tools-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.cta-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-decoration: none;
  transition: all 0.25s;
  color: #fff;
}
.cta-tool-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}
.cta-tool-icon { font-size: 36px; }
.cta-tool-card strong { font-size: 16px; font-weight: 700; color: #fff; }
.cta-tool-card span  { font-size: 13px; color: #a5b4fc; }

/* ═══════════════════════════════════════════════════════
   11. HOME — FAQ ACCORDION
═══════════════════════════════════════════════════════ */

.faq-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 20px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--card2); }
.faq-arrow {
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1),
              padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-a p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-a a { color: var(--primary); }

/* ═══════════════════════════════════════════════════════
   12. BLOG PAGE
═══════════════════════════════════════════════════════ */

.blog-hero {
  text-align: center;
  padding: 64px 20px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: clamp(32px,5vw,52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.blog-hero p { color: var(--muted); font-size: 17px; }

.blog-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* Featured post */
.blog-featured {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-featured-img {
  width: 100%; height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.blog-featured-content { padding: 32px; }
.blog-tag {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.blog-featured-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.3px; color: var(--text); }
.blog-featured-content p  { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.blog-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--card2), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.blog-card-body p  { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 12px; }

/* Blog sidebar */
.blog-sidebar {}
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: 0.75; }
.sidebar-post-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.sidebar-post-text strong { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; display: block; }
.sidebar-post-text span   { font-size: 12px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
  font-weight: 500;
}
.tag-pill:hover { background: #eef2ff; border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════════════
   13. CONTACT PAGE
═══════════════════════════════════════════════════════ */

.contact-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info h1 {
  font-size: clamp(28px,4vw,42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.contact-info > p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--primary); }

.contact-form-wrap .card { padding: 36px; }
.contact-form-wrap h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.contact-form-wrap > .card > p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-top: 20px; }
.form-group:first-child { margin-top: 0; }
.form-group label { margin-top: 0; margin-bottom: 8px; }

.contact-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
}
.contact-success .success-icon { font-size: 56px; margin-bottom: 16px; display: block; }
.contact-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.contact-success p  { color: var(--muted); font-size: 15px; }

/* ═══════════════════════════════════════════════════════
   14. ROADMAP PAGE
═══════════════════════════════════════════════════════ */

.roadmap-hero {
  text-align: center;
  padding: 64px 20px 56px;
  max-width: 640px;
  margin: 0 auto;
}
.roadmap-hero h1 {
  font-size: clamp(32px,5vw,52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.roadmap-hero p { color: var(--muted); font-size: 17px; line-height: 1.7; }

.roadmap-section { max-width: 780px; margin: 0 auto; padding: 0 20px 80px; }
.roadmap-timeline { position: relative; padding-left: 40px; }
.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border));
  border-radius: 2px;
}

.timeline-group { margin-bottom: 48px; }
.timeline-quarter {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline-quarter::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 10px;
  box-shadow: 0 0 0 4px #eef2ff;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s;
}
.timeline-item:hover { border-color: #c7d2fe; box-shadow: var(--shadow); }
.timeline-item.done   { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.03); }
.timeline-item.active { border-color: var(--primary); background: #eef2ff; }

.tl-status {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.timeline-item.done   .tl-status { background: rgba(16,185,129,0.12); }
.timeline-item.active .tl-status { background: rgba(99,102,241,0.12); }
.timeline-item.planned .tl-status { background: var(--card2); }

.tl-body h4   { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tl-body p    { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tl-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-done    { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-active  { background: rgba(99,102,241,0.12);  color: var(--primary); }
.badge-planned { background: var(--card2); color: var(--muted); }
.badge-soon    { background: rgba(251,146,60,0.12); color: #f97316; }

/* ═══════════════════════════════════════════════════════
   15. LEGAL PAGES (Privacy, Terms, Cookies)
═══════════════════════════════════════════════════════ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px 100px;
}
.legal-header { margin-bottom: 48px; }
.legal-header h1 { font-size: clamp(28px,4vw,42px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.legal-header .legal-meta { color: var(--muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.legal-header .legal-meta span { display: flex; align-items: center; gap: 6px; }

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.legal-content p  { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content ul li { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 6px; list-style: disc; }
.legal-content a  { color: var(--primary); }
.legal-highlight {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-highlight p { color: var(--text); margin: 0; font-size: 14px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   16. COOKIE CONSENT POPUP
═══════════════════════════════════════════════════════ */

.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background: var(--text);
  color: #f1f5f9;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-popup.show { transform: translateY(0); opacity: 1; }
.cookie-popup.hide { transform: translateY(120%); opacity: 0; }

.cookie-icon  { font-size: 28px; margin-bottom: 10px; display: block; }
.cookie-popup h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cookie-popup p  { font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 20px; }
.cookie-popup a  { color: #818cf8; text-decoration: underline; }

.cookie-btns { display: flex; gap: 10px; }
.cookie-accept {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.cookie-accept:hover { background: var(--primary-hover); }
.cookie-decline {
  flex: 1;
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.cookie-decline:hover { background: rgba(255,255,255,0.12); color: #f1f5f9; }

/* ═══════════════════════════════════════════════════════
   17. FOOTER
═══════════════════════════════════════════════════════ */

.site-footer { background: var(--text); color: #94a3b8; margin-top: 80px; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 48px;
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #64748b; }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  font-size: 16px;
  text-decoration: none;
  color: #94a3b8;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f1f5f9;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: #f1f5f9; }

.footer-newsletter p { font-size: 14px; color: #64748b; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f1f5f9;
  font-family: inherit;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: #475569; }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--primary-hover); }
.newsletter-note { font-size: 13px; color: var(--success) !important; margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; font-weight: 500; }
.footer-bottom a:hover { color: #f1f5f9; }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links span { color: #334155; }

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#backToTop:hover   { background: var(--primary-hover); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════
   18. ANIMATIONS / SHARED UTILITIES
═══════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease both; }

.char-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.char-count.warn { color: var(--danger); }

/* ═══════════════════════════════════════════════════════
   19. RESPONSIVE
═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 20px; }

  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid   { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .contact-section { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand       { grid-column: 1 / -1; }
  .footer-newsletter  { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
  .home-hero { padding: 56px 16px 40px; }
  .hero-stats { flex-direction: column; padding: 20px 24px; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .stat-item { padding: 0; }

  .tool-section { padding: 0 16px 60px; }
  .card { padding: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .tools-cta-grid { grid-template-columns: 1fr; }

  .btn-row,
  .cookie-btns { flex-direction: column; }

  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 24px; }
  .footer-brand      { grid-column: auto; }
  .footer-newsletter { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px; }

  .cookie-popup { bottom: 0; left: 0; width: 100%; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  #backToTop { bottom: 16px; right: 16px; }

  .legal-page { padding: 40px 16px 60px; }
  .roadmap-timeline { padding-left: 28px; }
}


/* ═══════════════════════════════════════════════════════
   MOBILE MENU — imagetoprompt.org style (UPDATED)
═══════════════════════════════════════════════════════ */

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

/* ── Hamburger button ───────────────────────────────── */
.hamburger {
  display: none;           /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: var(--card2); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}
/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay ─────────────────────────────────────────── */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mob-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer panel ────────────────────────────────────── */
.mob-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.mob-drawer.open { transform: translateX(0); }

/* ── Close button (top-right X) ─────────────────────── */
.mob-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition);
  z-index: 10;
}
.mob-close:hover { background: var(--border); }

/* ── Nav list inside drawer ──────────────────────────── */
.mob-nav {
  flex: 1;
  padding: 56px 0 24px;   /* top pad clears close button */
  display: flex;
  flex-direction: column;
}

/* Section group */
.mob-group {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mob-group:first-child { border-top: none; margin-top: 0; }

/* Group label — "Tools", "Pages" */
.mob-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  padding: 10px 24px 6px;
}

/* Individual links */
.mob-link {
  display: block;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 0;
}
.mob-link:hover    { background: var(--card2); }
.mob-link--active  { color: var(--primary); font-weight: 600; }

/* "Home" link sits on its own above the groups */
.mob-link--home {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px 14px;
  margin-bottom: 4px;
}

/* ── CTA at bottom of drawer ─────────────────────────── */
.mob-footer {
  padding: 16px 20px 28px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mob-cta-btn {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.mob-cta-btn:hover { background: var(--primary-hover); }

/* ── Show hamburger only on mobile ───────────────────── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  nav         { padding: 0 20px; }
}
@media (min-width: 901px) {
  .mob-overlay,
  .mob-drawer { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   TOOL PAGES — SHARED HERO (img-gen, tts, ai-chat)
═══════════════════════════════════════════════════════ */
.tool-hero {
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 20px 52px;
  text-align: center;
}
.tool-hero-inner { max-width: 680px; margin: 0 auto; }
.tool-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.tool-hero h1 span {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tool-hero p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 0; }
.tool-hero .hero-badge { margin-bottom: 24px; }

/* Toggle row active state */
.toggle-row.active-toggle { border-color: var(--primary); background: #eef2ff; }

/* Big spinner for loaders */
.big-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
.loader-text { font-weight: 600; color: var(--text); margin-bottom: 6px; font-size: 16px; }
.loader-sub  { color: var(--muted); font-size: 14px; }
.progress-bar-wrap { width:100%; max-width:300px; margin:20px auto 0; background:var(--border); border-radius:20px; height:6px; overflow:hidden; }
.progress-bar { height:100%; background:var(--primary); border-radius:20px; width:0%; transition:width 0.5s ease; }

/* Chat messages */
.msg-user {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
  word-wrap: break-word;
}
.msg-ai {
  background: var(--card2);
  color: var(--text);
  padding: 12px 16px;
  border-