/* PandaBox Georgia (Tbilisi) - Apple Minimalist Design System */

:root {
  /* Color Tokens */
  --bamboo-primary: #2E5A33;
  --bamboo-hover: #244728;
  --panda-black: #1C1C1C;
  --light-leaf: #A4D16B;
  --light-leaf-bg: rgba(164, 209, 107, 0.15);
  --bg-canvas: #F5F7F5;
  --bg-surface: #FFFFFF;
  --text-main: #1C1C1C;
  --text-muted: #666666;
  --text-tertiary: #8E8E93;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.06);
  --yellow-urgency-bg: #FFF3C4;
  --yellow-urgency-text: #7A5200;

  /* Geometry & Shadows */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #F1F5F9;
  font-family: var(--font-family);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Production Responsive Mobile Web App Container */
.phone-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  border-radius: 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .phone-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* iPhone Dynamic Island & Status Bar Hidden for Web Hosting */
.dynamic-island, .status-bar {
  display: none !important;
}

/* Welcome Gatekeeper Screen */
.welcome-gatekeeper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #F5F7F5 0%, #E8EFE8 100%);
  z-index: 10;
}

.welcome-hero-brand {
  text-align: center;
  margin-bottom: 32px;
}

.welcome-logo-badge {
  width: 68px;
  height: 68px;
  background: var(--bamboo-primary);
  color: #FFF;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(46, 90, 51, 0.3);
}

.welcome-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--panda-black);
  margin-bottom: 6px;
}

.welcome-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.role-choice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.role-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--bamboo-primary);
}

.role-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--light-leaf-bg);
  color: var(--bamboo-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.b2b-card .role-icon-box {
  background: rgba(28, 28, 28, 0.08);
  color: var(--panda-black);
}

.role-card-header {
  font-size: 16px;
  font-weight: 800;
  color: var(--panda-black);
  margin-bottom: 4px;
}

.role-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.arrow-action-icon {
  position: absolute;
  top: 24px;
  right: 20px;
  color: var(--text-tertiary);
}

/* Top App Header Bar */
.top-header-bar {
  height: 52px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-canvas);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.brand-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--bamboo-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-account-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* User Profile Location Badge Header */
.user-profile-header {
  padding: 12px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bamboo-primary);
  color: #FFF;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-info-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--panda-black);
}

.profile-info-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Main Viewports & Tab Page Isolation */
.screen-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
  scroll-behavior: smooth;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.merchant-tab-page {
  display: none;
}

.merchant-tab-page.active {
  display: block;
}

/* Compact Professional View Profile Button */
.btn-view-profile-sm {
  background: var(--light-leaf-bg);
  color: var(--bamboo-primary);
  border: 1px solid rgba(46, 90, 51, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-view-profile-sm:hover {
  background: var(--bamboo-primary);
  color: #FFFFFF;
}

/* Header & Location Selector */
.app-header {
  padding: 16px 20px 8px 20px;
}

.location-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.location-icon {
  color: var(--bamboo-primary);
}

/* Categories Carousel Chips */
.categories-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 20px 16px 20px;
  scrollbar-width: none;
}

.categories-carousel::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Section Header */
.section-header {
  padding: 12px 20px 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--panda-black);
}

.see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--bamboo-primary);
  text-decoration: none;
}

/* Store Cards */
.cards-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 20px 16px 20px;
  scrollbar-width: none;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cards-carousel::-webkit-scrollbar {
  display: none;
}

.store-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.store-card.compact {
  width: 250px;
  min-width: 250px;
  max-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.store-card.full-width {
  width: 100%;
  margin-bottom: 14px;
}

.card-image-wrapper {
  position: relative;
  height: 135px;
  width: 100%;
  background: #E2E8F0;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-urgency {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow-urgency-bg);
  color: var(--yellow-urgency-text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.badge-rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--panda-black);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 3px;
}

.star {
  color: #F59E0B;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
}

.favorite-btn.active {
  color: #EF4444;
}

.card-content {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--panda-black);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bag-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pickup-time {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.card-footer-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.original-price {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-right: 4px;
}

.sale-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--bamboo-primary);
}

.reserve-btn-sm {
  background: var(--bamboo-primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.reserve-btn-sm:hover {
  background: var(--bamboo-hover);
}

/* Interactive Leaflet Map Styles & CartoDB Minimal Pin */
.tbilisi-map-container {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  z-index: 1;
}

.map-floating-controls {
  position: absolute;
  top: 12px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
}

.map-control-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--panda-black);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.map-control-btn:hover {
  transform: scale(1.08);
}

/* User Live GPS Signal Pulsing Marker */
.user-gps-dot {
  width: 16px;
  height: 16px;
  background: #3B82F6;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  position: relative;
}

.user-gps-dot::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.35);
  animation: gpsPulse 2s infinite ease-out;
}

