:root {
  --bg: #eaf1ee;
  --surface: #f2f7f5;
  --glass: rgba(255, 255, 255, 0.84);
  --primary: #0b7a57;
  --primary-dark: #07593f;
  --primary-soft: #d7efe6;
  --accent: #f59e0b;
  --danger: #dc2626;
  --text: #163029;
  --muted: #5d756d;
  --border: rgba(255, 255, 255, 0.88);
  --shadow-out: 7px 7px 16px rgba(13, 62, 46, 0.09), -6px -6px 14px rgba(255, 255, 255, 0.92);
  --shadow-sm: 4px 4px 10px rgba(13, 62, 46, 0.08), -4px -4px 10px rgba(255, 255, 255, 0.9);
  --shadow-in: inset 3px 3px 7px rgba(13, 62, 46, 0.08), inset -3px -3px 7px rgba(255, 255, 255, 0.9);
  --radius: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hind Siliguri', 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.hidden { display: none !important; }

/* Splash Screen */
.splash-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #f4faf7 0%, #e4eeea 100%);
}
.splash-card {
  width: 100%;
  max-width: 350px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-out);
}
.splash-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10956b, #086849);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(11, 122, 87, 0.28);
  overflow: hidden;
}
.splash-logo img { width: 100%; height: 100%; object-fit: cover; }
.splash-title { margin: 0 0 6px; font-size: 23px; font-weight: 700; color: var(--primary-dark); }
.splash-sub { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
.splash-status { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0d8a63, #076346);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(11, 122, 87, 0.24);
  transition: transform .12s ease, opacity .15s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid rgba(11, 122, 87, 0.16);
  border-radius: 14px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-full { width: 100%; }

/* App Shell & Hero Banner */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 92px;
  position: relative;
}
.hero-header {
  position: relative;
  height: 116px;
  padding: 16px 16px 26px;
  background-color: #164e3b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 240'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23f6d388'/%3E%3Cstop offset='48%25' stop-color='%239ed0a4'/%3E%3Cstop offset='100%25' stop-color='%231d6b47'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='240' fill='url(%23sky)'/%3E%3Ccircle cx='530' cy='58' r='34' fill='%23fff3c4' opacity='0.85'/%3E%3Cpath d='M0 150 Q140 110 290 142 T600 132 T800 148 L800 240 L0 240 Z' fill='%23217a4d'/%3E%3Cpath d='M0 175 Q210 145 430 176 T800 165 L800 240 L0 240 Z' fill='%23125737'/%3E%3Crect x='365' y='125' width='58' height='36' rx='3' fill='%23784a2a'/%3E%3Cpolygon points='356,128 394,102 432,128' fill='%23b57c41'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(7, 89, 63, 0.22);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 46, 33, 0.42) 0%, rgba(7, 74, 52, 0.56) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hero-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  background: #0c7a58;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-user-meta { min-width: 0; }
.hero-name {
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.balance-pill {
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  border: none;
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
}
.balance-pill-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hero-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}
.hero-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.admin-badge-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.65);
  background: rgba(7, 89, 63, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Main Content & Page Animation */
.main-content { padding: 14px 14px 24px; animation: fadeSlide .18s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Dedicated Sub-Page Header Bar */
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.subpage-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: none;
  background: #dff0e9;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.subpage-title { font-size: 15.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Glass / Neumorphic Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-out);
  margin-bottom: 14px;
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 10px;
  background: #dce9e4;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-in);
  margin: 8px 0 4px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10a36f, #076b4b);
  border-radius: 999px;
  transition: width .3s ease;
}

/* Notice Bar */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.notice-badge {
  background: linear-gradient(135deg, #0d8a63, #076346);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-marquee { overflow: hidden; white-space: nowrap; flex: 1; font-size: 13px; color: var(--text); }
.notice-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 2x2 Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e2f2ec;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.stat-label { font-size: 12px; color: var(--muted); line-height: 1.2; }
.stat-value { font-size: 16px; font-weight: 800; color: var(--text); margin-top: 2px; }

/* Quick Actions Grid */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.brand-pill {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.qa-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px 5px 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform .12s ease;
}
.qa-tile:active { transform: scale(0.95); }
.qa-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e1f1eb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.qa-label { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }

/* Referral Box */
.ref-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 10px;
  color: var(--muted);
}
.ref-meta strong { color: var(--primary); }
.ref-link-box {
  background: #e6efec;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  box-shadow: var(--shadow-in);
  margin-bottom: 12px;
  font-family: 'Inter', monospace;
}

/* Tasks */
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-out);
  margin-bottom: 14px;
}
.task-banner {
  position: relative;
  height: 138px;
  background: linear-gradient(135deg, #e7f8ef 0%, #c6eedc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.task-banner img { width: 100%; height: 100%; object-fit: cover; }
.task-banner-default { text-align: center; padding: 12px; }
.task-banner-brand { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.task-banner-pill {
  display: inline-block;
  margin-top: 6px;
  background: linear-gradient(135deg, #10a36f, #097650);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 5px 22px;
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(11, 122, 87, 0.25);
}
.task-banner-sub { font-size: 11px; color: var(--primary-dark); margin-top: 5px; font-weight: 600; }
.task-level-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
}
.task-level-badge.unlocked { background: #10b981; }
.task-body {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.task-title { font-size: 15px; font-weight: 700; color: var(--text); }
.task-reward { font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 2px; }

/* Daily Streak 7-Day Grid */
.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.streak-day {
  background: #e5efec;
  border-radius: 12px;
  padding: 8px 3px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.streak-day.done {
  background: linear-gradient(135deg, #0d8a63, #076346);
  color: #fff;
  box-shadow: 0 4px 10px rgba(11, 122, 87, 0.25);
}

/* Leaderboard Podium */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}
.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.podium-card.first {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  padding-top: 18px;
}
.podium-medal { font-size: 24px; margin-bottom: 4px; }
.podium-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-val { font-size: 13px; font-weight: 800; color: var(--primary); margin-top: 3px; }

/* Video Card */
.video-thumb {
  height: 118px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b7a57, #064c36);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 10px;
}
.video-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(11, 122, 87, 0.12);
  border-radius: 14px;
  background: #f7fbf9;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-a {
  padding: 0 14px 13px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Segmented Tabs */
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e2ede9;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.seg-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(11, 122, 87, 0.24);
}

/* Wallet */
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.select-card {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.select-card.active { border-color: var(--primary); background: #e6f5ef; }
.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #9cb5ac;
  flex-shrink: 0;
  position: relative;
}
.select-card.active .radio-dot { border-color: var(--primary); }
.select-card.active .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.method-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-bkash { background: #e2136e; }
.method-nagad { background: #f26522; }
.method-other { background: var(--primary); }
.amount-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.amount-chip {
  background: var(--surface);
  border: 1.5px solid rgba(11, 122, 87, 0.2);
  border-radius: 12px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.amount-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Inputs */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.input-field, .select-field, .textarea-field {
  width: 100%;
  background: #e7f0ed;
  border: 1.5px solid rgba(11, 122, 87, 0.14);
  border-radius: 13px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-in);
}
.input-field:focus, .select-field:focus, .textarea-field:focus { border-color: var(--primary); background: #f5faf8; }
.form-group { margin-bottom: 12px; }

/* Profile */
.profile-hero { text-align: center; padding: 18px 14px; }
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(11, 122, 87, 0.22);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill-tag { background: var(--primary-soft); color: var(--primary-dark); padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.upgrade-banner {
  background: linear-gradient(135deg, #0b875f 0%, #055b3f 100%);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(7, 89, 63, 0.25);
}
.upgrade-banner h3 { margin: 0 0 4px; font-size: 16.5px; }
.upgrade-banner p { margin: 0 0 12px; font-size: 12.5px; opacity: .92; }
.upgrade-white-btn {
  width: 100%;
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 122, 87, 0.1);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--muted); }
.info-row strong { color: var(--text); }

/* Typing Job Locked & Active */
.locked-box { text-align: center; padding: 26px 18px; }
.locked-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fee2e2;
  color: #dc2626;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.reward-highlight { background: #e5f2ed; border-radius: 14px; padding: 14px; margin: 16px 0; text-align: center; }
.reward-highlight small { display: block; color: var(--muted); font-size: 12.5px; }
.reward-highlight strong { font-size: 22px; color: var(--primary); }
.typing-code-box {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 7px;
  background: linear-gradient(135deg, #dff3ec, #eef8f4);
  color: var(--primary-dark);
  padding: 20px 12px;
  border-radius: 16px;
  margin: 14px 0;
  text-align: center;
  user-select: none;
  box-shadow: var(--shadow-in);
  font-family: 'Inter', monospace;
}

/* Floating Support & Bottom Nav */
.floating-support-btn {
  position: fixed;
  right: 16px;
  bottom: 84px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #0d8a63, #076346);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(7, 89, 63, 0.35);
  cursor: pointer;
  z-index: 40;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 68px;
  background: linear-gradient(180deg, #0b6b4d 0%, #07533b 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(7, 58, 42, 0.25);
  z-index: 45;
}
.nav-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.nav-item.active { color: #fff; }
.nav-home { position: relative; top: -12px; }
.nav-home-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #109b6e, #097351);
  border: 3.5px solid #eaf1ee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(7, 89, 63, 0.36);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 23, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}
.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px 18px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.fj-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fj-sub { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.fj-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e6f0ed;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.fj-join-btn {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Sponsor Ad Modal */
.sponsor-modal-card {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0,0,0,0.35);
}
.sponsor-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13.5px;
}
.sponsor-header-left { display: flex; align-items: center; gap: 8px; }
.ad-pill { background: #10b981; color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; }
.sponsor-body { min-height: 250px; background: #f4f8f6; display: flex; align-items: center; justify-content: center; padding: 18px; }
.sponsor-promo-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  width: 100%;
}
.sponsor-gift-emoji { font-size: 38px; margin-bottom: 8px; }
.sponsor-promo-box h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.sponsor-promo-box p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.sponsor-footer {
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e5eeeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sponsor-open-btn { color: var(--primary-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.sponsor-close-btn {
  background: #94a3b8;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
}
.sponsor-close-btn.ready { background: var(--primary); cursor: pointer; }

/* Sheet Modal */
.sheet-card {
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  background: var(--surface);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0,0,0,0.3);
}
.sheet-header {
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #e2ece8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-header h3 { margin: 0; font-size: 16px; color: var(--primary-dark); }
.icon-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e6f0ed;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.sheet-body { padding: 15px 16px 20px; overflow-y: auto; }

/* Status Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-approved, .badge-paid, .badge-active { background: #d1fae5; color: #065f46; }
.badge-rejected, .badge-banned { background: #fee2e2; color: #b91c1c; }

/* Spin Wheel */
.wheel-wrap { position: relative; width: 244px; height: 244px; margin: 14px auto 18px; }
.wheel-pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #dc2626;
  z-index: 4;
}
.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--primary-dark);
  transition: transform 3.6s cubic-bezier(0.18, 0.89, 0.22, 1);
  box-shadow: 0 12px 26px rgba(7, 89, 63, 0.28);
  overflow: hidden;
  position: relative;
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Admin Panel Overlay */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: #edf3f1;
  z-index: 95;
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}
.admin-topbar {
  background: linear-gradient(135deg, #0b6e4f, #064c36);
  color: #fff;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar-title { display: flex; align-items: center; gap: 10px; }
.admin-topbar-title span { font-size: 22px; }
.admin-topbar-title strong { display: block; font-size: 15.5px; }
.admin-topbar-title small { font-size: 11.5px; opacity: .85; }
.admin-close-btn {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #dce8e4;
  flex-shrink: 0;
}
.admin-tab-btn {
  white-space: nowrap;
  border: 1px solid #d2e4de;
  background: #f3f8f6;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.admin-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-body { flex: 1; overflow-y: auto; padding: 14px; }
.admin-card {
  background: #fff;
  border: 1px solid #ddebe6;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(10, 56, 41, 0.05);
}
.admin-card h4 { margin: 0 0 10px; font-size: 14.5px; color: var(--primary-dark); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #edf4f1;
  font-size: 13.5px;
}
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; width: 44px; height: 24px; display: inline-block; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .2s;
  cursor: pointer;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.admin-list-item {
  border: 1px solid #e3efeb;
  border-radius: 13px;
  padding: 11px;
  margin-bottom: 9px;
  background: #f9fcfb;
  font-size: 13px;
}
.admin-row-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Toast */
.toast-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 380px);
  pointer-events: none;
}
.toast {
  background: #103227;
  color: #fff;
  padding: 11px 15px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  text-align: center;
}
.toast.error { background: #b91c1c; }
.toast.success { background: #076b4b; }
