/* ==========================================================================
   StarBounty — Apple iOS & Clean Light FinTech Stylesheet
   Inspired by Revolut, Stripe, and Apple Wallet: Clean, Bright, Fresh & Modern
   ========================================================================== */

:root {
  /* Apple iOS & Clean FinTech Palette */
  --bg-app: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --bg-input: #f1f5f9;

  /* Borders & Shadows */
  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-focus: #007aff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-dock: 0 -4px 20px rgba(15, 23, 42, 0.05);

  /* Typography Colors */
  --text-primary: #0f172a;      /* Rich high-contrast slate-black */
  --text-secondary: #475569;    /* Medium slate */
  --text-muted: #94a3b8;        /* Soft grey */
  --text-inverted: #ffffff;

  /* Apple System Blue Accent */
  --apple-blue: #007aff;
  --apple-blue-hover: #0062cc;
  --apple-blue-gradient: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  --apple-blue-glow: rgba(0, 122, 255, 0.25);
  --apple-blue-subtle: rgba(0, 122, 255, 0.08);

  /* Official Telegram Star Gold */
  --star-gold: #f59e0b;
  --star-gold-dark: #d97706;
  --star-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --star-gold-subtle: rgba(245, 158, 11, 0.1);
  --star-gold-border: rgba(245, 158, 11, 0.25);

  /* Backward Compatibility Aliases */
  --gold-star: var(--star-gold);
  --gold-star-bright: var(--star-gold-dark);
  --gold-glow: rgba(245, 158, 11, 0.2);

  /* Semantics */
  --green-success: #10b981;
  --green-subtle: rgba(16, 185, 129, 0.1);
  --red-danger: #ef4444;
  --red-subtle: rgba(239, 68, 68, 0.1);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Plus Jakarta Sans', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, monospace;

  /* Safe Area / Insets */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

/* Soft Ambient Clean Background */
.ambient-glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--bg-app);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
}

/* App Main Container (Max 480px, Centered) */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 14px 16px calc(86px + var(--safe-bottom)) 16px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. TOP NAVIGATION / PROFILE BAR
   ========================================================================== */
.tg-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 14px 0;
  gap: 12px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--apple-blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--apple-blue-glow);
  flex-shrink: 0;
}

.profile-meta-col {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-display-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-badge-svg {
  width: 15px;
  height: 15px;
  color: var(--apple-blue);
  flex-shrink: 0;
}

.profile-level-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--star-gold-dark);
}

/* Header Controls Right */
.header-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.glass-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.glass-pill-btn:hover {
  background: var(--bg-surface-hover);
}

.glass-pill-btn:active {
  transform: scale(0.96);
}

.chevron-svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.glass-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.glass-icon-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.glass-icon-btn:active {
  transform: scale(0.94);
}

.ctrl-svg {
  width: 18px;
  height: 18px;
}

/* Language Dropdown */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 44px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  min-width: 135px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  animation: fadeInDown 0.2s ease;
}

.lang-dropdown-menu.hidden {
  display: none;
}

.lang-opt {
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-opt:hover {
  background: var(--bg-surface-hover);
}

.lang-opt:active {
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
}

/* ==========================================================================
   2. REVOLUT & APPLE WALLET HERO STARS BALANCE CARD
   ========================================================================== */
.hero-fintech-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Top decorative soft blue/gold ambient highlight */
.hero-fintech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007aff 0%, #f59e0b 100%);
}

.card-network-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--star-gold-subtle);
  border: 1px solid var(--star-gold-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--star-gold-dark);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.verified-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.live-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Balance Center */
.card-balance-center {
  text-align: center;
  margin-bottom: 20px;
}

.balance-title-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.balance-digits-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.balance-big-num {
  font-size: 46px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.balance-star-symbol {
  font-size: 30px;
  background: var(--star-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.3));
}

.balance-sub-rule {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 2-Column Metrics Split */
.card-metrics-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
}

.split-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.split-col:last-child {
  border-left: 1px solid var(--border-subtle);
  padding-left: 14px;
}

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

.split-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.split-value b {
  font-weight: 900;
}

.gold-star-txt {
  color: var(--star-gold-dark);
}

/* Quick Action Buttons Row */
.card-quick-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.btn-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--apple-blue);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  background: var(--apple-blue-hover);
}

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

.btn-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: var(--bg-surface-hover);
}

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

