/* ==========================================================================
   TurboGram Ultra-Premium Apple iOS 18 Web3 Design System
   Crafted with Cupertino Precision, Frosted Glass & Tactile Haptic Physics
   ========================================================================== */

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

:root {
  /* Apple iOS System Palette */
  --ios-blue: #24a1de;
  --ios-indigo: #6366f1;
  --ios-purple: #8247e5;
  --ios-polygon: #7b3fe4;
  --ios-mint: #34c759;
  --ios-teal: #30b0c7;
  --ios-orange: #ff9500;
  --ios-pink: #ff2d55;
  --ios-red: #ff3b30;

  /* Cyber Neon Lime Accent (From User Reference Screenshot) */
  --accent-lime: #ccff00;
  --accent-lime-hover: #bcee00;
  --accent-lime-text: #081200;
  --shadow-lime-glow: 0 4px 20px rgba(204, 255, 0, 0.35);
  --shadow-lime-sm: 0 2px 10px rgba(204, 255, 0, 0.25);

  /* Premium Electric Web3 Gradients */
  --grad-primary: #ccff00;
  --grad-primary-glow: 0 4px 18px rgba(204, 255, 0, 0.32);
  --grad-polygon: linear-gradient(135deg, #7b3fe4 0%, #8247e5 50%, #6b21a8 100%);
  --grad-apple-blue: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
  --grad-telegram: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-card-obsidian: linear-gradient(145deg, #181d45 0%, #1e2456 50%, #171c46 100%);
  --grad-card-titanium: linear-gradient(145deg, #222960 0%, #1a204c 100%);

  /* Deep Cyber Obsidian Surfaces - Luminous Midnight Sapphire */
  --bg-app: #0e122b;
  --bg-card: rgba(23, 29, 66, 0.72);
  --bg-card-solid: #171d44;
  --bg-card-hover: rgba(32, 40, 88, 0.85);
  --bg-input: rgba(28, 35, 78, 0.78);
  --bg-dock: rgba(18, 23, 54, 0.82);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Helvetica Neue", sans-serif;

  /* Borders & Glassmorphic Highlights */
  --border-glass: rgba(255, 255, 255, 0.13);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.20);
  --shadow-glass: 0 12px 32px -4px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  --shadow-float: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-dark: 0 20px 45px -12px rgba(0, 0, 0, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);

  /* Corner Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 26px;
  --r-pill: 9999px;

  /* Transitions */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Anti-Inspection Security */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important; /* Disables native iOS Safari callout sheet & domain disclosure */
  -webkit-user-select: none !important;   /* Disables text selection across webkit */
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input, textarea {
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

img, a, svg {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

img {
  pointer-events: none !important; /* Disables image long-press popups and link disclosures completely */
}

/* Gram Icon & Premium Animations */
.gram-icon-tiny {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(42, 171, 238, 0.4));
}

.gram-icon-medium {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(42, 171, 238, 0.5));
}

.gram-icon-large {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(42, 171, 238, 0.55));
  animation: gramPulseFloat 2.6s ease-in-out infinite alternate;
}

@keyframes gramPulseFloat {
  0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 6px 14px rgba(42, 171, 238, 0.4)); }
  100% { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 10px 22px rgba(42, 171, 238, 0.75)); }
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-ios);
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 110px;
  background-color: #0e122b;
  background-image: 
    radial-gradient(at 15% 10%, rgba(99, 102, 241, 0.24) 0px, transparent 55%),
    radial-gradient(at 85% 15%, rgba(130, 71, 229, 0.22) 0px, transparent 55%),
    radial-gradient(at 50% 85%, rgba(204, 255, 0, 0.08) 0px, transparent 65%);
  background-attachment: fixed;
}

/* Splash Developer Watermark */
.splash-dev-watermark {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.2px;
  z-index: 10;
}

.splash-dev-watermark b {
  color: #f1f5f9;
  font-weight: 750;
}

