/* ==========================================================================
   EGL Pouches Myanmar - Telegram Mini App Stylesheet
   Luxury Obsidian Glassmorphism (Cyber-Nordic Minimalist)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* --- Screen Management --- */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 20px 18px 30px 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.screen.active {
  display: flex;
  animation: screenFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Glassmorphic Hero Container --- */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-glass);
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.logo-capsule {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  animation: pulseLogo 3s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% { box-shadow: 0 0 16px rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.25); }
  100% { box-shadow: 0 0 28px rgba(139, 92, 246, 0.45); border-color: rgba(139, 92, 246, 0.5); }
}

.mini-app-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

/* --- Badge & Micro Benefit Pills --- */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.benefit-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 22px 0;
  text-align: left;
}

.benefit-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.benefit-pill span {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Typography --- */
h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 20%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* --- Buttons --- */
.btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.97);
}

/* --- SCREEN 2: Terms & Policies Grid --- */
.tos-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 22px 0;
  text-align: left;
}

.tos-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.tos-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.tos-card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* --- SCREEN 3: The Hub / Main Menu --- */
.hub-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.hub-card-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
  transition: all 0.2s ease;
}

.hub-card-hero:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.hub-card-hero-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.hub-card-hero-text p {
  font-size: 12px;
  color: #e2e8f0;
  margin: 2px 0 0 0;
}

.hub-card-hero-icon {
  font-size: 24px;
}

.hub-card-secondary {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-card-secondary:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.07);
}

.hub-card-secondary-text h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.hub-card-secondary-text p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.store-status-pill .dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* --- SCREEN 4: Catalog & Product Grid --- */
#screen-menu {
  justify-content: flex-start;
  padding: 16px 16px 80px 16px;
}

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

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-icon:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

.catalog-header {
  text-align: left;
  width: 100%;
  margin-bottom: 14px;
}

.catalog-header h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.catalog-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.product-card {
  background: var(--bg-glass-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:active {
  transform: scale(0.96);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Flavor Ambient Halo Engine */
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.product-image-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--product-glow, rgba(139, 92, 246, 0.35)) 0%, transparent 68%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.product-can-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.product-card:hover .product-can-img {
  transform: scale(1.05);
}

.badge-strength {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  z-index: 3;
}

.badge-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  z-index: 3;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.product-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.btn-card-add {
  width: 100%;
  padding: 7px 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-add:active {
  background: var(--accent-primary);
  transform: scale(0.95);
}

/* --- Floating Action Button (Cart FAB) --- */
.fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--accent-glow);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab:active {
  transform: scale(0.92);
}

#fab-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}

/* --- SCREEN 4.5: Product Detail Screen --- */
#screen-product {
  justify-content: flex-start;
  padding: 0;
}

.product-detail-container {
  width: 100%;
  padding: 0 20px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 1.1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
}

.badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(217, 70, 239, 0.35) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 70, 239, 0.45);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  z-index: 10;
  pointer-events: none;
  animation: badgePulseGlow 3s ease-in-out infinite alternate;
}

.badge-new-dot {
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 50%;
  box-shadow: 0 0 8px #d946ef;
  display: inline-block;
  animation: badgeDotBlink 1.8s ease-in-out infinite;
}

@keyframes badgeDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

@keyframes badgePulseGlow {
  0% {
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border-color: rgba(217, 70, 239, 0.35);
  }
  100% {
    box-shadow: 0 6px 22px rgba(217, 70, 239, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(217, 70, 239, 0.7);
  }
}

.detail-info {
  text-align: left;
  margin-bottom: 18px;
}

.detail-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-hover);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

#detail-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.detail-flavor {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.variant-selector {
  display: flex;
  gap: 10px;
}

.variant-btn {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
}

