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

/* ==========================================================================
   MYNTRA ENTERPRISE UI DESIGN SYSTEM
   High-Fidelity Mobile App Stylesheet (Company / Production Grade)
   ========================================================================== */

/* ─── Design Tokens & Theme Variables ─────────────────────────────────────── */
:root {
  /* Brand Color Tokens (Myntra Corporate Signature Palette) */
  --brand-pink: #ff3f6c;
  --brand-pink-hover: #e0355d;
  --brand-pink-light: #fff0f3;
  --brand-pink-glow: rgba(255, 63, 108, 0.28);
  
  --primary-gradient: linear-gradient(135deg, #ff3f6c 0%, #ff527b 50%, #d62956 100%);
  --brand-gradient-alt: linear-gradient(135deg, #ff3f6c 0%, #8b5cf6 100%);
  --metallic-card-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311b92 100%);
  --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --card-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Surface & Canvas Colors */
  --outer-bg: #090d16;
  --bg-color: #f4f6fc;
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.85);
  
  /* Text Color Scale */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-subtle: #e2e8f0;

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: #e6f4ea;
  --status-error: #ef4444;
  --status-error-bg: #fef2f2;
  --status-warning: #f59e0b;
  --status-warning-bg: #fffbe6;

  /* Typography Scale — Crystal Clear Inter Font Engine */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: var(--font-display);

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --text-3xl: 32px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* Radius System */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Modern Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -6px rgba(255, 63, 108, 0.16);
  --shadow-glow: 0 0 24px var(--brand-pink-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Global Reset & Accessibility ────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

*:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
}

html, body {
  width: 100%;
  height: 100%;
}

html, body {
  font-family: var(--font-sans);
  background-color: var(--outer-bg);
  color: var(--text-main);
  line-height: 1.5;
  font-size: var(--text-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"], .selectable-text {
  user-select: text;
  -webkit-user-select: text;
}

/* ─── Typography Polish ───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.header-title, .section-title, .modal-title, .page-header-title,
.stat-card, .btn, .nav-item, .card, .profile-card {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.profile-balance-main, .task-stat-val, .stat-val, .order-price-val, .record-amount, .dashboard-stat-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  font-weight: 700;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.touch-spring, .btn, .nav-item, .order-tab, .tab-item, .fab {
  touch-action: manipulation;
  will-change: transform;
  transform: translateZ(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Mobile Container Frame ──────────────────────────────────────────────── */
#app-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-color);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* Space for elevated bottom nav */
  overflow-x: hidden;
}

@media (max-width: 480px) {
  #app-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ─── Header Bar ───────────────────────────────────────────────────────────── */
.header {
  height: 58px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 63, 108, 0.25);
  backdrop-filter: blur(10px);
}

.header-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffe4e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

.header-action:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.25);
}

.header-icon {
  width: 22px;
  height: 22px;
}

/* ─── Views & Page Content ─────────────────────────────────────────────────── */
.page-view, .page-content {
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 110px;
  gap: 16px;
  animation: pageSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Scroll Reveal Animations ────────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--transition-normal), transform 0.4s var(--transition-normal);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Skeleton Loader Component ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ─── Hero Carousel ───────────────────────────────────────────────────────── */
.carousel-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7.8;
  background-color: #ffffff;
  border: 1px solid var(--card-border);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.dot.active {
  width: 18px;
  border-radius: 4px;
  background-color: #ffffff;
}

/* ─── Quick Action Cards (Recharge / Withdraw) ───────────────────────────── */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quick-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: flex-start;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.quick-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg) translateX(-150%);
  transition: transform 0.6s ease;
}

.quick-card:hover::after {
  transform: skewX(-20deg) translateX(250%);
}

.quick-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}

.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.quick-icon.purple {
  background: var(--primary-gradient);
}

.quick-icon.orange {
  background: var(--orange-gradient);
}