/* ==========================================================================
   Splash Screen - Minimalist Apple Keynote Elegance (Cyber Dark)
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #0c0e21;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.4s var(--smooth), visibility 0.4s ease;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Animated rotating luxury conic glow ring */
.splash-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 38px;
  background: conic-gradient(from 0deg, var(--accent-lime), #00d2ff, #a855f7, var(--accent-lime));
  animation: splashConicRotate 2.4s linear infinite;
  filter: blur(1px) drop-shadow(0 0 16px rgba(204, 255, 0, 0.65));
  z-index: 0;
}

/* Inner surface barrier */
.splash-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 33px;
  background: #0c0e21;
  z-index: 1;
}

.splash-logo-wrap .maxpol-badge-img {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
  animation: splashPulseBadge 2.8s ease-in-out infinite;
}

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

@keyframes splashPulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.splash-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin-bottom: 4px;
}

.splash-title span.grad {
  background: linear-gradient(135deg, var(--accent-lime) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.splash-progress-track {
  width: 190px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 10px;
}

.splash-progress-bar {
  height: 100%;
  width: 25%;
  background: var(--accent-lime);
  border-radius: var(--r-pill);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 12px var(--accent-lime);
}

.splash-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-lime);
  letter-spacing: 0.5px;
}
  font-size: 11px;
  font-weight: 700;
  color: var(--ios-indigo);
  letter-spacing: 0.5px;
}

.splash-footer {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #64748b;
  opacity: 0.75;
  text-transform: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  text-align: center;
}

/* ==========================================================================
   Toast Notifications - Apple Dynamic Island Pill
   ========================================================================== */
.clean-toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.clean-toast-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: toastPop 0.35s var(--spring);
  pointer-events: auto;
}