.btn-action-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   3. DAILY STREAK BONUSES (CLEAN LIGHT PODS)
   ========================================================================== */
.streak-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

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

.streak-heading-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.streak-fire-icon {
  font-size: 17px;
}

.streak-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-claim-streak {
  background: var(--star-gold-gradient);
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 15px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.btn-claim-streak:active {
  transform: scale(0.95);
}

.btn-claim-streak.claimed {
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
}

/* 7-Days Pods Track */
.streak-pods-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.streak-pod {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.streak-pod .pod-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.streak-pod .pod-star {
  font-size: 12px;
  color: var(--text-secondary);
}

.streak-pod .pod-amt {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
}

.streak-pod.active {
  background: #fffbeb;
  border-color: #fde68a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.streak-pod.active .pod-day {
  color: var(--star-gold-dark);
}

.streak-pod.active .pod-star {
  color: var(--star-gold-dark);
}

.streak-pod.active .pod-amt {
  color: var(--text-primary);
}

.streak-pod.jackpot-pod {
  border-color: #fde68a;
}

.jackpot-crown {
  font-size: 10px;
  position: absolute;
  top: -6px;
  right: -2px;
}

/* ==========================================================================
   4. CONTENT PANELS / TABS
   ========================================================================== */
.views-deck {
  flex: 1;
}

.view-panel {
  display: none;
  animation: panelFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.panel-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-neon-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-neon-refresh:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-neon-refresh:active {
  transform: scale(0.95);
}

.refresh-icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   5. TAB 1: MISSIONS (VAZIFALAR / CHANNELS)
   ========================================================================== */
.missions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-task-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.2s ease;
}

.tg-task-item:hover {
  box-shadow: var(--shadow-hover);
}

.task-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--apple-blue-glow);
  flex-shrink: 0;
}

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

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.channel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-verified-badge {
  display: inline-flex;
  align-items: center;
  color: var(--apple-blue);
}

.svg-badge {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--star-gold-subtle);
  color: var(--star-gold-dark);
  border: 1px solid var(--star-gold-border);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
}

.task-progress-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

