@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,600&display=swap');

:root {
  --bg: #0f0904;
  --bg-alt: #1c130b;
  --card: #1f150c;
  --card-2: #271b0f;
  --card-border: #3d2916;
  --gold: #e8a33d;
  --gold-bright: #ffc266;
  --gold-dim: #b9822f;
  --cyan: #33d6c9;
  --text: #f5ece0;
  --text-dim: #a99a86;
  --danger: #e2574c;
  --success: #4cae6b;
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: 'Josefin Sans', system-ui, sans-serif;
  --font-display-weight: 700;
  --font-body: 'Josefin Sans', system-ui, sans-serif;
  --shadow-card: 0 10px 28px -8px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.03) inset;
  --shadow-glow: 0 0 0 1px rgba(232,163,61,0.15), 0 8px 28px -6px rgba(232,163,61,0.22);
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51,214,201,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(51,214,201,0); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,163,61,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(232,163,61,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes ambientDrift {
  0% { transform: translate(-4%, -3%) scale(1); }
  50% { transform: translate(3%, 2%) scale(1.08); }
  100% { transform: translate(-4%, -3%) scale(1); }
}
@keyframes rippleFx {
  from { transform: scale(0); opacity: 0.45; }
  to { transform: scale(2.6); opacity: 0; }
}
@keyframes countGlow {
  0% { text-shadow: 0 0 0 rgba(255,194,102,0); }
  40% { text-shadow: 0 0 18px rgba(255,194,102,0.55); }
  100% { text-shadow: 0 0 0 rgba(255,194,102,0); }
}

html { background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 88px;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: ''; position: fixed; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: 0.35;
}
body::before {
  width: 60vw; height: 60vw; top: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(232,163,61,0.35), transparent 70%);
  animation: ambientDrift 16s ease-in-out infinite;
}
body::after {
  width: 55vw; height: 55vw; bottom: -18vw; right: -18vw;
  background: radial-gradient(circle, rgba(51,214,201,0.18), transparent 70%);
  animation: ambientDrift 20s ease-in-out infinite reverse;
}

#app { max-width: 480px; margin: 0 auto; padding: 20px 18px 8px; position: relative; z-index: 1; }

h1.page-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold-bright);
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255,194,102,0.25);
  animation: fadeInUp .4s ease both;
  display: flex; align-items: center; gap: 10px;
}
h1.page-title svg { flex-shrink: 0; }
p.page-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; margin-bottom: 20px; animation: fadeInUp .45s ease both; }

.card {
  background: linear-gradient(165deg, var(--card-2) 0%, var(--card) 65%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp .4s cubic-bezier(.22,1,.36,1) both;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.card:active { transform: scale(0.985); }
#page-home .card:nth-child(1) { animation-delay: .02s; }
#page-home .card:nth-child(2) { animation-delay: .08s; }
#page-home .card:nth-child(3) { animation-delay: .14s; }
.stat-grid .stat-box:nth-child(1) { animation-delay: .05s; }
.stat-grid .stat-box:nth-child(2) { animation-delay: .1s; }

.icon-chip {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,163,61,0.12); color: var(--gold-bright);
  border: 1px solid rgba(232,163,61,0.25);
}
.icon-chip.cyan { background: rgba(51,214,201,0.12); color: var(--cyan); border-color: rgba(51,214,201,0.25); }
.icon-chip.danger { background: rgba(226,87,76,0.12); color: var(--danger); border-color: rgba(226,87,76,0.25); }

.profile-card { display: flex; align-items: center; justify-content: space-between; }
.profile-card .avatar {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-bright), #8a3b1f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #1a0f06;
  box-shadow: 0 6px 16px -4px rgba(232,163,61,0.55);
  animation: floatSlow 4s ease-in-out infinite;
}
.profile-left { display: flex; align-items: center; gap: 12px; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.profile-handle { color: var(--text-dim); font-size: 12px; }
.profile-balance { text-align: right; }
.profile-balance .sand { color: var(--gold-bright); font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.profile-balance .usdt { color: var(--cyan); font-size: 12px; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat-box {
  background: linear-gradient(165deg, var(--card-2) 0%, var(--card) 65%);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 16px; text-align: left;
  box-shadow: var(--shadow-card);
  animation: fadeInUp .4s cubic-bezier(.22,1,.36,1) both;
  transition: transform .18s ease;
}
.stat-box:active { transform: scale(0.97); }
.stat-box-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.stat-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--gold-bright); }
.stat-value.cyan { color: var(--cyan); }

.daily-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.daily-reward { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--gold-bright); display: flex; align-items: center; gap: 6px; }
.daily-desc { color: var(--text-dim); font-size: 12px; margin-top: 4px; max-width: 220px; }

