/* ==========================================================================
   Blinkit-Style Mobile Application CSS for Bhramori
   ========================================================================== */

:root {
  --app-primary: #0c831f;
  --app-primary-hover: #0a6f1a;
  --app-primary-light: #e8f5e9;
  --app-yellow: #f59e0b;
  --app-yellow-light: #fef3c7;
  --app-bg: #f4f6f8;
  --app-card-bg: #ffffff;
  --app-text: #1c1c1c;
  --app-text-muted: #667085;
  --app-border: #e4e7ec;
  --app-border-light: #f2f4f7;
  --app-veg: #15803d;
  --app-nonveg: #b91c1c;
  --app-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --app-shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --app-shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
  --app-radius-sm: 8px;
  --app-radius-md: 14px;
  --app-radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #0f172a;
  color: var(--app-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Android Mobile App Frame Container */
.app-viewport {
  width: 100%;
  max-width: 480px;
  background-color: var(--app-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 84px; /* Space for bottom nav */
}

/* Android Top Material Progress Bar (Active on page changes) */
.android-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100000;
  overflow: hidden;
  pointer-events: none;
}

.android-progress-bar.active {
  background: rgba(12, 131, 31, 0.2);
}

.android-progress-bar.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: var(--app-primary);
  border-radius: 2px;
  animation: androidProgressAnim 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes androidProgressAnim {
  0% {
    left: -40%;
    width: 30%;
  }
  50% {
    left: 35%;
    width: 60%;
  }
  100% {
    left: 100%;
    width: 30%;
  }
}

/* Android Native Activity / Page Transitions */
.android-page-enter {
  animation: androidActivityEnter 0.26s cubic-bezier(0.05, 0.7, 0.1, 1.0);
}

@keyframes androidActivityEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.android-page-exit {
  animation: androidActivityExit 0.16s cubic-bezier(0.3, 0.0, 0.8, 0.15) forwards !important;
  pointer-events: none !important;
}

@keyframes androidActivityExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

/* App Header */
.app-header {
  background: #ffffff;
  padding: 12px 16px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--app-border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.app-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-location-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.app-eta-badge {
  background: #111827;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.app-eta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: appPulse 1.4s infinite;
}

@keyframes appPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.app-address-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.app-address-subtitle {
  font-size: 0.74rem;
  color: var(--app-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.app-user-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.app-user-btn:active {
  transform: scale(0.95);
}

/* Search Bar (Blinkit style) */
.app-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.app-search-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.app-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border-radius: 12px;
  border: 1.5px solid var(--app-border);
  background: #f8fafc;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--app-text);
  outline: none;
  transition: all 0.2s;
}

.app-search-input:focus {
  border-color: var(--app-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.12);
}

.app-search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
}

/* Promo Banner Slider */
.app-promo-carousel {
  padding: 12px 16px 4px;
  overflow-x: auto;
  display: flex;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.app-promo-carousel::-webkit-scrollbar {
  display: none;
}

.app-promo-banner {
  flex: 0 0 calc(100% - 24px);
  scroll-snap-align: center;
  border-radius: 16px;
  padding: 16px 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--app-shadow-sm);
  position: relative;
  overflow: hidden;
}

.app-promo-banner.b1 {
  background: linear-gradient(135deg, #0c831f 0%, #15803d 100%);
}
.app-promo-banner.b2 {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}
.app-promo-banner.b3 {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.app-promo-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.app-promo-text p {
  font-size: 0.78rem;
  opacity: 0.9;
}

.app-promo-tag {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.app-promo-emoji {
  font-size: 2.8rem;
}

/* Curated Filter Tabs (Featured, Most Sold, Discounted) */
.app-curated-tabs {
  padding: 12px 16px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
  margin-top: 6px;
}

.app-curated-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab-btn {
  padding: 8px 14px;
  border-radius: 24px;
  border: 1px solid var(--app-border);
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.app-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.app-tab-btn.highlight.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  box-shadow: 0 2px 6px rgba(12, 131, 31, 0.3);
}

/* Category Quick Circles */
.app-categories-strip {
  background: #ffffff;
  padding: 12px 16px;
  overflow-x: auto;
  display: flex;
  gap: 16px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--app-border-light);
}

.app-categories-strip::-webkit-scrollbar {
  display: none;
}

.app-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 64px;
}

.app-cat-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.app-cat-item.active .app-cat-circle {
  border-color: var(--app-primary);
  background: var(--app-primary-light);
  transform: scale(1.05);
}

.app-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  white-space: nowrap;
}

.app-cat-item.active .app-cat-label {
  color: var(--app-primary);
}

/* Diet Filters Strip */
.app-substrip {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-diet-toggle {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 20px;
  padding: 2px;
}

.app-diet-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.app-diet-btn.active {
  background: #0f172a;
  color: #ffffff;
}

/* Blinkit Style 2-Column Product Grid */
.app-products-grid {
  padding: 0 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.app-product-card {
  background: #ffffff;
  border-radius: var(--app-radius-md);
  border: 1px solid var(--app-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--app-shadow-sm);
}

.app-product-card:active {
  transform: scale(0.99);
}

.app-card-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.app-product-card:hover .app-card-img {
  transform: scale(1.04);
}

/* Discount Badge */
.app-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Veg / Non-Veg Icon */
.app-diet-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-diet-icon.veg {
  border-color: var(--app-veg);
}
.app-diet-icon.veg::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-veg);
}

.app-diet-icon.non-veg {
  border-color: var(--app-nonveg);
}
.app-diet-icon.non-veg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--app-nonveg);
}

/* Time & Meta Tag */
.app-prep-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

/* Card Body */
.app-card-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3em;
  cursor: pointer;
}