.task-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-task {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-task.join {
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.btn-task.join:hover {
  background: rgba(0, 122, 255, 0.14);
}

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

.btn-task.check {
  background: var(--apple-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--apple-blue-glow);
}

.btn-task.check:hover {
  background: var(--apple-blue-hover);
}

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

.btn-task:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Skeletons */
.skeleton-mission-card {
  height: 120px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   6. TAB 2: BOOST STUDIO (REKLAMA)
   ========================================================================== */
.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

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

.studio-pill {
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
  border: 1px solid rgba(0, 122, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.studio-secure {
  font-size: 11.5px;
  color: var(--green-success);
  font-weight: 700;
}

.studio-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.input-control-block {
  margin-bottom: 16px;
}

.control-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.glow-input-shell {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2px 14px;
  transition: all 0.2s ease;
}

.glow-input-shell:focus-within {
  background: #ffffff;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px var(--apple-blue-glow);
}

.shell-prefix {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 6px;
}

.gold-prefix {
  color: var(--star-gold-dark);
}

.glow-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
}

.glow-field::placeholder {
  color: var(--text-muted);
}

.shell-note {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
}

/* Tier Packages Grid */
.boost-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tier-card {
  position: relative;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.tier-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tier-card.active {
  background: var(--apple-blue-subtle);
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px var(--apple-blue);
}

.tier-volume {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

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

.tier-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--star-gold-dark);
}

.tier-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.tier-card.active .tier-badge {
  color: var(--apple-blue);
}

.tier-ribbon {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--star-gold-gradient);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.vip-ribbon {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #ffffff;
}

/* Checkout Summary */
.checkout-summary-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.checkout-key {
  color: var(--text-secondary);
  font-weight: 600;
}

.checkout-val {
  font-weight: 800;
  color: var(--text-primary);
}

.checkout-val-gold {
  font-size: 17px;
  font-weight: 900;
  color: var(--star-gold-dark);
}

.btn-launch-campaign {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--apple-blue);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.btn-launch-campaign:hover {
  background: var(--apple-blue-hover);
}

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

/* ==========================================================================
   7. TAB 3: WALLET VAULT (HAMYON)
   ========================================================================== */
/* Apple Card / Revolut Platinum Digital Card */
.vault-card {
  position: relative;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 14px;
  color: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.vault-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.vault-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vault-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--star-gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.vault-owner {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.vault-chip-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--star-gold);
}

.vault-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vmetric-cell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.vmetric-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.vmetric-num {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.vmetric-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Withdrawal Module */
.withdraw-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.module-header-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-icon {
  font-size: 26px;
}

.module-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.module-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.payout-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.benefit-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.benefit-icon {
  font-size: 15px;
}

.benefit-text {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.3;
}

.amt-lbl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.amt-min-note {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--star-gold-dark);
}

.quick-preset-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.preset-amt-btn {
  flex: 1;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-amt-btn:hover {
  background: var(--bg-surface-hover);
}

.preset-amt-btn:active {
  transform: scale(0.95);
}

.preset-amt-btn.max-btn {
  background: var(--star-gold-subtle);
  border-color: var(--star-gold-border);
  color: var(--star-gold-dark);
}

.btn-autofill-account {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--apple-blue);
  cursor: pointer;
}

.btn-autofill-account:hover {
  text-decoration: underline;
}

.btn-submit-payout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--apple-blue);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.btn-submit-payout:hover {
  background: var(--apple-blue-hover);
}

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

/* Withdrawal History */
.withdraw-history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

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

.history-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.history-refresh-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.history-refresh-btn:hover {
  color: var(--text-primary);
}

.history-refresh-svg {
  width: 15px;
  height: 15px;
}

.history-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

.history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.history-item-row:last-child {
  border-bottom: none;
}

.h-amt {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--star-gold-dark);
}

.h-dest {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.h-status-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-approved {
  background: var(--green-subtle);
  color: var(--green-success);
}

.status-rejected {
  background: var(--red-subtle);
  color: var(--red-danger);
}

/* ==========================================================================
   8. TAB 4: SQUAD (DO'STLAR / REFERRALS)
   ========================================================================== */
.squad-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.squad-emblem {
  font-size: 42px;
  margin-bottom: 8px;
}

.squad-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

.squad-stat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-blue-subtle);
  border: 1px solid rgba(0, 122, 255, 0.2);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.bubble-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.bubble-num {
  font-size: 16px;
  font-weight: 900;
  color: var(--apple-blue);
}

.referral-link-cluster {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ref-readonly-field {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-family: var(--font-mono);
  outline: none;
}

.btn-copy-ref {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 18px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-ref:hover {
  background: var(--bg-surface-hover);
}

.btn-copy-ref:active {
  transform: scale(0.96);
}

.btn-share-telegram {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--apple-blue);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.btn-share-telegram:hover {
  background: var(--apple-blue-hover);
}

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

.share-svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   9. TAB 5: LEADERBOARD (TOP 10)
   ========================================================================== */
.fame-header {
  text-align: center;
  margin-bottom: 18px;
}

.fame-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.fame-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Clean Light Podium */
.fame-podium-deck {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.podium-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm);
  padding: 14px 6px 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.step-1 {
  background: #fffdf5;
  border-color: #fde68a;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);
  padding-top: 18px;
}

.step-2 {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.step-3 {
  background: #fdfaf8;
  border-color: #fde8e1;
}

.podium-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.podium-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--apple-blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.step-1 .podium-avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
  border-color: #f59e0b;
}

.podium-crown {
  position: absolute;
  top: -12px;
  right: -6px;
  font-size: 16px;
}

.podium-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--star-gold-dark);
  margin-top: 2px;
}

.podium-block {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.step-1 .podium-block {
  color: var(--star-gold-dark);
}

.fame-rankings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   10. BOTTOM NAVIGATION DOCK (APPLE iOS FROSTED GLASS DOCK)
   ========================================================================== */
.island-nav-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + var(--safe-bottom)) 8px;
  z-index: 99;
  box-shadow: var(--shadow-dock);
}

.island-nav-tab {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
  position: relative;
}

.island-nav-tab:hover {
  color: var(--text-secondary);
}

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

.island-nav-tab.active {
  color: var(--apple-blue);
}

.dock-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.island-nav-tab.active .dock-svg {
  transform: translateY(-2px);
  stroke: var(--apple-blue);
}

.dock-text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Active Indicator Glow Pill */
.island-nav-tab.active::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 14px;
  height: 3px;
  background: var(--apple-blue);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   11. FLOATING TOAST NOTIFICATION
   ========================================================================== */
.neon-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  z-index: 9999;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.neon-toast.hidden {
  opacity: 0;
  transform: translate(-50%, -15px);
}

/* Utility Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
