/* ==========================================================================
   Cash EarnIn — Clean, Funky & Kid-Style Candy Pop Theme
   Joyful, vibrant, tactile arcade design system for Telegram Mini App & Web
   ========================================================================== */

:root {
  /* Candy & Neon Palette */
  --primary: #ff2a8d;
  --primary-hover: #e01b77;
  --primary-gradient: linear-gradient(135deg, #ff2a8d 0%, #8b5cf6 100%);
  --primary-glow: rgba(255, 42, 141, 0.45);

  --accent: #00f2fe;
  --accent-hover: #00c9d4;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-glow: rgba(0, 242, 254, 0.45);

  --success: #00f59b;
  --success-dark: #059669;
  --success-gradient: linear-gradient(135deg, #00f59b 0%, #10b981 100%);
  --success-glow: rgba(0, 245, 155, 0.4);

  --warning: #ffbe0b;
  --warning-dark: #d97706;
  --warning-gradient: linear-gradient(135deg, #ffbe0b 0%, #fb5607 100%);
  --warning-glow: rgba(255, 190, 11, 0.45);

  --danger: #ff0054;
  --danger-gradient: linear-gradient(135deg, #ff0054 0%, #ff5400 100%);

  --purple: #a855f7;
  --purple-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);

  /* Backgrounds & Glass Surfaces */
  --bg-main: #0c0824;
  --bg-card: rgba(26, 17, 60, 0.85);
  --bg-card-hover: rgba(40, 26, 92, 0.95);
  --bg-card-subtle: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(14, 9, 38, 0.85);
  --nav-bg: rgba(18, 12, 48, 0.92);

  /* Typography Colors */
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-yellow: #ffd60a;

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.12);
  --border-candy: rgba(255, 255, 255, 0.25);
  --border-glow: rgba(255, 42, 141, 0.3);

  /* Playful Rounded Shapes */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* 3D Tactile Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-btn-pink: 0 5px 0 #9d174d, 0 10px 20px rgba(255, 42, 141, 0.35);
  --shadow-btn-cyan: 0 5px 0 #0369a1, 0 10px 20px rgba(0, 242, 254, 0.35);
  --shadow-btn-green: 0 5px 0 #047857, 0 10px 20px rgba(0, 245, 155, 0.35);
  --shadow-btn-gold: 0 5px 0 #b45309, 0 10px 20px rgba(255, 190, 11, 0.35);

  --font-family: 'Fredoka', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Telegram Theme Fallbacks */
body.in-telegram {
  --bg-main: var(--tg-theme-bg-color, #0c0824);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 42, 141, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(0, 242, 254, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(255, 190, 11, 0.12) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: 0.2px;
}

/* Mobile Wrapper */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 95px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
}

/* Sticky App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--warning-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(255, 190, 11, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  border: 2px solid #fff;
  animation: logoWobble 4s ease-in-out infinite;
}

@keyframes logoWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.05); }
  75% { transform: rotate(5deg) scale(1.05); }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #ffffff 20%, #ffe600 70%, #ff2a8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

.icon-btn:active {
  transform: translateY(2px) scale(0.92);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px var(--danger);
  animation: pulseDot 1.5s infinite alternate;
}

@keyframes pulseDot {
  from { transform: scale(0.9); }
  to { transform: scale(1.2); }
}

.user-avatar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.user-avatar-chip .avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 0.85rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 42, 141, 0.4);
}

/* Page Views */
.page-view {
  display: none;
  padding: 16px 16px 30px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-view.active {
  display: block;
}

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

/* User Greeting Header */
.user-welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 2px 4px;
}

.user-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

.user-display-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Main Balance Card — Arcade Candy Jackpot Box
   ========================================================================== */
.balance-card {
  background: linear-gradient(135deg, #7928ca 0%, #ff0080 50%, #ffbe0b 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 35px rgba(255, 0, 128, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

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

.balance-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 6px;
  display: inline-block;
  background: rgba(0,0,0,0.2);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.balance-points-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.balance-points-val {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}

.balance-gem-icon {
  font-size: 2.2rem;
  color: #ffe600;
  filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.8));
  animation: gemFloat 2.5s ease-in-out infinite alternate;
}

@keyframes gemFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-5px) rotate(8deg); }
}

.balance-rupee-val {
  font-size: 1.25rem;
  color: #fffa65;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.balance-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Stats Grid (Pill Boxes)
   ========================================================================== */
.stats-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.stat-icon-wrap.green {
  background: var(--success-gradient);
  color: #064e3b;
  box-shadow: 0 4px 12px var(--success-glow);
}

.stat-icon-wrap.orange {
  background: var(--warning-gradient);
  color: #fff;
  box-shadow: 0 4px 12px var(--warning-glow);
}

.stat-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-info-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

/* Section Title Headers */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: rgba(0, 242, 254, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.3);
  transition: all 0.15s ease;
}

