/**
 * PANOVA Café — QR Ordering, Stamp Club & Leaderboard Experience Styles
 * Mobile-first, tactile, premium café digital ecosystem.
 * Rooted in Espresso Brown (#200C04), Wheat Gold (#B8975A), Radiant Cream (#FAF6EF), and Warm Sand (#EFE4D3).
 */

/* Mobile & Responsive App Shell */
.qr-app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--cream, #FAF6EF);
  color: var(--text, #200C04);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(32, 12, 4, 0.08);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  body.qr-body-bg {
    background-color: #F5EFEB;
    background-image: 
      radial-gradient(ellipse at 15% 10%, rgba(184, 151, 90, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 85% 80%, rgba(239, 228, 211, 0.6) 0%, transparent 60%);
    min-height: 100vh;
  }
}

/* Header & Table Banner */
.qr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(32, 12, 4, 0.08);
  padding: 12px 20px 8px;
}

.qr-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-logo-link {
  display: inline-flex;
  align-items: center;
}

.qr-logo-img {
  height: 34px;
  width: auto;
}

.qr-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  text-decoration: none;
}

.qr-badge-gold {
  background: rgba(184, 151, 90, 0.15);
  color: #785926;
  border: 1px solid rgba(184, 151, 90, 0.35);
}

.qr-badge-gold:hover {
  background: #B8975A;
  color: #200C04;
}

.qr-table-banner {
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(32, 12, 4, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(32, 12, 4, 0.03);
}

.qr-table-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-table-pill {
  background: #200C04;
  color: #FAF6EF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.qr-table-sub {
  font-size: 12px;
  font-weight: 600;
  color: #200C04;
}

.qr-table-change {
  font-size: 11px;
  font-weight: 600;
  color: #785926;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* Category Horizontal Scroll Pills */
.qr-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.qr-cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #3B2416;
  border: 1px solid rgba(32, 12, 4, 0.08);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-cat-pill:hover {
  border-color: #B8975A;
  color: #200C04;
}

.qr-cat-pill.active {
  background: #200C04;
  color: #FAF6EF;
  border-color: #200C04;
  box-shadow: 0 4px 12px rgba(32, 12, 4, 0.15);
}

.qr-cat-pill.active .qr-cat-icon {
  color: #B8975A;
}

/* Search & Dietary Bar */
.qr-search-section {
  padding: 8px 20px;
}

.qr-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.qr-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(32, 12, 4, 0.10);
  font-size: 13px;
  color: #200C04;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.qr-search-input:focus {
  border-color: #B8975A;
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.12);
}

.qr-search-icon {
  position: absolute;
  left: 14px;
  color: #785926;
  font-size: 20px;
  pointer-events: none;
}

.qr-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #8A7B6E;
  cursor: pointer;
  display: none;
  padding: 2px;
}

.qr-diet-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.qr-diet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(239, 228, 211, 0.5);
  font-size: 11px;
  font-weight: 600;
  color: #4A2E1F;
  border: 1px solid transparent;
  cursor: pointer;
}

.qr-diet-chip.active {
  background: #FFFFFF;
  border-color: #16a34a;
  color: #16a34a;
  font-weight: 700;
}

/* Pure Veg Indicator Symbol */
.veg-badge-square {
  width: 13px;
  height: 13px;
  border: 1.5px solid #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.veg-badge-dot {
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

/* ================= EXACT STITCH UI PRODUCT CARDS GRID ================= */
.qr-products-container {
  padding: 16px 20px 140px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

@media (max-width: 640px) {
  .qr-products-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding: 12px 14px 120px;
  }
}

/* Stitch Card: Espresso Dark Luxury Aesthetic */
.qr-product-card {
  background: linear-gradient(180deg, #2D1A10 0%, #1A0D06 100%);
  border: 1px solid rgba(184, 151, 90, 0.28);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(32, 12, 4, 0.18);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.qr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(32, 12, 4, 0.26);
  border-color: rgba(184, 151, 90, 0.55);
}

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

/* Hero Food/Beverage Image */
.qr-product-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #3B2416;
}

@media (max-width: 640px) {
  .qr-product-media {
    height: 170px;
  }
}

.qr-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.qr-product-card:hover .qr-product-img {
  transform: scale(1.06);
}

/* Frosted Dark Glassmorphism Category Badge Pill (Stitch UI 1:1) */
.stitch-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 10, 4, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 151, 90, 0.45);
  border-radius: 9999px;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8975A;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Veg Indicator on Top-Right */
.stitch-veg-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #16a34a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.stitch-veg-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
}

/* Card Body Content */
.qr-product-details {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.qr-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qr-cat-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B8975A;
}

