@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Pure White Agronomy Light Theme (Default) */
:root {
  --bg-dark: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.98);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-box: #f1f5f9;
  --border-glass: #e2e8f0;
  --border-glass-active: rgba(5, 150, 105, 0.5);
  
  --primary-emerald: #059669;
  --primary-glow: rgba(5, 150, 105, 0.25);
  --accent-lime: #4d7c0f;
  --accent-amber: #b45309;
  --accent-rose: #be123c;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --shadow-glow: 0 10px 30px -10px rgba(5, 150, 105, 0.15);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-emerald);
}

/* Top Announcement / Certification Ribbon */
.top-announcement-bar {
  background: linear-gradient(90deg, #064e3b, #047857, #064e3b);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

}

.top-nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.top-nav-links .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.top-nav-links .nav-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
}

.top-nav-links .nav-btn.active {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

@media (max-width: 992px) {
  .top-nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981, #047857);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--primary-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-btn * {
  pointer-events: none;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .nav-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }
}

.lang-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-pill.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.45);
}

/* App Container Layout */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

/* Hero Section */
.hero-banner {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid var(--border-glass-active);
  color: var(--primary-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

.hero-title span {
  background: linear-gradient(135deg, #059669, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.12rem;
}

/* Professional Enterprise Metrics Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.metric-item:hover {
  border-color: var(--border-glass-active);
  transform: translateY(-2px);
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-emerald);
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dedicated Crop Disease & Cure Matrix */
.crop-matrix-section {
  width: 100%;
}

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

@media (max-width: 768px) {
  .matrix-grid {
    grid-template-columns: 1fr;
  }
}

.matrix-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.matrix-card:hover {
  border-color: var(--border-glass-active);
  transform: translateY(-3px);
}

.matrix-crop-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.matrix-crop-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass-active);
}

.matrix-crop-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.matrix-disease-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-rose);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-top: 0.2rem;
}

.matrix-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.matrix-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.matrix-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.matrix-col p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

/* Weather Risk Alert Card */
.weather-alert-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .weather-alert-card {
    flex-direction: column;
    text-align: center;
  }
}

.weather-alert-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.weather-alert-body {
  font-size: 0.92rem;
  color: var(--text-main);
}

.weather-stats-pills {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.weather-pill {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-amber);
}

/* Main Grid Layout */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass Card Component */
.glass-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-active);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
}

.card-title svg {
  color: var(--primary-emerald);
}

/* Dropzone */
.dropzone {
  border: 2px dashed #059669;
  border-radius: var(--radius-md);
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #f0fdf4;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-emerald);
  background: rgba(5, 150, 105, 0.12);
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(5, 150, 105, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-emerald);
}

.crop-select-wrapper {
  margin-bottom: 1.25rem;
}

.select-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.custom-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Image Preview & Scanning Laser */
.preview-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass-active);
  background: #000;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #34d399, #a3e635, transparent);
  box-shadow: 0 0 15px #34d399;
  animation: scanAnimation 2.2s infinite ease-in-out;
  z-index: 10;
}

@keyframes scanAnimation {
  0% { top: 0%; opacity: 0.3; }
  50% { top: 95%; opacity: 1; }
  100% { top: 0%; opacity: 0.3; }
}

.scanner-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(52, 211, 153, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.scanning-badge {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--primary-emerald);
  color: #34d399;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-emerald);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Sample Leaf Gallery */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.sample-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.65rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sample-card:hover {
  border-color: var(--primary-emerald);
  transform: translateY(-2px);
  background: rgba(5, 150, 105, 0.08);
}

.sample-thumb {
  width: 100% !important;
  height: 80px !important;
  max-height: 80px !important;
  border-radius: var(--radius-sm);
  overflow: hidden !important;
  margin-bottom: 0.5rem;
  background: #0f172a;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.sample-thumb img,
.sample-thumb svg {
  width: 100% !important;
  height: 80px !important;
  max-height: 80px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.sample-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sample-crop {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Diagnosis Result Display */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.disease-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.scientific-name {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.severity-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confidence-bar-wrapper {
  margin-bottom: 1.5rem;
}

.confidence-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #16a34a);
  border-radius: 10px;
  transition: width 1s ease-out;
}

/* WhatsApp Share Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.25rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Tabs Navigation within Diagnosis */
.tab-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary-emerald);
  background: rgba(5, 150, 105, 0.12);
  border-bottom: 2px solid var(--primary-emerald);
}

.tab-content-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.96rem;
  color: #0f172a;
}

.bullet-icon {
  color: var(--primary-emerald);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Medicine Card */
.medicine-card {
  background: #ffffff;
  border-left: 4px solid var(--primary-emerald);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.medicine-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary-emerald);
  margin-bottom: 0.25rem;
}

.medicine-dosage {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 0.4rem;
}

.medicine-app {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(5, 150, 105, 0.1);
  border-color: var(--border-glass-active);
}

/* Dosage Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-result-box {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(132, 204, 22, 0.08));
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  margin-top: 1rem;
}

.calc-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-emerald);
}

/* Chat Widget */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 380px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
}

.chat-input-row {
  display: flex;
  padding: 0.75rem;
  gap: 0.5rem;
  border-top: 1px solid #cbd5e1;
  background: #ffffff;
}

.chat-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: #0f172a;
  outline: none;
  font-size: 0.92rem;
}

.chat-input:focus {
  border-color: var(--primary-emerald);
}

/* FAQ Section Accordion */
.faq-section {
  margin-top: 3.5rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  border-color: var(--border-glass-active);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.35rem;
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Professional Footer */
.footer {
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

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

/* Hidden elements */
.hidden {
  display: none !important;
}

/* 3-BARS HAMBURGER MENU BUTTON & SLIDE-OUT SIDEBAR DRAWER */
.menu-toggle-btn {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid var(--border-glass-active);
  color: var(--primary-emerald);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: rgba(5, 150, 105, 0.22);
  transform: scale(1.05);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -340px;
  right: auto;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column !important;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.sidebar-drawer.active {
  left: 0 !important;
  right: auto !important;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.sidebar-close-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column !important;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  width: 100% !important;
  transition: var(--transition-fast);
}

.sidebar-nav-btn:hover {
  background: rgba(5, 150, 105, 0.08);
  color: var(--primary-emerald);
  border-color: var(--border-glass-active);
}

.sidebar-nav-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
  border-color: var(--primary-emerald);
}

/* Modal Backdrop & Card Styles for AdSense Compliance */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: #f8fafc;
}

.modal-close-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
