/* ==========================================================================
   Mohanpur Matsya Hatchery & Training Centre — Premium Mobile-First Design System
   Core Web Vitals Optimized | GPU-Composited Automated Animations
   ========================================================================== */

:root {
  --bg: #f4f9f8;
  --bg-alt: #eaf4f2;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --surface-elevated: #ffffff;
  --text: #0f2928;
  --text-muted: #466362;
  --border: rgba(6, 78, 59, 0.12);
  --border-strong: rgba(6, 78, 59, 0.24);

  --emerald-950: #022c22;
  --emerald-900: #043b36;
  --emerald-800: #065f46;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --cyan-600: #0284c7;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;

  --primary: #066e5e;
  --primary-hover: #045448;
  --accent: #0284c7;
  --hero-gradient: linear-gradient(135deg, #022c22 0%, #064e49 48%, #075985 100%);
  --card-shadow: 0 10px 30px -10px rgba(4, 47, 46, 0.12), 0 4px 12px -4px rgba(4, 47, 46, 0.06);
  --card-shadow-hover: 0 24px 48px -12px rgba(4, 47, 46, 0.22), 0 8px 20px -6px rgba(2, 132, 199, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1240px;
  --font-sans: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #031514;
  --bg-alt: #062120;
  --surface: #092b29;
  --surface-glass: rgba(9, 43, 41, 0.86);
  --surface-elevated: #0d3634;
  --text: #ecfdf5;
  --text-muted: #99c2bd;
  --border: rgba(103, 232, 249, 0.14);
  --border-strong: rgba(103, 232, 249, 0.28);
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --card-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 26px 54px -12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(20, 184, 166, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
  padding-bottom: 72px; /* room for mobile sticky quick dock */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & SITE-WIDE TEXT JUSTIFICATION
   ========================================================================== */
p,
.hero-lead,
.section-subtitle,
.card-text,
.card p,
.article-card p,
.article-card li,
.article-layout p,
.guide-content p,
.about-prose p,
.faq-answer,
.faq-answer p,
.faq-list details p,
.faq-item p,
.ai-msg-body,
.ai-msg-body p,
#inlineDiagAnswer,
#inlineAiRespAnswer,
#pondLayerDetail p,
.dosage-callout {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Centered section headers: justify text block while keeping the last line centered */
.section-header.text-center .section-subtitle,
.text-center .section-subtitle {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: center;
}

/* Maintain natural alignment for headings, interactive controls, and tabular elements */
h1, h2, h3, h4, h5, h6,
.btn,
.nav-link,
.mobile-nav-link,
.card-badge,
.tag-badge,
.eyebrow,
.ai-symptom-pill,
.ai-prompt-chip,
.table-wrap th,
.table-wrap td {
  text-justify: auto;
}

img, picture, video, svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

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

button, input, select, textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}

/* Scroll Reading Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-300), var(--gold-400));
  will-change: transform;
}

/* Top Utility Bar */
.top-utility {
  background: var(--emerald-950);
  color: #d1fae5;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: clip;
}

.top-utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 7px;
  min-width: 0;
}

.top-utility-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}

@media (max-width: 639px) {
  .top-utility-phones span {
    display: none;
  }
}

.top-utility-phones a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #ecfdf5;
  transition: color 0.2s;
}

.top-utility-phones a:hover {
  color: var(--gold-400);
}

.top-utility-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.live-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pill-control:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

/* Main Sticky Header & Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(2, 44, 34, 0.18);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-crest {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(6, 110, 94, 0.22);
  flex-shrink: 0;
  background: #fff;
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(6, 110, 94, 0.1);
  color: var(--primary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  padding: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  z-index: 50;
}

.nav-dropdown.mega-dropdown {
  min-width: 620px;
  left: -140px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-group-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.dropdown-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.18s, color 0.18s, transform 0.18s;
}

.dropdown-links a:hover {
  background: rgba(6, 110, 94, 0.1);
  color: var(--primary);
  transform: translateX(3px);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}

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

@media (min-width: 1024px) {
  .mobile-menu-trigger {
    display: none;
  }
}

/* Mobile Slide-Out Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 24, 22, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 370px);
  height: 100dvh;
  background: var(--surface);
  color: var(--text);
  z-index: 1110;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-out), visibility 0.34s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  font-weight: 700;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
}

.mobile-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.mobile-accordion-body {
  padding: 8px 12px 12px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-block: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-accordion-body a {
  padding: 7px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(2, 24, 22, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  width: min(100%, 620px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

/* Buttons & Magnetic Hover Effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), background-color 0.24s;
  min-height: 46px;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-600), var(--cyan-600));
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(5, 150, 105, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #062120;
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.55);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

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

.btn-sm {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* ==========================================================================
   HERO SECTION (Immediate LCP visibility + Canvas Water Ripples + Ken Burns)
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 40px 0 92px;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 64px 0 116px;
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 20% 25%, rgba(16, 185, 129, 0.28), transparent 45%),
    radial-gradient(circle at 80% 35%, rgba(6, 182, 212, 0.25), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.15), transparent 40%);
  filter: blur(40px);
  animation: auroraDrift 16s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes auroraDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.35);
  color: #a7f3d0;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.hero-title .text-highlight {
  background: linear-gradient(90deg, #67e8f9, #fbbf24, #6ee7b7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 7s linear infinite;
}

@keyframes textShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #d1fae5;
  margin: 0 0 24px;
  max-width: 60ch;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric-chip {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.metric-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold-400);
  line-height: 1.15;
}

.metric-label {
  display: block;
  font-size: 0.76rem;
  color: #ccfbf1;
  margin-top: 3px;
}

/* Automated Hero Cinematic Slider */
.hero-showcase {
  position: relative;
}

.hero-slider-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 10;
  background: #042f2e;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.hero-slide.is-active img {
  animation: kenBurnsZoom 7.5s ease-out forwards;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1%, -1%, 0); }
}