.btn {
  border: none; border-radius: 999px; padding: 12px 20px; font-weight: 700;
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase;
  cursor: pointer; transition: transform .12s ease, opacity .2s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:active { transform: scale(0.94); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim)); color: #1a0f06;
  box-shadow: 0 6px 18px -4px rgba(232,163,61,0.5);
}
.btn-outline { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); }
.btn-outline:active { background: rgba(51,214,201,0.1); }
.btn-block { width: 100%; }
.btn-ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.5);
  transform: scale(0); pointer-events: none; animation: rippleFx .5s ease-out forwards;
}
.btn-outline .btn-ripple { background: rgba(51,214,201,0.4); }

.empty-desert { text-align: center; padding: 30px 10px 16px; }
.empty-desert .icon-circle {
  width: 60px; height: 60px; border-radius: 20px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,163,61,0.1); border: 1px solid rgba(232,163,61,0.25); color: var(--gold);
  animation: floatSlow 3.5s ease-in-out infinite;
}
.empty-desert h3 { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.empty-desert p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }

.asset-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.asset-name { color: var(--gold-bright); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.asset-desc { color: var(--text-dim); font-size: 12px; margin: 4px 0 8px; }
.asset-yield { color: var(--cyan); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.asset-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 10px; text-align: right; }

.tab-row { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tab-pill {
  border: 1px solid var(--card-border); background: var(--card); color: var(--text-dim);
  border-radius: var(--radius-sm); padding: 9px 16px; font-family: var(--font-body); font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; cursor: pointer;
  transition: all .18s ease; display: inline-flex; align-items: center; gap: 6px;
}
.tab-pill.active { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(51,214,201,0.15); }
.tab-pill:active { transform: scale(0.95); }

.task-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: fadeInUp .4s cubic-bezier(.22,1,.36,1) both; }
.task-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.task-desc { color: var(--text-dim); font-size: 12px; margin: 3px 0 6px; }
.task-reward { color: var(--gold-bright); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.must-badge {
  display: inline-flex; align-items: center; gap: 3px; background: rgba(226,87,76,0.15); color: var(--danger);
  border: 1px solid var(--danger); border-radius: 999px; font-size: 9px; padding: 2px 8px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-left: 6px;
}

.input {
  width: 100%; background: var(--bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(232,163,61,0.12); }
.input-row { display: flex; gap: 10px; align-items: center; }

.link-box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 12px; overflow: hidden;
}
.link-box span { color: var(--cyan); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.how-it-works li { list-style: none; color: var(--text-dim); font-size: 13px; margin-bottom: 10px; padding-left: 22px; position: relative; }
.how-it-works li svg { position: absolute; left: 0; top: 1px; color: var(--gold); }

.leaderboard-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.03); animation: fadeInUp .4s cubic-bezier(.22,1,.36,1) both; }
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row .who { display: flex; align-items: center; gap: 10px; }
.rank-badge {
  width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-dim);
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); flex-shrink: 0;
}
.rank-badge.gold { color: #1a0f06; background: linear-gradient(135deg, #ffd77a, #c98a2c); border-color: transparent; }
.rank-badge.silver { color: #1a0f06; background: linear-gradient(135deg, #e4e7eb, #a3aab3); border-color: transparent; }
.rank-badge.bronze { color: #1a0f06; background: linear-gradient(135deg, #d79a6a, #9c5a30); border-color: transparent; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13,9,5,0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-border); display: flex; justify-content: space-around;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto; z-index: 20;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-dim); background: none; border: none; font-family: var(--font-body); transition: color .18s ease, transform .15s ease; }
.nav-item:active { transform: scale(0.9); }
.nav-item.active { color: var(--gold-bright); }
.nav-item span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item.center { color: var(--cyan); }
.nav-item.center .icon-wrap {
  width: 46px; height: 46px; border-radius: 16px; background: rgba(51,214,201,0.12);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--cyan);
  animation: pulseGlow 2.6s ease-in-out infinite;
  transition: transform .15s ease;
}

.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: #241608; border: 1px solid var(--gold-dim); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 50;
  max-width: 90%; text-align: center; box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5);
  animation: popIn .25s cubic-bezier(.22,1,.36,1) both;
  display: flex; align-items: center; gap: 8px;
}

