/* ==========================================================================
   Food Passport (ফুড পাসপোর্ট) — Bangladesh
   Official Luxury Passport & 64 Districts Culinary Exploration Design System
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --bg-main: #061c14;
  --bg-card: rgba(11, 46, 33, 0.7);
  --bg-card-hover: rgba(16, 64, 46, 0.85);
  --bg-surface: #0a261c;
  --bg-parchment: #fdfbf7;
  --bg-dark-paper: #101c18;

  /* Gold & Accent Tokens */
  --gold-primary: #e6ca65;
  --gold-light: #fef08a;
  --gold-dark: #b48c26;
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #e6ca65 50%, #b48c26 100%);
  --gold-glow: 0 0 20px rgba(230, 202, 101, 0.35);

  --emerald-deep: #032015;
  --emerald-border: rgba(230, 202, 101, 0.25);
  --emerald-border-active: #e6ca65;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fef08a;
  --text-dark: #1e293b;

  /* Semantic Colors */
  --crimson: #ef4444;
  --crimson-stamp: #b91c1c;
  --saffron: #f59e0b;
  --success: #10b981;

  /* Typography */
  --font-bangla: 'Anek Bangla', 'Hind Siliguri', -apple-system, sans-serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;

  /* Shadows & Glassmorphism */
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 30px rgba(230, 202, 101, 0.2);
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-bangla);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #113828 0%, #061c14 60%, #03100b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px 80px 20px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 16px 0 24px 0;
  background: rgba(10, 38, 28, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 12px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gold-glow);
  flex-shrink: 0;
  font-size: 22px;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 20, 14, 0.6);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 202, 101, 0.15);
}

.nav-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-bangla);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--gold-gradient);
  color: #061c14;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(230, 202, 101, 0.3);
}

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

.stat-pill {
  background: rgba(230, 202, 101, 0.12);
  border: 1px solid rgba(230, 202, 101, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill .count {
  font-size: 1rem;
  color: #fff;
  font-weight: 800;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  text-align: center;
  padding: 24px 16px 36px 16px;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 202, 101, 0.1);
  border: 1px solid var(--gold-dark);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: var(--gold-glow);
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero h2 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   MAIN APP GRID (Checklist + Passport Canvas)
   ========================================================================== */
.app-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .app-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Mobile Priority Order: Passport Studio, photo upload and download buttons come FIRST! */
  .studio-card {
    order: 1;
  }

  .picker-card {
    order: 2;
  }
}

/* Card Common */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ==========================================================================
   LEFT PANEL: FOOD PICKER & CHECKLIST
   ========================================================================== */
.picker-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.picker-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-counter {
  font-size: 0.82rem;
  background: rgba(230, 202, 101, 0.2);
  color: var(--gold-light);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(230, 202, 101, 0.3);
}

/* Search Bar */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(230, 202, 101, 0.25);
  background: rgba(6, 28, 20, 0.95);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
}

/* Division Filter Pills */
.division-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.division-scroll::-webkit-scrollbar {
  display: none;
}

.div-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-bangla);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.div-btn:hover {
  color: #fff;
  background: rgba(230, 202, 101, 0.1);
}

.div-btn.active {
  background: var(--gold-gradient);
  color: #061c14;
  font-weight: 700;
  border-color: var(--gold-primary);
}

/* Quick Tools */
.quick-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-link {
  background: none;
  border: none;
  color: var(--gold-light);
  font-family: var(--font-bangla);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.tool-link:hover {
  opacity: 0.8;
}

/* Quick Tip */
.picker-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 202, 101, 0.08);
  border: 1px dashed rgba(230, 202, 101, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--gold-light);
  line-height: 1.4;
}

/* Food Items List */
.food-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.food-list::-webkit-scrollbar {
  width: 5px;
}

.food-list::-webkit-scrollbar-thumb {
  background: rgba(230, 202, 101, 0.25);
  border-radius: 999px;
}