.hero-slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 36px 18px 16px;
  background: linear-gradient(to top, rgba(2, 24, 22, 0.92), rgba(2, 24, 22, 0.4) 65%, transparent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}

.slider-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.slider-dot {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s, transform 0.25s;
}

.slider-dot.is-active {
  background: var(--gold-400);
  transform: scaleX(1.25);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.slider-arrow-btn:hover {
  background: var(--gold-400);
  color: #022c22;
  transform: scale(1.08);
}

.hero-floating-badge {
  position: absolute;
  top: -14px;
  right: 14px;
  z-index: 4;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #042f2e;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  animation: floatBob 4s ease-in-out infinite;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Layered Animated Wave Divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 68px;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

.wave-divider svg {
  width: 200%;
  height: 100%;
}

.wave-layer-1 {
  fill: rgba(255, 255, 255, 0.18);
  animation: waveSlide 14s linear infinite;
}

.wave-layer-2 {
  fill: var(--bg);
  animation: waveSlide 10s linear infinite reverse;
}

@keyframes waveSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   AUTOMATED NEWS TICKER (Replaces deprecated <marquee>)
   ========================================================================== */
.news-ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 10px;
  overflow-x: clip;
}

.news-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}

.ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: tickerMarquee 36s linear infinite;
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.ticker-item:hover {
  color: var(--primary);
}

@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS, HEADINGS & CARD SYSTEMS
   ========================================================================== */
.section {
  padding-block: 56px;
  position: relative;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 80px;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 110, 94, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.article-layout > *,
.footer-grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Interactive 3D Tilt & Spotlight Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.34s var(--ease-out), box-shadow 0.34s var(--ease-out), border-color 0.34s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.07);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(2, 44, 34, 0.84);
  color: #ecfdf5;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 16px;
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ==========================================================================
   3-LAYER POND ECOLOGY VISUALIZER + STOCKING RATIO INTERACTIVE WIDGET
   ========================================================================== */
.pond-ecosystem-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.pond-layers-stack {
  display: grid;
  gap: 12px;
}

.pond-layer-btn {
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.pond-layer-btn.layer-surface {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

.pond-layer-btn.layer-column {
  background: linear-gradient(135deg, #0d9488, #059669);
}

.pond-layer-btn.layer-bottom {
  background: linear-gradient(135deg, #064e3b, #022c22);
}

.pond-layer-btn.layer-weed {
  background: linear-gradient(135deg, #15803d, #65a30d);
}

.pond-layer-btn.is-active,
.pond-layer-btn:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 26px -8px rgba(2, 132, 199, 0.45);
  border-color: var(--gold-400);
}

.ratio-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 900;
  font-size: 0.9rem;
}

/* Interactive Calculator Box */
.calculator-panel {
  background: linear-gradient(145deg, var(--emerald-900), #063c4b);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid rgba(103, 232, 249, 0.2);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .calc-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.calc-field select option {
  background: #042f2e;
  color: #ffffff;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .calc-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.calc-stat {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
}

.calc-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold-400);
}

.calc-stat span {
  font-size: 0.78rem;
  color: #ccfbf1;
}

/* ==========================================================================
   VIDEO FACADE (ZERO INITIAL THIRD-PARTY / MP4 BANDWIDTH BLOAT)
   ========================================================================== */
.video-facade {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #022c22;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.video-facade:hover img {
  transform: scale(1.04);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: rgba(6, 110, 94, 0.9);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s, background-color 0.25s;
}

.video-facade:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-500);
  color: #022c22;
}

