/* ==========================================================================
   EarnBean — NEXT-GEN LUXURY ULTRA-PREMIUM UI SYSTEM (v3.0)
   Inspired by Freecash, Roobet, Stripe & Vercel Design Systems
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL LUXURY DESIGN TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
  --eb-obsidian: #080c14;
  --eb-dark: #0d121f;
  --eb-card: #121829;
  --eb-card-hover: #18223a;
  --eb-card-border: rgba(255, 255, 255, 0.08);
  --eb-card-border-glow: rgba(16, 185, 129, 0.45);
  
  --eb-primary: #00e676;
  --eb-primary-hover: #00c853;
  --eb-primary-grad: linear-gradient(135deg, #00f59b 0%, #00e676 50%, #00b34a 100%);
  --eb-primary-glow: 0 0 25px rgba(0, 230, 118, 0.45), 0 0 50px rgba(0, 230, 118, 0.15);
  
  --eb-gold: #ffd600;
  --eb-gold-grad: linear-gradient(135deg, #ffe082 0%, #ffd600 50%, #ffab00 100%);
  --eb-gold-glow: 0 0 20px rgba(255, 214, 0, 0.35);

  --eb-danger-grad: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
  --eb-purple-grad: linear-gradient(135deg, #b388ff 0%, #7c4dff 100%);
  --eb-blue-grad: linear-gradient(135deg, #40c4ff 0%, #00b0ff 100%);
  
  --eb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --eb-font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   2. USER PANEL: BODY, NAVBAR, & SIDEBAR
   -------------------------------------------------------------------------- */
body {
  background-color: var(--eb-obsidian) !important;
  color: #f1f5f9 !important;
  font-family: var(--eb-font) !important;
  background-image: 
    radial-gradient(at 15% 15%, rgba(0, 230, 118, 0.06) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(0, 176, 255, 0.04) 0px, transparent 50%) !important;
  background-attachment: fixed !important;
}

/* Top Navbar */
.navbar, .navbar-custom, header.navbar {
  background: rgba(8, 12, 20, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Wallet Balance Pill */
.wallet-dropdown-btn, #walletDropdown {
  background: var(--eb-primary-grad) !important;
  color: #000000 !important;
  font-family: var(--eb-font-heading) !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  box-shadow: var(--eb-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  cursor: pointer !important;
}
.wallet-dropdown-btn:hover, #walletDropdown:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* User Left Sidebar */
.user-sidebar {
  background: rgba(9, 13, 22, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.user-sidebar-link {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  margin: 2px 10px !important;
  padding: 11px 14px !important;
}
.user-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
}
.user-sidebar-link.active-item, .user-sidebar-link.active {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.18) 0%, rgba(0, 230, 118, 0.04) 100%) !important;
  color: #00e676 !important;
  border: 1px solid rgba(0, 230, 118, 0.35) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15) !important;
}
.user-sidebar-link.active-item i, .user-sidebar-link.active i {
  color: #00e676 !important;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8)) !important;
}

/* --------------------------------------------------------------------------
   3. USER SUMMARY CARD & XP SYSTEM (EARN PAGE TOP)
   -------------------------------------------------------------------------- */
.summary-card.gradient, .user-summary-card {
  background: linear-gradient(135deg, #0e1626 0%, #111d33 50%, #0d1729 100%) !important;
  border: 1px solid rgba(0, 230, 118, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.summary-card.gradient::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 60%) !important;
  pointer-events: none !important;
}
.xp-bar {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.xp-bar-fill {
  background: var(--eb-primary-grad) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.7) !important;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --------------------------------------------------------------------------
   4. OFFERWALL PARTNER CARDS (LUXURY 3D TILES)
   -------------------------------------------------------------------------- */
.fc-partner-card, .partner-card, .offerwall-tile {
  background: linear-gradient(145deg, #131b2e 0%, #0f1626 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding: 16px 12px 14px !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.fc-partner-card::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}
.fc-partner-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(0, 230, 118, 0.5) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.25) !important;
  background: linear-gradient(145deg, #17223b 0%, #121c30 100%) !important;
}
.fc-partner-card:hover::after {
  opacity: 1 !important;
}
.fc-partner-logo {
  width: 76px !important;
  height: 76px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  transition: transform 0.3s ease !important;
}
.fc-partner-card:hover .fc-partner-logo {
  transform: scale(1.08) rotate(-2deg) !important;
}
.fc-partner-logo img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
}
.fc-partner-name {
  font-family: var(--eb-font-heading) !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
}
.fc-partner-name i {
  color: #00e676 !important;
  font-size: 12px !important;
  margin-left: 3px !important;
}
.fc-partner-stars {
  color: #ffd600 !important;
  font-size: 11.5px !important;
  margin: 3px 0 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}
.fc-partner-stars b {
  color: #94a3b8 !important;
  font-size: 11px !important;
  margin-left: 4px !important;
}
.fc-wall-count {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
}
.fc-partner-open {
  background: var(--eb-primary-grad) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.04em !important;
  border-radius: 10px !important;
  padding: 7px 0 !important;
  width: 100% !important;
  margin-top: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.4) !important;
}

/* Bonus Live Pill on Cards */
.fc-bonus-pill {
  background: linear-gradient(135deg, #00e676 0%, #00b34a 100%) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 10.5px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.5) !important;
}
.fc-soon-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4) !important;
}