/* Bottom CTA to scroll to passport */
.picker-bottom-cta {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-scroll-to-passport {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(230, 202, 101, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-scroll-to-passport:hover {
  background: var(--gold-gradient);
  color: #061c14;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 202, 101, 0.35);
}

/* Single Food Item Card */
.food-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(6, 28, 20, 0.6);
  border: 1px solid rgba(230, 202, 101, 0.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.food-item:hover {
  background: rgba(14, 52, 38, 0.7);
  border-color: rgba(230, 202, 101, 0.35);
  transform: translateY(-1px);
}

.food-item.checked {
  background: linear-gradient(135deg, rgba(230, 202, 101, 0.15) 0%, rgba(11, 46, 33, 0.8) 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(230, 202, 101, 0.15);
}

.food-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(230, 202, 101, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.food-item.checked .food-checkbox {
  background: var(--gold-gradient);
  border-color: var(--gold-primary);
  color: #061c14;
}

.food-item.checked .food-checkbox::after {
  content: '✓';
  font-weight: 900;
  font-size: 13px;
}

.food-info {
  flex: 1;
}

.food-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.food-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.food-item.checked .food-name {
  color: var(--gold-light);
}

.food-district {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-muted);
}

.food-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 4px;
}

.food-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.food-meta .shop {
  color: rgba(230, 202, 101, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   RIGHT PANEL: PASSPORT CANVAS STUDIO
   ========================================================================== */
.studio-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Studio Toolbar / Customizer */
.studio-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(230, 202, 101, 0.2);
}

.user-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* Photo Upload Button */
.photo-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 20, 14, 0.8);
  border: 1px dashed var(--gold-dark);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-btn:hover {
  background: rgba(230, 202, 101, 0.15);
  border-color: var(--gold-primary);
}

.avatar-preview {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
  display: none;
}

/* Name Input */
.name-input {
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(230, 202, 101, 0.25);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 0.9rem;
  outline: none;
  min-width: 170px;
}

.name-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(230, 202, 101, 0.2);
}

/* Home District Selector */
.select-district {
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(230, 202, 101, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* Passport Themes */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-swatch:hover {
  transform: scale(1.15);
}

.theme-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 8px #fff;
  transform: scale(1.15);
}

.theme-swatch.classic { background: linear-gradient(135deg, #fefbf3 0%, #cbd5e1 100%); border: 1px solid #cbd5e1; }
.theme-swatch.emerald { background: #063826; }
.theme-swatch.navy    { background: #0f2b48; }
.theme-swatch.saffron { background: #5c2c10; }
.theme-swatch.obsidian{ background: #1c1c1c; }

/* Canvas Aspect Ratio Switch */
.format-toggle {
  display: flex;
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 3px;
}

.format-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-bangla);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.format-btn.active {
  background: var(--gold-gradient);
  color: #061c14;
  font-weight: 700;
}

/* Canvas Viewport */
.canvas-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(3, 14, 9, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 202, 101, 0.2);
  min-height: 520px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

#passportCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 202, 101, 0.15);
  transition: transform 0.25s ease;
}

/* Map Canvas Container */
.map-viewport {
  width: 100%;
  display: none; /* toggled via JS */
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(3, 14, 9, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 202, 101, 0.2);
  min-height: 520px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

#mapCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(4, 20, 14, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-bangla);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 50;
  white-space: nowrap;
  line-height: 1.4;
  transition: opacity 0.15s ease;
}

.map-hint-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 28, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 202, 101, 0.4);
  color: var(--gold-light);
  padding: 5px 16px;
  border-radius: 999px;
  font-family: var(--font-bangla);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(230, 202, 101, 0.2);
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  max-width: 92%;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.25s ease;
}

.map-hint-pill.active {
  background: rgba(8, 36, 26, 0.96);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(230, 202, 101, 0.35);
  animation: none;
}

.map-toast {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(4, 24, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--font-bangla);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75), 0 0 14px rgba(230, 202, 101, 0.25);
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  white-space: nowrap;
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulseHint {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(230, 202, 101, 0.2);
  }
  50% {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(230, 202, 101, 0.4);
  }
}

/* Download & Actions Bar */
.action-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-primary {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  border: none;
  color: #061c14;
  font-family: var(--font-bangla);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(230, 202, 101, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 202, 101, 0.5);
}

.btn-secondary {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--emerald-border);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-primary);
}

/* Social Sharing Hub */
.social-share-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
}

.social-share-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
}

.share-badge-hint {
  font-size: 0.74rem;
  background: rgba(230, 202, 101, 0.15);
  border: 1px solid rgba(230, 202, 101, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--gold-light);
}

.social-btn-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-share-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-bangla);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-share-native {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.btn-share-native:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-share-fb {
  background: rgba(24, 119, 242, 0.15);
  color: #60a5fa;
  border-color: rgba(24, 119, 242, 0.35);
}

.btn-share-fb:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-2px);
}

