/**
 * Krushi Mitra Admin Portal - Design System & Stylesheet (v4.0.0)
 * Linear / Stripe 2026 Executive Architecture: Deep Indigo & Royal Slate
 * Layout: Floating Island Sidebar, Segmented Glass Topbar, Ambient Radial Glow Canvas
 * Typography: Manrope + Hind Vadodara + Space Grotesk + JetBrains Mono
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Vadodara:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  /* Royal Indigo & Electric Cyan 2026 Palette */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --primary: #6366f1;

  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;

  --gold-500: #f59e0b;
  --gold-600: #d97706;

  --danger-500: #ef4444;
  --danger-600: #dc2626;

  --font-main: 'Manrope', 'Hind Vadodara', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Manrope', 'Hind Vadodara', sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.16s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme (Default) - Linear / Stripe Deep Indigo Studio */
[data-theme="dark"] {
  --bg-page: #060a14;
  --bg-surface: #0c1222;
  --bg-surface-elevated: #131c34;
  --bg-surface-translucent: rgba(12, 18, 34, 0.84);
  --border-color: rgba(99, 102, 241, 0.22);
  --border-color-hover: rgba(99, 102, 241, 0.5);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  --card-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.08);
  --glow-primary: rgba(99, 102, 241, 0.35);
  --glow-accent: rgba(6, 182, 212, 0.3);
  --input-bg: #080d19;
}

/* Light Theme - Clean Neo-Porcelain & Deep Slate */
[data-theme="light"] {
  --bg-page: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-translucent: rgba(255, 255, 255, 0.94);
  --border-color: #cbd5e1;
  --border-color-hover: #64748b;

  --text-main: #09131f;
  --text-muted: #334155;
  --text-subtle: #475569;

  --card-shadow: 0 8px 30px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
  --glow-primary: rgba(79, 70, 229, 0.22);
  --glow-accent: rgba(6, 182, 212, 0.18);
  --input-bg: #ffffff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* App Shell Layout - Floating Island Architecture */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.09) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.07) 0px, transparent 55%);
  padding: 12px;
  gap: 14px;
  box-sizing: border-box;
}

/* Floating Island Sidebar */
.sidebar {
  width: 275px;
  min-width: 275px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 100;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--glow-primary));
}

.sidebar-brand-text h2 {
  font-size: 1.15rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-brand-text p {
  font-size: 0.72rem;
  color: var(--primary-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-group-label {
  padding: 16px 12px 6px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  -webkit-user-select: none;
  user-select: none;
}
.sidebar-group-label:first-child {
  padding-top: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
}

.nav-link:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.2);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.08) 100%);
  color: #818cf8;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.38);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .nav-link.active {
  color: #a5b4fc;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6366f1;
  box-shadow: 0 0 10px #6366f1;
}