/* --------------------------------------------------------------------------
   5. FEATURED & HIGH-PAYING OFFERS TILES
   -------------------------------------------------------------------------- */
.fc-offer-hcard, .featured-offer-card, .offer-card {
  background: linear-gradient(145deg, #121a2d 0%, #0e1524 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.fc-offer-hcard:hover, .featured-offer-card:hover, .offer-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  border-color: rgba(0, 230, 118, 0.45) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.2) !important;
  background: linear-gradient(145deg, #16223b 0%, #111a2d 100%) !important;
}
.fc-offer-hcard .payout-tag, .offer-payout-badge {
  background: linear-gradient(135deg, #00e676 0%, #00b34a 100%) !important;
  color: #000000 !important;
  font-family: var(--eb-font-heading) !important;
  font-weight: 900 !important;
  font-size: 13.5px !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.45) !important;
}

/* --------------------------------------------------------------------------
   6. FILTER BAR & BUTTONS
   -------------------------------------------------------------------------- */
.filter-tab-bar, .earn-filter-sticky {
  background: rgba(13, 18, 31, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  padding: 8px !important;
}
.filter-tab-btn, .device-chip {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  transition: all 0.2s ease !important;
}
.filter-tab-btn:hover, .device-chip:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}
.filter-tab-btn.active, .device-chip.active {
  background: var(--eb-primary-grad) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.45) !important;
}

/* Cashout Buttons */
.btn-freecash, .btn-primary.btn-round-md, a.btn-freecash {
  background: var(--eb-primary-grad) !important;
  color: #000000 !important;
  font-family: var(--eb-font-heading) !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: var(--eb-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.btn-freecash:hover, a.btn-freecash:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  color: #000000 !important;
}

/* --------------------------------------------------------------------------
   7. ADMIN PANEL: SAAS SLATE LUXURY OVERHAUL
   -------------------------------------------------------------------------- */
body#page-top {
  background-color: #080c14 !important;
  color: #e2e8f0 !important;
  font-family: var(--eb-font) !important;
}
body#page-top #wrapper {
  background-color: #080c14 !important;
}
body#page-top #content-wrapper {
  background-color: #080c14 !important;
}
body#page-top #content {
  background-color: #080c14 !important;
}

/* Admin Sidebar */
body#page-top #accordionSidebar.sidebar {
  background: #090e1a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.6) !important;
}
body#page-top .sidebar .sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
body#page-top .sidebar .nav-item .nav-link {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
  margin: 2px 10px !important;
  padding: 10px 14px !important;
  transition: all 0.2s ease !important;
}
body#page-top .sidebar .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
}
body#page-top .sidebar .nav-item.active .nav-link {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.04) 100%) !important;
  border: 1px solid rgba(0, 230, 118, 0.35) !important;
  color: #00e676 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15) !important;
}
body#page-top .sidebar .nav-item.active .nav-link i {
  color: #00e676 !important;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.8)) !important;
}

/* Admin Topbar */
body#page-top .topbar, body#page-top nav.navbar.navbar-expand {
  background: rgba(9, 14, 26, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Admin Cards & KPI Boxes */
body#page-top .card {
  background: linear-gradient(145deg, #111a2e 0%, #0d1526 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.25s ease !important;
}
body#page-top .card:hover {
  border-color: rgba(0, 230, 118, 0.3) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 230, 118, 0.12) !important;
}
body#page-top .card-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-family: var(--eb-font-heading) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  padding: 16px 20px !important;
}
body#page-top .kpi-card {
  background: linear-gradient(145deg, #121c33 0%, #0e1629 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.25s ease !important;
}
body#page-top .kpi-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 230, 118, 0.4) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.2) !important;
}
body#page-top .kpi-value {
  font-family: var(--eb-font-heading) !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Admin Tables */
body#page-top .table thead th, body#page-top table.table thead th {
  background: #090e1a !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 14px 18px !important;
}
body#page-top .table td {
  border-color: rgba(255, 255, 255, 0.05) !important;
  padding: 14px 18px !important;
  color: #cbd5e1 !important;
}
body#page-top .table tbody tr {
  transition: background 0.15s ease !important;
}
body#page-top .table tbody tr:hover {
  background: rgba(0, 230, 118, 0.04) !important;
}

/* Admin Inputs & Forms */
body#page-top .form-control, body#page-top select.form-control {
  background: #090f1d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  transition: all 0.2s ease !important;
}
body#page-top .form-control:focus {
  background: #0d1529 !important;
  border-color: #00e676 !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2) !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Admin Action Buttons */