.btn-share-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border-color: rgba(37, 211, 102, 0.35);
}

.btn-share-wa:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-2px);
}

.btn-share-insta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15) 0%, rgba(253, 29, 29, 0.15) 100%);
  color: #f472b6;
  border-color: rgba(225, 48, 108, 0.35);
}

.btn-share-insta:hover {
  background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .social-btn-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Viral Sharing Row */
.viral-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(4, 20, 14, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
}

.viral-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.viral-text b {
  color: var(--gold-light);
}

.btn-copy {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(230, 202, 101, 0.2);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--font-bangla);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--gold-gradient);
  color: #061c14;
}

/* ==========================================================================
   SECTION 3: FOOD DIRECTORY (কোথায় কী খাবেন)
   ========================================================================== */
.section-directory {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, border-color 0.25s;
}

.dir-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

.dir-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-district {
  font-size: 0.8rem;
  background: rgba(230, 202, 101, 0.15);
  color: var(--gold-light);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
}

.dir-emoji {
  font-size: 1.5rem;
}

.dir-food {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
}

.dir-story {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.dir-info-box {
  background: rgba(4, 20, 14, 0.7);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.dir-shop {
  color: var(--gold-light);
  font-weight: 600;
}

.dir-price {
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 4: FOOD BATTLE & QUIZ
   ========================================================================== */
.section-battle-quiz {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .section-battle-quiz {
    grid-template-columns: 1fr;
  }
}

.battle-card, .quiz-card {
  padding: 24px;
}

.battle-vs-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px 0;
}

.battle-item {
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.battle-item:hover {
  border-color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.15);
  transform: scale(1.02);
}

.battle-item.voted {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(230, 202, 101, 0.3);
}

.battle-vs-badge {
  text-align: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.progress-a {
  height: 100%;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
}

.progress-b {
  height: 100%;
  background: #38bdf8;
  transition: width 0.4s ease;
}

/* Quiz Box */
.quiz-question-box {
  margin: 16px 0;
}

.quiz-q-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt-btn {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(4, 20, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-bangla);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-opt-btn:hover {
  background: rgba(230, 202, 101, 0.15);
  border-color: var(--gold-dark);
}

.quiz-opt-btn.correct {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--success);
  color: #34d399;
}

.quiz-opt-btn.wrong {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--crimson);
  color: #f87171;
}

/* ==========================================================================
   CONCEPT GUIDE & REWARDS
   ========================================================================== */
.section-concept-guide {
  padding: 36px 28px;
  margin: 36px 0;
  background: linear-gradient(135deg, rgba(8, 38, 27, 0.7) 0%, rgba(4, 20, 14, 0.9) 100%);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-lg);
}

.concept-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px auto;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.concept-card {
  background: rgba(6, 28, 20, 0.7);
  border: 1px solid rgba(230, 202, 101, 0.15);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.concept-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(230, 202, 101, 0.12);
}

.concept-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.concept-card h4 {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 700;
}

.concept-card p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 60px;
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  
  .nav-tabs {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .nav-tab {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .hero h2 {
    font-size: 1.85rem;
  }

  .download-row {
    grid-template-columns: 1fr;
  }

  .studio-tools {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   MOBILE FIXED QUICK ACTION BAR (Always Accessible on Mobile)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 78px; /* Prevent footer clipping under fixed bar */
  }

  .food-list {
    max-height: 480px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(4, 20, 14, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(230, 202, 101, 0.35);
    padding: 10px 14px;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.7);
  }

  .mobile-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(230, 202, 101, 0.15);
    border: 1px solid rgba(230, 202, 101, 0.3);
    color: var(--gold-light);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-mobile-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: var(--font-bangla);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    transition: all 0.2s ease;
  }

  .btn-mobile-jump:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.97);
  }

  .btn-mobile-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-family: var(--font-bangla);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }

  .btn-mobile-share:active {
    transform: scale(0.97);
  }

  .btn-mobile-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold-gradient);
    color: #061c14;
    border: none;
    font-family: var(--font-bangla);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    box-shadow: 0 2px 12px rgba(230, 202, 101, 0.35);
    transition: all 0.2s ease;
  }

  .btn-mobile-download:active {
    transform: scale(0.97);
    filter: brightness(1.1);
  }
}

