/* ===== KrishiAI Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --green-deep: #1a4d14;
  --green-dark: #1b5e20;
  --green-mid: #2e7d32;
  --green-lime: #3aa82a;
  --green-light: #e8f5e9;
  --green-pale: #f1f8e9;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --amber-dark: #d97706;
  --white: #ffffff;
  --off-white: #fafff8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 2px 8px rgba(26,77,20,0.06);
  --shadow-md: 0 4px 20px rgba(26,77,20,0.10);
  --shadow-lg: 0 8px 40px rgba(26,77,20,0.14);
  --shadow-glow: 0 0 20px rgba(58,168,42,0.25);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--green-deep) 0%, #0d3a08 100%);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-lime), #4caf50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 14px rgba(58,168,42,0.4);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(58,168,42,0.4); }
  50% { box-shadow: 0 0 24px rgba(58,168,42,0.7); }
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 20px rgba(58,168,42,0.5);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(58,168,42,0.2);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-lime);
  box-shadow: 0 0 8px rgba(58,168,42,0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-lang {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.nav-lang:hover { background: rgba(255,255,255,0.18); }

.nav-cta {
  background: linear-gradient(135deg, var(--green-lime), #2d9320);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(58,168,42,0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(58,168,42,0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: radial-gradient(ellipse at 30% 50%, #1a5c12 0%, var(--green-deep) 50%, #0d2b09 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2345a049' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(58,168,42,0.15);
  border: 1px solid rgba(58,168,42,0.3);
  color: #8aed7e;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green-lime);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, #8aed7e, var(--green-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-number .suffix {
  font-size: 1.4rem;
  color: var(--green-lime);
}

.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Weather Card */
.weather-card {
  background: linear-gradient(160deg, var(--green-deep) 0%, #0d3a08 100%);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.weather-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(58,168,42,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.weather-location {
  font-size: 0.82rem;
  opacity: 0.7;
  font-weight: 500;
}

.weather-location strong {
  display: block;
  font-size: 1rem;
  opacity: 1;
  margin-top: 2px;
}

.weather-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 8px rgba(255,200,0,0.3));
}

.weather-temp {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1rem;
}

.weather-temp .temp {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.weather-temp .unit {
  font-size: 1.2rem;
  opacity: 0.6;
}

.weather-desc {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weather-detail {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.weather-detail-label {
  font-size: 0.72rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-detail-value {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Soil Health */
.soil-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  font-size: 1.2rem;
}

.soil-metric {
  margin-bottom: 1rem;
}

.soil-metric:last-child { margin-bottom: 0; }

.soil-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.soil-metric-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
}

.soil-metric-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-deep);
}

.soil-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.soil-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.soil-bar-fill.nitrogen { background: linear-gradient(90deg, #3aa82a, #66bb6a); }
.soil-bar-fill.phosphorus { background: linear-gradient(90deg, var(--amber), var(--amber-dark)); }
.soil-bar-fill.potassium { background: linear-gradient(90deg, #7c4dff, #b388ff); }
.soil-bar-fill.ph { background: linear-gradient(90deg, #00acc1, #4dd0e1); }
.soil-bar-fill.organic { background: linear-gradient(90deg, #8d6e63, #bcaaa4); }

/* Sidebar Nav */
.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: var(--green-pale);
  color: var(--green-deep);
}

.sidebar-nav-item.active {
  background: var(--green-light);
  color: var(--green-deep);
  font-weight: 600;
}

.sidebar-nav-item .nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* ===== CONTENT AREA ===== */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Chatbot */
.chatbot-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--green-deep), #0d3a08);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-lime), #66bb6a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 12px rgba(58,168,42,0.4);
}

.chatbot-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status .online-dot {
  width: 7px;
  height: 7px;
  background: #4caf50;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.chatbot-header-actions button {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.chatbot-header-actions button:hover {
  background: rgba(255,255,255,0.22);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--off-white) 100%);
}

.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgIn 0.35s ease-out;
}

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

.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chat-message.bot .chat-msg-avatar {
  background: linear-gradient(135deg, var(--green-lime), #66bb6a);
}

.chat-message.user .chat-msg-avatar {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.chat-message.bot .chat-bubble {
  background: var(--green-light);
  color: var(--green-deep);
  border-bottom-left-radius: 6px;
}

.chat-message.user .chat-bubble {
  background: var(--white);
  color: var(--gray-800);
  border-bottom-right-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 1.5rem;
  margin-bottom: 10px;
}

.quick-reply-btn {
  background: var(--white);
  border: 1.5px solid var(--green-lime);
  color: var(--green-deep);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: var(--green-lime);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(58,168,42,0.25);
}

.chatbot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--green-lime);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58,168,42,0.1);
}

.chatbot-input input::placeholder {
  color: var(--gray-400);
}

.input-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.input-btn.mic, .input-btn.camera {
  background: var(--gray-100);
  color: var(--gray-600);
}

.input-btn.mic:hover, .input-btn.camera:hover {
  background: var(--green-light);
  color: var(--green-deep);
}

.input-btn.send {
  background: linear-gradient(135deg, var(--green-lime), #2d9320);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(58,168,42,0.3);
}

.input-btn.send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(58,168,42,0.5);
}

/* ===== FEATURE CARDS ===== */
.features-section {
  padding: 0;
}

.features-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-lime);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.84rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-green {
  background: var(--green-light);
  color: var(--green-mid);
}

.tag-amber {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.tag-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-purple {
  background: #f3e5f5;
  color: #7b1fa2;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.auth-overlay.open { display: flex; }

.auth-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.35s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}

.auth-close:hover { background: var(--gray-200); }

.auth-header { text-align: center; margin-bottom: 1.5rem; }

.auth-logo {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--gray-400);
}

.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.2rem;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--gray-50);
  outline: none;
  transition: var(--transition);
}

.auth-field input:focus {
  border-color: var(--green-lime);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58,168,42,0.1);
}

.auth-error {
  color: #d32f2f;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--green-lime), #2d9320);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(58,168,42,0.3);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(58,168,42,0.5);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  margin: 1.2rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  background: var(--white);
  padding: 0 16px;
  position: relative;
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-google {
  width: 100%;
  padding: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--gray-800);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ===== NAVBAR USER PROFILE ===== */
.nav-user {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  font-family: var(--font-body);
}

.nav-user-btn:hover {
  background: rgba(255,255,255,0.18);
}

.nav-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--green-lime), #66bb6a);
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 1001;
  animation: modalIn 0.2s ease-out;
}

.nav-dropdown.open { display: block; }

.nav-dropdown-header {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  cursor: pointer;
  transition: var(--transition);
}

.nav-dropdown-item:hover {
  background: var(--green-pale);
  color: var(--green-deep);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--green-deep), #0d2b09);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.footer strong {
  color: var(--green-lime);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 280px 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  .nav-links, .nav-actions .nav-cta {
    display: none;
  }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--green-deep);
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .hero {
    padding: 3rem 1.2rem 2.5rem;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .sidebar {
    order: 2;
  }

  .content-area {
    order: 1;
  }

  .chatbot-panel {
    height: 420px;
  }

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

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0 0;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--green-lime);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

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