.section-link:active {
  transform: scale(0.94);
}

/* ==========================================================================
   Daily Bonus Banner — Funky Flame Streak
   ========================================================================== */
.daily-banner-card {
  background: linear-gradient(135deg, #fb5607 0%, #ff006e 50%, #8338ec 100%);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(255, 0, 110, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.daily-banner-card:active {
  transform: scale(0.97);
}

.daily-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.daily-flame-icon {
  font-size: 2.3rem;
  animation: flameBounce 1.2s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 190, 11, 0.8));
}

@keyframes flameBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.15) rotate(5deg); }
}

.daily-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.daily-banner-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fef08a;
}

/* ==========================================================================
   Quick Earn Grid (Game Booster Tiles)
   ========================================================================== */
.earn-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.earn-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.earn-card:active {
  transform: translateY(3px) scale(0.97);
}

.earn-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid #fff;
}

.earn-card.tap .earn-card-icon {
  background: var(--warning-gradient);
  color: #fff;
  box-shadow: 0 6px 18px var(--warning-glow);
}

.earn-card.ad .earn-card-icon {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.earn-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}

.earn-card-reward {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(0, 245, 155, 0.12);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.earn-card-progress {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ==========================================================================
   TAP TO EARN — Interactive Big 3D Coin Button
   ========================================================================== */
.tap-view-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 20px;
}

.tap-stats-header {
  margin-bottom: 20px;
  width: 100%;
}

.tap-per-tap-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 42, 141, 0.25), rgba(168, 85, 247, 0.25));
  color: #ff94d2;
  border: 2px solid rgba(255, 42, 141, 0.4);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(255, 42, 141, 0.2);
}

.tap-counter-display {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tap-subtext {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Progress bar with candy stripes */
.custom-progress-wrap {
  width: 100%;
  max-width: 320px;
  background: rgba(15, 10, 35, 0.8);
  height: 16px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px auto;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
  position: relative;
}

.custom-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff2a8d, #ffbe0b, #00f59b);
  background-size: 300% 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 190, 11, 0.6);
  animation: candyBarShimmer 3s ease infinite;
}

@keyframes candyBarShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Giant Interactive Tap Coin Button */
.tap-coin-btn {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff677 0%, #ffbe0b 35%, #f77f00 70%, #d62828 100%);
  border: 8px solid #ffea75;
  box-shadow: 
    0 14px 0 #9e1a1a,
    0 22px 35px rgba(255, 190, 11, 0.45),
    inset 0 4px 10px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1), box-shadow 0.08s ease;
  margin: 15px auto 30px;
  outline: none;
  animation: coinIdleFloat 3s ease-in-out infinite alternate;
}

@keyframes coinIdleFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.tap-coin-btn:active {
  transform: translateY(10px) scale(0.93) rotate(-2deg);
  box-shadow: 
    0 4px 0 #9e1a1a,
    0 10px 20px rgba(255, 190, 11, 0.3),
    inset 0 6px 15px rgba(0, 0, 0, 0.4);
}

.tap-coin-icon {
  font-size: 4.2rem;
  color: #ffffff;
  filter: drop-shadow(0 4px 8px rgba(180, 40, 0, 0.5));
  margin-bottom: 2px;
}

.tap-coin-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 3px 6px rgba(150, 20, 0, 0.8);
  letter-spacing: 2px;
}

/* Sparkles on coin */
.coin-sparkle {
  position: absolute;
  font-size: 1.3rem;
  pointer-events: none;
  animation: sparkleTwinkle 2s infinite alternate;
}

.coin-sparkle.sp-1 { top: 18px; left: 32px; animation-delay: 0s; }
.coin-sparkle.sp-2 { bottom: 24px; right: 28px; animation-delay: 0.6s; }
.coin-sparkle.sp-3 { top: 38px; right: 26px; animation-delay: 1.2s; }