@keyframes toastPop {
  0% { transform: translateY(-30px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Top Header Bar - Cupertino Navigation Bar
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 800;
  padding: 12px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(12, 14, 33, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s var(--smooth);
}

.user-header-left:active {
  transform: scale(0.97);
}

.user-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.user-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-header-text h3 {
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -0.3px;
  color: #ffffff;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-header-text p {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-lime);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 750;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Main Container & Tabs
   ========================================================================== */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.tab-content {
  display: none;
  opacity: 0;
}

.tab-content.active {
  display: block;
  animation: iosTabEnterSmooth 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

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

/* ==========================================================================
   Apple iOS Glass Cards System
   ========================================================================== */
.white-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s var(--smooth), box-shadow 0.2s ease;
}

.white-card:active {
  transform: scale(0.995);
}

.card-tiny-title {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ==========================================================================
   Hero Balance Card - Apple Holographic Obsidian Edition
   ========================================================================== */
.balance-card-clean {
  background: var(--grad-card-obsidian);
  color: #ffffff;
  border-radius: var(--r-xl);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Ambient glow & light streaks on balance card */
.balance-card-clean::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(130, 71, 229, 0.5) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.balance-card-clean::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(25px);
}

.balance-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.balance-caption {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance-large-num {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #ffffff;
  line-height: 1;
}

.balance-unit-txt {
  font-size: 16px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.5px;
}

.balance-usd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  backdrop-filter: blur(10px);
}

.balance-gem-ring {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.balance-buttons-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   Home Quick Actions Grid - Telegram Settings / Business Squircle Style
   ========================================================================== */
.home-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.quick-action-item {
  background: var(--bg-card);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.2s var(--smooth);
  user-select: none;
}

.quick-action-item:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.quick-action-squircle {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.quick-action-item:hover .quick-action-squircle {
  transform: translateY(-2px);
}

.bg-grad-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 6px 14px -2px rgba(109, 40, 217, 0.38);
}

.bg-grad-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 14px -2px rgba(2, 132, 199, 0.38);
}

.bg-grad-green {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 6px 14px -2px rgba(16, 185, 129, 0.38);
}

.bg-grad-orange {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  box-shadow: 0 6px 14px -2px rgba(249, 115, 22, 0.38);
}

.quick-action-item span {
  font-size: 11.5px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.1px;
}

/* ==========================================================================
   Buttons System (Tactile Apple Physics)
   ========================================================================== */
.btn-purple-gradient {
  background: var(--grad-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--grad-primary-glow);
  transition: all 0.2s var(--smooth);
}

.btn-purple-gradient:active {
  transform: scale(0.96);
  opacity: 0.92;
}

.btn-white-card {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: all 0.2s var(--smooth);
}

.btn-white-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Bento Grid - Apple Health / Fitness Analytics
   ========================================================================== */
.section-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-row-header h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.view-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ios-indigo);
  cursor: pointer;
  transition: opacity 0.2s;
}

.view-link:active {
  opacity: 0.7;
}

.progress-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.progress-single-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s var(--smooth);
}

.progress-single-box:active {
  transform: scale(0.96);
}

.circle-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.bg-cyan-tint {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.bg-orange-tint {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.bg-purple-tint {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.box-stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.box-stat-val {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

/* ==========================================================================
   Keynote Banner - Explore & Earn (Cyber Dark)
   ========================================================================== */
.explore-earn-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-glass);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.explore-earn-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.explore-text-side h4 {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 4px;
}

.explore-text-side p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 220px;
  line-height: 1.4;
}

.btn-charcoal-pill {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-lime-sm);
  transition: transform 0.2s var(--smooth);
}

.btn-charcoal-pill:active {
  transform: scale(0.95);
  background: var(--accent-lime-hover);
}

/* ==========================================================================
   Tasks Screen (Cyber Dark / iPhone Aesthetic - From Reference Screenshot)
   ========================================================================== */
.tasks-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 0 4px;
}

.tasks-header-info {
  display: flex;
  flex-direction: column;
}

.tasks-title {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.6px;
  color: #ffffff;
  line-height: 1.15;
}

.tasks-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tasks-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 750;
  color: #ffffff;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDotGlow 1.8s ease-in-out infinite;
}

@keyframes pulseDotGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

/* Dynamic Category Chips Bar */
.tasks-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 14px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-chip {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-chip:active {
  transform: scale(0.96);
}

.category-chip.active {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-weight: 800;
  border-color: var(--accent-lime);
  box-shadow: var(--shadow-lime-sm);
  transform: translateY(-1px);
}

/* Task Cards Grid */
.tasks-grid-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mission-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.2s ease;
  animation: taskCardSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.mission-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

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

.mission-card-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

.mission-squircle-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.mission-info-text {
  flex: 1;
  min-width: 0;
}

.mission-info-text h4 {
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -0.2px;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.reward-pill-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent-lime);
  padding: 2.5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(204, 255, 0, 0.22);
}

.category-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2.5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.task-error-cue {
  color: #f87171;
  font-size: 11px;
  font-weight: 750;
  margin-top: 4px;
  display: none;
  line-height: 1.2;
}

.mission-card-right {
  flex-shrink: 0;
}

/* Compact Task Action Button */
.btn-task-action {
  min-width: 76px;
  height: 33px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.1px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-task-action.state-open {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  box-shadow: var(--shadow-lime-glow);
}

.btn-task-action.state-open:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

.btn-task-action.state-open:active {
  transform: scale(0.95);
}

.btn-task-action.state-claim {
  background: linear-gradient(135deg, #ccff00 0%, #bcee00 100%);
  color: var(--accent-lime-text);
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.5);
  animation: pulseClaimNeon 1.5s infinite;
}

@keyframes pulseClaimNeon {
  0%, 100% { box-shadow: 0 2px 14px rgba(204, 255, 0, 0.45); }
  50% { box-shadow: 0 2px 24px rgba(204, 255, 0, 0.75); }
}

.btn-task-action.state-done {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: default;
}

/* ==========================================================================
   Withdrawal Page - Glossy Action Controls
   ========================================================================== */
.btn-lime-gradient {
  background: var(--accent-lime);
  color: #081200;
  font-weight: 850;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-lime-gradient:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

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

.withdraw-secondary-btns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-glass-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-glass-proof {
  border-color: rgba(36, 161, 222, 0.3);
  color: #38bdf8;
}

.btn-glass-proof:hover {
  background: rgba(36, 161, 222, 0.12);
}

/* ==========================================================================
   Friends & Profile Tab - Refined Apple iOS Sleek Aesthetic
   ========================================================================== */
.friends-profile-strip {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 12px;
}

.friends-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friends-strip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.friends-strip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friends-strip-details h4 {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.2;
}

.friends-strip-details p {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-top: 1px;
}

.friends-balance-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(36, 161, 222, 0.09);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  border: 1px solid rgba(36, 161, 222, 0.22);
  box-shadow: 0 2px 8px rgba(36, 161, 222, 0.08);
}

.two-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.gradient-stat-block {
  border-radius: 18px;
  padding: 12px 14px;
  min-height: 72px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gradient-stat-purple {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 6px 18px -3px rgba(79, 70, 229, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.gradient-stat-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 6px 18px -3px rgba(5, 150, 105, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.stat-header-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.88;
}

.stat-hero-number {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-top: 4px;
}

.stat-footnote {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 0 4px;
}

.invite-card-clean {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-glass);
  margin-bottom: 14px;
}

.invite-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.copy-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.copy-input-container input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.btn-white-copy {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-lime-sm);
  transition: all 0.2s var(--smooth);
}

.btn-white-copy:active {
  transform: scale(0.96);
  background: var(--accent-lime-hover);
}

.btn-invite-wide {
  width: 100%;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lime-glow);
  transition: all 0.2s var(--smooth);
}

.btn-invite-wide svg {
  fill: var(--accent-lime-text) !important;
}

.btn-invite-wide:active {
  transform: scale(0.97);
  background: var(--accent-lime-hover);
}

.invite-reward-note {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-top: 10px;
}

/* ==========================================================================
   Home Screen: Attached Balance Actions & Trio Actions Grid
   ========================================================================== */
.balance-card-actions-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.balance-strip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.balance-strip-btn:active {
  transform: scale(0.96);
}

.btn-strip-withdraw {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  box-shadow: var(--shadow-lime-sm);
}

.btn-strip-withdraw:active {
  background: var(--accent-lime-hover);
}

.btn-strip-history {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.home-trio-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.trio-action-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.trio-action-card:active {
  transform: scale(0.94);
}

.trio-icon-squircle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trio-icon-gram-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.trio-icon-gram-wrapper svg,
.trio-icon-gram-wrapper div {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  overflow: visible !important;
}

.trio-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.trio-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ==========================================================================
   Compact How It Works (Micro 3-Step Flow)
   ========================================================================== */
.how-compact-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-glass);
  margin-bottom: 14px;
}

.how-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.how-compact-badge {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.8px;
  color: #f59e0b;
}

.how-compact-tag {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--ios-purple);
}

