/* =========================================================
   SHARED PAGE HEADER / HERO HELPERS
   ========================================================= */
.page-kicker {
  display: block;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 18px;
}
.forecast-hero h1,
.conditions-hero h1,
.rankings-hero h1,
.reports-hero h1,
.news-hero h1,
.species-hero h1,
.gear-hero h1,
.landings-hero h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-wrap: balance;
}
/* =========================================================
   CSS-only loading states
   ========================================================= */
.is-loading,
[data-loading="true"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
}
.is-loading::after,
[data-loading="true"]::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   GLOBAL RESPONSIVE BREAKPOINTS (header / hero scaling)
   ========================================================= */
@media (max-width: 1050px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }
  main { padding-top: 160px; }
  .live-pill { position: absolute; top: 16px; right: 18px; }

  .hero-panel,
  .forecast-panel,
  .split-section { grid-template-columns: 1fr; }

  .region-grid,
  .gear-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-copy h1 { letter-spacing: -0.04em; }
}

@media (max-width: 650px) {
  .app-header { padding: 12px 14px; }
  .brand      { min-width: 0; }
  .top-nav    { width: 100%; gap: 8px; padding-bottom: 4px; }
  .top-nav a  { padding: 8px 10px; font-size: 0.88rem; }

  main { padding-top: 170px; }

  .hero-panel,
  .content-section,
  .split-section,
  .forecast-panel { padding: 40px 16px; }

  .hero-copy { padding: 26px; border-radius: 24px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 4rem); letter-spacing: -0.04em; }

  .hero-actions { flex-direction: column; }
  .primary-btn,
  .ghost-btn,
  .species-cta-button { width: 100%; }

  /* Larger touch targets on mobile */
  .top-nav a,
  .forecast-tabs button,
  .mode-tabs button,
  .rank-toggle button,
  .landing-actions a,
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

  .region-grid,
  .gear-grid,
  .forecast-grid { grid-template-columns: 1fr; }

  .ranking-item { grid-template-columns: 38px 1fr; }
  .ranking-item > b { grid-column: 2; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Boat detail styles
========================= */

.boat-detail-hero,
.boat-detail-grid,
.boat-detail-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 28px 25px;
}

.boat-detail-hero h1 {
  margin: 10px 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -3px;
}

.boat-detail-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.boat-detail-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.boat-detail-kpis article,
.boat-detail-card,
.boat-report-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

.boat-detail-kpis article {
  padding: 22px;
  border-radius: 18px;
}

.boat-detail-kpis span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.boat-detail-kpis strong {
  font-size: 2.1rem;
  color: var(--soft);
}

.boat-detail-kpis article:first-child strong {
  color: var(--gold);
}

.boat-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.boat-detail-card {
  padding: 22px;
  border-radius: 18px;
}

.boat-detail-card h2,
.boat-detail-section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.boat-intel-list,
.boat-trend-box,
.boat-trip-mix,
.boat-price-list {
  display: grid;
  gap: 12px;
}

.boat-intel-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.boat-intel-row span {
  color: var(--muted);
  font-weight: 800;
}

.boat-intel-row strong {
  color: var(--cyan);
  text-align: right;
}

.boat-trend-main {
  padding: 22px;
  border-radius: 16px;
  background: rgba(32,211,226,0.12);
  border: 1px solid rgba(32,211,226,0.30);
  margin-bottom: 8px;
}

.boat-trend-main strong {
  display: block;
  font-size: 2.2rem;
  color: var(--cyan);
  line-height: 1;
}

.boat-trend-main span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.boat-trip-row,
.boat-price-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.boat-trip-row strong {
  color: var(--cyan);
}

.boat-trip-row .trip-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(231,184,90,0.13);
  border: 1px solid rgba(231,184,90,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.boat-price-row {
  grid-template-columns: 1fr auto auto;
}

.boat-price-row h3 {
  margin: 0;
}

.boat-price-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.boat-price-row strong {
  color: var(--gold);
  font-size: 1.3rem;
}

.boat-price-row a {
  color: var(--cyan);
  font-weight: 900;
}

.boat-species-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boat-species-pill {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--soft);
  font-weight: 900;
  background: rgba(255,255,255,0.045);
  transition: 0.2s ease;
}

.boat-species-pill strong {
  color: var(--gold);
}

.boat-species-pill em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.boat-species-pill:hover {
  background: var(--cyan);
  color: #031828;
  transform: translateY(-2px);
}

.boat-species-pill:hover strong,
.boat-species-pill:hover em {
  color: #031828;
}

.boat-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.boat-report-card {
  padding: 20px;
  border-radius: 18px;
}

.boat-report-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.boat-report-card h3 {
  margin: 0;
}

.boat-report-card p {
  color: var(--muted);
}

.landing-report-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-report-counts .fish-count-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-report-counts .fish-count-pill:hover {
  background: var(--gold);
  color: #031828;
}