@keyframes sparkleTwinkle {
  0% { transform: scale(0.7) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.3) rotate(30deg); opacity: 1; filter: drop-shadow(0 0 6px #fff); }
}

/* Floating Particles Tap Animation */
.floating-point-text {
  position: absolute;
  color: #ffe600;
  font-size: 1.8rem;
  font-weight: 900;
  pointer-events: none;
  animation: floatUpFunky 0.75s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px #ff2a8d;
  z-index: 100;
  white-space: nowrap;
}

@keyframes floatUpFunky {
  0% { opacity: 1; transform: translateY(0) scale(0.8) rotate(0deg); }
  50% { transform: translateY(-40px) scale(1.3) rotate(-8deg); }
  100% { opacity: 0; transform: translateY(-85px) scale(1.5) rotate(10deg); }
}

/* ==========================================================================
   Watch Ads Card
   ========================================================================== */
.ad-hero-card {
  background: linear-gradient(135deg, #1e0845 0%, #4c056d 50%, #831843 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 3px solid rgba(255, 42, 141, 0.35);
  box-shadow: 0 10px 30px rgba(255, 42, 141, 0.25);
  margin-bottom: 20px;
}

.ad-icon-hero {
  font-size: 3.2rem;
  margin-bottom: 10px;
  animation: tvWobble 3s infinite ease-in-out;
}

@keyframes tvWobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-4deg); }
}

/* ==========================================================================
   Tasks View
   ========================================================================== */
.task-item-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.task-item-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.task-item-card.completed {
  opacity: 0.65;
  border-color: rgba(0, 245, 155, 0.4);
  background: rgba(0, 245, 155, 0.06);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.task-type-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}

.task-type-icon.telegram { background: linear-gradient(135deg, #0088cc, #00b4d8); color: #fff; }
.task-type-icon.youtube  { background: linear-gradient(135deg, #e63946, #ff0000); color: #fff; }
.task-type-icon.instagram{ background: linear-gradient(135deg, #f72585, #7209b7); color: #fff; }
.task-type-icon.twitter  { background: linear-gradient(135deg, #1da1f2, #0077b6); color: #fff; }
.task-type-icon.website  { background: linear-gradient(135deg, #00f59b, #10b981); color: #064e3b; }
.task-type-icon.other    { background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; }

.task-details {
  flex: 1;
}

.task-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.task-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--success);
}

/* ==========================================================================
   Buttons — 3D Tactile Arcade Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-btn-pink);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9d174d, 0 4px 10px rgba(255, 42, 141, 0.3);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #032b43;
  box-shadow: var(--shadow-btn-cyan);
}

.btn-accent:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #0369a1, 0 4px 10px rgba(0, 242, 254, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Referral View — Funky Social Share Pop
   ========================================================================== */
.ref-hero-card {
  background: linear-gradient(135deg, #054f3d 0%, #047857 50%, #0d9488 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 3px solid rgba(0, 245, 155, 0.35);
  box-shadow: 0 10px 30px rgba(0, 245, 155, 0.2);
  margin-bottom: 20px;
}

/* ==========================================================================
   History List & Transactions
   ========================================================================== */
.history-item {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.2);
}

.history-icon.credit { background: var(--success-gradient); color: #064e3b; }
.history-icon.debit  { background: var(--danger-gradient); color: #fff; }

.history-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.history-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.history-points {
  font-size: 1.05rem;
  font-weight: 900;
}

.history-points.credit { color: var(--success); }
.history-points.debit  { color: #f87171; }

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: capitalize;
  border: 1px solid rgba(255,255,255,0.2);
}

.badge-status.pending  { background: rgba(255, 190, 11, 0.2); color: #ffbe0b; }
.badge-status.approved { background: rgba(0, 242, 254, 0.2); color: #00f2fe; }
.badge-status.paid     { background: rgba(0, 245, 155, 0.2); color: #00f59b; }
.badge-status.rejected { background: rgba(255, 0, 84, 0.2); color: #ff0054; }

/* ==========================================================================
   Bottom Tab Navigation — Floating Arcade Pill Dock
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex: 1;
}

.nav-tab-btn i {
  font-size: 1.35rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab-btn.active {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-tab-btn.active i {
  transform: scale(1.15) translateY(-1px);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #140d34;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 24px 20px 36px;
  max-height: 88vh;
  overflow-y: auto;
  border-top: 3px solid rgba(255, 42, 141, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  animation: slideUpSheet 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* 7-Days Streak Grid */
.streak-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.streak-grid .streak-day-7 {
  grid-column: span 2;
}

.streak-day-box {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-day-box.claimed {
  background: rgba(0, 245, 155, 0.15);
  border-color: var(--success);
}

.streak-day-box.current {
  border: 2px solid var(--warning);
  background: rgba(255, 190, 11, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 14px var(--warning-glow);
}

.streak-day-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.streak-day-pts {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: #1e1346;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 2px solid var(--primary);
  animation: toastPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  font-weight: 700;
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

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