/* ==========================================================================
   FILTER TABS, ACCORDIONS, LIGHTBOX, FORMS & TABLES
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.22s;
}

.filter-pill.is-active,
.filter-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

/* Page Banner (Subpages) */
.page-hero {
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #a7f3d0;
  margin-bottom: 12px;
}

.breadcrumbs a:hover {
  color: var(--gold-400);
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .article-card {
    padding: 34px;
  }
}

.dosage-callout {
  background: linear-gradient(135deg, rgba(6, 110, 94, 0.1), rgba(2, 132, 199, 0.1));
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 800;
  margin-block: 20px;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-alt);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.check-icon {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive Data Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

table.data-table th,
table.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data-table thead th {
  background: var(--emerald-900);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
}

table.data-table tbody tr:hover {
  background: var(--bg-alt);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 14px;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 110, 94, 0.16);
}

.form-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid var(--emerald-600);
  color: var(--emerald-800);
}

.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 18, 17, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-height: 78vh;
  max-width: 92vw;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  color: #ecfdf5;
  margin-top: 14px;
  font-weight: 700;
  text-align: center;
  max-width: 68ch;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--emerald-950);
  color: #d1fae5;
  padding-top: 56px;
  border-top: 4px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-heading {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-stats-bar {
  padding-block: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visitor-counter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.visitor-counter-pill,
.security-seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
  color: #d1fae5;
  font-variant-numeric: tabular-nums;
}

.visitor-counter-pill .vc-digits {
  color: var(--gold-400);
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(2, 24, 22, 0.65);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.security-seal-pill {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.footer-bottom {
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #99f6e4;
}

.icn-credit {
  color: #ecfdf5;
  font-weight: 600;
}

.icn-credit a {
  text-decoration: none;
}

.icn-credit strong {
  color: var(--gold-400);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.icn-credit a:hover strong {
  color: #fde68a;
  text-decoration: underline;
}

/* Mobile Sticky Action Bar & Floating Quick Dock */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--emerald-950);
  border-top: 1px solid rgba(103, 232, 249, 0.2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ecfdf5;
  gap: 3px;
}

.mobile-sticky-bar a.is-whatsapp {
  background: #059669;
}

.floating-dock {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1023px) {
  .floating-dock .dock-call,
  .floating-dock .dock-whatsapp {
    display: none;
  }
}

@media (min-width: 1024px) {
  .floating-dock {
    bottom: 24px;
  }
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.22s;
}

.dock-btn:hover {
  transform: scale(1.1);
}

.dock-whatsapp { background: #16a34a; }
.dock-call { background: #0284c7; }
.dock-top {
  background: var(--emerald-900);
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
}
.dock-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   AUTOMATED SCROLL REVEAL & STAGGER SYSTEM
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.68s var(--ease-out), transform 0.68s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.reveal-left { transform: translate3d(-28px, 0, 0); }
.reveal.reveal-right { transform: translate3d(28px, 0, 0); }
.reveal.reveal-zoom { transform: scale(0.94); }

.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Fallback if user has reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   ADVANCED 3D EFFECTS & HOLOGRAPHIC MICRO-INTERACTIONS
   ========================================================================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

.tilt-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 8;
  opacity: var(--glare-opacity, 0);
  background: radial-gradient(circle 380px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.32), rgba(103, 232, 249, 0.15) 35%, transparent 75%);
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
}

[data-theme="dark"] .tilt-card-glare {
  background: radial-gradient(circle 380px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(103, 232, 249, 0.28), rgba(20, 184, 166, 0.12) 35%, transparent 75%);
}

.tilt-card .card-badge,
.tilt-card .tag-badge {
  transform: translateZ(32px);
  transition: transform 0.2s ease-out;
}

.tilt-card .card-title,
.tilt-card h3 {
  transform: translateZ(24px);
  transition: transform 0.2s ease-out;
}

.tilt-card .card-media img,
.tilt-card img {
  transform: translateZ(16px);
  transition: transform 0.2s ease-out;
}

.tilt-card .btn,
.tilt-card .card-meta {
  transform: translateZ(20px);
  transition: transform 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .tilt-card:hover {
    box-shadow: var(--card-shadow-hover), 0 0 32px rgba(6, 110, 94, 0.18);
  }
}

.calc-stage-3d {
  transform-style: preserve-3d;
  perspective: 1200px;
}

/* AI Header Button with 3D Ambient Glow */
.btn-ai-header {
  background: linear-gradient(135deg, #065f46 0%, #064e49 50%, #0284c7 100%);
  color: #ffffff !important;
  border: 1px solid rgba(103, 232, 249, 0.35);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-ai-header:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(103, 232, 249, 0.45);
  border-color: rgba(103, 232, 249, 0.7);
}

.btn-ai-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-ai-header:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Floating AI Dock Button with Multi-Ring Pulse */
.dock-ai {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  font-size: 1.35rem;
  position: relative;
  animation: dockAiPulse 2.8s infinite;
}

@keyframes dockAiPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.75), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  60% {
    box-shadow: 0 0 0 16px rgba(20, 184, 166, 0), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0), 0 10px 24px rgba(0, 0, 0, 0.25);
  }
}

/* ==========================================================================
   AI AQUACULTURE ADVISOR MODAL & DIAGNOSTIC INTERFACE
   ========================================================================== */
.ai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 44, 34, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.ai-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.ai-modal-box {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.45), 0 0 40px rgba(103, 232, 249, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(18px);
  transition: transform 0.32s var(--ease-out);
}

.ai-modal-backdrop.is-open .ai-modal-box {
  transform: scale(1) translateY(0);
}

.ai-modal-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 60%, var(--cyan-600) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-robot-badge {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.12);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(103, 232, 249, 0.4);
}