.how-compact-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.how-compact-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-num-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.step-text-wrap b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.step-text-wrap p {
  font-size: 9.5px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.step-arrow-divider {
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.45;
  padding: 0 2px;
  user-select: none;
}

/* ==========================================================================
   Referral Friends List Items
   ========================================================================== */
.referral-friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 14px;
  margin-bottom: 8px;
  animation: taskCardSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.referral-friend-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.referral-friend-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #a855f7 0%, #8247e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.referral-friend-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.referral-friend-user {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.referral-status-pill {
  font-size: 10.5px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.pill-rewarded {
  background: #dcfce7;
  color: #15803d;
}

.pill-progress {
  background: #fef3c7;
  color: #b45309;
}

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

.invite-reward-note {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ios-indigo);
  margin-top: 12px;
}

/* ==========================================================================
   Withdraw Tab - Apple Cash Experience
   ========================================================================== */
.withdraw-nav-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.btn-back-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--smooth);
}

.btn-back-round:active {
  transform: scale(0.92);
}

.withdraw-headings h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--text-primary);
}

.withdraw-headings p {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.input-rounded-clean {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin-bottom: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.input-rounded-clean:focus {
  border-color: var(--accent-lime) !important;
  background-color: rgba(28, 35, 78, 0.95) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25) !important;
}

/* Suppress WebKit autofill white flash */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #181d45 inset !important;
  box-shadow: 0 0 0px 1000px #181d45 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.active-chip {
  background: var(--ios-blue) !important;
  color: #ffffff !important;
  border-color: var(--ios-blue) !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
}