@keyframes gpsPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.apple-minimal-pin {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 90, 51, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--panda-black);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pin-dot-accent {
  width: 7px;
  height: 7px;
  background: var(--bamboo-primary);
  border-radius: 50%;
}

.pin-price {
  color: var(--bamboo-primary);
}

.browse-offers-section {
  padding: 0 20px;
}

.custom-range {
  width: 100%;
  accent-color: var(--bamboo-primary);
  cursor: pointer;
}

/* ==========================================================================
   B2B MERCHANT PARTNER PORTAL (100% SYMMETRICAL 1-LINE TYPOGRAPHY & FIXED HEIGHTS)
   ========================================================================== */

.merchant-portal-view {
  padding: 16px 20px;
}

.merchant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.merchant-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--panda-black);
}

/* Apple iOS Symmetrical Segmented Control Bar */
.merchant-tab-nav {
  display: flex;
  height: 46px;
  background: #EAECEA;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
  align-items: center;
}

.merchant-tab-btn {
  flex: 1;
  height: 38px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.merchant-tab-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.merchant-tab-btn.active {
  background: #FFFFFF;
  color: var(--bamboo-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.merchant-tab-btn.active svg {
  color: var(--bamboo-primary);
}

.merchant-tab-page {
  display: none;
}

.merchant-tab-page.active {
  display: block;
}

.merchant-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* Stock Action Buttons: 100% Equal 42px Height & Single-Line Alignment */
.stock-btn {
  height: 42px;
  width: 100%;
  border: none;
  outline: none;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.stock-btn svg {
  flex-shrink: 0;
}

.stock-btn-add {
  background: var(--bamboo-primary);
  color: #FFFFFF;
}

.stock-btn-add:hover {
  background: var(--bamboo-hover);
}

.stock-btn-subtract {
  background: #EAECEA;
  color: var(--panda-black);
}

.stock-btn-cancel {
  background: #FEE2E2;
  color: #DC2626;
}

.stock-btn-reset {
  background: var(--light-leaf-bg);
  color: var(--bamboo-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--panda-black);
}

.esg-card {
  background: linear-gradient(135deg, #1C1C1C 0%, #2E5A33 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 16px;
}

.esg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.esg-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 12px;
}

.esg-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--light-leaf);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.image-upload-box {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--bamboo-primary);
  border-radius: var(--radius-lg);
  background: var(--light-leaf-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  transition: border-color 0.2s ease;
}

.image-upload-box:hover {
  border-color: var(--bamboo-hover);
}

.upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.optimization-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(46, 90, 51, 0.9);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Tab Navigation Bar (User View) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 12px;
  z-index: 900;
}

@media (max-width: 640px) {
  .bottom-nav {
    max-width: 100%;
    left: 0;
    transform: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--bamboo-primary);
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-canvas);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .modal-overlay {
    max-width: 100%;
    left: 0;
    transform: none;
  }
}

#map-distance-sheet {
  z-index: 3000 !important;
}

#google-email-modal, #phone-otp-modal {
  z-index: 50000 !important;
}

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

.detail-hero {
  height: 220px;
  position: relative;
  background: #000;
}

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

.hero-actions {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
}

.icon-btn-blur {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--panda-black);
}

.detail-body {
  padding: 20px;
  flex: 1;
}

.sticky-modal-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--panda-black);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-canvas);
  font-family: var(--font-family);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
}

.form-input:focus {
  border-color: var(--bamboo-primary);
  background: #FFF;
}

.btn-primary-full {
  width: 100%;
  background: var(--bamboo-primary);
  color: #FFF;
  border: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary-full:hover {
  background: var(--bamboo-hover);
}

.business-link-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.business-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.type-chip {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.type-chip.selected {
  border-color: var(--bamboo-primary);
  background: var(--light-leaf-bg);
  color: var(--bamboo-primary);
}

.type-chip svg {
  width: 18px;
  height: 18px;
}

.stepper-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}

.step-indicator:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
}

.step-indicator.completed:not(:last-child)::after {
  background: var(--bamboo-primary);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.step-indicator.active .step-number {
  background: var(--bamboo-primary);
  border-color: var(--bamboo-primary);
  color: #FFF;
}

.step-indicator.completed .step-number {
  background: var(--light-leaf);
  border-color: var(--light-leaf);
  color: var(--panda-black);
}

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.step-indicator.active .step-title {
  color: var(--bamboo-primary);
}

.commission-box {
  background: var(--light-leaf-bg);
  border: 1px solid rgba(46, 90, 51, 0.2);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
}

.commission-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--bamboo-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commission-desc {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.45;
}

.auth-button-google, .auth-button-phone {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}

.divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 14px 0;
}

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

.divider-line::before { margin-right: 10px; }
.divider-line::after { margin-left: 10px; }