.ai-modal-title {
  margin: 0;
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.25;
}

.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--cyan-300);
  font-weight: 600;
}

.ai-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ai-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.ai-modal-close:hover {
  background: rgba(239, 68, 68, 0.75);
  transform: rotate(90deg);
}

/* Symptom Quick Strip */
.ai-symptom-strip {
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-symptom-strip::-webkit-scrollbar {
  height: 4px;
}
.ai-symptom-strip::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.ai-symptom-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b91c1c;
  white-space: nowrap;
}

[data-theme="dark"] .ai-symptom-strip-label {
  color: #f87171;
}

.ai-symptom-chips {
  display: flex;
  gap: 6px;
}

.ai-symptom-pill {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-symptom-pill:hover,
.ai-symptom-pill.is-active {
  background: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
}

[data-theme="dark"] .ai-symptom-pill:hover,
[data-theme="dark"] .ai-symptom-pill.is-active {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: #ef4444;
}

/* Quick Prompts */
.ai-quick-prompts {
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-prompt-chip {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-prompt-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Chat Thread */
.ai-chat-thread {
  flex: 1;
  min-height: 240px;
  max-height: 48vh;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  scroll-behavior: smooth;
}

.ai-chat-thread::-webkit-scrollbar {
  width: 6px;
}
.ai-chat-thread::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.ai-message {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: msgFadeIn 0.28s ease-out;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-message.is-bot {
  align-self: flex-start;
}

.ai-message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ai-message.is-user .ai-msg-avatar {
  background: var(--primary);
  color: #ffffff;
}

.ai-msg-body {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.ai-message.is-bot .ai-msg-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}

.ai-message.is-user .ai-msg-body {
  background: var(--primary);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.ai-msg-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

[data-theme="dark"] .ai-msg-title {
  color: var(--cyan-300);
}

.ai-msg-dosage {
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(6, 110, 94, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

[data-theme="dark"] .ai-msg-dosage {
  background: rgba(20, 184, 166, 0.12);
  border-left-color: var(--primary);
}

.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Typing Indicator Animation */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.ai-typing-dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Input Form */
.ai-input-form {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.ai-input-wrap {
  display: flex;
  gap: 8px;
}

.ai-input-field {
  flex: 1;
  padding: 12px 16px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 110, 94, 0.18);
}

.ai-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.ai-send-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* In-Page AI Diagnostic Clinic (Homepage #ai-advisor-section) */
.symptom-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.symptom-select-btn:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
  transform: translateX(4px);
}

.symptom-select-btn.is-active {
  background: linear-gradient(135deg, rgba(6, 110, 94, 0.12), rgba(2, 132, 199, 0.12));
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(6, 110, 94, 0.15);
}

.symptom-tag {
  font-size: 0.74rem;
  padding: 2px 8px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  font-weight: 700;
}

[data-theme="dark"] .symptom-tag {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.ai-diagnosis-box {
  background: linear-gradient(135deg, rgba(4, 59, 54, 0.05), rgba(7, 89, 133, 0.05));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px;
  margin-top: 14px;
  position: relative;
}

@media (max-width: 640px) {
  .ai-modal-box {
    max-height: 94vh;
    border-radius: 20px;
  }
  .ai-modal-header {
    padding: 12px 16px;
  }
  .ai-chat-thread {
    padding: 12px;
    max-height: 42vh;
  }
  .ai-message {
    max-width: 96%;
  }
  .ai-btn-text {
    display: none;
  }
  .btn-ai-header {
    padding: 8px 12px;
    font-size: 1.1rem;
  }
}