body#page-top .btn-primary, body#page-top .btn-success {
  background: var(--eb-primary-grad) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4) !important;
  transition: all 0.2s ease !important;
}
body#page-top .btn-primary:hover, body#page-top .btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(0, 230, 118, 0.6) !important;
  color: #000000 !important;
}
body#page-top .btn-danger {
  background: var(--eb-danger-grad) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.35) !important;
}
body#page-top .btn-warning {
  background: var(--eb-gold-grad) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(255, 214, 0, 0.35) !important;
}

/* --------------------------------------------------------------------------
   8. ULTRA SHARP SMOOTH SCROLLBARS & MODALS
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080c14; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #00e676; }

.modal-content {
  background: linear-gradient(145deg, #121a2d 0%, #0c1322 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 230, 118, 0.1) !important;
}
.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --------------------------------------------------------------------------
   9. CASHOUT (WITHDRAW) TILES & LEADERBOARD PODIUM
   -------------------------------------------------------------------------- */
.cashout-card {
  background: linear-gradient(145deg, #131b2e 0%, #0e1524 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.cashout-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(0, 230, 118, 0.5) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.25) !important;
}
.podium-box {
  background: linear-gradient(145deg, #131b2e 0%, #0e1524 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.podium-box.rank-1 {
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.15) 0%, #131b2e 100%) !important;
  border: 1.5px solid rgba(255, 214, 0, 0.6) !important;
  box-shadow: 0 0 40px rgba(255, 214, 0, 0.3) !important;
}

/* ==========================================================================
   10. 100% NATIVE MOBILE APP UX SYSTEM (NO-WEBSITE FEEL)
   ========================================================================== */

/* 1. Prevent web browser text selection & long-press menus on UI */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}
body, button, a, .card, .fc-partner-card, .fc-offer-hcard, .mobile-bottom-bar, .navbar, .user-sidebar, .summary-card, .badge, .preset-chip {
  -webkit-user-select: none !important;
  user-select: none !important;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

/* 2. Prevent browser overscroll white bounce */
html, body {
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
}

/* 3. Smooth Spring Touch Scale Feedback (Haptic-like Micro-Interaction) */
button:active, 
a.btn-freecash:active, 
.btn:active,
.wallet-dropdown-btn:active, 
.mobile-bottom-item:active, 
.fc-partner-card:active, 
.fc-offer-hcard:active, 
.cashout-card:active, 
.nav-level-pill:active,
.preset-chip:active {
  transform: scale(0.95) !important;
  transition: transform 0.08s ease !important;
}

/* 4. Native App Mobile Header / App Bar */
@media (max-width: 991.98px) {
  .navbar {
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    height: auto !important;
  }
  .overall-container {
    padding-top: max(78px, calc(68px + env(safe-area-inset-top))) !important;
    padding-bottom: max(90px, calc(76px + env(safe-area-inset-bottom))) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }
}

/* 5. Native App Mobile Bottom Navigation Tab Bar */
.mobile-bottom-bar {
  display: none;
}
@media (max-width: 991.98px) {
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    background: rgba(8, 12, 20, 0.94) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 6px 8px max(8px, env(safe-area-inset-bottom)) !important;
    z-index: 1040 !important;
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6) !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .mobile-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    padding: 6px 10px !important;
    border-radius: 14px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 58px !important;
    position: relative !important;
  }
  .mobile-bottom-item i {
    font-size: 19px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }
  .mobile-bottom-item span {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
  }
  .mobile-bottom-item.active {
    color: #00e676 !important;
    background: rgba(0, 230, 118, 0.12) !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.15) !important;
  }
  .mobile-bottom-item.active i {
    transform: translateY(-2px) scale(1.1) !important;
    color: #00e676 !important;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.7)) !important;
  }
  .mobile-bottom-item.active span {
    color: #ffffff !important;
    font-weight: 800 !important;
  }
  .mobile-bottom-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 16px !important;
    height: 3px !important;
    background: #00e676 !important;
    border-radius: 999px !important;
    box-shadow: 0 0 8px #00e676 !important;
  }
}

/* 6. Native Mobile Bottom-Sheet Modals (Slide-up Sheet) */
@media (max-width: 576px) {
  .modal.fade .modal-dialog {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .modal.show .modal-dialog {
    transform: translateY(0) !important;
  }
  .modal-content {
    border-radius: 26px 26px 0 0 !important;
    border-bottom: none !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.8) !important;
  }
  .modal-content::before {
    content: '' !important;
    display: block !important;
    width: 42px !important;
    height: 4.5px !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    margin: 10px auto 4px !important;
  }
}

/* 7. Smart Native PWA Install Banner & Toast */
.pwa-install-pill {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1039;
  background: linear-gradient(135deg, #0e1628 0%, #121c32 100%);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 230, 118, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pwaSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.pwa-install-pill .pwa-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}
.pwa-install-pill .pwa-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}
.pwa-install-pill .pwa-btn {
  background: var(--eb-primary-grad);
  color: #000;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.4);
}
.pwa-install-pill .pwa-close {
  color: #94a3b8;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
}