@media (max-width: 480px) {
  .mobile-stat-pill {
    padding: 6px 9px;
    font-size: 0.8rem;
  }
  .btn-mobile-jump {
    font-size: 0.82rem;
    padding: 7px 8px;
  }
  .btn-mobile-download {
    font-size: 0.84rem;
    padding: 7px 10px;
  }
}

/* ==========================================================================
   SHARE GUIDE MODAL
   ========================================================================== */
.share-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.share-guide-card {
  background: rgba(6, 28, 20, 0.98);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 202, 101, 0.2);
  animation: slideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.share-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(230, 202, 101, 0.2);
  padding-bottom: 10px;
}

.share-guide-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
}

.share-guide-close:hover {
  color: #fff;
}

/* FB Modal Image Status & Thumbnail */
.fb-modal-image-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 202, 101, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.fb-preview-thumb-wrap {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1px solid var(--gold-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04120d;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.fb-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-thumb-placeholder {
  font-size: 1.8rem;
}

.fb-status-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.fb-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #4ade80;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.fb-status-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.btn-subtle-dl {
  background: none;
  border: 1px dashed rgba(230, 202, 101, 0.45);
  color: var(--gold-light);
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-subtle-dl:hover {
  background: rgba(230, 202, 101, 0.1);
  border-color: var(--gold-1);
  color: #fff;
}

/* FB Modal Caption Section */
.fb-modal-caption-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.fb-caption-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-caption-reset {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.btn-caption-reset:hover {
  color: #fff;
}

.fb-caption-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(230, 202, 101, 0.35);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
  min-height: 95px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fb-caption-textarea:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 10px rgba(230, 202, 101, 0.25);
}

.fb-caption-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.btn-copy-caption-modal {
  background: rgba(230, 202, 101, 0.15);
  border: 1px solid var(--gold-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-copy-caption-modal:hover {
  background: var(--gold-primary);
  color: #061c14;
}

.btn-copy-caption-modal.copied {
  background: #15803d;
  border-color: #22c55e;
  color: #fff;
}

.fb-char-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Steps mini */
.fb-steps-mini {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid var(--gold-primary);
}

.fb-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.fb-step-pill kbd {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
}

.pill-num {
  background: var(--gold-1);
  color: #04120d;
  font-size: 0.72rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Modal Footer */
.fb-modal-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-fb-go {
  background: linear-gradient(135deg, #1877f2, #0d58ba);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
  transition: all 0.2s;
}

.btn-fb-go:hover {
  background: linear-gradient(135deg, #2b87ff, #1565c0);
  transform: translateY(-1px);
}

.btn-native-share-modal {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.btn-native-share-modal:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

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