.variant-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-action-bar {
  margin-top: auto;
  background: var(--bg-glass-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.unit-selector-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unit-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.unit-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.unit-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.quick-add-units {
  display: flex;
  gap: 6px;
}

.quick-btn {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.quick-btn:active {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

.btn-add-cart {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- SCREEN 8: Order List & Status Filter Chips --- */
#screen-status-list {
  justify-content: flex-start;
  padding: 16px 16px 40px 16px;
}

.checkout-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.checkout-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 2px;
}

.checkout-subtitle {
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Status Filter Chips Bar (1:1 with Admin Dashboard) */
.status-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
  width: 100%;
  scrollbar-width: none;
}

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

.status-filter-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-filter-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-filter-chip.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

.status-filter-chip .chip-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.order-card {
  background: var(--bg-glass-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-card:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.06);
}

.order-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.order-card-id {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14.5px;
}

.order-card-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

.order-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Status Badges (1:1 with Admin Dashboard) */
.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid var(--status-pending-border);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed);
  border: 1px solid var(--status-confirmed-border);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.badge-shipped {
  background: var(--status-shipped-bg);
  color: var(--status-shipped);
  border: 1px solid var(--status-shipped-border);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.badge-cancelled {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled);
  border: 1px solid var(--status-cancelled-border);
}

/* --- SCREEN 8.5: Order Detail Tracker & Progress Line --- */
#screen-status-detail {
  justify-content: flex-start;
  padding: 16px 16px 40px 16px;
}

.status-radar-box {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 14px auto;
}

.status-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.status-icon-box {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* 4-Stage Visual Progress Timeline */
.order-timeline {
  width: 100%;
  background: var(--bg-glass-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 13px;
  bottom: -16px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step.completed:not(:last-child)::after {
  background: var(--success);
}

.timeline-step.active:not(:last-child)::after {
  background: var(--accent-primary);
}

.timeline-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-step.completed .timeline-icon-wrap {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  color: var(--success);
}

.timeline-step.active .timeline-icon-wrap {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.timeline-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Cancel Order Button */
.btn-cancel-order {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  margin-top: 10px;
}

.btn-cancel-order:active {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(0.97);
}

.locked-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --- Bottom Sheet Cart Modal --- */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cart-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cart-modal-content {
  position: relative;
  background: linear-gradient(180deg, #131726 0%, #0c0e17 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  padding: 20px 20px 28px 20px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.1);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  margin: 0 auto 14px auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-header-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.cart-count-badge {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 38vh;
  padding-right: 2px;
}

.cart-item {
  display: flex;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  gap: 12px;
  align-items: center;
  transition: background 0.2s ease;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
  text-align: left;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cart-item-variant {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-hover);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.btn-remove {
  background: none;
  border: none;
  color: #f87171;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

.cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.coupon-input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.coupon-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px 10px 34px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.coupon-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.btn-coupon-apply {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #fff;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-coupon-apply:active {
  background: var(--accent-primary);
  transform: scale(0.96);
}

.cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-breakdown-row.discount-row {
  color: var(--success);
  font-weight: 600;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.cart-total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-total-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   LUXURY FORM INPUTS & INTERACTIVE CONTROLS
   ========================================================================== */

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.input-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 14px 13px 42px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background: rgba(15, 18, 30, 0.8);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  min-height: 80px;
  resize: vertical;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(15, 18, 30, 0.8);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.form-textarea::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* State & City Interactive Picker Trigger Card */
.picker-trigger-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.picker-trigger-card:active {
  transform: scale(0.98);
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
}

.picker-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.picker-trigger-text {
  text-align: left;
}

.picker-trigger-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.picker-trigger-sub {
  font-size: 11.5px;
  color: var(--accent-hover);
}

.picker-trigger-chevron {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   3D SCROLLABLE DRUM WHEEL PICKER MODAL (iOS / Telegram Style)
   ========================================================================== */

.scroll-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.picker-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.picker-modal-content {
  position: relative;
  background: linear-gradient(180deg, #141829 0%, #0a0c14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  padding: 18px 20px 28px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.85);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.picker-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.picker-toolbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-picker-done {
  background: var(--accent-primary);
  border: none;
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  transition: all 0.2s ease;
}

.btn-picker-done:active {
  transform: scale(0.94);
}

.picker-wheels-container {
  position: relative;
  height: 200px;
  display: flex;
  gap: 12px;
  overflow: hidden;
  perspective: 1000px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
}

/* Center Highlight Lens Beam */
.picker-lens {
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(139, 92, 246, 0.18);
  border-top: 1px solid rgba(139, 92, 246, 0.6);
  border-bottom: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
}

.picker-drum-col {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 78px;
  padding-bottom: 78px;
  box-sizing: border-box;
}

.picker-drum-col::-webkit-scrollbar {
  display: none;
}

.picker-drum-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  text-align: center;
  padding: 0 6px;
}

.picker-drum-item.selected {
  color: #ffffff;
  font-weight: 700;
  transform: scale(1.06);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* ==========================================================================
   PAYMENT METHOD SCREEN
   ========================================================================== */

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.payment-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.payment-card:active {
  transform: scale(0.98);
}

.payment-card.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.28);
}

.payment-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.payment-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.payment-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.payment-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.payment-card.active .payment-radio {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.payment-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.payment-card.active .payment-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* KBZPay Transfer Details Card */
.kpay-details {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

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

.kpay-details-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.kpay-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Luxury QR Display Card */
.kpay-qr-card {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.12) 0%, rgba(10, 15, 29, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.kpay-qr-card:active {
  transform: scale(0.98);
  border-color: var(--accent-hover);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.kpay-qr-frame {
  position: relative;
  width: 170px;
  height: 170px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.kpay-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  image-rendering: -webkit-optimize-contrast;
}

/* Animated Cyber Scan Laser */
.kpay-qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, #8b5cf6, transparent);
  box-shadow: 0 0 8px #8b5cf6, 0 0 16px rgba(236, 72, 153, 0.8);
  animation: qrScanLaser 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes qrScanLaser {
  0% { top: 4px; opacity: 0.2; }
  50% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0.2; }
}

/* Cyber Neon Corner Accents */
.kpay-qr-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #8b5cf6;
  border-style: solid;
  pointer-events: none;
}
.kpay-qr-corner.top-left { top: 4px; left: 4px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 4px; }
.kpay-qr-corner.top-right { top: 4px; right: 4px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 4px; }
.kpay-qr-corner.bottom-left { bottom: 4px; left: 4px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 4px; }
.kpay-qr-corner.bottom-right { bottom: 4px; right: 4px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 4px; }

.kpay-qr-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--accent-hover);
  font-weight: 600;
}

.kpay-account-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 6px;
}

.kpay-account-info {
  text-align: left;
}

.kpay-account-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpay-account-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.kpay-account-holder {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 2px;
}

.btn-copy-account {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-account:active {
  background: var(--accent-primary);
  transform: scale(0.95);
}

.kpay-instruction-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Quick Reminder in Upload Screen */
.kpay-quick-reminder {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reminder-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.reminder-label {
  color: var(--text-muted);
}

.reminder-val {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.btn-reminder-qr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reminder-qr:active {
  background: var(--accent-primary);
}

/* Fullscreen QR Lightbox Modal */
.kpay-qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.kpay-qr-lightbox.hidden {
  display: none;
}

.kpay-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease forwards;
}

.kpay-lightbox-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 330px;
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.25);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-close-lightbox-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-lightbox-pill:hover,
.btn-close-lightbox-pill:active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.lightbox-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
}

.lightbox-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.lightbox-qr-wrapper {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-footer {
  margin-top: 16px;
}

.lightbox-acc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

/* ==========================================================================
   KBZPAY RECEIPT UPLOAD SCREEN
   ========================================================================== */

.upload-zone {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.upload-zone:hover, .upload-zone:active {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
}

.upload-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.upload-primary-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-sub-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.file-input-hidden {
  display: none;
}

.image-preview-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.image-preview-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* ==========================================================================
   ORDER SUMMARY & INVOICE RECEIPT
   ========================================================================== */

.receipt-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 26, 42, 0.9) 0%, rgba(12, 14, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  margin: 12px 0 16px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.receipt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.receipt-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.receipt-label {
  color: var(--text-secondary);
}

.receipt-val {
  font-weight: 600;
  color: var(--text-primary);
}

.receipt-divider {
  height: 1px;
  background: dashed rgba(255, 255, 255, 0.12);
  margin: 12px 0;
}

.receipt-row.total {
  margin-top: 4px;
  margin-bottom: 14px;
}

.receipt-row.total .receipt-label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.receipt-row.total .receipt-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-hover);
}

.receipt-meta-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 12.5px;
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.receipt-meta-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.receipt-meta-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   PERFORMANCE & OPTIMIZATION UTILITIES (Nanobar, Skeletons, Toasts)
   ========================================================================== */

.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), #00f2fe, #4facfe);
  box-shadow: 0 0 10px var(--accent-primary), 0 0 5px #00f2fe;
  z-index: 9999;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.top-progress-bar.active {
  opacity: 1;
  width: 75%;
}

.top-progress-bar.done {
  width: 100%;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.3s 0.15s ease;
}

@keyframes shimmerSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.12) 37%,
    rgba(255, 255, 255, 0.04) 63%
  ) !important;
  background-size: 400% 100% !important;
  animation: shimmerSweep 1.6s ease-in-out infinite !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  pointer-events: none !important;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  width: 80%;
}

.skeleton-text-sm {
  height: 12px;
  border-radius: 4px;
  width: 50%;
}

.skeleton-order-card {
  height: 68px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  background: rgba(22, 27, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.toast.toast-exit {
  animation: toastSlideUp 0.25s ease forwards;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent-primary); }

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

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

/* ==========================================================================
   Floating Language Toggle Pill (EN / မြန်မာ)
   ========================================================================== */
.lang-toggle-float {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(14, 18, 28, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(139, 92, 246, 0.18);
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-pill-btn:active {
  transform: scale(0.93);
}

.lang-pill-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.lang-pill-btn .lang-opt {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 9999px;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.2px;
}

.lang-pill-btn .lang-opt.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}

.lang-pill-btn .lang-divider {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  padding: 0 1px;
}

/* Myanmar Typography Polish */
body.lang-my {
  font-family: 'Padauk', 'Pyidaungsu', 'Myanmar Text', var(--font-family);
}

body.lang-my h1, 
body.lang-my h2, 
body.lang-my h3,
body.lang-my .btn,
body.lang-my .benefit-pill,
body.lang-my .modal-card h2 {
  font-family: 'Padauk', 'Pyidaungsu', 'Myanmar Text', var(--font-family);
  line-height: 1.45;
}