.quick-card-text {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ─── Balance Dashboard Card ──────────────────────────────────────────────── */
.balance-card {
  background: var(--metallic-card-gradient);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 63, 108, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.balance-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.balance-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.balance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.balance-amount {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-item {
  display: flex;
  flex-direction: column;
}

.sub-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.sub-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #ffffff;
}

/* ─── Section Title ────────────────────────────────────────────────────────── */
.section-title {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

/* ─── Commission Ticker ────────────────────────────────────────────────────── */
.commission-ticker-container {
  height: 228px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.commission-feed-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.commission-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  height: 68px;
  flex-shrink: 0;
}

.commission-date {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--brand-pink);
  width: 52px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 10px;
  font-weight: 600;
}

.commission-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.commission-amount {
  font-size: 13px;
  color: var(--text-muted);
}

.commission-amount span {
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--brand-pink);
}

.commission-user {
  font-size: 11px;
  color: var(--text-light);
  font-family: monospace;
}

/* ─── Partner Logos Section ────────────────────────────────────────────────── */
/* ─── Partner Logos Section ────────────────────────────────────────────────── */
.home-partners-grid, .partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.home-partner-card, .partner-card {
  border-radius: var(--radius-lg);
  position: relative;
  height: 80px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 10px 8px 6px 8px;
  cursor: pointer;
  overflow: hidden;
}

.home-partner-card img, .partner-card img {
  max-width: 90%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.home-partner-card:hover img, .partner-card:hover img {
  transform: scale(1.08);
}

.partner-badge-pill {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.2px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.partner-badge-pill.shopee { color: #ee4d2d; border: 1px solid rgba(238, 77, 45, 0.3); background: #fff0ed; }
.partner-badge-pill.orami { color: #ff4d6d; border: 1px solid rgba(255, 77, 109, 0.3); background: #fff0f3; }
.partner-badge-pill.lazada { color: #2b38e0; border: 1px solid rgba(43, 56, 224, 0.3); background: #f0f2ff; }
.partner-badge-pill.bukalapak { color: #e31f52; border: 1px solid rgba(227, 31, 82, 0.3); background: #fff0f4; }
.partner-badge-pill.amazon { color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); background: #fffbeb; }
.partner-badge-pill.tokopedia { color: #2e9434; border: 1px solid rgba(46, 148, 52, 0.3); background: #f0fdf4; }

.home-partner-card:active, .partner-card:active {
  transform: scale(0.94);
  box-shadow: var(--shadow-md);
}

/* ─── Task / Order Grab Page ──────────────────────────────────────────────── */
.task-page-header {
  background: var(--primary-gradient);
  padding: 16px;
  color: #ffffff;
}

.task-content-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.task-balance-row {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-balance-left {
  display: flex;
  flex-direction: column;
}

.task-balance-val {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.task-balance-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.task-recharge-plus {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--brand-pink-glow);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 63, 108, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 63, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 63, 108, 0); }
}

.task-info-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-lg);
}

.task-info-line {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
}

.task-stats-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-stats-row {
  display: flex;
  justify-content: space-between;
}

.task-stat-col.right {
  align-items: flex-end;
}

.task-stat-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
}

.task-stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.task-stats-divider {
  height: 1px;
  background-color: var(--border-subtle);
}

.grab-action-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  width: 100%;
}

.grab-action-btn:active {
  transform: scale(0.97);
}

.store-rules-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  background: #ffffff;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.store-rules-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
}

.store-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

/* ─── Profile Page Styles ──────────────────────────────────────────────────── */
.profile-page-header {
  height: 52px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 18px;
  background-color: var(--bg-color);
}

.profile-bell-icon {
  width: 26px;
  height: 26px;
  color: var(--text-main);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.profile-bell-icon:active {
  transform: scale(0.9);
}

.profile-user-card {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.profile-avatar-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-circle svg {
  width: 38px;
  height: 38px;
  fill: var(--brand-pink);
}

.profile-user-phone {
  font-size: 21px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.profile-balance-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-balance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-balance-top-left {
  display: flex;
  flex-direction: column;
}

.profile-balance-main {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.profile-balance-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-recharge-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--brand-pink-glow);
  transition: transform var(--transition-fast);
}

.profile-recharge-btn:active {
  transform: scale(0.92);
}

.profile-balance-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  position: relative;
}

.profile-balance-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  border-left: 1px dashed var(--border-subtle);
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.profile-stat-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
}

.profile-stat-val.green { color: var(--status-success); }
.profile-stat-val.red { color: var(--status-error); }

.profile-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Profile Menu List */
.profile-menu-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.profile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.profile-menu-row:last-child {
  border-bottom: none;
}

.profile-menu-row:active {
  background-color: #f8fafc;
}

.profile-menu-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.profile-menu-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-icon.red {
  color: var(--status-error);
}

.profile-menu-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* ─── Orders Page & Status Badges ──────────────────────────────────────────── */
.tab-bar {
  display: flex;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 5px;
  gap: 4px;
  border: 1px solid var(--card-border);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-item.active {
  background: var(--primary-gradient);
  color: #ffffff;
}

.order-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.completed {
  background-color: var(--status-success-bg);
  color: var(--status-success);
}

.status-badge.pending {
  background-color: var(--status-warning-bg);
  color: var(--status-warning);
}

.order-card-body {
  display: flex;
  gap: 14px;
  align-items: center;
}

.order-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #f1f5f9;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.order-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.order-price {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-pink);
}

/* ─── Recharge & Payment Pages ────────────────────────────────────────────── */
.payment-methods-card, .payment-channel-card, .recharge-amount-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.card-heading {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  font-family: var(--font-display);
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option.selected {
  background-color: var(--brand-pink-light);
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-option.selected .radio-circle {
  border-color: var(--brand-pink);
  background-color: var(--brand-pink);
}

.radio-circle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  opacity: 0;
}

.payment-option.selected .radio-circle::after {
  opacity: 1;
}

.payment-name {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
}

.channel-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 12px 36px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.amount-limit-text {
  font-size: 12px;
  color: var(--brand-pink);
  background-color: var(--brand-pink-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: center;
  font-weight: 600;
}

.amount-input-box {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  gap: 10px;
}

.amount-input-box span {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-pink);
}

.amount-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  color: var(--text-main);
}

.primary-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-display);
  width: 100%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
  text-align: center;
  margin-top: 8px;
}