.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 0; color: var(--text-dim); animation: fadeIn .3s ease both; }

/* ---------- Sand intro (one-time 4s dashboard animation) ---------- */
.sand-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 32%, var(--bg-alt), var(--bg) 72%);
  animation: sandIntroOut 0.55s ease 3.45s forwards;
}
.sand-grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(232,163,61,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,163,61,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  animation: gridDrift 6s linear infinite;
  opacity: 0.7;
}
@keyframes gridDrift { from { transform: translate(0,0); } to { transform: translate(28px, 28px); } }
.sand-scanline {
  position: absolute;
  left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(51,214,201,0.16), transparent);
  animation: scanSweep 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanSweep { 0% { transform: translateY(-140px); } 100% { transform: translateY(110vh); } }
.sand-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.35;
  animation: ambientDrift 5s ease-in-out infinite;
}
.sand-glow-a { top: 8%; left: 12%; background: var(--gold-bright); }
.sand-glow-b { bottom: 6%; right: 10%; background: var(--cyan); animation-delay: -2.4s; }
.sand-grains { position: absolute; inset: 0; }
.sand-grain {
  position: absolute;
  top: -8%;
  width: var(--gs, 4px);
  height: var(--gs, 4px);
  border-radius: 50%;
  background: var(--gc, var(--gold-bright));
  box-shadow: 0 0 1px #fff, 0 0 7px var(--gc, rgba(255, 194, 102, 0.65));
  opacity: 0;
  animation: sandFall var(--gd, 2s) linear var(--gdelay, 0s) forwards;
}
@keyframes sandFall {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  8% { opacity: 1; }
  75% { opacity: 0.7; }
  100% { transform: translateY(78vh) translateX(var(--gx, 0)); opacity: 0; }
}
.sand-dune {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: duneRise 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
  opacity: 0.92;
  filter: drop-shadow(0 -2px 14px rgba(232, 163, 61, 0.25));
}
@keyframes duneRise { to { transform: scaleY(1); } }
.sand-dune-rim {
  opacity: 0;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: rimDraw 1.4s ease 1.3s forwards;
  filter: drop-shadow(0 0 4px rgba(255, 194, 102, 0.8));
}
@keyframes rimDraw { 0% { opacity: 0; stroke-dashoffset: 620; } 15% { opacity: 1; } 100% { opacity: 0.9; stroke-dashoffset: 0; } }
.sand-intro-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.7s forwards;
}
.sand-ring {
  position: absolute;
  left: 50%; top: 46%;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border: 1px solid rgba(232, 163, 61, 0.5);
  border-radius: 50%;
  animation: sandPing 2.2s ease-out 1.6s infinite;
}
.sand-ring-2 { border-color: rgba(51, 214, 201, 0.4); animation-delay: 2.3s; }
@keyframes sandPing { 0% { transform: scale(0.55); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
.sand-intro-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 5px;
  color: var(--gold-bright);
  text-shadow: 0 0 4px rgba(255,255,255,0.4), 0 0 26px rgba(232, 163, 61, 0.65);
}
.sand-intro-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.sand-progressbar {
  position: relative;
  width: 150px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sand-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright), var(--cyan));
  box-shadow: 0 0 8px rgba(232, 163, 61, 0.7);
  animation: sandProgress 3.3s cubic-bezier(0.3, 0.1, 0.2, 1) 0.5s forwards;
}
@keyframes sandProgress { to { width: 100%; } }
@keyframes sandIntroOut { to { opacity: 0; visibility: hidden; } }
.spinner {
  position: relative;
  width: 56px; height: 34px;
}
.spinner::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), var(--gold));
  box-shadow: 0 0 10px 2px rgba(255,194,102,0.65);
  animation: pulseGold 1.5s ease-in-out infinite;
}
.spinner::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 20px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(110deg, var(--gold-dim) 0%, var(--gold-bright) 22%, var(--gold-dim) 44%, var(--gold-bright) 66%, var(--gold-dim) 88%);
  background-size: 220% 100%;
  animation: duneShimmer 1.9s linear infinite;
}
@keyframes duneShimmer { 0% { background-position: 0% 0%; } 100% { background-position: -220% 0%; } }
.hidden { display: none !important; }