.stitch-custom-badge {
  font-size: 10px;
  font-weight: 600;
  color: #D2C4B5;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.qr-product-name {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 21px;
  font-weight: 700;
  color: #FAF6EF;
  line-height: 1.2;
  margin: 0 0 6px;
}

.qr-product-desc {
  font-size: 12px;
  color: #B8A89A;
  line-height: 1.45;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Bottom Footer: Price & Add Button */
.qr-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 151, 90, 0.18);
  margin-top: auto;
}

.qr-product-price {
  font-size: 19px;
  font-weight: 800;
  color: #B8975A;
  letter-spacing: -0.01em;
}

.qr-add-btn-wrap {
  display: flex;
  align-items: center;
}

.qr-add-btn {
  background: linear-gradient(135deg, #B8975A, #8F6E2A);
  color: #200C04;
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 151, 90, 0.35);
  transition: all 0.2s ease;
}

.qr-add-btn:hover {
  background: linear-gradient(135deg, #CBB075, #A07F35);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 151, 90, 0.45);
}

.qr-stepper-btn {
  display: inline-flex;
  align-items: center;
  background: #FAF6EF;
  border-radius: 9999px;
  padding: 3px 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.qr-stepper-ctrl {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #200C04;
  color: #FAF6EF;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.qr-stepper-qty {
  font-size: 13px;
  font-weight: 800;
  color: #200C04;
  min-width: 24px;
  text-align: center;
}

/* Floating Bottom Cart Bar */
.qr-floating-cart-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: #200C04;
  color: #FAF6EF;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(32, 12, 4, 0.35);
  z-index: 50;
  text-decoration: none;
  animation: floatUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.qr-cart-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-cart-badge {
  background: #B8975A;
  color: #200C04;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.qr-cart-total {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.qr-cart-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #FAF6EF;
}

/* Customization Bottom Sheet / Modal */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 4, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.qr-bottom-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 28px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.qr-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32, 12, 4, 0.08);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.qr-sheet-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  color: #200C04;
  margin: 0 0 4px;
}

.qr-sheet-price {
  font-size: 15px;
  font-weight: 800;
  color: #785926;
}

.qr-sheet-close {
  background: #EFE4D3;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #200C04;
  cursor: pointer;
}

.qr-option-group {
  margin-bottom: 20px;
}

.qr-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #200C04;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.qr-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(32, 12, 4, 0.08);
  margin-bottom: 8px;
  cursor: pointer;
  background: #FAF6EF;
  transition: all 0.15s ease;
}

.qr-option-row:hover {
  border-color: #B8975A;
}

.qr-option-row.selected {
  background: #FFFFFF;
  border-color: #200C04;
  box-shadow: 0 2px 8px rgba(32, 12, 4, 0.06);
}

.qr-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #200C04;
}

.qr-option-extra {
  font-size: 12px;
  font-weight: 700;
  color: #785926;
}

/* Radio & Checkbox Styling */
.qr-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(32, 12, 4, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-option-row.selected .qr-radio-circle {
  border-color: #200C04;
  background: #200C04;
}

.qr-option-row.selected .qr-radio-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FAF6EF;
}

.qr-confirm-add-btn {
  width: 100%;
  height: 48px;
  background: #200C04;
  color: #FAF6EF;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(32, 12, 4, 0.2);
}

.qr-confirm-add-btn:hover {
  background: #B8975A;
  color: #200C04;
}

/* Cart Page Styles */
.qr-cart-page {
  padding: 16px 16px 140px;
}

.qr-cart-item {
  background: #FFFFFF;
  border: 1px solid rgba(32, 12, 4, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.qr-cart-item-info {
  flex: 1;
}

.qr-cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #200C04;
  margin: 0 0 2px;
}

.qr-cart-item-customs {
  font-size: 11px;
  color: #785926;
  margin: 0 0 4px;
}

.qr-cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #200C04;
}

/* Bill Breakdown Card */
.qr-bill-card {
  background: #FFFFFF;
  border: 1px solid rgba(32, 12, 4, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
}

.qr-bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #554335;
  margin-bottom: 8px;
}

.qr-bill-row.total {
  border-top: 1.5px dashed rgba(32, 12, 4, 0.15);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #200C04;
}

/* Guest Details Form */
.qr-input-group {
  margin-bottom: 12px;
}

.qr-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #200C04;
  margin-bottom: 6px;
}

.qr-text-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(32, 12, 4, 0.12);
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  color: #200C04;
  outline: none;
}

.qr-text-input:focus {
  border-color: #B8975A;
}

