/* ==========================================================================
   NEJJO MULLO (ন্যায্য মূল্য / Fair Price) - PREMIUM MINIMALIST DESIGN SYSTEM
   Nationwide Market Intelligence & Smart Grocery Planner for Bangladesh
   Zero Emojis • Vector SVG Graphics • Modern Typography • Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Primary Brand Palette - Emerald Forest & Fresh Mint */
  --primary-green: #087F5B;
  --primary-green-hover: #06694B;
  --deep-green: #055C41;
  --emerald: #10A878;
  --emerald-light: #2ECC71;
  --mint: #DDF7EA;
  --soft-mint: #F0FAF4;
  --light-aqua: #E6F7F5;
  
  /* Government & Official DAM Badges */
  --dam-badge-bg: #E3F8EE;
  --dam-badge-text: #055C41;
  --dam-badge-border: #10A878;
  --community-badge-bg: #EFF6FF;
  --community-badge-text: #1D4ED8;
  --community-badge-border: #93C5FD;
  
  /* Status & Accent Colors */
  --warm-amber: #F59E0B;
  --soft-amber: #FEF3C7;
  --fair-green: #10B981;
  --fair-green-bg: #ECFDF5;
  --warning-amber: #F59E0B;
  --warning-amber-bg: #FFFBEB;
  --overpriced-red: #EF4444;
  --overpriced-red-bg: #FEF2F2;
  
  /* Neutrals & Surfaces */
  --dark-text: #0F2820;
  --secondary-text: #536961;
  --muted-text: #829A91;
  --border: #D8E5DF;
  --border-light: #EAF1ED;
  --background: #F4F8F6;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-overlay: rgba(15, 40, 32, 0.65);
  
  /* Radius & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(8, 127, 91, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(8, 127, 91, 0.07), 0 2px 5px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px rgba(8, 127, 91, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 24px rgba(16, 168, 120, 0.25);
  
  /* Dimensions */
  --phone-width: 390px;
  --phone-height: 844px;
  --phone-radius: 44px;
  
  /* Fonts */
  --font-bangla: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  --font-english: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-active: var(--font-bangla);
  
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
[data-theme="dark"] {
  --background: #0B1612;
  --surface: #12221C;
  --surface-raised: #182E26;
  --surface-overlay: rgba(0, 0, 0, 0.82);
  --dark-text: #F0F7F4;
  --secondary-text: #9EB5AC;
  --muted-text: #678377;
  --border: #223D32;
  --border-light: #182F26;
  
  --primary-green: #27C98A;
  --primary-green-hover: #33DB98;
  --deep-green: #10A878;
  --mint: #15382B;
  --soft-mint: #0F291F;
  --light-aqua: #102F2D;
  
  --dam-badge-bg: #0E3324;
  --dam-badge-text: #34D399;
  --dam-badge-border: #1B5E41;
  --community-badge-bg: #112845;
  --community-badge-text: #60A5FA;
  --community-badge-border: #1E40AF;
  
  --fair-green: #34D399;
  --fair-green-bg: #0F3323;
  --warning-amber: #FBBF24;
  --warning-amber-bg: #342609;
  --overpriced-red: #F87171;
  --overpriced-red-bg: #381418;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(39, 201, 138, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-active);
  background-color: #0E1A16;
  color: var(--dark-text);
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-lang="en"] body, [data-lang="en"] {
  font-family: var(--font-english);
}

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

/* SVG Vector Helper */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svg-icon svg {
  display: block;
}

/* ==========================================================================
   TOP FIGMA-STYLE SUITE NAVIGATION BAR
   ========================================================================== */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.prototype-header {
  background: #11221B;
  border-bottom: 1px solid #1D3A2F;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #E2ECE7;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.brand-suite {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suite-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px;
}

.suite-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.suite-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(39, 201, 138, 0.15);
  color: #27C98A;
  border: 1px solid rgba(39, 201, 138, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.figma-pages-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0B1612;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid #1D3A2F;
}

.figma-page-btn {
  background: transparent;
  border: none;
  color: #92ACA1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.figma-page-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.figma-page-btn.active {
  background: var(--primary-green);
  color: #FFFFFF;
}

.suite-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group {
  display: flex;
  background: #0B1612;
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid #1D3A2F;
}

.control-btn {
  background: transparent;
  border: none;
  color: #92ACA1;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.control-btn:hover {
  color: #FFFFFF;
}

.control-btn.active {
  background: #1A352B;
  color: #27C98A;
}

/* ==========================================================================
   JOURNEY BAR & TOASTS
   ========================================================================== */
.journey-bar {
  background: #0E1C16;
  border-bottom: 1px solid #183126;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.journey-bar::-webkit-scrollbar {
  display: none;
}

.journey-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #27C98A;
  white-space: nowrap;
}

.journey-chips {
  display: flex;
  gap: 8px;
}