.primary-btn:active {
  transform: scale(0.98);
}

/* ─── Records & Account Changes ────────────────────────────────────────────── */
.account-record-card, .record-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.account-record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.badge-rebate, .badge-settlement {
  background-color: var(--status-success-bg);
  color: var(--status-success);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.record-timestamp {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-display);
}

.record-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
}

.record-amount-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-amount-col .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.record-amount-col .val {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
}

.record-amount-col .val.green { color: var(--status-success); }
.record-amount-col .val.blue { color: var(--brand-pink); }

.no-more-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 24px 0;
}

/* ─── Notifications & Password Pages ─────────────────────────────────────── */
.notif-tab-bar {
  display: flex;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-pink);
  margin-bottom: 14px;
}

.notif-tab {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-pink);
  cursor: pointer;
  background-color: #ffffff;
  transition: all var(--transition-fast);
}

.notif-tab.active {
  background: var(--primary-gradient);
  color: #ffffff;
}

.password-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.password-tab-header {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.pass-tab {
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.pass-tab.active {
  color: var(--brand-pink);
}

.pass-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.pass-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pass-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.pass-field-row label {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
  width: 120px;
}

.pass-field-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.pass-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.pass-submit-btn:active {
  transform: scale(0.98);
}

/* ─── Modal Overlays & Dialogs ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active,
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  display: flex !important;
}

.modal-box, .prompt-modal-box {
  width: 88%;
  max-width: 360px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s var(--transition-bounce);
  border: 1px solid var(--card-border);
}

.modal-overlay.active .modal-box,
.modal-overlay.show .modal-box,
.modal-overlay.active .prompt-modal-box,
.modal-overlay.show .prompt-modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center;
}

.prompt-modal-msg {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-actions, .prompt-modal-actions, .withdrawal-modal-confirm {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.modal-btn, .prompt-btn, .confirm-red-btn {
  flex: 1;
  height: 46px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.modal-btn:active, .prompt-btn:active, .confirm-red-btn:active {
  transform: scale(0.96);
}

.modal-btn.secondary, .prompt-btn.cancel {
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.modal-btn.primary, .prompt-btn.confirm, .confirm-red-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-pink-glow);
}

/* ─── Withdrawal Form & Bank Card Styles ─────────────────────────────────── */
.withdrawal-info-form-box {
  width: 90%;
  max-width: 380px;
}

.withdrawal-form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
  width: 100%;
}

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

.form-row label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.form-row input:focus {
  border-color: var(--brand-pink);
  background: #ffffff;
  box-shadow: 0 0 10px var(--brand-pink-glow);
}

/* Withdrawal Empty & Saved Card Views */
.withdrawal-no-data-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 360px;
  text-align: center;
  margin: 0 auto;
}