/* Stamp Club Digital Card */
.stamp-card-container {
  background: linear-gradient(135deg, #200C04 0%, #3B2416 100%);
  color: #FAF6EF;
  border-radius: 20px;
  padding: 24px;
  margin: 16px;
  box-shadow: 0 12px 30px rgba(32, 12, 4, 0.25);
  border: 1px solid rgba(184, 151, 90, 0.3);
  position: relative;
  overflow: hidden;
}

.stamp-card-container::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 151, 90, 0.2) 0%, transparent 70%);
}

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

.stamp-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.stamp-slot.empty {
  border: 2px dashed rgba(184, 151, 90, 0.4);
  background: rgba(250, 246, 239, 0.05);
  color: rgba(184, 151, 90, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.stamp-slot.filled {
  border: 2px solid #B8975A;
  background: radial-gradient(circle, #C8A86B 0%, #B8975A 100%);
  color: #200C04;
  box-shadow: 0 4px 12px rgba(184, 151, 90, 0.4);
  animation: stampPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stampPop {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.stamp-slot.reward-slot {
  border: 2px solid #B8975A;
  background: rgba(184, 151, 90, 0.2);
  color: #B8975A;
}

/* Order Tracker Progress */
.order-tracker-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(32, 12, 4, 0.08);
  padding: 20px;
  margin: 16px;
  box-shadow: 0 4px 16px rgba(32, 12, 4, 0.04);
}

.tracker-step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}

.tracker-step:last-child {
  padding-bottom: 0;
}

.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: rgba(32, 12, 4, 0.1);
}

.tracker-step.completed:not(:last-child)::after {
  background: #16a34a;
}

.tracker-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #FAF6EF;
  border: 2px solid rgba(32, 12, 4, 0.15);
  color: #8A7B6E;
  z-index: 1;
}

.tracker-step.completed .tracker-step-icon {
  background: #16a34a;
  border-color: #16a34a;
  color: #FFFFFF;
}

.tracker-step.active .tracker-step-icon {
  background: #B8975A;
  border-color: #785926;
  color: #200C04;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 151, 90, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(184, 151, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 151, 90, 0); }
}

/* Leaderboard Podium & List */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 24px 16px 16px;
  padding-bottom: 12px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FAF6EF;
  border: 2px solid #B8975A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #200C04;
  margin-bottom: 6px;
  position: relative;
}

.podium-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-1 .podium-rank-badge { background: #FFD700; color: #200C04; }
.rank-2 .podium-rank-badge { background: #C0C0C0; color: #200C04; }
.rank-3 .podium-rank-badge { background: #CD7F32; color: #FFFFFF; }

.leaderboard-row {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(32, 12, 4, 0.08);
  padding: 12px 16px;
  margin: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leaderboard-row.my-row {
  border: 2px solid #B8975A;
  background: rgba(184, 151, 90, 0.08);
}

/* ========================================================
   PREMIUM 5-TAB APP BOTTOM NAVIGATION & ICON ANIMATIONS
   ======================================================== */
.app-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(248, 222, 204, 0.8);
  box-shadow: 0 -4px 24px rgba(55, 22, 6, 0.07);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  max-width: 576px;
  margin: 0 auto;
  padding: 0 8px;
}

.app-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 52px;
  color: #796c66;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.app-nav-item:hover {
  color: #371606;
  transform: translateY(-2px);
}

.app-nav-item:active {
  transform: scale(0.92);
}

.app-nav-item .app-nav-icon {
  font-size: 23px;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-nav-item:hover .app-nav-icon {
  transform: scale(1.18);
  color: #371606;
}

.app-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 3px;
  line-height: 1;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Active Tab Indicator */
.app-nav-item.active {
  color: #371606;
}

.app-nav-item.active .app-nav-icon {
  font-variation-settings: 'FILL' 1;
  color: #371606;
  transform: scale(1.12);
}

.app-nav-item.active .app-nav-label {
  color: #371606;
  font-weight: 800;
}

.app-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: #805606;
  box-shadow: 0 1px 4px rgba(128, 86, 6, 0.4);
  animation: navPillPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navPillPop {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Center Elevated Orders Action Button */
.app-nav-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 58px;
  height: 60px;
  margin-top: -16px;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.app-nav-center-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #371606;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(55, 22, 6, 0.3);
  border: 3px solid #fff8f5;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.2s ease;
}

.app-nav-center:hover .app-nav-center-circle {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 26px rgba(55, 22, 6, 0.42);
  background: #512b19;
}

.app-nav-center:active .app-nav-center-circle {
  transform: scale(0.92);
}

.app-nav-center.active .app-nav-center-circle {
  background: #805606;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(128, 86, 6, 0.45);
}

.app-nav-center .app-nav-label {
  font-size: 10px;
  font-weight: 700;
  color: #796c66;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.app-nav-center:hover .app-nav-label,
.app-nav-center.active .app-nav-label {
  color: #371606;
  font-weight: 800;
}