.auth-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.auth-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-toggle-btn.active {
  background: #FFF;
  color: var(--panda-black);
  box-shadow: var(--shadow-sm);
}

/* ================= ENLARGED PROMINENT LOGO STYLING ================= */
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

/* ================= LEAFLET MAP CONTAINER STABILITY ================= */
.map-container {
  height: 280px;
  min-height: 280px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #E5E7EB;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

/* ================= MINIMALIST FLOATING NOTIFICATION POPOVER ================= */
.notifications-dropdown-panel {
  position: absolute;
  top: 56px;
  right: 12px;
  width: 320px;
  max-height: 380px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.notifications-dropdown-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-dropdown-header {
  padding: 12px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-dropdown-title {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--panda-black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-dropdown-body {
  padding: 10px 12px;
  overflow-y: auto;
  max-height: 310px;
}

.notif-dropdown-item {
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-dropdown-item.unread {
  background: rgba(164, 209, 107, 0.15);
  border-left: 3px solid var(--bamboo-primary);
}

.notif-dropdown-item.read {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
}

/* Hide Ugly Inner Browser Scrollbar Tracks for Clean iPhone Frame */
.screen-content::-webkit-scrollbar,
.phone-container::-webkit-scrollbar,
.cards-carousel::-webkit-scrollbar,
.categories-carousel::-webkit-scrollbar {
  display: none !important;
}

.screen-content,
.phone-container,
.cards-carousel,
.categories-carousel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* iOS-Style Floating Push Toast Notification Banner */
.push-toast-banner {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(30, 41, 59, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.push-toast-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.push-toast-icon-box {
  width: 36px;
  height: 36px;
  background: var(--bamboo-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.push-toast-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.push-toast-message {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* Floating Sleek Minimalist Map Expand Button */
.map-floating-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--panda-black);
  transition: transform 0.15s ease;
}

.map-floating-expand-btn:hover {
  transform: scale(1.06);
  background: #FFFFFF;
}

/* Circular Stock Count Map Pins (100% Matching Screenshot Design) */
.map-stock-circle-badge {
  width: 36px;
  height: 36px;
  background: #0D5C53;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 92, 83, 0.4);
  transition: transform 0.15s ease;
  cursor: pointer;
}

.map-stock-circle-badge:hover {
  transform: scale(1.15);
  background: var(--bamboo-primary);
  box-shadow: 0 6px 16px rgba(46, 90, 51, 0.5);
}

/* Floating Pill Action Buttons on Map Container */
.map-floating-bottom-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 999;
  display: flex;
  gap: 6px;
  width: calc(100% - 20px);
  pointer-events: none;
}

.map-floating-pill-btn,
.map-pill-navy,
.map-pill-green {
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  height: 36px;
  background: #0D5C53;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(13, 92, 83, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.map-floating-pill-btn:hover {
  transform: translateY(-1px);
  background: #147A6E;
}

.leaflet-control-attribution {
  font-size: 8px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  padding: 0 4px !important;
  opacity: 0.6;
}

/* Floating Hyper-Minimalist Panda AI Support Button (Always Fixed & Visible) */
.panda-ai-float-btn {
  position: fixed !important;
  bottom: 85px !important;
  right: calc(50% - 224px) !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0D5C53 0%, #147A6E 100%) !important;
  color: #FFFFFF !important;
  border: 3px solid #FFFFFF !important;
  box-shadow: 0 10px 30px rgba(13, 92, 83, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease !important;
}

@media (max-width: 480px) {
  .panda-ai-float-btn {
    right: 16px !important;
  }
}

.panda-ai-float-btn:hover {
  transform: scale(1.12) !important;
  background: #147A6E !important;
  box-shadow: 0 12px 36px rgba(13, 92, 83, 0.7) !important;
}

.panda-ai-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Panda AI Chat Modal Wrapper (Fixed Viewport & Scroll Proof) */
.panda-ai-modal-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 200000 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 480px) {
  .panda-ai-modal-wrapper {
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }
}

.panda-ai-modal-wrapper.active {
  display: flex !important;
}

.panda-ai-chat-card {
  width: 100%;
  height: 90vh;
  background: var(--bg-canvas);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: slideUpPandaChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* AI Chat Message Bubbles */
.ai-msg-bubble {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.ai-msg-bubble.assistant {
  align-self: flex-start;
}

.ai-msg-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(13, 92, 83, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-msg-bubble.user .ai-msg-avatar {
  background: var(--bamboo-primary);
  color: #FFF;
  font-size: 12px;
  font-weight: 800;
}

.ai-msg-content {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  border-top-left-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--panda-black);
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.ai-msg-bubble.user .ai-msg-content {
  background: var(--bamboo-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 18px;
  border-top-right-radius: 4px;
}