.journey-chip {
  background: #142820;
  border: 1px solid #203F32;
  color: #B5CCC2;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.journey-chip:hover, .journey-chip.active {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

.app-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.app-toast {
  background: #11241C;
  color: #FFFFFF;
  border: 1px solid #27C98A;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

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

/* ==========================================================================
   WORKSPACE & MOBILE PHONE CANVAS
   ========================================================================== */
.workspace-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 20px;
  background: radial-gradient(circle at 50% 10%, #152B22 0%, #09130F 100%);
  min-height: calc(100vh - 100px);
}

.prototype-canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-frame-wrapper {
  perspective: 1000px;
}

.phone-shell {
  width: var(--phone-width);
  height: var(--phone-height);
  border-radius: var(--phone-radius);
  background: var(--background);
  border: 11px solid #1F2824;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px #3A4741;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Phone Notch */
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  height: 28px;
  background: #000000;
  border-radius: var(--radius-full);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.notch-sensor {
  width: 10px;
  height: 10px;
  background: #0F172A;
  border-radius: 50%;
}

.notch-camera {
  width: 11px;
  height: 11px;
  background: #0A1B28;
  border: 1.5px solid #1E293B;
  border-radius: 50%;
}

/* Phone Status Bar */
.phone-status-bar {
  height: 44px;
  padding: 12px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-text);
  z-index: 80;
  flex-shrink: 0;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.phone-offline-banner {
  background: #B91C1C;
  color: #FFFFFF;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Phone Viewport */
.phone-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: none;
}

.phone-viewport::-webkit-scrollbar {
  display: none;
}

.app-view {
  display: none;
  padding: 16px 18px 84px;
  min-height: 100%;
  animation: fadeInView 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-view.active {
  display: block;
}

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

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn-primary {
  width: 100%;
  min-height: 48px;
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(8, 127, 91, 0.25);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  width: 100%;
  min-height: 44px;
  background: var(--surface);
  color: var(--primary-green);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--soft-mint);
  border-color: var(--primary-green);
}

.icon-btn-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.icon-btn-round:hover {
  background: var(--soft-mint);
  border-color: var(--primary-green);
}

.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  min-height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 14px;
  color: var(--dark-text);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.12);
}

/* ==========================================================================
   APP VIEWS SPECIFICS
   ========================================================================== */

/* Splash View */
.view-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.splash-logo-box {
  width: 86px;
  height: 86px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-title-bn {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.splash-title-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-text);
  margin-top: 2px;
}

.splash-tagline {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 8px;
}

.splash-loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--mint);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 36px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Onboarding */
.view-onboarding {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.onboarding-top {
  display: flex;
  justify-content: flex-end;
}

.onboarding-skip-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-text);
  cursor: pointer;
}

.onboarding-slider {
  margin: 40px 0 20px;
  text-align: center;
}

.onboarding-slide {
  display: none;
}

.onboarding-slide.active {
  display: block;
}

.onboarding-hero-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
}

.onboarding-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.onboarding-desc {
  font-size: 13px;
  color: var(--secondary-text);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition-fast);
}

.onboarding-dot.active {
  width: 22px;
  border-radius: var(--radius-full);
  background: var(--primary-green);
}

/* Language & Theme Cards */
.lang-card-list, .theme-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.lang-card, .theme-radio-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-card.selected, .theme-radio-card.selected {
  border-color: var(--primary-green);
  background: var(--soft-mint);
}

.lang-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-flag-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-green);
}

.lang-name {
  font-size: 15px;
  font-weight: 700;
}

.lang-subtext {
  font-size: 12px;
  color: var(--secondary-text);
}

/* Home Header & Location Pill */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.location-pill:hover {
  border-color: var(--primary-green);
  background: var(--soft-mint);
}

.loc-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Market Surge Banner */
.market-surge-card {
  background: linear-gradient(135deg, #10A878 0%, #087F5B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(8, 127, 91, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.surge-title {
  font-size: 15px;
  font-weight: 800;
}

.surge-desc {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.surge-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary-text);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.category-pill.active, .category-pill:hover {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

/* Product Cards Grid */
.price-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.item-graphic-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-unit {
  font-size: 10px;
  color: var(--secondary-text);
  margin-bottom: 8px;
}

.price-comparison-box {
  background: var(--background);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.price-row.fair {
  color: var(--primary-green);
  font-weight: 800;
}

.price-row.market {
  color: var(--secondary-text);
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
}

.status-pill.fair {
  background: var(--fair-green-bg);
  color: var(--fair-green);
}

.status-pill.warning {
  background: var(--warning-amber-bg);
  color: var(--warning-amber);
}

.status-pill.overpriced {
  background: var(--overpriced-red-bg);
  color: var(--overpriced-red);
}

.card-timestamp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--muted-text);
  margin-top: 6px;
}

/* Badges */
.source-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.source-badge.dam {
  background: var(--dam-badge-bg);
  color: var(--dam-badge-text);
  border: 1px solid var(--dam-badge-border);
}

.source-badge.community {
  background: var(--community-badge-bg);
  color: var(--community-badge-text);
  border: 1px solid var(--community-badge-border);
}

/* Bottom Navigation Bar */
.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 10px;
  z-index: 85;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--secondary-text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
  transition: var(--transition-fast);
}