.page-enter { animation: fadeInUp .32s cubic-bezier(.22,1,.36,1) both; }

/* Admin access */
.admin-access-btn {
  background: linear-gradient(135deg, #2b1a08, #1f150c);
  border: 1px solid var(--gold-dim); color: var(--gold-bright);
}

/* Must-join gate */
.mj-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,4,2,0.9);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn .25s ease both;
}
.mj-card {
  width: 100%; max-width: 380px; background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--gold-dim); border-radius: 24px; padding: 28px 22px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.7), var(--shadow-glow);
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both; text-align: center;
}
.mj-icon {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,163,61,0.12); border: 1px solid rgba(232,163,61,0.3); color: var(--gold-bright);
  animation: floatSlow 3s ease-in-out infinite, pulseGold 2.4s ease-in-out infinite;
}
.mj-card h2 { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); font-size: 19px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.mj-card p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.mj-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mj-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 13px 16px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
  transition: transform .15s ease, border-color .15s ease;
}
.mj-item:active { transform: scale(0.97); border-color: var(--gold-dim); }
.mj-item .title { display: flex; align-items: center; gap: 8px; }
.mj-go { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 3px; }

/* Proof task split actions */
.task-proof-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 118px; }
.task-proof-actions .btn { width: 100%; justify-content: center; font-size: 12.5px; padding: 9px 10px; }

/* Proof upload modal */
.proof-card { position: relative; }
.proof-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.proof-reward { color: var(--gold-bright); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.proof-dropzone {
  position: relative;
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color .2s ease, background .2s ease;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.proof-dropzone:active { border-color: var(--gold-bright); background: rgba(232,163,61,0.06); }
.proof-dropzone-icon {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(51,214,201,0.1); border: 1px solid rgba(51,214,201,0.28); color: var(--cyan);
}
.proof-dropzone-text { font-size: 13.5px; font-weight: 600; color: var(--text); }
.proof-dropzone-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.proof-dropzone.has-photo { padding: 0; }
.proof-preview { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.proof-dropzone-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; text-align: center;
  font-size: 11.5px; color: var(--text); background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.proof-success { animation: popIn .35s cubic-bezier(.22,1,.36,1) both; }
.proof-success-icon {
  background: rgba(76,174,107,0.14); border-color: rgba(76,174,107,0.35); color: var(--success);
  animation: pulseGlow 1.6s ease-in-out infinite;
}