/* ==========================================================================
   Admin Operations Tab - Cupertino Form Controls
   ========================================================================== */
.mode-chip {
  transition: all 0.2s var(--smooth);
}

.mode-chip.active {
  background: var(--ios-indigo);
  color: #ffffff;
  border-color: var(--ios-indigo);
  box-shadow: 0 4px 14px rgba(88, 86, 214, 0.3);
}

/* ==========================================================================
   Floating Bottom Navigation Dock - Apple iOS Glossy 4-Tab Dock
   ========================================================================== */
.floating-bottom-dock {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(18, 23, 54, 0.82);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);
}

.dock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex: 1;
  text-align: center;
  user-select: none;
}

.dock-tab svg {
  width: 22px;
  height: 22px;
  stroke: #94a3b8;
  transition: transform 0.2s var(--spring), stroke 0.2s ease;
}

.dock-tab span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.1px;
  transition: color 0.2s ease;
}

.dock-tab:active {
  transform: scale(0.92);
}

.dock-tab.active {
  color: var(--accent-lime);
}

.dock-tab.active svg {
  stroke: var(--accent-lime) !important;
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.55));
  transform: scale(1.1);
}

/* MAX POL Badges & Aesthetic Artworks */
.maxpol-badge-img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  display: block;
}

.header-badge-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(130, 71, 229, 0.4);
}

.balance-badge-img {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(130, 71, 229, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* Responsive tuning for small phones */
@media (max-width: 360px) {
  .balance-large-num {
    font-size: 32px;
  }
  .floating-bottom-dock {
    bottom: 12px;
    left: 10px;
    right: 10px;
  }
}

/* ==========================================================================
   Apple iOS 18 Bottom Sheet Modal (Channel Join & Verify)
   ========================================================================== */
.ios-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ios-bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: rgba(18, 22, 51, 0.96);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 16px 20px 32px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ios-modal-backdrop.active .ios-bottom-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 38px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 0 auto 16px;
}

.sheet-icon-squircle {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(36, 161, 222, 0.35);
}

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

.sheet-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 0 8px;
}