.nav-tab-btn.active {
  color: var(--primary-green);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-dot {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-green);
  display: none;
}

.nav-tab-btn.active .active-dot {
  display: block;
}

.phone-home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  z-index: 95;
  pointer-events: none;
}

.phone-home-indicator-bar {
  width: 100%;
  height: 100%;
  background: #6B7280;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   SMART GROCERY BUDGET & CART PLANNER
   ========================================================================== */
.budget-hero-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.budget-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 10px 0;
}

.budget-progress-fill {
  height: 100%;
  background: var(--primary-green);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.budget-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.budget-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--dark-text);
}

.qty-btn:hover {
  background: var(--primary-green);
  color: #FFFFFF;
}

/* ==========================================================================
   USER PROFILE CUSTOMIZATION
   ========================================================================== */
.profile-hero-card {
  background: linear-gradient(135deg, #087F5B 0%, #055C41 100%);
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
  transition: var(--transition-fast);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: var(--soft-mint);
  color: var(--primary-green);
}

.avatar-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.avatar-option {
  border: 2px solid var(--border);
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option.selected, .avatar-option:hover {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.2);
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: none;
  align-items: flex-end;
}

.modal-overlay.active {
  display: flex;
}

.bottom-sheet {
  background: var(--surface);
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
  padding: 20px;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

/* Documentation Sections */
.doc-section {
  display: none;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.doc-section.active {
  display: block;
}

.doc-card {
  background: #11221B;
  border: 1px solid #1D3A2F;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #E2ECE7;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.doc-title {
  font-size: 20px;
  font-weight: 800;
  color: #27C98A;
  margin-bottom: 12px;
}

/* ==========================================================================
   ENHANCED MODERN PRODUCT PHOTOGRAPHY
   ========================================================================== */
.product-thumb-container {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.price-card:hover .product-photo-img {
  transform: scale(1.08);
}

.product-hero-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  background: var(--surface-raised);
}

.product-hero-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   COMMUNITY POST FEED & PRICE WATCH
   ========================================================================== */
.feed-header-banner {
  background: linear-gradient(135deg, rgba(8, 127, 91, 0.12) 0%, rgba(16, 168, 120, 0.05) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.feed-filter-bar::-webkit-scrollbar {
  display: none;
}

.feed-filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary-text);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.feed-filter-pill.active, .feed-filter-pill:hover {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

.community-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.community-post-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-badge-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-badge-overcharge {
  background: var(--overpriced-red-bg);
  color: var(--overpriced-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.post-badge-fair {
  background: var(--fair-green-bg);
  color: var(--fair-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.post-badge-shortage {
  background: var(--warning-amber-bg);
  color: var(--warning-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.post-badge-general {
  background: var(--community-badge-bg);
  color: var(--community-badge-text);
  border: 1px solid var(--community-badge-border);
}

.post-price-diff-bar {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.post-image-attach-box {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 10px 0;
  background: #000;
}

.post-image-attach-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 10px;
}

.post-react-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--secondary-text);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.post-react-btn:hover, .post-react-btn.reacted {
  background: var(--mint);
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.post-comments-container {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-top: 10px;
  display: none;
}

.post-comments-container.active {
  display: block;
}

.post-comment-bubble {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 11px;
}

/* Post Creation Type Grid */
.post-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.post-type-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--dark-text);
  transition: var(--transition-fast);
}

.post-type-btn.active {
  border-color: var(--primary-green);
  background: var(--soft-mint);
  color: var(--primary-green);
}

/* ==========================================================================
   AI SMART BAJAR RECOMMENDER & CALCULATOR
   ========================================================================== */
.budget-tabs-header {
  display: flex;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 16px;
}

.budget-tab-toggle {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: var(--secondary-text);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.budget-tab-toggle.active {
  background: var(--primary-green);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.ai-budget-banner {
  background: linear-gradient(135deg, #0F2820 0%, #087F5B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.ai-preset-chips-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 10px 0;
}

.ai-preset-chips-wrap::-webkit-scrollbar {
  display: none;
}

.ai-chip-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--dark-text);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.ai-chip-btn.active {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

.ai-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ai-option-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--secondary-text);
  transition: var(--transition-fast);
}

.ai-option-card.active {
  border-color: var(--primary-green);
  background: var(--soft-mint);
  color: var(--primary-green);
}

.ai-recommended-list-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-top: 14px;
  box-shadow: var(--shadow-md);
}

.ai-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.ai-item-row:last-child {
  border-bottom: none;
}

.savings-highlight-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 11px;
}

/* Floating Quick Add & Sticky Calculator Bar */
.calculator-sticky-summary {
  position: sticky;
  bottom: 70px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  margin-top: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  z-index: 80;
}