.app-card-unit {
  font-size: 0.72rem;
  color: var(--app-text-muted);
  margin-bottom: 8px;
}

.app-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}

.app-price-stack {
  display: flex;
  flex-direction: column;
}

.app-price-current {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.app-price-mrp {
  font-size: 0.7rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Blinkit Style + ADD and Stepper Widget */
.app-btn-add {
  background: #ffffff;
  color: var(--app-primary);
  border: 1.5px solid var(--app-primary);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-align: center;
}

.app-btn-add:active {
  background: var(--app-primary);
  color: #ffffff;
}

.app-has-topups-tag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.app-stepper {
  display: none;
  align-items: center;
  background: var(--app-primary);
  border-radius: 8px;
  padding: 2px;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(12, 131, 31, 0.25);
}

.app-stepper.active {
  display: flex;
}

.app-stepper-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.app-stepper-val {
  min-width: 22px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Sticky Floating Cart Bar (Blinkit style) */
.app-floating-cart {
  position: fixed;
  bottom: 68px; /* Above bottom nav */
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  width: calc(100% - 24px);
  max-width: 456px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 99;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.app-floating-cart.visible {
  transform: translateX(-50%) translateY(0);
}

.app-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-cart-pill-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.app-cart-pill-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.app-cart-pill-text p {
  font-size: 0.72rem;
  color: #94a3b8;
}

.app-cart-action-btn {
  background: var(--app-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Android Sticky Bottom Navigation Bar */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top: 1px solid var(--app-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 10px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  position: relative;
  transition: all 0.15s;
}

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

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

.app-nav-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

/* Modals & Bottom Sheets */
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.app-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.app-bottom-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
}

.app-modal-overlay.open .app-bottom-sheet {
  transform: translateY(0);
}

.app-sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  margin: 10px auto 4px;
}

.app-sheet-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-border-light);
}

.app-sheet-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.app-sheet-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
}

.app-sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.app-sheet-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--app-border-light);
  background: #ffffff;
}

/* Buttons */
.app-btn-primary {
  width: 100%;
  background: var(--app-primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(12, 131, 31, 0.25);
  transition: background 0.15s;
}

.app-btn-primary:active {
  background: var(--app-primary-hover);
}

.app-btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Forms */
.app-form-group {
  margin-bottom: 14px;
}

.app-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.app-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--app-border);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--app-text);
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}

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

/* Topup Customiser Items */
.app-topup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-topup-item.selected {
  border-color: var(--app-primary);
  background: var(--app-primary-light);
}

.app-topup-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topup-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
}

.app-topup-item.selected .app-topup-check {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.app-topup-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.app-topup-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-primary);
}

/* Address Cards in Modal */
.app-address-card {
  border: 1.5px solid var(--app-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #ffffff;
}

.app-address-card.selected {
  border-color: var(--app-primary);
  background: #f0fdf4;
}

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

.app-address-label-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-address-card.selected .app-address-label-badge {
  background: var(--app-primary);
  color: #ffffff;
}

.app-address-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
}

/* Map Autocomplete Suggestions Dropdown */
.app-map-suggestions {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: var(--app-shadow-md);
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.app-suggestion-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--app-border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #334155;
  transition: background 0.15s;
}

.app-suggestion-item:hover, .app-suggestion-item:active {
  background: #f1f5f9;
}

/* OTP 6-Digit Inputs */
.app-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.app-otp-digit {
  width: 46px;
  height: 52px;
  border: 2px solid var(--app-border);
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.app-otp-digit:focus {
  border-color: var(--app-primary);
  background: #ffffff;
}

/* Order Live Tracker */
.app-tracker-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--app-shadow-sm);
}

.app-tracker-eta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--app-border);
}

.app-tracker-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 28px;
}

.app-tracker-steps::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}

.app-track-step {
  position: relative;
}

.app-track-bullet {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.app-track-step.done .app-track-bullet {
  background: var(--app-primary);
}

.app-track-step.current .app-track-bullet {
  background: #2563eb;
  animation: appPulse 1.5s infinite;
}

.app-track-step-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

.app-track-step-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Toast Notification */
.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

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

/* ==========================================================================
   PWA Splash Screen & Install Styles
   ========================================================================== */

/* If app is already started in current session, suppress splash screen completely */
html.pwa-started .pwa-splash-overlay,
body.pwa-started .pwa-splash-overlay,
.pwa-splash-overlay.hidden-instant {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pwa-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.pwa-splash-img {
  width: 100%;
  max-width: 480px;
  height: 100%;
  object-fit: cover;
}

.pwa-splash-loader {
  position: absolute;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.pwa-splash-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pwaSpin 0.8s linear infinite;
}

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

/* In-App Install Banner */
.pwa-install-banner {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pwa-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  font-size: 0.85rem;
  color: #ffffff;
}

.pwa-banner-text span {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-install-btn {
  background: var(--app-primary);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.pwa-banner-install-btn:hover {
  background: var(--app-primary-hover);
}