.empty-doc-illustration {
  width: 90px;
  height: 90px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.no-data-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.add-bank-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 44px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.add-bank-btn:active {
  transform: scale(0.96);
}

.saved-bank-card {
  background: var(--metallic-card-gradient);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.45);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bank-card-inner {
  display: flex;
  flex-direction: column;
}

.bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bank-name-tag {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.bank-type-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.bank-acc-num {
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  margin-bottom: 24px;
  word-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bank-card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
}

.bank-holder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-holder-info .lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.bank-holder-info .val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #ffffff;
}

/* ─── Toast Notification ─────────────────────────────────────────────────── */
.toast-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--transition-bounce);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 85vw;
  text-align: center;
}

.toast-msg.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── INDUSTRY-LEVEL LAYOUT ANIMATIONS & MOTION SYSTEM ───────────────────────── */

/* 1. Staggered Cascading Page Entry */
.stagger-1 { animation: staggerSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.stagger-2 { animation: staggerSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both; }
.stagger-3 { animation: staggerSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.stagger-4 { animation: staggerSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
.stagger-5 { animation: staggerSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }

@keyframes staggerSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. Seamless Page Transition Exit */
.page-exit-transition {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}

/* 3. Metallic Balance Card Sheen Effect */
.balance-card {
  position: relative;
  overflow: hidden;
}

.balance-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: metallicSheen 6s infinite ease-in-out;
}

@keyframes metallicSheen {
  0%, 70% { left: -150%; }
  100% { left: 150%; }
}

/* 4. Tactile Spring Press Physics */
.touch-spring {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.touch-spring:active {
  transform: scale(0.95);
}

/* 5. Live Grab Order Loader & Success Celebration Modal */
.grab-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.grab-spinner-ring {
  width: 56px;
  height: 56px;
  border: 4px solid var(--brand-pink-light);
  border-top: 4px solid var(--brand-pink);
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.grab-success-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px var(--brand-pink-glow);
  animation: grabSuccessPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes grabSuccessPop {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* 6. Dynamic Balance Number Pulse */
.balance-pulse-update {
  animation: pulseBalanceText 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulseBalanceText {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--brand-pink); }
  100% { transform: scale(1); }
}

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* ─── Global Page Entrance Transitions & Stagger Motion ────────────────────────── */
@keyframes pageSlideUp {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-content {
  animation: pageSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.reveal-on-scroll {
  animation: pageSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.04s; }
.stagger-2 { animation-delay: 0.08s; }
.stagger-3 { animation-delay: 0.12s; }
.stagger-4 { animation-delay: 0.16s; }
.stagger-5 { animation-delay: 0.20s; }
.stagger-6 { animation-delay: 0.24s; }

/* ─── Premium Fluid Spring Bottom Navigation & FAB (v4 Ultra) ──────────────── */
:root {
  --nav-bar-bg: #121622;
  --nav-pill-bg: #ffffff;
  --nav-icon-muted: #8e9bb0;
  --nav-accent: #ff3f6c;
  --nav-accent-glow: rgba(255, 63, 108, 0.35);
  --spring-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 24px);
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  pointer-events: auto;
}

.nav-bar {
  position: relative;
  flex: 1;
  height: 60px;
  background: var(--nav-bar-bg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.indicator {
  display: none;
}

.nav-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
  text-decoration: none;
  transition: background-color 0.22s var(--ease-fluid), transform 0.2s var(--spring-smooth), box-shadow 0.22s var(--ease-fluid);
}

.nav-item.active {
  background: var(--nav-pill-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--nav-icon-muted);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease, transform 0.25s var(--spring-smooth), filter 0.2s ease;
}

.nav-item.active svg {
  stroke: var(--nav-accent);
  stroke-width: 2.3;
  transform: scale(1.08);
  filter: drop-shadow(0 2px 6px var(--nav-accent-glow));
}

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

/* Floating Action Button (FAB) */
.fab {
  position: relative;
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff3f6c 0%, #d62956 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 24px var(--nav-accent-glow);
  overflow: hidden;
  transition: transform 0.35s var(--spring-smooth), box-shadow 0.25s ease;
  text-decoration: none;
}

.fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 63, 108, 0.4) 0%, transparent 70%);
  animation: fab-glow-pulse 2.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes fab-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.fab svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.4;
  position: relative;
  z-index: 2;
  transition: transform 0.35s var(--spring-smooth);
}

.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(255, 63, 108, 0.5);
}

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

.fab.tapped svg {
  animation: icon-bounce 0.45s var(--spring-smooth);
}

@keyframes icon-bounce {
  0% { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(-15deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-out 0.45s var(--ease-fluid) forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  to { transform: scale(2.2); opacity: 0; }
}

/* ─── Animated Celebration & Broadcast Popups ───────────────────────────────── */
.celebrate-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.celebrate-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.celebrate-popup-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 32px 24px 26px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 63, 108, 0.18);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.celebrate-popup-overlay.active .celebrate-popup-box {
  transform: scale(1) translateY(0);
}

.celebrate-icon-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.celebrate-icon-ring.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
  border: 2px solid #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  color: #10b981;
}

.celebrate-icon-ring.vip {
  background: linear-gradient(135deg, rgba(255, 63, 108, 0.2), rgba(168, 85, 247, 0.35));
  border: 2px solid #ff3f6c;
  box-shadow: 0 0 30px rgba(255, 63, 108, 0.45);
  color: #ff3f6c;
}

.celebrate-icon-ring.pending {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.35));
  border: 2px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.celebrate-icon-ring.info {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border: 2px solid #f59e0b;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.celebrate-icon-ring.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.35));
  border: 2px solid #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.celebrate-badge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.celebrate-badge-tag.success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.celebrate-badge-tag.vip     { background: rgba(255, 63, 108, 0.15); color: #ff3f6c; border: 1px solid rgba(255, 63, 108, 0.3); }
.celebrate-badge-tag.pending { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.celebrate-badge-tag.info    { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.celebrate-badge-tag.error   { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.celebrate-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.celebrate-amount {
  font-size: 28px;
  font-weight: 800;
  color: #10b981;
  margin: 6px 0 10px;
  letter-spacing: -0.03em;
}

.celebrate-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 22px;
}

.celebrate-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ff3f6c 0%, #e91e63 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 63, 108, 0.35);
  transition: transform 0.2s ease;
}

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