.loading-card,
.empty-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .boat-detail-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .boat-detail-kpis article:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .boat-detail-grid,
  .boat-reports-grid {
    grid-template-columns: 1fr;
  }

  .boat-trip-row,
  .boat-price-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .boat-detail-hero,
  .boat-detail-grid,
  .boat-detail-section {
    padding: 34px 18px 18px;
  }

  .boat-detail-kpis {
    grid-template-columns: 1fr;
  }

  .boat-detail-kpis article:first-child {
    grid-column: auto;
  }

  .boat-detail-hero h1 {
    letter-spacing: -1.5px;
  }

  .boat-report-top {
    flex-direction: column;
  }
}

/* =========================================================
   v2 REFINEMENTS — Modern SaaS polish, mobile-first overrides,
   accessibility, and table improvements.
   Appended overrides only. No selectors removed; original
   rules above are preserved verbatim for compatibility.
   ========================================================= */

/* ---------- Token refinements (subtle, no palette shift) ---------- */
:root {
  /* Tighter, more consistent radii */
  --r-xs: 8px;

  /* Modern SaaS shadow stack (softer, layered) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.25), 0 8px 24px -8px rgba(0,0,0,0.45);
  --shadow-pop: 0 2px 4px rgba(0,0,0,0.20), 0 18px 40px -12px rgba(0,0,0,0.55);

  /* Spacing scale (8pt baseline) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* Focus ring (high-contrast, accessible) */
  --focus-ring: 0 0 0 2px var(--navy-deep), 0 0 0 4px var(--cyan);
}

/* ---------- Base polish ---------- */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* Tighten heading rhythm site-wide */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Accessible, consistent focus ring across all interactives */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Button polish (consolidated hover/active feedback) ---------- */
.primary-btn,
.ghost-btn,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.primary-btn:focus-visible,
.ghost-btn:focus-visible {
  box-shadow: var(--focus-ring), 0 12px 28px rgba(244,189,95,0.30);
}

/* ---------- Card polish (subtle premium depth) ---------- */
.kpi-card,
.region-card,
.ranking-card,
.forecast-card,
.gear-card,
.empty-card,
.hero-dashboard,
.dashboard-main-stat {
  box-shadow: var(--shadow-soft);
}
.kpi-card:hover,
.region-card:hover,
.ranking-card:hover,
.forecast-card:hover,
.gear-card:hover {
  box-shadow: var(--shadow-pop);
}

/* ---------- Tables — readable, scrollable on mobile ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: var(--soft);
}
thead th {
  position: sticky;
  top: 0;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  background: rgba(3,24,40,0.95);
  border-bottom: 1px solid var(--border-strong);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr {
  transition: background var(--t-fast);
}
tbody tr:hover {
  background: rgba(32,211,226,0.06);
}
tbody tr:last-child td { border-bottom: none; }

/* Wrap any table in a horizontal scroller on small screens.
   Targets common container classes used across the site. */
.table-wrap,
.table-responsive,
.data-table-wrap,
.scroll-x {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--grad-card);
  box-shadow: var(--shadow-soft);
}
.table-wrap table,
.table-responsive table,
.data-table-wrap table,
.scroll-x table { min-width: 640px; }

/* Stylized scrollbar where supported (WebKit) */
.table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.top-nav::-webkit-scrollbar,
.scroll-x::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.scroll-x::-webkit-scrollbar-thumb {
  background: rgba(32,211,226,0.35);
  border-radius: 999px;
}

/* ---------- Form controls (filters, dropdowns, inputs) ---------- */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder,
textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(32,211,226,0.40);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(32,211,226,0.20);
}

/* Native select arrow */
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* Generic filter chips / dropdowns */
.filter-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter-chip:hover, .chip:hover {
  background: rgba(32,211,226,0.10);
  border-color: rgba(32,211,226,0.40);
  color: var(--cyan);
}
.filter-chip.active, .chip.active {
  background: rgba(244,189,95,0.15);
  border-color: rgba(244,189,95,0.45);
  color: var(--gold);
}

/* ---------- Touch targets — minimum 44px on mobile ---------- */
@media (max-width: 768px) {
  button,
  .primary-btn,
  .ghost-btn,
  .top-nav a,
  .forecast-tabs button,
  .mode-tabs button,
  .filter-chip,
  .chip {
    min-height: 44px;
  }
  .top-nav a { padding: 12px 14px; }
}

/* =========================================================
   MOBILE OPTIMIZATION — comprehensive responsive overrides
   ========================================================= */

