/* ROH-Ads Earning — deep navy + electric blue 3D theme */
:root {
  --bg: #0B0F1C;
  --bg-deep: #070A14;
  --card: #131A2B;
  --card2: #182032;
  --pill: #05070D;
  --blue: #2FA8FF;
  --blue-hi: #8FD8FF;
  --blue-deep: #1E6FD6;
  --blue-dim: rgba(47, 168, 255, 0.14);
  --blue-glow: rgba(47, 168, 255, 0.28);
  --amber: #F5A623;
  --green: #2ECC71;
  --red: #f85149;
  --text: #ffffff;
  --text-dim: #8A93A8;
  --border: #223048;
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 92px; /* room for tab bar + raised center button */
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(47, 168, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 85% 22%, rgba(47, 125, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% 55%, rgba(47, 168, 255, 0.07), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(47, 125, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0D1428 0%, var(--bg) 35%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

.hidden { display: none !important; }

/* ---------- drifting glow orbs ---------- */
.orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb.o1 {
  width: 280px; height: 280px;
  left: -90px; top: 6%;
  background: radial-gradient(circle, rgba(47, 168, 255, 0.26), transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb.o2 {
  width: 340px; height: 340px;
  right: -120px; top: 42%;
  background: radial-gradient(circle, rgba(47, 125, 255, 0.4), transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.orb.o3 {
  width: 220px; height: 220px;
  left: 30%; bottom: -80px;
  background: radial-gradient(circle, rgba(47, 168, 255, 0.16), transparent 70%);
  animation: drift1 25s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 90px) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-70px, -60px) scale(0.95); }
}

#app { position: relative; z-index: 1; }

/* ---------- splash (app-open intro animation) ---------- */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background:
    radial-gradient(420px 300px at 15% 12%, rgba(55, 198, 255, .16), transparent 60%),
    radial-gradient(460px 320px at 85% 85%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(300px 220px at 80% 15%, rgba(245, 158, 11, .10), transparent 60%);
  transition: opacity .45s ease, transform .45s ease;
}
.splash.splash-hide { opacity: 0; transform: scale(.985); pointer-events: none; }
.splash-logo {
  font-size: 64px;
  position: relative;
  filter: drop-shadow(0 6px 18px var(--blue-glow));
  animation: splashLogoIn .7s cubic-bezier(.2, 1.4, .4, 1) both, floaty 3s ease-in-out .7s infinite;
}
@keyframes splashLogoIn {
  0% { opacity: 0; transform: scale(.4) translateY(26px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-title { animation: splashRise .6s ease .15s both; }
@keyframes splashRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash-msg { animation: splashRise .6s ease .3s both; }
.splash-bar {
  width: 168px; height: 6px; margin-top: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); overflow: hidden;
  animation: splashRise .6s ease .4s both;
}
.splash-bar-fill {
  height: 100%; width: 40%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-hi), var(--blue), #8b5cf6, var(--blue-hi));
  background-size: 200% 100%;
  animation: splashBarSlide 1.15s ease-in-out infinite, gradShift 2.4s linear infinite;
}
@keyframes splashBarSlide {
  0% { transform: translateX(-110%); } 100% { transform: translateX(430%); }
}
/* Homepage reveal: fades in as the splash lifts. OPACITY ONLY — a
   transform here would make #main the containing block for the fixed
   bottom tab bar and visibly drag the bar around during the reveal
   (user report 2026-10-20: bottom buttons moving). */
#main:not(.hidden) { animation: mainIn .5s ease both; }
@keyframes mainIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo, .splash-title, .splash-msg, .splash-bar, .splash-bar-fill, #main:not(.hidden) { animation: none !important; }
  .splash { transition: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.splash-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 50%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-msg { color: var(--text-dim); font-size: 14px; padding: 0 32px; text-align: center; }

/* ---------- header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47, 168, 255, 0.16);
  padding: 12px 16px;
}
.app-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 60%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 6px rgba(47, 168, 255, 0.35));
}

/* ---------- tabs ---------- */
.tab-view { display: none; padding: 16px 16px 24px; max-width: 560px; margin: 0 auto; }
.tab-view.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.section-title {
  margin: 4px 0 6px;
  font-size: 23px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 60%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { margin: 0 0 14px; color: var(--text-dim); font-size: 13px; }
.sub-title { margin: 16px 0 10px; font-size: 16px; font-weight: 800; color: var(--text); }

/* ---------- animated gradient text ---------- */
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.grad-anim,
.splash-title,
.section-title,
.profile-name,
.balance-value,
.popup-text,
.app-logo,
.ql-label {
  background-size: 220% auto;
  animation: gradShift 6s ease infinite;
}

/* ---------- staggered card entrance on tab switch ---------- */
.tab-view.active .card {
  animation: cardIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.tab-view.active .card:nth-child(2) { animation-delay: 0.05s; }
.tab-view.active .card:nth-child(3) { animation-delay: 0.1s; }
.tab-view.active .card:nth-child(4) { animation-delay: 0.15s; }
.tab-view.active .card:nth-child(5) { animation-delay: 0.2s; }
.tab-view.active .card:nth-child(n+6) { animation-delay: 0.25s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- glass cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(19, 26, 43, 0.88), rgba(11, 15, 28, 0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(47, 168, 255, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: var(--text); }

.balance-row { display: flex; gap: 10px; margin-bottom: 14px; }
.balance-card { flex: 1; text-align: center; padding: 14px 6px; margin-bottom: 0; }
.balance-icon { font-size: 24px; margin-bottom: 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.balance-value {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.balance-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.spins { display: block; margin-top: 2px; }

/* ---------- profile header ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 168, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.avatar-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 200deg, var(--blue-hi), var(--blue), var(--blue-deep), var(--blue-hi));
  box-shadow:
    0 0 18px var(--blue-glow),
    0 8px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0B0F1C;
}
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(160deg, #37C6FF, #2F7DFF 60%, #1E6FD6);
}
.profile-info { position: relative; min-width: 0; }
.profile-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, var(--blue-hi) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(47, 168, 255, 0.25);
}
.profile-id {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* ---------- check-in ---------- */
.checkin-days { display: flex; gap: 6px; margin-bottom: 12px; }
.checkin-day {
  flex: 1;
  background: rgba(19, 26, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 2px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
}
.checkin-day .day-reward { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-top: 2px; }
.checkin-day.current {
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow), inset 0 0 12px rgba(47, 168, 255, 0.08);
}
.checkin-day.current .day-reward { color: var(--blue); }
.checkin-day.done { opacity: 0.55; }
.checkin-day.done::after { content: "✓"; display: block; color: var(--green); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  font-family: inherit;
}
.btn:active { transform: scale(0.96); filter: brightness(1.08); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #37C6FF 0%, #2F7DFF 100%);
  color: #ffffff;
  box-shadow:
    0 10px 26px rgba(47, 168, 255, 0.38),
    0 3px 0 #1B5FC0,
    inset 0 2px 2px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(10, 60, 140, 0.35);
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.45);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 12px rgba(47, 168, 255, 0.3),
    0 0 0 #1B5FC0,
    inset 0 2px 6px rgba(10, 60, 140, 0.5);
}
.btn-primary:active::after { animation: shineSweep 0.45s ease; }
@keyframes shineSweep {
  from { left: -70%; }
  to { left: 140%; }
}
/* pulsing glow while an action is available (check-in claimable, mining ready) */
@keyframes pulseBlue {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(47, 168, 255, 0.38), 0 3px 0 #1B5FC0,
      0 0 0 0 rgba(47, 168, 255, 0.55), inset 0 2px 2px rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow: 0 10px 34px rgba(47, 168, 255, 0.65), 0 3px 0 #1B5FC0,
      0 0 0 14px rgba(47, 168, 255, 0), inset 0 2px 2px rgba(255, 255, 255, 0.55);
  }
}
.btn-pulse { animation: pulseBlue 1.8s ease-out infinite; }
.btn-big { padding: 16px 18px; font-size: 16px; letter-spacing: 1px; }
.btn-outline {
  background: rgba(47, 168, 255, 0.06);
  color: var(--blue);
  border: 1px solid rgba(47, 168, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 14px rgba(0, 0, 0, 0.4);
}
.btn-outline:active {
  transform: translateY(2px);
  background: rgba(47, 168, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ---------- inputs ---------- */
.input {
  width: 100%;
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
select.input option { background: var(--card2); color: var(--text); }
.field-label { display: block; font-size: 13px; color: var(--text-dim); margin: 12px 0 6px; }
.hint { font-size: 12px; color: var(--text-dim); margin: 8px 0; text-align: center; }

/* readonly black pill (account boxes) */
.readonly-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--pill);
  border: 1px solid rgba(47, 168, 255, 0.25);
  border-radius: 10px;
  padding: 10px 10px 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-hi);
  word-break: break-all;
}
.readonly-box .btn { flex-shrink: 0; }
.dep-instructions { text-align: left; white-space: pre-line; margin-top: 10px; }

/* ---------- tasks ---------- */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.task-info { flex: 1; min-width: 0; }
.task-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.task-desc { font-size: 12px; color: var(--text-dim); }
.reward-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.65);
  color: var(--amber);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.15);
}
.task-actions { display: flex; flex-direction: column; gap: 8px; min-width: 96px; }
.completed-tag { color: var(--green); font-weight: 700; font-size: 13px; text-align: center; text-shadow: 0 0 10px rgba(46, 204, 113, 0.35); }

/* ---------- skeleton shimmer ---------- */
.skel {
  position: relative;
  overflow: hidden;
  background: rgba(19, 26, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(47, 168, 255, 0.14) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}
.skel-task { height: 92px; }
.skel-row { height: 54px; }
.skel-tier { height: 190px; }

/* ---------- quick links (admin-managed buttons) ---------- */
.quick-links {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-links:empty { display: none; }
.quick-link {
  flex: 0 0 auto;
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(47, 168, 255, 0.28);
  background: linear-gradient(160deg, rgba(24, 32, 50, 0.88), rgba(11, 15, 28, 0.88));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  color: var(--text);
  font-family: inherit;
}
.quick-link:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ql-icon { font-size: 26px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.ql-label {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ---------- announcement banner ---------- */
.announce-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(47, 168, 255, 0.16), rgba(47, 125, 255, 0.1));
  border: 1px solid rgba(47, 168, 255, 0.55);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(47, 168, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardIn 0.4s ease both;
}
.announce-icon { font-size: 20px; flex-shrink: 0; }
.announce-text { font-size: 13px; font-weight: 600; color: var(--blue-hi); flex: 1; }
.announce-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ---------- ad banner slot ---------- */
.ad-slot:empty { display: none; }
.ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
}
.ad-title { font-weight: 800; font-size: 14px; color: var(--blue-hi); }
.ad-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ad-card .btn { flex-shrink: 0; }

/* ---------- spin wheel ---------- */
.spin-card { text-align: center; }
.wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 12px auto 16px;
}
#wheel-canvas {
  width: 260px;
  height: 260px;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px rgba(47, 168, 255, 0.25)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid var(--blue-hi);
  z-index: 3;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px var(--blue-glow));
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid #06182e;
  background: linear-gradient(160deg, #37C6FF, #2F7DFF 55%, #1E6FD6);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 2;
  box-shadow:
    0 6px 20px var(--blue-glow),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s;
  font-family: inherit;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.45);
}
.wheel-center:active { transform: translate(-50%, -50%) scale(0.93); }
.wheel-center:disabled { opacity: 0.5; cursor: not-allowed; }
.spin-card.spinning #wheel-canvas { filter: drop-shadow(0 0 34px rgba(47, 168, 255, 0.45)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); }
.spin-cost { color: var(--text-dim); font-size: 13px; margin-bottom: 4px; }
.spin-balance { font-size: 14px; }
.spin-balance b { color: var(--blue-hi); }
.spin-jackpot { margin-top: 12px; text-align: left; }
.spin-jackpot-label { font-size: 13px; color: #ffd54a; margin-bottom: 6px; }
.spin-jackpot-label span { color: var(--text-dim); }
.spin-jackpot-bar { height: 10px; border-radius: 999px; background: rgba(255, 213, 74, .15); overflow: hidden; }
.spin-jackpot-bar > div { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #b8860b, #ffd54a, #fff3b0); transition: width .6s ease; }

/* ---------- referral ---------- */
.ref-note { font-size: 13px; color: var(--text-dim); margin: 0 0 12px; }
.ref-link-box { margin-bottom: 12px; }
.ref-link-box .input { font-size: 12px; color: var(--blue-hi); }
.ref-actions { display: flex; gap: 10px; }
.ref-actions .btn { flex: 1; }
.team-list { display: flex; flex-direction: column; gap: 8px; }
.team-item {
  display: flex;
  justify-content: space-between;
  background: rgba(19, 26, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.team-item .joined { color: var(--text-dim); font-size: 11px; }
.team-status { font-size: 11px; font-weight: 700; white-space: nowrap; }
.team-status.ok { color: #34d399; }
.team-status.wait { color: #fbbf24; }
.ref-note-wallet { color: #fbbf24; font-size: 12px; }

/* ---------- Wallet Connect (TonConnect) ---------- */
.wallet-connect-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 12px 14px;
  background: linear-gradient(160deg, rgba(24, 32, 50, 0.92), rgba(11, 15, 28, 0.92));
  border: 1px solid rgba(47, 168, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wc-status { font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-btn { flex: 0 0 auto; padding: 8px 14px; font-size: 12px; }
.wc-chooser {
  margin: 10px 14px 0;
  padding: 16px 14px;
  background: linear-gradient(160deg, rgba(24, 32, 50, 0.95), rgba(11, 15, 28, 0.95));
  border: 1px solid rgba(47, 168, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wc-chooser-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 12px; text-align: center; letter-spacing: 0.2px; }
.wc-list { display: flex; flex-direction: column; gap: 10px; }
.wc-wallet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.wc-wallet-btn:hover { border-color: rgba(47, 168, 255, 0.55); background: rgba(47, 168, 255, 0.08); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.wc-wallet-btn:active { transform: scale(0.98); }
.wc-wallet-btn.disabled { opacity: .55; cursor: default; }
.wc-wallet-img { width: 40px; height: 40px; padding: 4px; background: #fff; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.wc-wallet-name { flex: 1; letter-spacing: 0.2px; }
.wc-wallet-go { color: var(--text-dim); font-size: 16px; }
.wc-wallet-off { color: var(--text-dim); font-size: 11px; font-weight: 600; }
.wc-wait { margin-top: 12px; font-size: 12px; color: #fbbf24; text-align: center; line-height: 1.5; }
.wc-close { width: 100%; margin-top: 12px; }
.wc-loading { font-size: 13px; color: var(--text-dim); text-align: center; padding: 10px 0; }
.wc-error {
  margin: 10px 14px 0;
  padding: 10px 12px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 10px;
  color: #ff8a8a;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- wallet ---------- */
.wallet-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(34, 48, 72, 0.7);
  font-size: 15px;
}
.wallet-row:last-of-type { border-bottom: none; }
.wallet-row b {
  background: linear-gradient(135deg, var(--blue-hi), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-rate { font-size: 12px; color: var(--text-dim); padding: 2px 0 8px; }

/* ---------- wallet function boxes ---------- */
.wallet-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 4px;
}
.wallet-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%),
    linear-gradient(160deg, var(--card2), var(--card));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wallet-box:hover { border-color: rgba(47, 168, 255, 0.45); }
.wallet-box:active { transform: scale(0.96); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.wallet-box-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.wallet-box-title { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.wallet-box-sub { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; padding-right: 18px; }
.wallet-box-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 16px;
  color: var(--text-dim);
}
.wallet-box-deposit { box-shadow: 0 10px 24px rgba(46, 204, 113, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.wallet-box-withdraw { box-shadow: 0 10px 24px rgba(245, 166, 35, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.wallet-box-gift { box-shadow: 0 10px 24px rgba(168, 85, 247, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.wallet-box-history { box-shadow: 0 10px 24px rgba(47, 168, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.wallet-view.hidden { display: none; }
.wallet-view-pane.hidden { display: none; }
.wallet-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(19, 26, 43, 0.8);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wallet-back-btn:active { transform: scale(0.97); }
.gift-row { display: flex; gap: 10px; }
.gift-row .input { flex: 1; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  background: rgba(19, 26, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.history-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; }
.history-meta { color: var(--text-dim); font-size: 11px; }
.status-badge {
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.status-pending { background: rgba(245,166,35,0.14); color: var(--amber); border: 1px solid var(--amber); }
.status-approved { background: rgba(46,204,113,0.14); color: var(--green); border: 1px solid var(--green); }
.status-rejected { background: rgba(248,81,73,0.14); color: #ff7b72; border: 1px solid var(--red); }
.empty-note { color: var(--text-dim); font-size: 13px; text-align: center; padding: 12px 0; }

/* ---------- tab bar ---------- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(7, 10, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(47, 168, 255, 0.16);
  border-radius: 20px 20px 0 0;
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  /* Pinned like a native app bar: own compositing layer so WebView
     viewport changes never make it jitter (user report 2026-10-20). */
  transform: translateZ(0);
  will-change: transform;
}
.tab-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  justify-content: flex-start;
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 2px;
  transition: color 0.18s ease, transform 0.1s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.tab-btn:active { transform: scale(0.93); }
.tab-btn .tab-ico { width: 24px; height: 24px; transition: transform 0.18s ease, filter 0.18s ease; }
.tab-btn.active { color: var(--blue); }
.tab-btn.active .tab-ico {
  transform: translateY(-2px) scale(1.12);
  filter: drop-shadow(0 0 8px var(--blue-glow));
}
/* side groups flanking the raised center button */
.tab-side { display: flex; flex: 1 1 0; align-items: flex-end; min-width: 0; }
.tab-side .tab-btn { flex: 1 1 0; min-width: 0; }
.tab-mid-spacer { flex: 0 0 80px; }
/* raised center button (WORK) — dead center via absolute positioning */
.tab-btn.tab-center {
  position: absolute;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  height: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
/* keep it centered while pressed (base .tab-btn:active would drop the translate) */
.tab-btn.tab-center:active { transform: translateX(-50%); }
.center-bolt {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #37C6FF, #2F7DFF);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg);
  box-shadow:
    0 10px 26px rgba(47, 168, 255, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -4px 8px rgba(10, 60, 140, 0.35);
  transition: transform 0.1s ease;
}
.tab-btn.tab-center:active .center-bolt { transform: scale(0.92); }
.tab-btn.tab-center.active { color: var(--blue); }
.tab-btn.tab-center.active .center-bolt {
  box-shadow:
    0 10px 34px rgba(47, 168, 255, 0.7),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -4px 8px rgba(10, 60, 140, 0.35);
}
.center-label { font-size: 10px; font-weight: 700; }
.center-emoji { font-size: 30px; line-height: 1; }

/* ---------- WORK (admin-created buttons + per-button ads) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.work-card {
  background: linear-gradient(135deg, rgba(55, 198, 255, .14), rgba(47, 125, 255, .10));
  border: 1px solid rgba(55, 198, 255, .30);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.work-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 2px;
  color: #fff;
}
.work-btn:active { transform: scale(.96); }
.work-icon { font-size: 34px; line-height: 1; }
.work-title { font-size: 14px; font-weight: 800; text-align: center; word-break: break-word; }
.work-ad {
  position: relative;
  background: rgba(0, 0, 0, .28);
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
}
.work-ad:active { transform: scale(.98); }
.work-ad-img { width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.work-ad-text { font-size: 12.5px; color: #dbe7ff; line-height: 1.45; word-break: break-word; }
.work-ad-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(245, 166, 35, .92);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 6px;
  border-radius: 20px;
}
@media (max-width: 380px) {
  .tab-btn { font-size: 9px; }
  .tab-mid-spacer { flex-basis: 74px; }
}
/* sliding blue indicator (positioned by JS) */
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #37C6FF, var(--blue-hi), #2F7DFF);
  box-shadow: 0 0 14px rgba(47, 168, 255, 0.7);
  transition: left 0.25s ease, width 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
.tab-indicator.no-anim { transition: none; }

/* ---------- popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.popup {
  background: linear-gradient(160deg, rgba(24, 32, 50, 0.95), rgba(11, 15, 28, 0.95));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(47, 168, 255, 0.55);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 0 50px var(--blue-glow), 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: popIn 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.popup-icon { font-size: 56px; margin-bottom: 12px; filter: drop-shadow(0 4px 14px var(--blue-glow)); }
.popup-text {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 60%, var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42, 26, 26, 0.95);
  border: 1px solid var(--red);
  color: #ffb4ab;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 90%;
  z-index: 300;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: toastIn 0.22s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast.success { background: rgba(14, 42, 26, 0.95); border-color: var(--green); color: #8fe3ae; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .splash-logo { animation: none; }
  .skel::after { animation: none; }
  .tab-view.active { animation: none; }
  .tab-view.active .card { animation: none; }
  .popup { animation: none; }
  .modal { animation: none; }
  .toast { animation: none; }
  .btn-pulse { animation: none; }
  .announce-banner { animation: none; }
  .btn-primary:active::after { animation: none; }
    .grad-anim,
  .splash-title,
  .section-title,
  .profile-name,
  .balance-value,
  .popup-text,
  .app-logo,
  .ql-label { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

@media (min-width: 600px) {
  .tab-view { padding: 24px; }
}

/* ---------- Reaction Bot Maker (original) ---------- */
.rb-app { position: fixed; inset: 0; z-index: 3000; background: #000; display: flex; flex-direction: column; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.rb-app.hidden { display: none; }
.rb-splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.rb-splash-emoji { font-size: 64px; animation: rbFloat 2s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(10,132,255,.6)); }
@keyframes rbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.rb-splash-title { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.3; }
.rb-splash-sub { font-size: 14px; color: #8E8E93; }
.rb-progress { width: 220px; height: 8px; border-radius: 99px; background: #1C1C1E; overflow: hidden; margin-top: 8px; }
.rb-progress-fill { height: 100%; width: 0; border-radius: 99px; background: #0A84FF; transition: width .9s ease; }
.rb-terms { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.7); z-index: 5; }
.rb-terms.hidden { display: none; }
.rb-terms-card { width: 100%; max-width: 380px; background: #1C1C1E; border-radius: 20px; padding: 24px 20px; animation: rbFadeUp .3s ease; }
.rb-terms-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 12px; text-align: center; }
.rb-terms-list { margin: 0 0 18px; padding-left: 20px; font-size: 13.5px; color: #E5E5EA; display: flex; flex-direction: column; gap: 8px; }
.rb-skip { margin-top: 10px; background: none; border: none; color: #8E8E93; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 8px; width: 100%; }
.rb-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rb-main.hidden { display: none; }
.rb-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; background: rgba(0,0,0,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #1C1C1E; }
.rb-back { width: 38px; height: 38px; border-radius: 12px; border: none; background: #1C1C1E; color: #fff; font-size: 22px; cursor: pointer; }
.rb-back-spacer { width: 38px; }
.rb-header-title { flex: 1; text-align: center; font-size: 17px; font-weight: 800; color: #fff; }
.rb-announce { display: flex; align-items: center; margin: 10px 16px 0; background: #1C1C1E; border-radius: 12px; overflow: hidden; }
.rb-announce.hidden { display: none; }
.rb-announce-tag { flex: 0 0 auto; background: #FF3B30; color: #fff; font-size: 10px; font-weight: 800; padding: 7px 10px; transform: skewX(-8deg); margin-left: 8px; border-radius: 4px; letter-spacing: .5px; }
.rb-marquee { flex: 1; overflow: hidden; white-space: nowrap; padding: 9px 10px; }
.rb-marquee span { display: inline-block; color: #fff; font-size: 13px; animation: rbMarquee 20s linear infinite; }
@keyframes rbMarquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.rb-body { flex: 1; overflow-y: auto; padding: 12px 16px 16px; min-height: 0; }
.rb-tab.hidden { display: none; }
.rb-tab { animation: rbFadeUp .3s ease; }
@keyframes rbFadeUp { from { opacity: 0; transform: translateY(10px); } }
.rb-page-title { font-size: 22px; font-weight: 800; color: #fff; margin: 2px 0 12px; }
.rb-sec-title { font-size: 13px; font-weight: 700; color: #8E8E93; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.rb-card { background: #1C1C1E; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.rb-card-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.rb-label { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.rb-input { width: 100%; box-sizing: border-box; background: #2C2C2E; border: 1px solid #3A3A3C; border-radius: 12px; color: #fff; font-size: 15px; padding: 13px 14px; margin-bottom: 12px; }
.rb-input::placeholder { color: #636366; }
.rb-input:focus { outline: none; border-color: #0A84FF; box-shadow: 0 0 0 3px rgba(10,132,255,.25); }
.rb-create-btn { display: block; width: 100%; box-sizing: border-box; border: none; border-radius: 999px; background: #0A84FF; color: #fff; font-size: 16px; font-weight: 800; padding: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(10,132,255,.4); transition: transform .12s; text-align: center; text-decoration: none; }
.rb-create-btn:active { transform: scale(.98); }
.rb-create-btn:disabled { opacity: .6; }
.rb-seg { display: flex; background: #2C2C2E; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.rb-segbtn { flex: 1; border: none; background: none; color: #8E8E93; font-size: 14px; font-weight: 700; padding: 9px; border-radius: 9px; cursor: pointer; }
.rb-segbtn.active { background: #0A84FF; color: #fff; }
.rb-support-btn { display: block; background: #0A84FF; color: #fff; text-align: center; font-weight: 700; border-radius: 999px; padding: 13px; margin-bottom: 10px; text-decoration: none; font-size: 15px; position: relative; }
.rb-hot-badge { position: absolute; top: 7px; right: 7px; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.3; color: #fff; background: linear-gradient(135deg, #ff6b35, #ff2d55); padding: 2px 7px; border-radius: 99px; box-shadow: 0 0 10px rgba(255,90,40,.6), 0 2px 6px rgba(255,80,40,.45); animation: hotWiggle 1.6s ease-in-out infinite; pointer-events: none; border: 1px solid rgba(255,255,255,.35); }
@keyframes hotWiggle { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.06); } }
.rb-rainbow-btn { position: relative; border-radius: 12px; padding: 13px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; margin-top: 10px; cursor: pointer; background: #2C2C2E; }
.rb-rainbow-btn::before { content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 2px; background: linear-gradient(135deg,#FF3B30,#FF9500,#FFCC00,#34C759,#0A84FF,#AF52DE); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.rstep { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #C7C7CC; background: #2C2C2E; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rstep span { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #0A84FF; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rstep b { color: #fff; }
.reaction-label { display: block; font-size: 14px; font-weight: 700; color: #fff; margin: 14px 0 8px; }
.reaction-emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 6px; }
/* The full reaction set is long (~70 emojis) — keep the Create grid
   in a tidy scrollable area instead of stretching the page. */
#rb-emojis { max-height: 318px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.rb-picked-label { color: #f5c542; font-weight: 700; margin-left: 4px; }
.re-emoji { font-size: 28px; padding: 10px 4px; border-radius: 14px; border: 2px solid #3A3A3C; background: #2C2C2E; cursor: pointer; transition: all .15s; }
.re-emoji.picked { border-color: #0A84FF; background: rgba(10,132,255,.2); transform: scale(1.08); box-shadow: 0 0 14px rgba(10,132,255,.5); animation: rbPop .25s ease; }
@keyframes rbPop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1.08); } }
.rb-custom-hint { font-size: 12px; color: #8E8E93; margin: -2px 0 10px; }
.rb-custom-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rb-custom-chip { position: relative; display: flex; align-items: center; gap: 6px; font-size: 22px; padding: 8px 12px; border-radius: 14px; border: 2px solid #3A3A3C; background: #2C2C2E; cursor: pointer; }
.rb-custom-chip.picked { border-color: #AF52DE; background: rgba(175,82,222,.18); box-shadow: 0 0 14px rgba(175,82,222,.5); }
.rb-custom-chip .rb-del { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #FF3B30; color: #fff; font-size: 11px; cursor: pointer; display: none; }
.rb-custom-chip.picked .rb-del { display: block; }
.rb-custom-chip .cbadge { font-size: 11px; }
.rb-custom-empty { font-size: 12.5px; color: #8E8E93; padding: 10px 12px; border: 1px dashed #3A3A3C; border-radius: 12px; text-align: center; margin-bottom: 6px; }
.rb-custom-empty.hidden { display: none; }
.rb-stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rb-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb-stat { background: #1C1C1E; border-radius: 14px; padding: 14px 8px; text-align: center; }
.rb-stat-num { font-size: 22px; font-weight: 800; color: #fff; }
.rb-stat-num.rb-green { color: #34C759; }
.rb-stat-num.rb-red { color: #FF3B30; }
.rb-stat-label { font-size: 11px; color: #8E8E93; margin-top: 4px; }
.rb-filters { display: flex; gap: 8px; margin-bottom: 10px; }
.rb-select { flex: 1; background: #1C1C1E; color: #fff; border: 1px solid #3A3A3C; border-radius: 12px; padding: 11px 12px; font-size: 14px; }
.rb-botcard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: #1C1C1E; margin-bottom: 10px; animation: rbFadeUp .3s ease both; }
.rb-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#0A84FF,#AF52DE); }
.rb-botinfo { flex: 1; min-width: 0; }
.rb-botname { font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-botuser { font-size: 12px; color: #0A84FF; margin-top: 2px; }
.rb-botdate { font-size: 11px; color: #8E8E93; margin-top: 2px; }
.rb-pill { font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.rb-pill.working { background: rgba(52,199,89,.18); color: #34C759; }
.rb-pill.stopped { background: rgba(255,59,48,.15); color: #FF3B30; }
.rb-statusdot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.rb-statusdot.on { background: #34C759; box-shadow: 0 0 8px #34C759; }
.rb-statusdot.off { background: #636366; }
.rb-chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.rb-chip { background: #2C2C2E; border-radius: 999px; padding: 3px 9px; font-size: 14px; }
.rb-botactions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.rb-switch { position: relative; width: 48px; height: 27px; border-radius: 99px; border: none; cursor: pointer; background: #3A3A3C; padding: 0; }
.rb-switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: left .2s; }
.rb-switch.on { background: #34C759; }
.rb-switch.on .knob { left: 24px; }
.rb-iconbtn { width: 36px; height: 36px; border-radius: 12px; border: none; background: #2C2C2E; color: #fff; font-size: 15px; cursor: pointer; }
.rb-iconbtn.danger { color: #FF3B30; }
.rb-viewbtn { border: none; background: #2C2C2E; color: #0A84FF; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.rb-empty { text-align: center; color: #8E8E93; font-size: 14px; padding: 40px 20px; }
.rb-empty.hidden { display: none; }
.rb-edit-banner { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,149,0,.12); border: 1px solid rgba(255,149,0,.4); color: #FFB340; font-size: 13px; }
.rb-edit-banner.hidden { display: none; }
.rb-edit-banner button { background: none; border: none; color: #0A84FF; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.rb-update { background: #1C1C1E; border-radius: 14px; padding: 14px; margin-bottom: 10px; animation: rbFadeUp .3s ease both; }
.rb-update-text { font-size: 14px; color: #fff; white-space: pre-wrap; }
.rb-update-date { font-size: 11px; color: #8E8E93; margin-top: 8px; }
.rb-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 26px; background: rgba(28,28,30,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.rb-tabbtn { background: none; border: none; color: #8E8E93; font-size: 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 18px; }
.rb-tabbtn span { font-size: 10.5px; font-weight: 700; }
.rb-tabbtn.active { color: #0A84FF; background: rgba(10,132,255,.14); }
.rb-modal { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; padding: 24px; }
.rb-modal.hidden { display: none; }
.rb-modal-card { width: 100%; max-width: 380px; background: #1C1C1E; border-radius: 20px; padding: 22px 18px; animation: rbFadeUp .25s ease; max-height: 82%; overflow-y: auto; }
.rb-modal-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 12px; text-align: center; }
.rb-detail-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 9px 2px; border-bottom: 1px solid #2C2C2E; }
.rb-detail-row .k { color: #8E8E93; flex: 0 0 auto; }
.rb-detail-row .v { color: #fff; font-weight: 600; text-align: right; word-break: break-all; }
.rb-instr { font-size: 13.5px; color: #E5E5EA; display: flex; flex-direction: column; gap: 10px; }
.rb-instr b { color: #fff; }
.rb-instr ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .rb-marquee span, .rb-splash-emoji, .re-emoji.picked, .rb-tab { animation: none !important; }
}
.rstep { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #C7C7CC; background: #2C2C2E; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rstep span { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #0A84FF; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rstep b { color: #fff; }
.reaction-label { display: block; font-size: 14px; font-weight: 700; color: #fff; margin: 14px 0 8px; }
.reaction-emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 6px; }
.re-emoji { font-size: 28px; padding: 10px 4px; border-radius: 14px; border: 2px solid #3A3A3C; background: #2C2C2E; cursor: pointer; transition: all .15s; }
.re-emoji.picked { border-color: #0A84FF; background: rgba(10,132,255,.2); transform: scale(1.08); box-shadow: 0 0 14px rgba(10,132,255,.5); animation: rbPop .25s ease; }
.rstep { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); background: rgba(47,168,255,.06); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.rstep span { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #37C6FF, #2F7DFF); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rstep b { color: #fff; }
.reaction-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin: 14px 0 8px; }
.reaction-label .pro-input { margin-top: 8px; }
.reaction-emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 6px; }
.re-emoji { font-size: 26px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--border); background: var(--card); cursor: pointer; transition: all .15s ease; }
.re-emoji.picked { border-color: #37C6FF; background: rgba(55,198,255,.15); transform: scale(1.08); box-shadow: 0 0 12px rgba(55,198,255,.35); }
.reaction-emojiset { font-size: 16px; margin-top: 2px; }

/* ============ 👑 Top Contributors Dashboard — premium 3D + animated ============ */
/* Glassmorphism + soft gradients + rounded corners. Transforms/opacity only. */
.rb-leaderboard { margin: 0 0 16px; }
.rb-lb-title { font-size: 15px; font-weight: 800; letter-spacing: .2px; margin: 2px 0 12px; color: #fff; text-align: center; }

/* --- #1 King card: layered gold gradients, glow, soft perspective tilt --- */
.rb-top-king {
  position: relative; overflow: hidden; text-align: center;
  padding: 36px 16px 22px; border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 215, 130, .30), transparent 55%),
    radial-gradient(80% 60% at 85% 100%, rgba(255, 170, 40, .16), transparent 60%),
    linear-gradient(160deg, #2b2208 0%, #1a1405 45%, #14100a 100%);
  border: 1px solid rgba(255, 215, 130, .45);
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(255, 215, 130, .12) inset,
    0 0 44px rgba(255, 200, 60, .28),
    inset 0 1px 0 rgba(255, 240, 190, .35);
  animation: rbKingIn .6s cubic-bezier(.22, 1, .36, 1) both, rbKingGlow 3.2s ease-in-out .6s infinite;
}
.rb-top-king::before { /* top glass highlight */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), transparent);
  pointer-events: none;
}
@keyframes rbKingIn {
  from { opacity: 0; transform: perspective(900px) rotateX(5deg) translateY(18px) scale(.97); }
  to { opacity: 1; transform: perspective(900px) rotateX(2deg) translateY(0) scale(1); }
}
@keyframes rbKingGlow {
  0%, 100% { box-shadow: 0 24px 48px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,130,.12) inset, 0 0 44px rgba(255,200,60,.28), inset 0 1px 0 rgba(255,240,190,.35); }
  50% { box-shadow: 0 24px 48px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(255,215,130,.20) inset, 0 0 68px rgba(255,200,60,.48), inset 0 1px 0 rgba(255,240,190,.45); }
}

/* --- 3D crown: gentle float/bob + sparkle shine --- */
.rb-king-crown {
  position: relative; display: inline-block; z-index: 1;
  font-size: 54px; line-height: 1; margin: 0 0 -4px;
  filter: drop-shadow(0 8px 12px rgba(255, 190, 40, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .4));
  transform-origin: 50% 80%;
  animation: rbCrownFloat 2.8s ease-in-out infinite;
}
.rb-king-crown::after {
  content: '✦'; position: absolute; right: -12px; top: -6px;
  font-size: 17px; color: #fff7cc; opacity: 0;
  animation: rbSparkle 2.2s ease-in-out infinite;
}
@keyframes rbCrownFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-6px) rotate(2deg) scale(1.06); }
}
@keyframes rbSparkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

/* --- King avatar: raised, 3D gold ring/border --- */
.rb-king-avatar-wrap { position: relative; z-index: 1; width: 88px; height: 88px; margin: 12px auto; }
.rb-king-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #1a1405;
  border: 3px solid rgba(255, 230, 150, .95);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .55),
    0 0 0 5px rgba(255, 210, 80, .18),
    inset 0 2px 3px rgba(255, 255, 255, .65),
    inset 0 -5px 9px rgba(120, 70, 0, .35);
}
.rb-king-name { position: relative; z-index: 1; font-size: 21px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.rb-king-user { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 235, 170, .85); margin-top: 2px; }
.rb-king-count {
  position: relative; z-index: 1; display: inline-block; margin-top: 12px; padding: 7px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: #241a00;
  background: linear-gradient(180deg, #ffe27a, #f5b301);
  box-shadow: 0 8px 18px rgba(245, 179, 1, .45), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* --- Ranked rows: soft 3D cards, hover lift, staggered entrance --- */
.rb-lb-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rb-lb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: rbRowIn .45s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--rb-delay, 0ms);
}
.rb-lb-row:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09); }
@keyframes rbRowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rb-lb-row.rb-medal-silver { border-color: rgba(200, 210, 220, .35); }
.rb-lb-row.rb-medal-bronze { border-color: rgba(210, 140, 80, .40); }
.rb-lb-rank { width: 30px; flex: 0 0 30px; text-align: center; font-size: 15px; font-weight: 800; color: #8E8E93; }
.rb-lb-rank.rb-medal { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.rb-lb-avatar {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.rb-lb-info { flex: 1; min-width: 0; }
.rb-lb-name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-lb-user { font-size: 12px; color: #8E8E93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-lb-count {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #ffd76a;
  background: rgba(255, 200, 60, .12); border: 1px solid rgba(255, 200, 60, .30);
  padding: 4px 10px; border-radius: 999px;
}

/* Reduced motion: no animation, keep the look. */
@media (prefers-reduced-motion: reduce) {
  .rb-top-king, .rb-king-crown, .rb-king-crown::after, .rb-lb-row { animation: none !important; }
  .rb-lb-row, .rb-top-king { transition: none; transform: none; }
}

/* ============ 📱 NXV SMS / OTP (Virtual Numbers) ============ */
/* Premium 3D + animated style, matching the RB dashboard. Panel sits above
   the RB Maker panel (z-index 3100 > 3000). */
.nxv-app {
  position: fixed; inset: 0; z-index: 3100; background: #000;
  display: flex; flex-direction: column; overflow-y: auto;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.nxv-app.hidden { display: none; }
.nxv-header {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  position: sticky; top: 0; z-index: 2;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nxv-back {
  width: 34px; height: 34px; flex: 0 0 34px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .10); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.nxv-header-title { flex: 1; font-size: 17px; font-weight: 800; color: #fff; text-align: center; }
.nxv-back-spacer { width: 34px; flex: 0 0 34px; }

/* NXV button inside the Reaction Bot Maker panel */
.rb-nxv-bar { padding: 10px 14px 0; }
.rb-nxv-btn {
  width: 100%; padding: 13px 16px; border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(160deg, #2a1e5f 0%, #1a1240 55%, #120c2e 100%);
  border: 1px solid rgba(150, 130, 255, .45);
  box-shadow: 0 12px 26px rgba(90, 60, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rb-nxv-btn:active { transform: translateY(1px) scale(.99); }

/* Not-configured state */
.nxv-not-configured { text-align: center; padding: 56px 24px; animation: nxvFadeUp .4s ease both; }
.nxv-nc-emoji { font-size: 52px; margin-bottom: 12px; }
.nxv-nc-title { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.nxv-nc-text { font-size: 14px; color: #8E8E93; line-height: 1.5; }

.nxv-body { padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); }
.nxv-tabbar {
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 14px; border-radius: 22px; padding: 6px;
  background: rgba(28, 28, 30, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  scrollbar-width: none;
}
.nxv-tabbar::-webkit-scrollbar { display: none; }
.nxv-tabbtn {
  border: none; background: transparent; color: #8E8E93; cursor: pointer;
  padding: 8px 2px; border-radius: 16px; font-size: 18px; line-height: 1;
  flex: 0 0 auto; min-width: 54px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: background .2s ease, color .2s ease;
}
.nxv-tabbtn span { font-size: 10px; font-weight: 700; }
.nxv-tabbtn.active { background: rgba(90, 60, 220, .35); color: #fff; }
.nxv-tab { animation: nxvFadeUp .35s ease both; }
.nxv-tab.hidden { display: none; }
@keyframes nxvFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.nxv-sec-title { font-size: 16px; font-weight: 800; color: #fff; margin: 4px 0 10px; }
.nxv-hint { font-size: 12px; color: #8E8E93; line-height: 1.5; margin: 0 0 12px; }
.nxv-label { display: block; font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.nxv-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14); background: #1C1C1E; color: #fff;
  font-size: 15px; outline: none;
}
.nxv-input:focus { border-color: rgba(150, 130, 255, .6); box-shadow: 0 0 0 3px rgba(90, 60, 220, .25); }
.nxv-checkrow { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; color: #fff; }
.nxv-checkrow input { width: 18px; height: 18px; accent-color: #5a3cdc; }

.nxv-btn {
  padding: 11px 18px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .2s ease;
}
.nxv-btn:active { transform: scale(.97); }
.nxv-btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #fff; margin-top: 14px;
  background: linear-gradient(180deg, #6a4fe0, #4a2fb8);
  box-shadow: 0 12px 26px rgba(90, 60, 220, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nxv-btn-primary:disabled { opacity: .55; cursor: default; }
.nxv-btn-primary:active { transform: translateY(1px) scale(.99); }

.nxv-loading { text-align: center; color: #8E8E93; font-size: 14px; padding: 24px 0; }
.nxv-error { text-align: center; color: #ff6b6b; font-size: 14px; padding: 20px 0; }
.nxv-empty { text-align: center; color: #8E8E93; font-size: 14px; padding: 24px 8px; }

/* Range cards */
.nxv-range-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 16px; margin-bottom: 8px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #fff; font-size: 15px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: nxvFadeUp .35s ease both;
}
.nxv-range-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09); }
.nxv-range-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxv-range-go { color: #a78bfa; font-size: 13px; font-weight: 800; flex: 0 0 auto; }

/* Result / message / number cards */
.nxv-result-card, .nxv-msg-card, .nxv-num-card {
  padding: 14px 16px; margin: 12px 0; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: nxvFadeUp .35s ease both;
}
.nxv-result-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.nxv-result-number {
  font-size: 26px; font-weight: 800; color: #a78bfa; letter-spacing: .5px;
  margin-bottom: 12px; word-break: break-all;
}
.nxv-msg-from { font-size: 13px; font-weight: 700; color: #a78bfa; margin-bottom: 6px; }
.nxv-msg-text { font-size: 15px; color: #fff; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.nxv-msg-time { font-size: 12px; color: #8E8E93; margin-top: 8px; }
.nxv-num-number { font-size: 19px; font-weight: 800; color: #fff; word-break: break-all; }
.nxv-num-meta { font-size: 12px; color: #8E8E93; margin-top: 6px; }
.nxv-otp-code { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #4ade80; margin: 6px 0; }
.nxv-lb-row, .nxv-traffic-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px; padding: 11px 13px; margin-bottom: 9px;
  animation: nxvFadeUp .35s ease both;
}
.nxv-lb-row.me { border-color: rgba(255, 213, 74, .55); background: rgba(255, 213, 74, .08); }
.nxv-lb-rank { font-size: 17px; flex: 0 0 auto; }
.nxv-lb-name { flex: 1; min-width: 0; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxv-lb-count { font-size: 12px; font-weight: 700; color: #a78bfa; flex: 0 0 auto; }
.nxv-traffic-row { display: block; }
.nxv-traffic-app { font-size: 15px; font-weight: 800; color: #fff; }
.nxv-traffic-country { font-size: 13px; color: #8E8E93; margin-top: 4px; }

/* ⚡ Zenex Pro polish: gold hero, gradient stat cards, glowing winner row. */
.nxv-pro-hero {
  background: linear-gradient(120deg, #3a2c07, #6d5310, #3a2c07, #241a3f);
  background-size: 300% 300%;
  animation: homeGradShift 8s ease infinite, nxvFadeUp .35s ease both;
  border: 1px solid rgba(255, 213, 74, .35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 213, 74, .12);
}
.nxv-tabbtn[data-nxvtab="pro"].active { background: rgba(255, 213, 74, .22); color: #ffd54a; }
#nxv-tab-pro .nxv-stat-card { background: linear-gradient(150deg, rgba(139, 92, 246, .22), rgba(255, 255, 255, .04)); border: 1px solid rgba(139, 92, 246, .30); }
#nxv-tab-pro .nxv-stat-card:nth-child(2) { background: linear-gradient(150deg, rgba(55, 198, 255, .20), rgba(255, 255, 255, .04)); border-color: rgba(55, 198, 255, .30); }
#nxv-tab-pro .nxv-stat-card:nth-child(3) { background: linear-gradient(150deg, rgba(255, 213, 74, .20), rgba(255, 255, 255, .04)); border-color: rgba(255, 213, 74, .32); }
#nxv-tab-pro .nxv-stat-card:nth-child(4) { background: linear-gradient(150deg, rgba(34, 197, 94, .20), rgba(255, 255, 255, .04)); border-color: rgba(34, 197, 94, .30); }
.nxv-lb-row:first-child { border-color: rgba(255, 213, 74, .55); background: linear-gradient(120deg, rgba(255, 213, 74, .16), rgba(255, 255, 255, .04)); box-shadow: 0 0 18px rgba(255, 213, 74, .15); }
.nxv-traffic-row { border-left: 3px solid rgba(255, 213, 74, .65); }
.nxv-otp-code {
  display: inline-block; padding: 6px 14px; border-radius: 12px;
  background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35);
  text-shadow: 0 0 14px rgba(74, 222, 128, .45);
}
/* 📡 Live feed cards: pulsing dot, service + country header, sync badge. */
.nxv-sync { color: #4ade80; animation: entryAdPulse 1.6s ease-in-out infinite; }
.nxv-live-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.nxv-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .9);
  animation: entryAdPulse 1.4s ease-in-out infinite;
}
.nxv-live-service { font-size: 13px; font-weight: 800; color: #fff; }
.nxv-live-country { margin-left: auto; font-size: 11.5px; color: #aeb6c2; }
/* 🎡 Spin polish: jackpot bar shimmer + glow, card aura. */
.spin-jackpot {
  background: linear-gradient(150deg, rgba(255, 213, 74, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 213, 74, .30); border-radius: 14px; padding: 10px 12px;
}
.spin-jackpot-bar > div {
  background: linear-gradient(90deg, #b8860b, #ffd54a, #fff3b0, #ffd54a);
  background-size: 200% 100%;
  animation: gradShift 2.2s linear infinite;
  box-shadow: 0 0 12px rgba(255, 213, 74, .55);
}
.spin-card { box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 34px rgba(47, 168, 255, .12); }
.nxv-raw {
  font-size: 11px; color: #c8c8d0; white-space: pre-wrap; word-break: break-word;
  background: rgba(0, 0, 0, .35); border-radius: 10px; padding: 10px; margin: 8px 0 0;
  max-height: 220px; overflow-y: auto;
}

/* Real Telegram photos in the leaderboard (img fills the same circle) */
.rb-lb-avatar-img { object-fit: cover; }
.rb-king-avatar.rb-lb-avatar-img { object-fit: cover; }

/* ---------- 🏠 ROH SMS OTP Home dashboard + 🖥️ Console ---------- */
.nxv-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px; margin-bottom: 14px; border-radius: 20px;
  background: linear-gradient(140deg, #3b2a8f 0%, #241a5e 45%, #150d38 100%);
  border: 1px solid rgba(150, 130, 255, .45);
  box-shadow: 0 16px 34px rgba(90, 60, 220, .40), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: nxvFadeUp .35s ease both;
}
.nxv-hero-emoji { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.nxv-hero-text { flex: 1; min-width: 0; }
.nxv-hero-title { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; }
.nxv-hero-sub { font-size: 12px; color: rgba(255, 255, 255, .72); margin-top: 3px; }
.nxv-hero-status {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #ffd166;
  background: rgba(0, 0, 0, .30); border: 1px solid rgba(255, 209, 102, .35);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.nxv-hero-status.ok { color: #4ade80; border-color: rgba(74, 222, 128, .4); }
.nxv-hero-status.bad { color: #ff6b6b; border-color: rgba(255, 107, 107, .4); }

.nxv-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.nxv-stat-card {
  padding: 14px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: nxvFadeUp .35s ease both;
}
.nxv-stat-value { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.nxv-stat-label { font-size: 12px; font-weight: 700; color: #a78bfa; margin-top: 5px; }

.nxv-full-btn { width: 100%; margin: 4px 0 16px; }

.nxv-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nxv-nav-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 12px; border-radius: 18px; cursor: pointer; text-align: left;
  color: #fff; border: 1px solid rgba(150, 130, 255, .35);
  background: linear-gradient(160deg, rgba(90, 60, 220, .32), rgba(40, 24, 90, .55));
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: nxvFadeUp .35s ease both;
}
.nxv-nav-card:active { transform: translateY(1px) scale(.98); }
.nxv-nav-emoji { font-size: 22px; line-height: 1; }
.nxv-nav-label { font-size: 14px; font-weight: 800; }
.nxv-nav-sub { font-size: 11px; color: rgba(255, 255, 255, .65); }

.nxv-search { margin-bottom: 12px; }
.nxv-console-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nxv-console-input { flex: 1; min-width: 0; }
.nxv-sync {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #4ade80;
  background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35);
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}

/* Reduced motion: no animation, keep the look. */
@media (prefers-reduced-motion: reduce) {
  .nxv-tab, .nxv-range-card, .nxv-result-card, .nxv-msg-card, .nxv-num-card, .nxv-not-configured { animation: none !important; }
  .nxv-range-card, .nxv-btn, .nxv-btn-primary, .rb-nxv-btn { transition: none; transform: none; }
}

/* ============ 🤖 AI Agent (earning) — AI Lab style, premium 3D + animated ============ */
.ai-agent-app {
  position: fixed; inset: 0; z-index: 3100; background: #000;
  display: flex; flex-direction: column; overflow-y: auto;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.ai-agent-app.hidden { display: none; }
.ai-agent-header {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  position: sticky; top: 0; z-index: 2;
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ai-agent-back {
  width: 34px; height: 34px; flex: 0 0 34px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .10); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.ai-agent-header-title { flex: 1; font-size: 17px; font-weight: 800; color: #fff; text-align: center; }
.ai-agent-back-spacer { width: 34px; flex: 0 0 34px; }

.ai-agent-not-enabled { text-align: center; padding: 56px 24px; animation: aiAgentFadeUp .4s ease both; }
.ai-agent-ne-emoji { font-size: 52px; margin-bottom: 12px; }
.ai-agent-ne-title { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ai-agent-ne-text { font-size: 14px; color: #8E8E93; line-height: 1.5; }

.ai-agent-body { padding: 18px 14px calc(20px + env(safe-area-inset-bottom)); }

/* Hero: robot with 3D depth + gentle float, status pill */
.ai-agent-hero {
  text-align: center; padding: 10px 10px 16px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(40, 28, 90, .85) 0%, rgba(16, 12, 40, .9) 55%, rgba(10, 8, 28, .95) 100%);
  border: 1px solid rgba(150, 130, 255, .35);
  box-shadow: 0 18px 38px rgba(90, 60, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  animation: aiAgentFadeUp .45s ease both;
}
.ai-agent-robot {
  font-size: 84px; line-height: 1; margin: 4px 0 8px;
  filter: drop-shadow(0 14px 22px rgba(120, 90, 255, .55));
  animation: aiAgentFloat 3.2s ease-in-out infinite;
}
.ai-agent-status {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #FFD60A;
  background: rgba(255, 214, 10, .12); border: 1px solid rgba(255, 214, 10, .35);
}
.ai-agent-status.running {
  color: #34C759; background: rgba(52, 199, 89, .14);
  border-color: rgba(52, 199, 89, .45);
  box-shadow: 0 0 18px rgba(52, 199, 89, .35);
  animation: aiAgentPulse 2.2s ease-in-out infinite;
}
.ai-agent-rate { margin-top: 8px; font-size: 12px; color: #B9B3E8; }

/* Tokens / Power stat boxes (AI Lab style) */
.ai-agent-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px;
}
.ai-agent-stat {
  padding: 16px 10px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, rgba(36, 36, 42, .95) 0%, rgba(20, 20, 26, .95) 100%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .10);
  animation: aiAgentFadeUp .45s ease both;
}
.ai-agent-stat:nth-child(2) { animation-delay: .06s; }
.ai-agent-stat-label { display: block; font-size: 12px; font-weight: 700; color: #8E8E93; text-transform: uppercase; letter-spacing: .06em; }
.ai-agent-stat-value { display: block; margin-top: 4px; font-size: 28px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.ai-agent-pending {
  text-align: center; font-size: 13px; color: #B9B3E8; margin: 2px 0 14px;
  animation: aiAgentFadeUp .45s ease both .1s;
}
.ai-agent-pending b { color: #FFD60A; }

/* Action buttons — AI Lab: green START, blue SELL */
.ai-agent-start, .ai-agent-claim, .ai-agent-sell, .ai-agent-upgrade {
  width: 100%; padding: 15px 16px; border: none; border-radius: 18px;
  font-size: 16px; font-weight: 900; color: #fff; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  animation: aiAgentFadeUp .45s ease both .14s;
}
.ai-agent-start {
  background: linear-gradient(180deg, #3CCB6F 0%, #1E9E4A 55%, #157A38 100%);
  box-shadow: 0 14px 30px rgba(46, 204, 113, .45), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.ai-agent-claim {
  margin-top: 10px; animation-delay: .18s;
  background: linear-gradient(180deg, #FFB340 0%, #F59E0B 55%, #D97706 100%);
  box-shadow: 0 14px 30px rgba(245, 158, 11, .40), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.ai-agent-sell {
  margin-top: 10px; animation-delay: .22s;
  background: linear-gradient(180deg, #3FA9F5 0%, #1D7FE0 55%, #145CB3 100%);
  box-shadow: 0 14px 30px rgba(29, 127, 224, .45), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.ai-agent-upgrade {
  margin-top: 10px; animation-delay: .26s;
  background: linear-gradient(160deg, #2a1e5f 0%, #1a1240 55%, #120c2e 100%);
  border: 1px solid rgba(150, 130, 255, .45);
  box-shadow: 0 12px 26px rgba(90, 60, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ai-agent-start:active, .ai-agent-claim:active, .ai-agent-sell:active, .ai-agent-upgrade:active { transform: translateY(1px) scale(.99); }
.ai-agent-start:disabled, .ai-agent-claim:disabled, .ai-agent-sell:disabled, .ai-agent-upgrade:disabled { opacity: .45; cursor: default; }
.ai-agent-sell-hint { margin-top: 8px; text-align: center; font-size: 12px; color: #8E8E93; }
.ai-agent-hint { margin-top: 16px; text-align: center; font-size: 12.5px; color: #8E8E93; line-height: 1.5; }

@keyframes aiAgentFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}
@keyframes aiAgentPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(52, 199, 89, .25); }
  50% { box-shadow: 0 0 24px rgba(52, 199, 89, .5); }
}
@keyframes aiAgentFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-agent-robot, .ai-agent-status.running, .ai-agent-hero,
  .ai-agent-stat, .ai-agent-pending, .ai-agent-start, .ai-agent-claim,
  .ai-agent-sell, .ai-agent-upgrade, .ai-agent-not-enabled { animation: none !important; }
}

/* ---------- 🛡️ In-App Admin System ---------- */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-btn {
  border: 1px solid rgba(255, 196, 0, .55); border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #3a2a00, #1a1200); color: #ffcf3f;
  font-size: 13px; font-weight: 800; padding: 7px 14px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 180, 0, .25);
}
.admin-btn:active { transform: scale(.97); }
.admin-sec { margin-bottom: 22px; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.admin-stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.admin-stat-label { font-size: 12px; color: #8E8E93; font-weight: 700; }
.admin-stat-value { font-size: 22px; font-weight: 800; color: #fff; }
.admin-textarea { min-height: 74px; resize: vertical; }
.admin-result { font-size: 13px; color: #8E8E93; margin-top: 8px; line-height: 1.5; min-height: 18px; }

/* Admin popup modal (shown to all users when active, once per session) */
.admin-popup-overlay {
  position: fixed; inset: 0; z-index: 4000; background: rgba(0, 0, 0, .65);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.admin-popup-overlay.hidden { display: none; }
.admin-popup-card {
  position: relative; width: 100%; max-width: 360px; background: #141420;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 22px;
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: nxvFadeUp .35s ease both;
}
.admin-popup-close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .10);
  color: #fff; font-size: 14px; cursor: pointer;
}
.admin-popup-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.admin-popup-img.hidden { display: none; }
.admin-popup-title { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.admin-popup-text { font-size: 14px; color: #c9c9d4; line-height: 1.6; margin-bottom: 16px; white-space: pre-wrap; }

/* ---------- 📢 Button Ads (small badge attached to a button) ---------- */
.btn-ad-badge {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  max-width: 100%; background: linear-gradient(135deg, rgba(255, 180, 0, .22), rgba(255, 100, 0, .18));
  border: 1px solid rgba(255, 180, 0, .45); border-radius: 999px;
  padding: 2px 8px; font-size: 10px; font-weight: 700; color: #ffcf7d;
  line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-ad-img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex: 0 0 16px; }
.btn-ad-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Quick-link buttons: badge sits under the label, full-width row */
.quick-link .btn-ad-badge { margin-top: 6px; width: 100%; justify-content: center; }
/* Tab-bar buttons: tiny pill under the label */
/* Tab badges float over the button's corner — they must NEVER take
   layout space, or the tab buttons visibly shift when badges load
   (user report 2026-10-20: bottom buttons moving). */
.tab-btn .btn-ad-badge {
  position: absolute; top: -2px; right: 2px; z-index: 3;
  font-size: 9px; padding: 1px 6px; max-width: 64px;
}
.tab-center .btn-ad-badge { max-width: 84px; }

/* 🎬 AdsGram Watch Ad card (Tasks tab) */
.ad-watch-card { margin-bottom: 14px; }
.ad-watch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-watch-head .btn { flex-shrink: 0; }
.ad-watch-progress { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.ad-watch-card .btn:disabled { opacity: .55; cursor: default; }

/* ---------- 📺 Daily Ad Tasks — beautiful touch box cards ---------- */
.daily-ad-card { margin-bottom: 14px; }
.daily-ad-head { margin-bottom: 12px; }
.daily-ad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.daily-ad-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1c2338, #151a2c);
  border: 1px solid #2a3350;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  min-height: 132px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.daily-ad-box:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.daily-ad-box.is-done { opacity: .6; border-color: #2e7d5b; }
.daily-ad-box-top { display: flex; justify-content: space-between; align-items: center; }
.daily-ad-icon { font-size: 28px; line-height: 1; }
.daily-ad-reward {
  font-size: 12px; font-weight: 700; color: #ffd700;
  background: rgba(255, 215, 0, .12);
  border: 1px solid rgba(255, 215, 0, .35);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.daily-ad-title { font-size: 14px; font-weight: 600; line-height: 1.35; flex: 1; }
.daily-ad-btn {
  width: 100%; min-height: 40px;
  font-size: 14px; font-weight: 700;
  border-radius: 12px;
  touch-action: manipulation;
}
.daily-ad-btn:active { transform: scale(.97); }
.daily-ad-btn:disabled { opacity: .55; cursor: default; }

/* ---------- 🖼️ Work task cover image ---------- */
.work-card { overflow: hidden; }
.work-cover-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
  margin-bottom: 10px;
}

/* ---------- 📺 Entry ad gate (app open) ---------- */
.entry-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 8, 16, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.entry-ad-box { text-align: center; max-width: 320px; }
.entry-ad-icon { font-size: 56px; line-height: 1; margin-bottom: 14px; animation: entryAdPulse 1.2s ease-in-out infinite; }
.entry-ad-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.entry-ad-sub { font-size: 14px; color: #8a94ad; line-height: 1.5; }
@keyframes entryAdPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .8; } }

/* ---------- 💼 Job Marketplace ---------- */
.market-home-card { margin: 12px 0; }
.market-home-sub { color: var(--text-dim); font-size: 13px; margin: 6px 0 12px; line-height: 1.5; }
.market-app {
  position: fixed; inset: 0; z-index: 9000; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
}
.market-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--card-border); background: var(--card); }
.market-back { font-size: 30px; line-height: 1; background: none; border: none; color: var(--text); cursor: pointer; padding: 0 6px; }
.market-header-title { font-weight: 800; font-size: 17px; flex: 1; text-align: center; }
.market-back-spacer { width: 34px; }
.market-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.market-tab-btn { flex: 1; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.market-tab-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.market-body { flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.market-panel.hidden { display: none; }
.market-jobs { display: flex; flex-direction: column; gap: 10px; }
.market-job-card { padding: 14px; }
.market-poster { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.market-poster-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.market-poster-fallback { display: flex; align-items: center; justify-content: center; background: var(--card-border); font-size: 13px; }
.market-job-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.market-job-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; white-space: pre-wrap; word-break: break-word; margin-bottom: 8px; }
.market-job-foot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.market-job-budget { font-weight: 800; color: #22c55e; font-size: 16px; }
.market-job-status { font-size: 12px; color: var(--text-dim); text-transform: capitalize; }
.market-job-btn { width: 100%; }
.market-status-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card-border); font-size: 12px; font-weight: 700; text-transform: capitalize; }
.market-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 24px 8px; }
.market-note { color: var(--text-dim); font-size: 12px; line-height: 1.5; margin: 6px 0 12px; }
.market-label { display: block; font-weight: 700; font-size: 13px; margin: 12px 0 5px; }
.market-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: var(--text); font-size: 14px; box-sizing: border-box; }
.market-textarea { min-height: 110px; resize: vertical; }
.market-fee { font-size: 12px; color: var(--text-dim); margin: 8px 0 12px; }
.market-section-gap { margin-top: 20px; }

/* ---------- 💼 Marketplace: icon picker / expiry / ban ---------- */
.market-icon-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.market-icon-btn { width: 42px; height: 42px; font-size: 22px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); cursor: pointer; }
.market-icon-btn.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-glow); }
.market-job-expiry { font-size: 12px; color: #f59e0b; font-weight: 600; margin-bottom: 8px; }
.market-ban-notice { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #ef4444; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }

/* ---------- 💼 Marketplace: pay method / TON / BuySell / stats ---------- */
.market-pay-row { display: flex; gap: 6px; margin: 4px 0 8px; }
.market-pay-btn { flex: 1; padding: 9px 4px; border-radius: 10px; border: 1px solid var(--card-border); background: var(--card); color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.market-pay-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.market-ton-box { background: rgba(0, 136, 204, .08); border: 1px solid rgba(0, 136, 204, .3); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.market-ton-quote { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.market-job-stats { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.market-bs-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.market-bs-badge.buy { background: rgba(59, 130, 246, .15); color: #3b82f6; }
.market-bs-badge.sell { background: rgba(34, 197, 94, .15); color: #22c55e; }

/* ---------- 💼 Work Tasks board (FIXED tasks, bordered cards) ---------- */
.work-section { margin: 18px 0 4px; }
.work-section-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 800; margin: 0 2px 10px;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 50%, var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-section-tag { font-size: 11px; font-weight: 700; color: var(--text-dim); background: none; -webkit-text-fill-color: var(--text-dim); }
.work-cards { display: flex; flex-direction: column; gap: 12px; }
.work-task-card {
  border: 2px solid transparent;
  border-radius: 16px;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, #3b82f6, #8b5cf6 45%, #06b6d4) border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.work-task-card:active { transform: scale(.985); box-shadow: 0 3px 12px rgba(0, 0, 0, .3); }
.work-task-top { display: flex; align-items: center; gap: 12px; }
.work-task-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(139,92,246,.22));
}
.work-task-info { flex: 1; min-width: 0; }
.work-task-title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.work-task-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; margin-top: 2px; }
.work-task-reward {
  flex: 0 0 auto; font-weight: 800; font-size: 13px; color: #22c55e;
  background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.work-task-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.work-task-status { flex: 1; font-size: 12px; color: var(--text-dim); }
.work-task-btn { padding: 9px 20px; font-size: 13px; border-radius: 99px; }

/* 📋 My Posts top icon (Marketplace header) + live-count badge */
.market-top-icon-btn {
  position: relative; width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.market-count-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px;
  padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}

/* 📤 Post progress (1→100) + live success message */
.market-post-progress { margin-top: 12px; }
.market-progress-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.market-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e); transition: width .15s linear; }
.market-progress-text { text-align: center; font-size: 12px; font-weight: 800; margin-top: 5px; color: var(--text-dim); }
.market-post-success { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.45); color: #4ade80; font-weight: 800; font-size: 14px; text-align: center; }

/* 🖼️ Job image cover + 🔗 task links on job cards */
.market-job-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; margin: 8px 0 4px; display: block; }
.market-image-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin-top: 8px; display: block; border: 1px solid rgba(255,255,255,.12); }
.market-job-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.market-link-chip { background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18)); border: 1px solid rgba(139,92,246,.45); color: #c4b5fd; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-link-chip:active { transform: scale(.97); }
.market-link-row { display: flex; gap: 6px; margin-bottom: 6px; }
.market-link-input { flex: 1; margin: 0; }
.market-link-remove { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; border-radius: 10px; width: 40px; cursor: pointer; font-size: 14px; }

/* ✅ Post success actions (stay visible until the user taps one) */
.market-post-success-actions { display: flex; gap: 8px; margin-top: 10px; }
.market-post-success-actions .btn { flex: 1; }
/* ⚠️ Insufficient balance popup (Marketplace post) */
.market-nobal-text { font-size: 14px; line-height: 1.6; color: var(--text-dim); text-align: center; margin: 0 0 12px; }
.market-nobal-amounts { font-size: 14px; color: var(--text); text-align: center; margin: 0 0 16px; }

/* 🏆 Top referrers — highlight the viewer's own row */
.team-item-me { border: 1px solid rgba(139,92,246,.6); background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(139,92,246,.12)); }

/* 💎 Exchange Diamonds → Cash */
.exchange-card { background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08)); }
.exchange-rate { font-size: 22px; font-weight: 800; text-align: center; margin: 10px 0 4px; color: var(--text); }
.exchange-rate span { font-size: 18px; }
.exchange-have { font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 8px; margin-bottom: 10px; }

/* 💼 Marketplace beautification + 2-step flow */
.market-job-card { padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: 0 4px 14px rgba(0,0,0,.18); margin-bottom: 12px; }
.market-job-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.market-job-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.market-awaiting-card { border-color: rgba(245,158,11,.55); background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.03)); }
.market-awaiting-badge { font-size: 12.5px; font-weight: 700; color: #f59e0b; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); border-radius: 8px; padding: 6px 9px; margin-bottom: 10px; }
.market-confirm-row { display: flex; gap: 8px; margin-top: 10px; }
.market-confirm-row .market-job-btn { flex: 1; }
.market-done-notice { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #22c55e; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }

/* 🃏 Marketplace grid (Gram Play Center style) + Task Detail */
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.market-grid-card { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.market-grid-card:active { transform: scale(.98); }
.market-grid-img { width: 100%; height: 110px; object-fit: cover; display: block; background: rgba(255,255,255,.05); }
.market-grid-fallback { display: flex; align-items: center; justify-content: center; font-size: 44px; }
.market-grid-body { padding: 10px 12px 12px; }
.market-grid-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.market-grid-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 5px; }
/* 📋 Task Detail modal */
.market-detail-card { max-width: 520px; max-height: 88vh; overflow-y: auto; position: relative; }
.rb-modal-close { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.35); color: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 15px; cursor: pointer; z-index: 2; }
.market-detail-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.market-detail-title { font-size: 19px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.market-detail-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.market-detail-label { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.market-detail-desc { font-size: 14px; line-height: 1.6; color: var(--text-dim); white-space: pre-wrap; word-break: break-word; }
.market-detail-steps { font-size: 13.5px; line-height: 1.65; color: var(--text-dim); padding-left: 20px; margin: 0 0 14px; }
.market-detail-steps li { margin-bottom: 6px; }
.market-detail-note { font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 10px; }
.market-detail-countdown { text-align: center; font-size: 15px; font-weight: 700; color: #f59e0b; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.35); border-radius: 10px; padding: 10px; margin: 12px 0; }
.market-detail-countdown-sub { font-size: 12px; font-weight: 400; color: var(--text-dim); }

/* 📺 Daily Claim ad viewer — full-screen dark, like a Telegram sponsored ad */
.dc-ad-modal { position: fixed; inset: 0; z-index: 9999; background: #0b0e14; display: flex; flex-direction: column; }
.dc-ad-modal.hidden { display: none; }
.dc-ad-top { padding: 14px 14px 0; }
.dc-ad-segments { display: flex; gap: 6px; }
.dc-ad-seg { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.dc-ad-seg.done { background: #4ade80; }
.dc-ad-seg.active { background: rgba(255,255,255,.18); }
.dc-ad-seg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: #60a5fa; border-radius: 2px; }
/* Top progress bar over the Monetag ad: visible while the ad sequence runs. */
.dc-ad-topbar { position: fixed; top: 0; left: 0; right: 0; bottom: auto; margin: 0; width: 100%; max-width: none; box-sizing: border-box; z-index: 2147483647; padding: 8px 10px; background: rgba(0,0,0,.35); pointer-events: none; border: none; }
.dc-ad-topbar .dc-ad-seg { height: 6px; background: rgba(255,255,255,.35); }
.dc-ad-topbar .dc-ad-seg.done { background: #4ade80; }
.dc-ad-close { margin-top: 12px; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.dc-ad-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.dc-ad-count { font-size: 15px; font-weight: 700; color: #9ca3af; }
.dc-ad-timer { font-size: 72px; font-weight: 800; line-height: 1.1; margin: 10px 0; }
.dc-ad-status { font-size: 16px; color: #e5e7eb; }
.dc-ad-hint { font-size: 13px; color: #9ca3af; margin-top: 10px; }

/* 🔒 Join Force gate: full-screen premium UI (gradient + glass card). */
.fj-gate { position: fixed; inset: 0; z-index: 2147483646; background: linear-gradient(160deg, #0b0e14 0%, #1a1033 45%, #0b2a4a 100%); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; overflow-y: auto; }
.fj-card { width: 100%; max-width: 430px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 30px 22px 24px; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fjPop .45s ease both; }
@keyframes fjPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.fj-lock { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 10px 30px rgba(124,58,237,.5); }
/* 🖼️ Gate hero (user request 2026-10-20): a real glowing picture
   replaces the plain lock emoji — floating, pulsing light halo and a
   shine sweep, so the gate feels premium and alive. */
.fj-hero { position: relative; width: 104px; height: 104px; margin: 0 auto 16px; }
.fj-hero::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(55,198,255,.55), rgba(124,58,237,.30) 45%, transparent 70%); filter: blur(12px); animation: fjGlowPulse 2.8s ease-in-out infinite; }
.fj-hero-img { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(245,197,66,.8); box-shadow: 0 0 0 4px rgba(47,168,255,.22), 0 14px 34px rgba(0,0,0,.55), 0 0 34px rgba(245,197,66,.35); animation: fjFloat 3.6s ease-in-out infinite; }
.fj-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 104px; height: 104px; border-radius: 50%; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.38) 48%, transparent 62%); background-size: 260% 260%; animation: fjShine 3.4s ease infinite; }
@keyframes fjFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fjGlowPulse { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.09); } }
@keyframes fjShine { 0% { background-position: 130% 0; } 55%,100% { background-position: -130% 0; } }
.fj-card { box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 46px rgba(124,58,237,.22), inset 0 1px 0 rgba(255,255,255,.15); }
.fj-title { font-size: 24px; font-weight: 800; letter-spacing: .2px; margin-bottom: 8px; }
.fj-text { font-size: 14px; color: #c7cede; line-height: 1.55; margin-bottom: 18px; }
.fj-progress { height: 8px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.fj-progress-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e); background-size: 200% 100%; animation: fjBarShine 1.6s linear infinite; transition: width .5s ease; }
@keyframes fjBarShine { from { background-position: 0 0; } to { background-position: -200% 0; } }
.fj-progress-text { font-size: 12px; color: #9aa4bf; margin-bottom: 16px; }
.fj-channel { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px 12px; margin-bottom: 10px; text-align: left; transition: border-color .2s; }
.fj-channel.joined { border-color: rgba(74,222,128,.55); }
.fj-channel-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 6px 18px rgba(124,58,237,.4); overflow: hidden; border: 2px solid rgba(255,255,255,.28); }
.fj-chan-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.fj-channel.joined .fj-channel-avatar { border-color: rgba(74,222,128,.75); box-shadow: 0 0 14px rgba(74,222,128,.45); }
.fj-channel-info { flex: 1; min-width: 0; }
.fj-channel-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-channel-sub { font-size: 12px; color: #9aa4bf; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-channel-state { font-size: 11px; margin-top: 3px; font-weight: 600; }
.fj-channel-state.joined { color: #4ade80; }
.fj-channel-state.pending { color: #fbbf24; }
.fj-join-btn { flex-shrink: 0; border: none; cursor: pointer; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; padding: 10px 18px; border-radius: 99px; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 6px 18px rgba(37,99,235,.45); transition: transform .15s, box-shadow .15s; }
.fj-join-btn:active { transform: scale(.95); }
.fj-joined-badge { flex-shrink: 0; display: flex; align-items: center; gap: 4px; color: #4ade80; font-weight: 800; font-size: 13px; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4); padding: 8px 12px; border-radius: 99px; }
.fj-status { font-size: 13px; color: #fbbf24; min-height: 18px; margin: 12px 0; }
.fj-verify-btn { width: 100%; border: none; cursor: pointer; color: #fff; font-weight: 800; font-size: 15px; padding: 14px; border-radius: 99px; background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 10px 26px rgba(34,197,94,.4); transition: transform .15s, opacity .15s; animation: fjVerifyPulse 2.2s ease-in-out infinite; }
@keyframes fjVerifyPulse { 0%,100% { box-shadow: 0 10px 26px rgba(34,197,94,.4); } 50% { box-shadow: 0 10px 34px rgba(34,197,94,.65), 0 0 22px rgba(34,197,94,.35); } }
@media (prefers-reduced-motion: reduce) {
  .fj-hero-img, .fj-hero::before, .fj-hero::after, .fj-progress-fill, .fj-verify-btn { animation: none !important; }
}
.fj-verify-btn:active { transform: scale(.98); }
.fj-verify-btn:disabled { opacity: .6; }

/* ✨ Home page animations (entrance + ambient + interactive). Pure CSS —
   no JS logic changes, so nothing can break the flows. */
@keyframes homeFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes homeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes homePulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45), 0 10px 26px rgba(34,197,94,.35); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0), 0 10px 26px rgba(34,197,94,.55); } }
@keyframes homeShine { from { left: -70%; } to { left: 140%; } }
@keyframes homeSpinRing { to { transform: rotate(360deg); } }
@keyframes homePop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes homeGradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
/* Staggered entrance for Home sections (applied via classes in index.html). */
.home-anim { animation: homeFadeUp .55s ease both; }
.home-anim-1 { animation-delay: .05s; }
.home-anim-2 { animation-delay: .12s; }
.home-anim-3 { animation-delay: .19s; }
.home-anim-4 { animation-delay: .26s; }
.home-anim-5 { animation-delay: .33s; }
.home-anim-6 { animation-delay: .40s; }
/* Profile card: animated gradient border + spinning avatar ring. */
#tab-home .profile-card { position: relative; overflow: hidden; background: linear-gradient(120deg, #1a2138, #232b45, #1a1033, #232b45); background-size: 300% 300%; animation: homeGradShift 8s ease infinite; }
#tab-home .avatar-wrap { position: relative; }
#tab-home .avatar-wrap::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, #37C6FF, #8b5cf6, #22c55e, #f59e0b, #37C6FF); animation: homeSpinRing 6s linear infinite; z-index: 0; }
#tab-home .avatar-wrap .avatar { position: relative; z-index: 1; border: 2px solid #0b0e14; }
/* Balance icons float gently. */
#tab-home .balance-icon { animation: homeFloat 3s ease-in-out infinite; }
#tab-home .balance-card:nth-child(2) .balance-icon { animation-delay: .4s; }
#tab-home .balance-card:nth-child(3) .balance-icon { animation-delay: .8s; }
/* Marketplace card: shine sweep across the top. */
#tab-home .market-home-card { position: relative; overflow: hidden; }
#tab-home .market-home-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); pointer-events: none; animation: homeShine 3.5s ease-in-out infinite; }
/* Check-in CLAIM button: soft green pulse. Check-in done days: pop. */
#tab-home #btn-checkin { animation: homePulseGlow 2s ease-in-out infinite; }
#tab-home .checkin-day.done { animation: homePop .4s ease both; }
/* Quick-link cards: lift on press. */
#tab-home .quick-links > *:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  #tab-home .home-anim, #tab-home .profile-card, #tab-home .avatar-wrap::before,
  #tab-home .balance-icon, #tab-home .market-home-card::after,
  #tab-home #btn-checkin, #tab-home .checkin-day.done { animation: none !important; }
}