.nav-icon {
  font-size: 1.15rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-link.active .nav-icon {
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
}

/* Sidebar Footer Profile */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.admin-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.admin-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.admin-info-small {
  flex: 1;
  overflow: hidden;
}

.admin-email-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon-tiny {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-icon-tiny:hover {
  color: var(--danger-500);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  gap: 12px;
}

/* Floating Glass Topbar */
.topbar {
  height: 68px;
  min-height: 68px;
  background-color: var(--bg-surface-translucent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.crumb-home {
  color: var(--text-subtle);
  font-weight: 600;
}

.crumb-sep {
  color: var(--border-color);
  font-weight: 400;
}

.crumb-current {
  color: #818cf8;
  font-weight: 700;
}

.sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
}

.top-search-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.top-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.top-search-input {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 85px 9px 38px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-kbd-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  pointer-events: none;
  line-height: 1.3;
}

.top-search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-indicator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #06b6d4;
  background-color: rgba(6, 182, 212, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #06b6d4;
  box-shadow: 0 0 10px #06b6d4;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px #06b6d4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

select,
.lang-select-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--input-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 32px 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

[data-theme="dark"] select,
[data-theme="dark"] .lang-select-dropdown {
  background-color: #0c1424 !important;
  color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme="dark"] select option,
[data-theme="dark"] .lang-select-dropdown option {
  background-color: #0c1424 !important;
  color: #ffffff !important;
}

[data-theme="light"] select,
[data-theme="light"] .lang-select-dropdown {
  background-color: #ffffff !important;
  color: #09131f !important;
  border-color: #cbd5e1 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme="light"] select option,
[data-theme="light"] .lang-select-dropdown option {
  background-color: #ffffff !important;
  color: #09131f !important;
}

.lang-select-dropdown:focus {
  outline: none;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.login-lang-select {
  max-width: 150px;
  padding: 6px 30px 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-toggle-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

/* Scrollable View Content */
.main-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 6px 4px 20px 4px;
  background-color: transparent;
}

/* View Header */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.view-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Cards & Components */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(99, 102, 241, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-primary::before { background: linear-gradient(90deg, #6366f1, #818cf8) !important; }
.stat-success::before { background: linear-gradient(90deg, #10b981, #34d399) !important; }
.stat-warning::before { background: linear-gradient(90deg, #ef4444, #f87171) !important; }
.stat-info::before { background: linear-gradient(90deg, #06b6d4, #38bdf8) !important; }

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bg-green-glow { background: rgba(16, 185, 129, 0.16); }
.bg-emerald-glow { background: rgba(5, 150, 105, 0.2); }
.bg-red-glow { background: rgba(239, 68, 68, 0.16); }
.bg-gold-glow { background: rgba(245, 158, 11, 0.16); }
.bg-blue-glow { background: rgba(59, 130, 246, 0.16); }
.bg-purple-glow { background: rgba(168, 85, 247, 0.16); }
.bg-teal-glow { background: rgba(20, 184, 166, 0.16); }

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Charts & Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-body {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.chart-container {
  position: relative;
  width: 170px;
  height: 170px;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-text .count {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  font-family: var(--font-brand);
}

.donut-center-text .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.dot-active { background-color: #10b981; }
.dot-blocked { background-color: #ef4444; }

/* Bar Chart */
.bars-container {
  width: 100%;
}

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-chart-row {
  width: 100%;
}

.bar-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.bar-track {
  width: 100%;
  height: 9px;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Bottom Grid */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}

/* Recent Farmers List */
.recent-list {
  width: 100%;
}

.recent-farmer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

.recent-farmer-row:last-child {
  border-bottom: none;
}

.recent-farmer-row:hover {
  background-color: var(--bg-surface-elevated);
}

.farmer-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-400);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.farmer-info {
  flex: 1;
}

.farmer-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.farmer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.farmer-time {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-right: 12px;
}

/* Quick Actions Body */
.quick-actions-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-action-item:hover {
  border-color: var(--primary-500);
  transform: translateX(4px);
}

.qa-icon {
  font-size: 1.5rem;
}

.qa-details {
  flex: 1;
}

.qa-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.qa-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.qa-arrow {
  color: var(--text-subtle);
  font-weight: bold;
}

/* Toolbar & Filters */
.toolbar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.form-control {
  width: 100%;
  background-color: var(--input-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.search-input-wrap .form-control {
  padding-left: 36px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  background-color: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.pill:hover {
  color: var(--text-main);
  border-color: var(--border-color-hover);
}

.pill.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.record-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Privacy Notice Banner */
.privacy-notice-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.privacy-notice-banner.banner-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.banner-text {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Tables */
.table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-surface-elevated);
  padding: 15px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 15px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr {
  transition: background-color var(--transition-fast);
}

.data-table tr:hover td {
  background-color: var(--bg-surface-elevated);
}

.row-blocked td {
  background-color: rgba(239, 68, 68, 0.08);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

[data-theme="dark"] .user-cell-avatar {
  color: #34d399;
}

.user-cell-name {
  font-weight: 700;
  color: var(--text-main);
}

.user-cell-uid {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.crops-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  line-height: 1.3;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.badge-purple {
  background-color: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.badge-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

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

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  font-weight: 700;
  border-radius: 12px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--border-color-hover);
  background-color: var(--border-color);
  color: var(--text-main);
}

.btn-danger {
  background-color: var(--danger-500);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--danger-600);
}

.btn-warning {
  background-color: var(--gold-500);
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

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

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-400);
}

.btn-group {
  display: inline-flex;
  gap: 6px;
}

/* Login Divider & Google Sign-In Button */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.btn-google-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.btn-google-signin:hover {
  background: var(--border-color);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

/* 24-Hour IP Block Warning Banner */
.ip-blocked-banner {
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 16px;
}

.ip-blocked-banner-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #059669);
}

.modal-sm {
  max-width: 440px;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-surface-elevated);
}

/* Detail Section Grid */
.detail-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.detail-item {
  font-size: 0.88rem;
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.detail-item label {
  color: var(--text-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.detail-item span {
  color: var(--text-main);
  font-weight: 600;
}

.input-with-button {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-button .form-control {
  flex: 1;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  color: #34d399;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.section-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
}

.privacy-callout {
  background-color: var(--bg-surface-elevated);
  border-left: 3px solid var(--primary-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Notification Studio Frame Simulator */
.notif-studio-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.lang-tab-bar {
  display: flex;
  gap: 8px;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.tab-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Smartphone Simulator */
.preview-device-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.smartphone-frame {
  width: 280px;
  height: 480px;
  background-color: #000000;
  border-radius: 42px;
  border: 7px solid #1f2937;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background-color: #4b5563;
  border-radius: 2px;
  margin: 10px auto 4px auto;
}

.phone-screen {
  flex: 1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 0.65rem;
  color: #ffffff;
  font-weight: 600;
}

.phone-wallpaper {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.push-notification-banner {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.push-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.push-app-id {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-700);
}

.push-time {
  color: #64748b;
}

.push-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.push-body {
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.3;
}

.phone-bottom-home {
  width: 90px;
  height: 4px;
  background-color: #64748b;
  border-radius: 2px;
  margin: auto auto 8px auto;
}

/* System Health Cards */
.health-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.health-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.health-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.health-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.health-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--border-color);
}

.bg-emerald-soft { background: rgba(16, 185, 129, 0.16); }
.bg-blue-soft { background: rgba(59, 130, 246, 0.16); }
.bg-purple-soft { background: rgba(168, 85, 247, 0.16); }
.bg-gold-soft { background: rgba(245, 158, 11, 0.16); }

.health-service-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.health-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
}

/* Terminal View */
.terminal-view {
  background-color: #050a14;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 18px 22px;
  height: 240px;
  overflow-y: auto;
  line-height: 1.7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-line .time {
  color: #64748b;
  margin-right: 8px;
}

.line-success { color: #34d399; }
.line-error { color: #f87171; }
.line-warning { color: #fbbf24; }
.line-info { color: #60a5fa; }

/* Empty States */
.empty-state, .empty-state-card {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.empty-text, .empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-subtext, .empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

/* Auth Screens (Login & Forbidden) */
.auth-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

[data-theme="dark"] .auth-wrapper {
  background: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #080c16 0%, #03060d 100%);
}

[data-theme="light"] .auth-wrapper {
  background: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%);
}

.auth-card {
  border-radius: var(--radius-xl);
  padding: 42px 38px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .auth-card {
  background-color: #0c1222;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .auth-card {
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(99, 102, 241, 0.08);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6);
}

.auth-logo-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px auto;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.45));
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .auth-title { color: #ffffff !important; }
[data-theme="light"] .auth-title { color: #09131f !important; }

.auth-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

[data-theme="dark"] .auth-subtitle { color: #cbd5e1 !important; }
[data-theme="light"] .auth-subtitle { color: #334155 !important; }

.auth-form {
  text-align: left;
}

.auth-form .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

[data-theme="dark"] .auth-form .form-label { color: #f8fafc !important; }
[data-theme="light"] .auth-form .form-label { color: #09131f !important; }

[data-theme="dark"] .auth-card .form-control {
  background-color: #080d19 !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(99, 102, 241, 0.35) !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .auth-card .form-control::placeholder {
  color: #94a3b8 !important;
}

[data-theme="dark"] .auth-card .form-control:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
  color: #ffffff !important;
}

[data-theme="light"] .auth-card .form-control {
  background-color: #ffffff !important;
  color: #09131f !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .auth-card .form-control::placeholder {
  color: #64748b !important;
}

[data-theme="light"] .auth-card .form-control:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
  color: #000000 !important;
}

/* Clear Saved Details Button: NEVER white on white! */
#btnClearSavedLogin,
.auth-card .btn-secondary {
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
  transition: all var(--transition-fast) !important;
}

[data-theme="dark"] #btnClearSavedLogin,
[data-theme="dark"] .auth-card .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] #btnClearSavedLogin:hover,
[data-theme="dark"] .auth-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

[data-theme="light"] #btnClearSavedLogin,
[data-theme="light"] .auth-card .btn-secondary {
  background: #f1f5f9 !important;
  color: #09131f !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] #btnClearSavedLogin:hover,
[data-theme="light"] .auth-card .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
  border-color: #94a3b8 !important;
}

.auth-footer-disclaimer {
  font-size: 0.78rem;
  margin-top: 22px;
  line-height: 1.5;
  font-weight: 500;
}

[data-theme="dark"] .auth-footer-disclaimer { color: #94a3b8 !important; }
[data-theme="light"] .auth-footer-disclaimer { color: #475569 !important; }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: var(--text-subtle);
  font-size: 0.78rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { border-left: 4px solid var(--primary-500); }
.toast-error { border-left: 4px solid var(--danger-500); }
.toast-warning { border-left: 4px solid var(--gold-500); }

/* Settings Toggles */
.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-toggle-row:last-child {
  border-bottom: none;
}

.setting-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.setting-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-500);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Overlay for Mobile Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 90;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-500); }
.text-success { color: var(--primary-400); }
.text-sm { font-size: 0.78rem; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-right { text-align: right; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }
.p-0 { padding: 0 !important; }
.flex-1 { flex: 1; }
.form-row { display: flex; gap: 14px; }
.quote-box {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--border-color-hover);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

.w-100 {
  width: 100%;
}

.badge-role {
  font-size: 0.65rem;
  padding: 1px 6px;
}

/* Session Timeout Management (4h to 4:30h Auto-Logout) */
.session-timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: default;
  transition: all var(--transition-fast);
}

.badge-session-normal {
  background-color: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-session-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  animation: pulse-session 1.5s infinite;
}

.badge-session-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes pulse-session {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.97); }
}

.session-modal-card {
  text-align: center;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  font-size: 1.4rem;
}

.text-warning {
  color: var(--gold-500);
}

.session-countdown-circle {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  border: 4px solid var(--gold-500);
  background: rgba(245, 158, 11, 0.08);
  margin: 0 auto 18px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.countdown-digits {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.session-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 14px;
}

.session-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--danger-500));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.flex-center {
  justify-content: center !important;
}

.text-center {
  text-align: center !important;
}

/* Farm & Seasons Grid Styles */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.season-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

.season-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary-500);
}

.season-kharif {
  border-left: 4px solid #059669;
}

.season-rabi {
  border-left: 4px solid #0284c7;
}

.season-zaid {
  border-left: 4px solid #d97706;
}

.season-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.season-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.season-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.season-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-400);
}

.border-primary {
  border-color: var(--primary-500) !important;
}

.content-config-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.select-compact {
  max-width: 280px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .analytics-grid, .notif-studio-grid, .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-toggle-btn {
    display: inline-block;
  }

  .main-view-container {
    padding: 16px;
  }

  .topbar {
    padding: 0 16px;
  }
}

/* App Release & Download Portal Admin Subtabs */
.admin-subtabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.subtab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .subtab-btn {
  color: #cbd5e1 !important;
}

.subtab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
}

.subtab-btn.active {
  color: #ffffff !important;
  border-bottom-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.18) !important;
  border-top-color: rgba(99, 102, 241, 0.35) !important;
  border-left-color: rgba(99, 102, 241, 0.35) !important;
  border-right-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .subtab-btn.active {
  color: #ffffff !important;
  border-bottom-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.22) !important;
}

/* Installation Guide Step Cards */
.step-card {
  transition: border-color var(--transition-fast);
}

.step-card:hover {
  border-color: var(--color-primary);
}

/* Screenshots Manager Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.screenshot-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.screenshot-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0f172a;
}

.screenshot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.screenshot-card:hover .screenshot-img-wrap img {
  transform: scale(1.04);
}

.screenshot-order-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
}

.screenshot-cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
}

.screenshot-preview-box {
  width: 140px;
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px dashed var(--border-color);
  margin: 0 auto;
}

.screenshot-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ========================================================
   WEBSITE MANAGER - ULTRA-CLEAN TRILINGUAL DESIGN SYSTEM
   ======================================================== */
.wm-top-bar {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.wm-lang-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wm-lang-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}

.wm-lang-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.wm-lang-pill.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wm-field-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.16);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .wm-field-badge {
  color: #a5b4fc !important;
  background: rgba(99, 102, 241, 0.18) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
}

.wm-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
  box-shadow: var(--card-shadow);
}

.wm-section-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.wm-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.wm-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.wm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.wm-item-card {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.wm-item-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.shadow-glow-primary {
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.shadow-glow-primary:hover {
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.6);
}

/* ========================================================
   COMPREHENSIVE UTILITIES & UNIVERSAL DESIGN SYSTEM
   Supports all 14 Admin Portal Modules in Dark & Light Modes
   ======================================================== */

/* 1. Flex & Layout Helpers */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.flex-2 { flex: 2 2 0% !important; }
.min-w-0 { min-width: 0 !important; }

.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }

.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.g-2 { gap: 8px !important; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
@media (min-width: 768px) {
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 8px; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 8px; }
}

/* 2. Spacing Helpers */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 20px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-0\.5 { margin-top: 2px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 20px !important; }

.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }

.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 12px !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 12px !important; }
.pt-4 { padding-top: 16px !important; }

/* 3. Typography Helpers */
.text-2xs { font-size: 0.72rem !important; line-height: 1.3 !important; }
.text-xs { font-size: 0.8rem !important; line-height: 1.4 !important; }
.text-sm { font-size: 0.88rem !important; line-height: 1.45 !important; }
.text-base { font-size: 0.95rem !important; line-height: 1.5 !important; }
.text-lg { font-size: 1.15rem !important; line-height: 1.4 !important; }
.text-xl { font-size: 1.35rem !important; line-height: 1.3 !important; }
.fs-xl { font-size: 1.35rem !important; }
.font-lg { font-size: 1.15rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.whitespace-nowrap { white-space: nowrap !important; }
.capitalize { text-transform: capitalize !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-decoration-none { text-decoration: none !important; }
.cursor-pointer { cursor: pointer !important; }

/* 4. Adaptive Color Utilities (Universal Dark/Light Support) */
.text-main { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-subtle { color: var(--text-subtle) !important; }

/* text-white MUST adapt in light mode so titles and labels never turn invisible */
.text-white { color: var(--text-main) !important; }
[data-theme="dark"] .text-white { color: #ffffff !important; }
[data-theme="light"] .text-white { color: #0f172a !important; }

.text-primary { color: #6366f1 !important; }
[data-theme="dark"] .text-primary { color: #818cf8 !important; }
[data-theme="light"] .text-primary { color: #4338ca !important; }

.text-secondary { color: var(--text-muted) !important; }
.text-success { color: #059669 !important; }
[data-theme="dark"] .text-success { color: #34d399 !important; }
[data-theme="light"] .text-success { color: #047857 !important; }

.text-danger { color: #dc2626 !important; }
[data-theme="dark"] .text-danger { color: #f87171 !important; }

.text-warning { color: #d97706 !important; }
[data-theme="dark"] .text-warning { color: #fbbf24 !important; }

.text-info { color: #2563eb !important; }
[data-theme="dark"] .text-info { color: #60a5fa !important; }

.text-green { color: #059669 !important; }
[data-theme="dark"] .text-green { color: #34d399 !important; }

/* 5. Borders & Shapes */
.border { border: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-danger { border-color: var(--danger-500) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.round, .rounded-full { border-radius: 9999px !important; }

/* 6. Form Groups & Labels */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .form-label {
  color: #f8fafc !important;
}
[data-theme="light"] .form-label {
  color: #09131f !important;
}
[data-theme="light"] .form-label.text-muted {
  color: #334155 !important;
}

/* 7. Buttons System */
.btn-xs {
  padding: 4px 10px !important;
  font-size: 0.76rem !important;
  border-radius: var(--radius-sm) !important;
}
.btn-md {
  padding: 9px 18px !important;
  font-size: 0.88rem !important;
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
  font-weight: 700 !important;
}
.btn-success:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid #6366f1;
  color: #6366f1;
}
[data-theme="dark"] .btn-outline-primary {
  color: #818cf8;
  border-color: #6366f1;
}
[data-theme="light"] .btn-outline-primary {
  border-color: #4f46e5;
  color: #4338ca;
  background: #ffffff;
}
[data-theme="light"] .btn-outline-primary:hover {
  background: #eef2ff;
  border-color: #3730a3;
  color: #312e81;
}
[data-theme="light"] .btn-outline-primary {
  border-color: #059669;
  color: #047857;
  background: #ffffff;
}
[data-theme="light"] .btn-outline-primary:hover {
  background: #ecfdf5;
  border-color: #047857;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
[data-theme="dark"] .btn-outline-danger {
  color: #f87171;
}
[data-theme="light"] .btn-outline-danger {
  background: #fff1f2;
  border-color: #fca5a5;
  color: #dc2626;
}
[data-theme="light"] .btn-outline-danger:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
[data-theme="light"] .btn-outline-light {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-light {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  cursor: pointer;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.btn-close:hover {
  color: var(--text-main);
}

/* 8. Alerts System */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
[data-theme="dark"] .alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #ecfdf5; }
[data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #fee2e2; }
[data-theme="dark"] .alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fef3c7; }
[data-theme="dark"] .alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); color: #dbeafe; }

[data-theme="light"] .alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b; }
[data-theme="light"] .alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
[data-theme="light"] .alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
[data-theme="light"] .alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* 9. Specialized Module Components */
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.audit-details-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.notif-composer-card, .notif-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.canned-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-canned {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-canned:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.crop-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-main);
}
.crop-name {
  font-weight: 600;
  color: var(--text-main);
}
.crop-count {
  font-weight: 700;
  color: var(--primary-600);
}
[data-theme="dark"] .crop-count {
  color: #34d399;
}

.password-viewer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.export-btn-group {
  display: flex;
  gap: 8px;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.snippet-box, .primary-notes-box, .secondary-notes-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.apk-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.apk-upload-box:hover {
  border-color: var(--color-primary);
}

.progress-wrap, .progress-track, .progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill, .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 9999px;
}

/* 10. Light Mode Global Overrides (High-Contrast Guaranteed for All 14 Modules) */
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .table-card,
[data-theme="light"] .health-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .toolbar-card,
[data-theme="light"] .wm-section-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .card-header {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .wm-item-card {
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}
[data-theme="light"] .wm-item-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.15) !important;
}
[data-theme="light"] .topbar {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .sidebar {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07) !important;
}
[data-theme="light"] .nav-link {
  color: #334155 !important;
}
[data-theme="light"] .nav-link:hover {
  background-color: #f1f5f9 !important;
  color: #09131f !important;
}
[data-theme="light"] .nav-link.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%) !important;
  color: #4338ca !important;
  border: 1px solid rgba(79, 70, 229, 0.3) !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15) !important;
}
[data-theme="light"] .nav-link.active .nav-icon {
  background: rgba(79, 70, 229, 0.18) !important;
  color: #4338ca !important;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.25) !important;
}
[data-theme="light"] .nav-link.active::after {
  background-color: #4f46e5 !important;
  box-shadow: 0 0 8px #4f46e5 !important;
}

/* Form Control Contrast in Light Mode */
[data-theme="light"] .form-control {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #09131f !important;
}
[data-theme="light"] .form-control:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}
[data-theme="light"] .form-control::placeholder {
  color: #64748b !important;
}

/* Badges in Light Mode: Dark Text on Soft Backgrounds */
[data-theme="light"] .badge-success {
  background-color: #d1fae5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
[data-theme="light"] .badge-danger {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
[data-theme="light"] .badge-warning {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}
[data-theme="light"] .badge-info {
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
[data-theme="light"] .badge-purple {
  background-color: #f3e8ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}
[data-theme="light"] .badge-secondary,
[data-theme="light"] .badge-light {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

/* Button Overrides in Light Mode */
[data-theme="light"] .btn-secondary {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}
[data-theme="light"] .btn-secondary:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
[data-theme="light"] .btn-outline {
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-theme="light"] .btn-outline:hover {
  background-color: #f1f5f9 !important;
  border-color: #059669 !important;
  color: #047857 !important;
}
[data-theme="light"] .btn-google-signin {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .btn-google-signin:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

/* Website Manager Specific in Light Mode */
[data-theme="light"] .wm-top-bar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .wm-lang-pills {
  background: #e2e8f0 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .wm-lang-pill {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
}
[data-theme="light"] .wm-lang-pill:hover {
  color: #09131f !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .wm-lang-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}
[data-theme="light"] .wm-field-badge {
  background: #e0e7ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
  font-weight: 800 !important;
}
[data-theme="light"] .wm-section-title {
  color: #09131f !important;
  font-weight: 800 !important;
}
[data-theme="light"] .wm-section-desc {
  color: #1e293b !important;
  font-weight: 500 !important;
}
[data-theme="light"] .view-title {
  color: #09131f !important;
  font-weight: 800 !important;
}
[data-theme="light"] .view-subtitle {
  color: #1e293b !important;
  font-weight: 500 !important;
}
[data-theme="light"] .card-title {
  color: #09131f !important;
  font-weight: 700 !important;
}
[data-theme="light"] .card-subtitle {
  color: #1e293b !important;
}
[data-theme="light"] label,
[data-theme="light"] .form-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}
[data-theme="light"] .text-muted {
  color: #334155 !important;
  font-weight: 500 !important;
}
[data-theme="light"] .text-subtle {
  color: #475569 !important;
}
[data-theme="light"] .stat-label {
  color: #1e293b !important;
  font-weight: 800 !important;
}
[data-theme="light"] .stat-value {
  color: #09131f !important;
  font-weight: 800 !important;
}
[data-theme="light"] .stat-subtext {
  color: #334155 !important;
  font-weight: 600 !important;
}
[data-theme="light"] .sidebar-group-label {
  color: #475569 !important;
  font-weight: 800 !important;
}
[data-theme="light"] .wm-item-card {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .wm-item-card:hover {
  border-color: #4f46e5 !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.15) !important;
}
[data-theme="light"] textarea.form-control,
[data-theme="light"] input.form-control,
[data-theme="light"] select.form-control {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #09131f !important;
  font-weight: 600 !important;
}
[data-theme="light"] textarea.form-control:focus,
[data-theme="light"] input.form-control:focus,
[data-theme="light"] select.form-control:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
  color: #000000 !important;
}
[data-theme="light"] .form-control::placeholder {
  color: #64748b !important;
  font-weight: 500 !important;
}

/* Subtabs in Light Mode */
[data-theme="light"] .admin-subtabs {
  border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] .subtab-btn {
  color: #334155 !important;
  font-weight: 700 !important;
}
[data-theme="light"] .subtab-btn:hover {
  color: #09131f !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .subtab-btn.active {
  color: #3730a3 !important;
  background: #e0e7ff !important;
  border-bottom-color: #4f46e5 !important;
  border-top-color: #c7d2fe !important;
  border-left-color: #c7d2fe !important;
  border-right-color: #c7d2fe !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15) !important;
  font-weight: 800 !important;
}

/* Data Tables in Light Mode */
[data-theme="light"] .data-table th,
[data-theme="light"] .table th,
[data-theme="light"] table th {
  background-color: #e2e8f0 !important;
  color: #09131f !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] .data-table td,
[data-theme="light"] .table td,
[data-theme="light"] table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 500 !important;
}
[data-theme="light"] .data-table tr:hover td,
[data-theme="light"] .table tr:hover td {
  background-color: #f1f5f9 !important;
}

/* Modals in Light Mode */
[data-theme="light"] .modal-card {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25) !important;
}
[data-theme="light"] .modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .modal-footer {
  border-top: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
}
[data-theme="light"] .detail-item {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .detail-item span {
  color: #0f172a !important;
}
[data-theme="light"] .detail-item label {
  color: #334155 !important;
  font-weight: 700 !important;
}

/* Pills & Toolbar in Light Mode */
[data-theme="light"] .pill {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
}
[data-theme="light"] .pill:hover {
  color: #000000 !important;
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}
[data-theme="light"] .record-counter {
  color: #334155 !important;
  font-weight: 700 !important;
}
[data-theme="light"] .lang-tab-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .tab-btn {
  color: #1e293b !important;
  font-weight: 700 !important;
}
[data-theme="light"] .tab-btn:hover {
  color: #000000 !important;
  background: #e2e8f0 !important;
}

/* Quick Actions & Seasons in Light Mode */
[data-theme="light"] .quick-action-item {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .quick-action-item:hover {
  background-color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
}
[data-theme="light"] .season-box {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .season-box:hover {
  background-color: #ffffff !important;
  border-color: #4f46e5 !important;
}

/* High Contrast Rules for Dark Mode */
[data-theme="dark"] .data-table th,
[data-theme="dark"] .table th,
[data-theme="dark"] table th {
  background-color: #131c34 !important;
  color: #f8fafc !important;
  font-weight: 800 !important;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3) !important;
}
[data-theme="dark"] .data-table td,
[data-theme="dark"] .table td,
[data-theme="dark"] table td {
  border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important;
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}
[data-theme="dark"] .data-table tr:hover td,
[data-theme="dark"] .table tr:hover td {
  background-color: rgba(99, 102, 241, 0.08) !important;
}
[data-theme="dark"] .pill {
  background-color: #0f172a !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #e2e8f0 !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .pill:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
}
[data-theme="dark"] .tab-btn {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .tab-btn:hover {
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.14) !important;
}

/* Login Card in Light Mode */
[data-theme="light"] .auth-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .auth-title {
  color: #0f172a !important;
}
[data-theme="light"] .auth-subtitle {
  color: #475569 !important;
}
[data-theme="light"] .login-divider-line {
  background: #cbd5e1 !important;
}

/* 11. Additional Semantic Utilities */
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-primary { background-color: var(--color-primary) !important; color: #ffffff !important; }
.bg-danger-soft, .bg-red-soft { background-color: rgba(239, 68, 68, 0.12) !important; }

[data-theme="dark"] .bg-dark { background-color: #0c1424 !important; }
[data-theme="light"] .bg-dark { background-color: #f1f5f9 !important; color: #0f172a !important; }

[data-theme="dark"] .bg-black { background-color: #050a14 !important; }
[data-theme="light"] .bg-black { background-color: #e2e8f0 !important; }

.header-actions, .view-actions, .composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state-p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.status-pills, .source-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.callout-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.push-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

/* Farmer Language Live Counters */
.farmer-lang-counters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-count-badge:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary-color);
}

.lang-count-badge.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.lang-count-badge .badge-val {
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.lang-count-badge.active .badge-val {
  background: #10b981;
  color: #ffffff;
}

.badge-language {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-lang-gu {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-lang-hi {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-lang-en {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Mobile Announcement Simulator Styles */
.mobile-app-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.mobile-top-banner {
  margin: 12px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.3s ease;
}

.mobile-banner-theme-info {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #ffffff;
}
.mobile-banner-theme-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #ffffff;
}
.mobile-banner-theme-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #ffffff;
}
.mobile-banner-theme-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #ffffff;
}

.mobile-banner-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-banner-msg {
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.95;
}

/* Mobile Popup Modal Styles */
.mobile-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 50;
}

.mobile-popup-card {
  width: 100%;
  max-width: 240px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 18px 14px 14px 14px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.mobile-popup-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.mobile-popup-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.mobile-popup-msg {
  font-size: 0.73rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 14px;
  max-height: 140px;
  overflow-y: auto;
}

.mobile-popup-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-feed-placeholder {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-mock-card {
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}