/* Tablet & below */
@media (max-width: 1024px) {
  .hero-panel,
  .content-section,
  .split-section,
  .forecast-panel,
  .forecast-hero,
  .site-footer,
  .love-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .region-grid,
  .gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 768px) {
  /* Header: tighter padding, scrollable nav */
  .app-header {
    padding: 12px 16px;
    gap: 12px;
  }
  .brand { min-width: 0; flex: 0 0 auto; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 0.95rem; }
  .brand span { font-size: 0.68rem; }
  .live-pill { padding: 7px 11px; font-size: 0.72rem; }
  main { padding-top: 170px; } /* fixed: header stacks on mobile, so content needs full clearance */

  /* Hero: single column, calmer scale */
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
    padding: 36px 16px 24px;
  }
  .hero-copy { padding: 26px 22px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .hero-copy p { font-size: 1rem; margin-top: 18px; }
  .hero-actions { gap: 10px; }
  .primary-btn, .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-dashboard { padding: 22px; }
  .dashboard-top h2 { font-size: 1.4rem; }
  .mini-stat { padding: 16px; }
  .mini-stat strong { font-size: 1.5rem; }

  /* Sections: tighter rhythm */
  .content-section,
  .split-section,
  .forecast-panel,
  .forecast-hero {
    padding: 48px 16px;
  }
  .section-title h2,
  .forecast-panel h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .section-title p, .forecast-panel p { font-size: 0.98rem; }

  /* Grids collapse to single column */
  .region-grid,
  .gear-grid,
  .forecast-grid,
  .kpi-grid,
  .split-section,
  .mini-stat-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Cards: comfortable padding */
  .kpi-card,
  .region-card,
  .ranking-card,
  .forecast-card { padding: 22px; }
  .kpi-card { min-height: 0; }
  .kpi-card strong { font-size: clamp(2rem, 9vw, 2.8rem); }

  /* Ranking items: keep readable */
  .ranking-item {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .rank-num { width: 32px; height: 32px; font-size: 0.9rem; }
  .ranking-header h3 { font-size: 1.25rem; }

  /* Forecast panel: stack */
  .forecast-panel {
    grid-template-columns: 1fr;
  }

  /* Gear images: reduce dead space */
  .gear-img { height: 180px; }

  /* Footer collapses */
  .love-footer {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 28px;
  }

  /* Tabs scroll horizontally without overflow */
  .forecast-tabs,
  .mode-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .forecast-tabs::-webkit-scrollbar,
  .mode-tabs::-webkit-scrollbar { display: none; }
  .forecast-tabs button,
  .mode-tabs button { flex: 0 0 auto; }

  /* Tables: force horizontal scroll fallback */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  thead th, tbody td { padding: 12px; font-size: 0.9rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-copy { padding: 22px 18px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 12vw, 3rem); letter-spacing: -0.04em; }
  .status-row { gap: 6px; margin-bottom: 22px; }
  .green-pill, .small-pill, .cyan-pill, .outline-pill {
    font-size: 0.7rem;
    padding: 7px 10px;
  }
  .section-title h2,
  .forecast-panel h2 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .content-section,
  .split-section,
  .forecast-panel,
  .forecast-hero { padding: 36px 14px; }
  .kpi-card, .region-card, .ranking-card, .forecast-card { padding: 18px; border-radius: var(--r-lg); }
  .hero-dashboard { padding: 18px; border-radius: var(--r-xl); }
  .dashboard-main-stat strong { font-size: clamp(2.6rem, 13vw, 3.6rem); }
}

/* ---------- Charts / maps / media containers ---------- */
canvas,
svg.chart,
.chart,
.map,
#map {
  max-width: 100%;
  height: auto;
}
.chart-wrap,
.map-wrap {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--grad-card);
}

/* ---------- Contrast pass on muted text for AA compliance ---------- */
@media (max-width: 768px) {
  .region-stat-row small,
  .mini-stat span,
  .kpi-card span,
  .forecast-card span {
    color: #a8c5d2; /* lifted from --muted for small-screen legibility */
  }
}

/* ---------- Print: minimal, ink-friendly ---------- */
@media print {
  body { background: #fff; color: #000; }
  .app-header, .love-footer, .hero-actions, .forecast-tabs, .mode-tabs { display: none; }
  .kpi-card, .region-card, .ranking-card, .forecast-card {
    box-shadow: none;
    border-color: #ccc;
    background: #fff;
    color: #000;
  }
}
/* Fix desktop footer height */
.love-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: start;
  gap: 32px;
  padding: 48px 36px 32px;
  min-height: auto !important;
  height: auto !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  margin: 0;
}

/* Mobile footer */
@media (max-width: 768px) {
  .love-footer {
    grid-template-columns: 1fr;
    padding: 36px 20px 28px;
    gap: 24px;
  }
}
.bite-ai-card {
  background: #071018;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px;
  margin: 20px 0;
  color: white;
}

.bite-ai-card select,
.bite-ai-card button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
}

.bite-ai-answer {
  margin-top: 15px;
  line-height: 1.5;
}
.ask-bite-card {
  background: #071018;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 18px;
  margin: 24px 0;
  color: #fff;
}

.ask-bite-header h2 {
  margin: 0 0 6px;
}

.ask-bite-header p {
  margin: 0 0 14px;
  color: #b9c3cc;
}

.ask-bite-messages {
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px;
  min-height: 130px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.bite-message {
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.bite-message.bot {
  background: rgba(255,255,255,.09);
}

.bite-message.user {
  background: #1f6feb;
  margin-left: auto;
  max-width: 85%;
}

.ask-bite-form {
  display: flex;
  gap: 10px;
}

.ask-bite-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.15);
  background: #0e1720;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
}

.ask-bite-form button {
  border: none;
  background: #f4c542;
  color: #111;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ask-bite-form {
    flex-direction: column;
  }

  .ask-bite-form button {
    width: 100%;
  }
}