.sheet-channel-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.preview-badge {
  background: #24a1de;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.preview-target {
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sheet-go {
  background: linear-gradient(135deg, #0088cc 0%, #24a1de 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(36, 161, 222, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-sheet-claim {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lime-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sheet-claim:active {
  transform: scale(0.98);
  background: var(--accent-lime-hover);
}

.btn-sheet-cancel {
  background: transparent;
  color: var(--text-tertiary);
  border: none;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Admin Customizer Textarea & Helper Tags */
.textarea-rounded-clean {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-input);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.textarea-rounded-clean:focus {
  background: #1e224d;
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.15);
}

.helper-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -6px;
  margin-bottom: 12px;
}

.helper-tag-chip {
  background: rgba(204, 255, 0, 0.12);
  color: var(--accent-lime);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.helper-tag-chip:active {
  transform: scale(0.95);
}

/* ========================================================
   Clean & Solid Cyber Obsidian Mandatory Channel Gate
   (Matches TaskGram Dark Cyber Theme & Clean Layout)
   ======================================================== */
.mandatory-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mandatory-gate-overlay.gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mandatory-gate-card {
  background: linear-gradient(155deg, #181d45 0%, #15193d 50%, #111432 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: 100%;
  max-width: 380px;
  padding: 24px 20px 22px;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  text-align: left;
  position: relative;
  box-sizing: border-box;
  animation: gatePopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gatePopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gate-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.gate-badge-circle {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -4px rgba(41, 182, 246, 0.45);
}

.gate-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gate-heading {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.25;
}

.gate-subtext {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.gate-channels-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.gate-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gate-channel-card:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.07);
}

.gate-channel-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gate-channel-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gate-channel-icon-pill.announcement {
  background: rgba(41, 182, 246, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.gate-channel-icon-pill.proof {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.gate-channel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.gate-channel-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.15s ease;
}

.gate-channel-join-btn.proof-btn {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}

.gate-channel-join-btn:active {
  transform: scale(0.95);
}

.btn-gate-verify-action {
  width: 100%;
  padding: 14px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ccff00 0%, #a3e635 100%);
  color: #0b1a04;
  font-size: 15.5px;
  font-weight: 850;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(204, 255, 0, 0.45);
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
}

.btn-gate-verify-action:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.btn-gate-verify-action svg {
  stroke: #0b1a04;
}

.gate-error-banner {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake-animate {
  animation: shake 0.4s ease;
}
  font-size: 11.5px;
  font-weight: 700;
  display: none;
  animation: gateShake 0.4s ease;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   Apple iOS 18 Design System - Quick Actions, Check-in & Wallet Screens
   (Matches Reference Screenshots 1 & 2)
   ========================================================================== */

/* Section Labels */
.section-label-ios {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #7e85a6;
  text-transform: uppercase;
  margin: 22px 6px 9px;
}

/* 1. Connect Wallet Strip (Screenshot 1) */
.home-connect-wallet-strip {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-connect-wallet-strip:active {
  transform: scale(0.985);
  background: rgba(30, 26, 62, 0.85);
}

.wallet-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.wallet-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.wallet-strip-left h4 {
  font-size: 14px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-strip-left p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-wallet-connect-pill {
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(204, 255, 0, 0.35);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-wallet-connect-pill:active {
  transform: scale(0.94);
}

/* 2. Daily Check-in Card (Screenshot 1) */
.home-checkin-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 16px;
}

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

.checkin-flame-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkin-header-row h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.checkin-header-row p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.checkin-week-badge {
  font-size: 11px;
  font-weight: 800;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: 10px;
}

.checkin-today-tomorrow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.checkin-subbox {
  background: rgba(14, 11, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.subbox-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #8f96b5;
  margin-bottom: 3px;
}

.subbox-val {
  font-size: 13.5px;
  font-weight: 850;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkin-days-track {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
}

.checkin-day-pill {
  flex: 1;
  background: rgba(14, 11, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.checkin-day-pill .day-num {
  font-size: 10.5px;
  font-weight: 800;
  color: #8f96b5;
}

.checkin-day-pill .day-icon {
  font-size: 13px;
  color: #64748b;
}

.checkin-day-pill.active {
  background: rgba(204, 255, 0, 0.12);
  border-color: var(--accent-lime);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.25);
}

.checkin-day-pill.active .day-num {
  color: var(--accent-lime);
}

.btn-checkin-claim {
  width: 100%;
  height: 48px;
  background: var(--accent-lime);
  color: var(--accent-lime-text);
  border: none;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-lime-glow);
  transition: all 0.2s ease;
}

.btn-checkin-claim:active {
  transform: scale(0.98);
  background: var(--accent-lime-hover);
}

.btn-checkin-claim:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* 3. iOS Grouped List (Screenshot 1 & 2) */
.ios-grouped-list {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ios-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.18s ease;
  user-select: none;
}

.ios-list-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.ios-list-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-left: 64px;
}

.ios-squircle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ios-item-text {
  flex: 1;
  min-width: 0;
  margin-left: 14px;
}

.ios-item-text h4 {
  font-size: 14.5px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.ios-item-text p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-chevron {
  width: 16px;
  height: 16px;
  color: #5a6182;
  flex-shrink: 0;
  stroke-width: 2.5;
}

/* 4. Wallet Tab Hero & Actions (Screenshot 2) */
.wallet-ios-header {
  margin-bottom: 16px;
  padding: 4px 4px 0;
}

.wallet-ios-title {
  font-size: 26px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.6px;
}

.wallet-hero-card {
  text-align: center;
  padding: 24px 16px 20px;
  margin-bottom: 20px;
}

.wallet-hero-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #7e85a6;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.wallet-hero-amount {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.wallet-hero-gram-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.wallet-gram-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wallet-conn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 11, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8f96b5;
  cursor: pointer;
  transition: all 0.18s ease;
}

.wallet-conn-status-pill:hover {
  background: rgba(30, 26, 62, 0.85);
  color: #ffffff;
}

/* Exactly 2 Action Buttons (Screenshot 2) */
.wallet-two-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.wallet-action-btn {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.wallet-action-btn:active {
  transform: scale(0.96);
  background: rgba(32, 28, 68, 0.85);
}

.action-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  transition: transform 0.2s var(--spring);
}

.wallet-action-btn:hover .action-btn-circle {
  transform: scale(1.08);
  background: rgba(204, 255, 0, 0.15);
}

.wallet-action-btn span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.1px;
}

/* 5. Modals & Sheets */
.modal-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.modal-input-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #7e85a6;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sheet-balance-strip {
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #ffffff;
}

.sheet-balance-strip b {
  color: var(--accent-lime);
  font-size: 13.5px;
  font-weight: 850;
}

.btn-link-action {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-lime);
  cursor: pointer;
  padding: 0;
}

.btn-max-tag {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(204, 255, 0, 0.15);
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--accent-lime);
  font-size: 11px;
  font-weight: 850;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* Premium 3-Button Segmented History Filter (Pending, Completed, Rejected) */
.history-filter-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.history-filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: #8f96b5;
  font-size: 11.5px;
  font-weight: 750;
  padding: 7px 4px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.history-filter-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.history-filter-btn:hover {
  color: #ffffff;
}

.history-filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.history-filter-btn.active svg {
  opacity: 1;
}

.history-filter-btn[data-filter="pending"].active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.3);
}

.history-filter-btn[data-filter="completed"].active {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.3);
}

.history-filter-btn[data-filter="rejected"].active {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.3);
}

.history-filter-count {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1.2;
}

.history-filter-btn.active .history-filter-count {
  background: rgba(0, 0, 0, 0.3);
}

.modal-history-scroll-list {
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.modal-history-item {
  background: rgba(14, 11, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.modal-history-item-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.modal-history-item-wallet {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.2;
}

.modal-history-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

.btn-sheet-close-x {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Invite Tab (Screenshot 1 Exact Implementation)
   ========================================================================== */
.invite-top-header {
  margin-bottom: 14px;
  padding: 0 4px;
}

.invite-top-title {
  font-size: 26px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 3px 0;
}

.invite-top-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.invite-hero-action-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 20px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card-dark);
}

.invite-action-title {
  font-size: 18px;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.invite-action-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.invite-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.invite-copy-row input {
  flex: 1;
  background: rgba(14, 18, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.btn-copy-squircle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-squircle:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

.btn-share-invite-lime {
  width: 100%;
  background: var(--accent-lime);
  color: #000000;
  border: none;
  border-radius: 18px;
  padding: 14px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-share-invite-lime:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(204, 255, 0, 0.2);
}

/* Micro Perk / Info Strip with Gift Squircle */
.invite-info-card-gift {
  background: rgba(23, 29, 66, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.invite-gift-squircle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.invite-gift-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Two Stats Grid */
.invite-two-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.invite-stat-card-clean {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 14px 16px;
}

.invite-stat-value {
  font-size: 22px;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.2;
}

.invite-stat-caption {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Empty Dashed Referral Card */
.friends-empty-dashed-card {
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 36px 18px;
  text-align: center;
  background: rgba(18, 23, 54, 0.35);
}

.friends-empty-gift-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.friends-empty-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
