/* ===== CB ARMY HQ - PREMIUM DIAMOND BLUE MINI APP V2.1 ===== */
/* Inspired by reference: Deep navy, neon blue glow borders, premium gaming */

:root {
  --bg-deep: #060B14;
  --bg-mid: #081223;
  --bg-card: #0C1A2E;
  --bg-card-inner: #0A1628;

  /* Neon Blue System */
  --neon: #3B82F6;
  --neon-bright: #60A5FA;
  --neon-soft: #93C5FD;
  --neon-dim: rgba(59, 130, 246, 0.15);
  --neon-glow: 0 0 15px rgba(59, 130, 246, 0.25), 0 0 40px rgba(59, 130, 246, 0.08);
  --neon-border: rgba(59, 130, 246, 0.3);

  /* Gold accents (for rankings) */
  --gold: #F59E0B;
  --gold-bright: #FBBF24;

  /* Green accents */
  --green: #22C55E;
  --green-dim: rgba(34, 197, 94, 0.15);

  /* Text */
  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-mid: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.3);

  /* Spacing */
  --gap: 12px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.fade-out { opacity: 0; visibility: hidden; }
.loader-diamond {
  font-size: 56px;
  animation: ldPulse 1.5s ease-in-out infinite;
}
@keyframes ldPulse {
  0%,100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 15px rgba(96,165,250,0.5)); }
  50% { transform: scale(1.12) rotate(5deg); filter: drop-shadow(0 0 35px rgba(96,165,250,0.8)); }
}
.loader-brand {
  margin-top: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 40%, var(--neon-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loader-sub {
  margin-top: 8px; font-size: 13px;
  color: var(--text-mid); font-weight: 500;
}
.loader-bar {
  margin-top: 20px; width: 160px; height: 3px;
  background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--neon), var(--neon-bright));
  border-radius: 4px; animation: ldFill 2s ease-out forwards;
}
@keyframes ldFill { to { width: 100%; } }

/* ===== APP ===== */
.app {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; z-index: 1;
}
.app.hidden { opacity: 0; pointer-events: none; }
.app.visible { opacity: 1; pointer-events: all; transition: opacity 0.4s ease 0.15s; }

/* ===== TOP HEADER ===== */
.top-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
  background: rgba(6,11,20,0.9);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(59,130,246,0.1);
  position: sticky; top: 0; z-index: 100;
}
.header-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s;
}
.header-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.08); }
.header-right { display: flex; gap: 8px; }
.header-bell { position: relative; }
.bell-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-bright);
  box-shadow: 0 0 6px rgba(96,165,250,0.8);
  animation: bellPulse 2s ease-in-out infinite;
}
@keyframes bellPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* Brand Center */
.header-brand {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.brand-crown {
  font-size: 16px; margin-bottom: -2px;
  animation: crownBob 3s ease-in-out infinite;
}
@keyframes crownBob {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); }
}
.brand-logo {
  display: flex; align-items: center; gap: 6px;
}
.diamond-icon { filter: drop-shadow(0 0 8px rgba(96,165,250,0.5)); }
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px; font-weight: 900;
  letter-spacing: 2px; color: #fff;
}
.brand-hq {
  color: var(--neon-bright);
  text-shadow: 0 0 12px rgba(96,165,250,0.6);
}
.brand-season {
  font-size: 9px; font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1.5px; margin-top: 2px;
}

/* ===== MAIN SCROLL ===== */
.main-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px 14px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.main-scroll::-webkit-scrollbar { display: none; }

/* ===== CARD ANIMATION ===== */
.card-anim {
  opacity: 0; transform: translateY(24px) scale(0.97);
  animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== NEON CARD BASE ===== */
.neon-card {
  background: linear-gradient(160deg, rgba(12,26,46,0.95), rgba(8,18,35,0.98));
  border: 1px solid var(--neon-border);
  border-radius: var(--radius);
  box-shadow: var(--neon-glow), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.neon-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
}

.neon-card-mini {
  background: linear-gradient(160deg, rgba(12,26,46,0.9), rgba(8,18,35,0.95));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(59,130,246,0.1);
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.neon-card-mini:hover, .neon-card-mini:active {
  box-shadow: 0 0 18px rgba(59,130,246,0.25), 0 0 6px rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
}

/* ===== PROFILE CARD ===== */
.profile-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px; margin-bottom: var(--gap);
}
.profile-left { display: flex; align-items: center; gap: 12px; }
.avatar-container { position: relative; }
.avatar-ring {
  width: 62px; height: 62px; border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--neon), var(--neon-bright), var(--neon-soft), var(--neon));
  animation: ringRotate 6s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } /* subtle */ }
/* Actually don't rotate - it's distracting. Use a static gradient ring. */
@keyframes ringRotate { 0%,100% { opacity:1; } 50% { opacity:0.85; } }

.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #0f1d32, #162240);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: inset 0 0 20px rgba(59,130,246,0.15);
  overflow: hidden;
}
.avatar img.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--neon-border);
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.profile-info { display: flex; flex-direction: column; gap: 3px; }
.profile-name-row { display: flex; align-items: center; gap: 5px; }
.profile-name { font-size: 17px; font-weight: 700; }
.verified-badge { font-size: 14px; }
.profile-rank-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 6px;
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.3);
  width: fit-content;
}
.rank-shield { font-size: 11px; }
.rank-text { font-size: 11px; font-weight: 700; color: var(--green); }
.profile-since {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-mid);
}
.profile-since span:first-child { font-size: 12px; }
.profile-right { display: flex; align-items: center; justify-content: center; }
.profile-diamond-decoration {
  position: relative;
  filter: drop-shadow(0 0 20px rgba(96,165,250,0.4));
  animation: diamondHover 4s ease-in-out infinite;
}
@keyframes diamondHover {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); }
}
.laurel-left, .laurel-right {
  position: absolute; top: 50%; font-size: 20px;
  transform: translateY(-50%); opacity: 0.5;
}
.laurel-left { left: -14px; transform: translateY(-50%) scaleX(-1); }
.laurel-right { right: -14px; }

/* ===== CHAMPIONSHIP CARD ===== */
.championship-card {
  padding: 16px; margin-bottom: var(--gap);
}
.champ-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--gold-bright); margin-bottom: 14px;
}
.champ-body {
  display: flex; align-items: flex-start; position: relative;
}
.champ-left { flex: 1; }
.champ-rank-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--text-mid); margin-bottom: 4px;
}
.champ-rank-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px; font-weight: 900;
  background: linear-gradient(180deg, #fff 20%, var(--neon-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(96,165,250,0.3));
}
.champ-rank-percentile {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-mid);
}
.percentile-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}
.champ-divider {
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, var(--neon-border), transparent);
  margin: 0 14px; align-self: center;
}
.champ-right { flex: 1; }
.champ-points-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--text-mid); margin-bottom: 4px;
}
.champ-points-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--neon-bright);
  text-shadow: 0 0 15px rgba(96,165,250,0.4);
  margin-bottom: 10px;
}
.champ-progress { width: 100%; }
.champ-progress-bar {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden; margin-bottom: 5px;
}
.champ-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--neon-bright), var(--neon-soft));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.champ-progress-text {
  font-size: 10px; color: var(--text-dim); font-weight: 500;
}
.champ-trophy {
  position: absolute; right: 0; top: -4px;
  font-size: 56px; opacity: 0.2;
  filter: drop-shadow(0 0 15px rgba(245,158,11,0.3));
}
.trophy-glow {
  position: absolute; inset: -10px;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
}
.champ-leaderboard-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: fit-content; margin-left: auto; margin-top: 12px;
  padding: 7px 16px; border-radius: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--neon-bright); font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
}
.champ-leaderboard-btn:active {
  transform: scale(0.96);
  background: rgba(59,130,246,0.2);
}
.champ-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 10px;
}
.champ-timer {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--text-mid); font-weight: 500;
}
.arrow { font-size: 16px; font-weight: 400; }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: var(--gap);
}
.stat-card {
  padding: 12px 8px 10px;
  text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.stat-card:active { transform: scale(0.95); }
.stat-icon-wrap {
  width: 40px; height: 40px;
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-dim);
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.15);
}
.stat-icon { font-size: 22px; }
.stat-name {
  font-size: 8px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-dim); margin-bottom: 4px;
  text-transform: uppercase;
}
.stat-value-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-value {
  font-size: 16px; font-weight: 800;
  color: var(--text-white);
}
.stat-unit { font-size: 10px; color: var(--text-mid); font-weight: 500; }
.stat-arrow { font-size: 14px; color: var(--text-dim); margin-left: 2px; }

/* ===== DAILY CHECK-IN (FULL WIDTH, REDESIGNED) ===== */
.checkin-section {
  padding: 18px 16px;
  margin-bottom: var(--gap);
}
.checkin-glow {
  border-color: rgba(59,130,246,0.4) !important;
  box-shadow: 0 0 20px rgba(59,130,246,0.2), 0 0 50px rgba(59,130,246,0.06), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.checkin-header-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.checkin-header-icon { font-size: 18px; }
.checkin-header-title {
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--text-light); flex: 1;
}
.checkin-streak-badge {
  padding: 3px 10px; border-radius: 20px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 10px; font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
}
.checkin-steps { position: relative; }
.checkin-step { display: none; flex-direction: column; align-items: center; gap: 12px; }
.checkin-step.active { display: flex; }
.checkin-step-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-light);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.4);
  font-size: 11px; font-weight: 800;
  color: var(--neon-bright);
}
.checkin-visit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 320px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--neon), #2563EB);
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 800;
  letter-spacing: 0.5px; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  transition: all 0.2s;
  animation: btnPulseGlow 2s ease-in-out infinite;
}
@keyframes btnPulseGlow {
  0%,100% { box-shadow: 0 4px 20px rgba(59,130,246,0.35); }
  50% { box-shadow: 0 4px 30px rgba(59,130,246,0.55), 0 0 15px rgba(59,130,246,0.2); }
}
.checkin-visit-btn:active { transform: scale(0.97); }
.checkin-step-hint {
  font-size: 11px; color: var(--text-dim); text-align: center;
}

/* Countdown */
.checkin-countdown {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0;
}
.countdown-ring {
  position: relative; width: 80px; height: 80px;
}
.countdown-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown-bg {
  fill: none; stroke: rgba(59,130,246,0.15); stroke-width: 4;
}
.countdown-progress {
  fill: none; stroke: var(--neon-bright); stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.countdown-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 900;
  color: var(--neon-bright);
  text-shadow: 0 0 12px rgba(96,165,250,0.4);
}

/* Check In Claim Button */
.checkin-claim-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; max-width: 320px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  border: none; border-radius: 12px;
  color: #fff; font-size: 17px; font-weight: 900;
  letter-spacing: 0.8px; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  transition: all 0.2s;
  animation: claimPulse 1.5s ease-in-out infinite;
}
@keyframes claimPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(34,197,94,0.35); transform: scale(1); }
  50% { box-shadow: 0 4px 30px rgba(34,197,94,0.55), 0 0 20px rgba(34,197,94,0.15); transform: scale(1.02); }
}
.checkin-claim-btn:active { transform: scale(0.97) !important; }
.checkin-claim-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
  animation: none;
}
.checkin-reward-hint {
  font-size: 12px; color: var(--text-mid); font-weight: 500;
}

/* Done State */
.checkin-done-icon { font-size: 48px; }
.checkin-done-title {
  font-size: 18px; font-weight: 800;
  color: var(--green);
}
.checkin-done-sub {
  font-size: 12px; color: var(--text-mid); text-align: center;
  line-height: 1.5;
}

/* ===== INVITE SECTION (SEPARATE CARD) ===== */
.invite-section {
  padding: 16px; margin-bottom: var(--gap);
}
.invite-header-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.invite-header-title {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--text-light);
}
.invite-content {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.invite-text { flex: 1; }
.invite-tagline {
  font-size: 14px; font-weight: 600; color: var(--text-light);
  margin-bottom: 4px;
}
.invite-reward-info {
  font-size: 11px; color: var(--neon-bright); font-weight: 600;
}
.invite-illustration-icon {
  filter: drop-shadow(0 0 12px rgba(59,130,246,0.3));
  opacity: 0.6;
}
.invite-actions {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.invite-copy-btn, .invite-share-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px;
  border: none; border-radius: 10px;
  color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: 0.8px; cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.invite-copy-btn {
  background: linear-gradient(135deg, var(--neon), var(--neon-bright));
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.invite-share-btn {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.invite-copy-btn:active, .invite-share-btn:active { transform: scale(0.96); }
.invite-ref-row {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ref-label { font-size: 9px; color: var(--text-dim); font-weight: 600; }
.ref-link-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ref-url { font-size: 10px; color: var(--text-mid); font-weight: 500; }
.ref-copy-mini {
  background: none; border: none; font-size: 12px;
  cursor: pointer; opacity: 0.5; padding: 2px;
}

/* ===== REFERRERS / PODIUM ===== */
.referrers-section { margin-bottom: var(--gap); }
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 4px;
}
.section-bar-left { display: flex; align-items: center; gap: 6px; }
.section-bar-title {
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
}
.section-bar-link {
  display: flex; align-items: center; gap: 3px;
  background: none; border: none;
  color: var(--neon-bright); font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer;
  font-family: inherit;
}
.section-bar-link:active { opacity: 0.7; }

.podium {
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px 12px 16px; gap: 8px;
}
.podium-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}
.podium-first { order: 2; margin-top: -10px; }
.podium-second { order: 1; }
.podium-third { order: 3; }
.podium-crown {
  font-size: 16px; margin-bottom: 2px;
  animation: crownBob 3s ease-in-out infinite;
}
.podium-medal { font-size: 18px; margin-bottom: 4px; }
.podium-avatar-lg, .podium-avatar-sm {
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; color: #fff; margin-bottom: 6px;
}
.podium-avatar-lg {
  width: 52px; height: 52px; font-size: 16px;
  background: linear-gradient(135deg, var(--neon), var(--neon-bright));
  box-shadow: 0 0 20px rgba(59,130,246,0.35);
  border: 2px solid rgba(96,165,250,0.5);
}
.podium-avatar-sm {
  width: 40px; height: 40px; font-size: 13px;
  background: linear-gradient(135deg, #1e3a5f, #162a48);
  border: 1.5px solid rgba(59,130,246,0.3);
}
.podium-name {
  font-size: 11px; font-weight: 600;
  color: var(--text-light); text-align: center;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 90px;
}
.podium-pts {
  font-size: 10px; font-weight: 700;
  color: var(--neon-bright); margin-top: 2px;
}
.podium-pts-gold { color: var(--gold-bright); }

/* ===== REWARDS BANNER ===== */
.rewards-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; margin-bottom: var(--gap);
}
.rewards-banner-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.rewards-icon-big { font-size: 36px; }
.rewards-banner-title {
  font-size: 13px; font-weight: 800; letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.rewards-banner-desc {
  font-size: 11px; color: var(--text-mid); line-height: 1.3;
}
.rewards-banner-right { display: flex; align-items: center; gap: 8px; }
.browse-rewards-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--neon-bright); font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all 0.2s;
}
.browse-rewards-btn:active { transform: scale(0.96); }
.rewards-gift-icon {
  font-size: 40px; opacity: 0.25;
  filter: drop-shadow(0 0 10px rgba(96,165,250,0.3));
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 0; padding-bottom: calc(6px + var(--safe-bottom));
  background: rgba(6,11,20,0.95);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(59,130,246,0.1);
  z-index: 100;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 14px; cursor: pointer; position: relative;
  transition: all 0.25s; border-radius: 10px;
}
.nav-item:active { transform: scale(0.9); }
.nav-icon-wrap {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: color 0.25s;
}
.nav-label {
  font-size: 9px; font-weight: 600;
  color: var(--text-dim); transition: color 0.25s;
  letter-spacing: 0.3px;
}
.nav-indicator {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: var(--neon-bright); opacity: 0;
  transition: opacity 0.25s;
}
.nav-item.active .nav-icon-wrap { color: var(--neon-bright); }
.nav-item.active .nav-label { color: var(--neon-bright); }
.nav-item.active .nav-indicator { opacity: 1; }

/* ===== BOTTOM SPACER ===== */
.bottom-spacer { height: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(10,22,40,0.95);
  border: 1px solid var(--neon-border);
  box-shadow: var(--neon-glow);
  backdrop-filter: blur(20px);
  color: #fff; padding: 10px 22px;
  border-radius: 12px; font-size: 13px; font-weight: 600;
  z-index: 9999; opacity: 0;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none; white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 360px) {
  .stats-row { gap: 6px; }
  .stat-value { font-size: 14px; }
  .stat-name { font-size: 7px; }
  .champ-rank-number { font-size: 40px; }
  .champ-points-number { font-size: 24px; }
}
@media (min-width: 420px) {
  .main-scroll { padding: 14px 20px 0; }
  .stats-row { gap: 12px; }
}

/* ===== VIEW SYSTEM ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 20px; font-weight: 800;
  margin-bottom: 16px; padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}

/* ===== LEADERBOARD TYPE TABS ===== */
.lb-type-tabs {
  display: flex; gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lb-type-tabs::-webkit-scrollbar { display: none; }
.lb-type-tab {
  flex-shrink: 0;
  padding: 7px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-mid); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.lb-type-tab.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--neon-bright);
  box-shadow: 0 0 10px rgba(59,130,246,0.15);
}
.lb-type-tab:active { transform: scale(0.96); }

/* ===== LEADERBOARD VIEW ===== */
.your-position-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(59,130,246,0.12), rgba(12,26,46,0.95)) !important;
  border-color: rgba(59,130,246,0.4) !important;
}
.yp-left { display: flex; flex-direction: column; gap: 2px; }
.yp-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--neon-bright); }
.yp-rank { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; color: #fff; }
.yp-right { text-align: right; }
.yp-pts { font-size: 14px; font-weight: 700; color: var(--neon-bright); display: block; }
.yp-name { font-size: 11px; color: var(--text-mid); }

.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-loading { text-align: center; padding: 30px; color: var(--text-mid); font-size: 13px; }

.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(12,26,46,0.7);
  border: 1px solid rgba(59,130,246,0.12);
  transition: all 0.2s;
}
.lb-row.lb-you {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 12px rgba(59,130,246,0.15);
}
.lb-row.lb-top3 { border-color: rgba(245,158,11,0.3); }
.lb-rank { font-size: 14px; font-weight: 800; min-width: 28px; text-align: center; color: var(--text-mid); }
.lb-rank.lb-rank-gold { color: var(--gold-bright); }
.lb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #162a48);
  border: 1px solid rgba(59,130,246,0.25);
  flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rank-name { font-size: 10px; color: var(--text-mid); }
.lb-pts { font-size: 13px; font-weight: 700; color: var(--neon-bright); white-space: nowrap; }
.lb-medal { font-size: 16px; min-width: 22px; text-align: center; }

/* ===== REWARDS VIEW ===== */
.reward-balance-card {
  padding: 24px 20px; margin-bottom: 14px; text-align: center;
}
.rb-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-mid); margin-bottom: 8px; }
.rb-amount {
  font-family: 'Orbitron', sans-serif; font-size: 44px; font-weight: 900;
  background: linear-gradient(180deg, #fff 20%, var(--neon-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 4px;
}
.rb-unit { font-size: 14px; color: var(--text-mid); font-weight: 600; margin-bottom: 16px; }
.rb-progress { width: 100%; max-width: 280px; margin: 0 auto; }
.rb-progress-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.rb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--neon), var(--green)); border-radius: 4px; transition: width 1s ease; }
.rb-progress-text { font-size: 10px; color: var(--text-dim); }

.redeem-card { padding: 16px; margin-bottom: 14px; }
.redeem-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.redeem-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.06); }
.redeem-info { display: flex; align-items: center; gap: 10px; }
.redeem-icon { font-size: 28px; }
.redeem-name { font-size: 13px; font-weight: 700; }
.redeem-cost { font-size: 11px; color: var(--text-mid); }
.redeem-btn {
  padding: 8px 16px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--neon), var(--neon-bright));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.redeem-btn:active { transform: scale(0.95); }
.redeem-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.prizes-card, .earn-card { padding: 16px; margin-bottom: 14px; }
.prizes-title, .earn-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.prize-row, .earn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 12px; color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.prize-row:last-child, .earn-row:last-child { border-bottom: none; }

/* ===== PROFILE VIEW ===== */
.profile-detail-card {
  padding: 24px 20px; margin-bottom: 14px; text-align: center;
}
.pd-avatar {
  width: 72px; height: 72px; margin: 0 auto 10px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #0f1d32, #162240);
  border: 3px solid var(--neon-border);
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
  overflow: hidden;
}
.pd-avatar img.pd-avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.pd-name { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.pd-username { font-size: 12px; color: var(--text-mid); margin-bottom: 8px; }
.pd-rank-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 8px;
  background: var(--green-dim); border: 1px solid rgba(34,197,94,0.3);
  margin-bottom: 16px;
}
.pd-rank-text { font-size: 12px; font-weight: 700; color: var(--green); }
.pd-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.pd-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.pd-stat-emoji { font-size: 18px; margin-bottom: 2px; }
.pd-stat-val { font-size: 16px; font-weight: 800; }
.pd-stat-lbl { font-size: 9px; color: var(--text-mid); font-weight: 600; }

.share-center { padding: 16px; margin-bottom: 14px; }
.sc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sc-link {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px; color: var(--text-mid); word-break: break-all;
  margin-bottom: 10px;
}
.sc-actions { display: flex; gap: 8px; }
.sc-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: none;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all 0.2s;
}
.sc-btn:active { transform: scale(0.96); }
.sc-btn-primary { background: linear-gradient(135deg, var(--neon), var(--neon-bright)); color: #fff; }
.sc-btn-secondary { background: linear-gradient(135deg, #22C55E, #16A34A); color: #fff; }

.ref-history { padding: 16px; margin-bottom: 14px; }
.rh-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rh-list { display: flex; flex-direction: column; gap: 6px; }
.rh-loading { text-align: center; padding: 20px; color: var(--text-mid); font-size: 12px; }
.rh-empty { text-align: center; padding: 20px; color: var(--text-dim); font-size: 13px; }
.rh-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.rh-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1e3a5f, #162a48);
  border: 1px solid rgba(59,130,246,0.2); flex-shrink: 0;
}
.rh-info { flex: 1; min-width: 0; }
.rh-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-date { font-size: 10px; color: var(--text-dim); }
.rh-status {
  padding: 3px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap;
}
.rh-status.status-joined { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.rh-status.status-left { background: rgba(239,68,68,0.12); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.rh-status.status-pending { background: rgba(245,158,11,0.12); color: var(--gold-bright); border: 1px solid rgba(245,158,11,0.3); }

/* ===== MORE / SETTINGS VIEW ===== */
.settings-card { padding: 14px 16px; margin-bottom: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; }
.setting-info { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: var(--text-mid);
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.lang-btn.active {
  background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4);
  color: var(--neon-bright);
}

.faq-card { padding: 16px; margin-bottom: 14px; }
.faq-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-light); transition: color 0.2s;
}
.faq-q:active { color: var(--neon-bright); }
.faq-arrow { font-size: 16px; color: var(--text-dim); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(90deg); color: var(--neon-bright); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 12px; color: var(--text-mid); line-height: 1.6;
  padding: 0; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 0 12px; }

.rules-card { padding: 16px; margin-bottom: 14px; }
.rules-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rule-item { font-size: 12px; color: var(--text-mid); line-height: 1.5; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.rule-item:last-child { border-bottom: none; }

.about-card { padding: 20px; margin-bottom: 14px; text-align: center; }
.about-text { font-size: 12px; color: var(--text-dim); line-height: 1.8; }

/* ===== SHIMMER ANIMATION ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.checkin-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ===== LB TYPE DESCRIPTION ===== */
.lb-type-desc {
  font-size: 11px; color: var(--text-mid); text-align: center;
  padding: 6px 0 10px; font-weight: 500;
}

/* ===== PROFILE SETTINGS BUTTON ===== */
.profile-settings-btn {
  padding: 14px 16px; margin-bottom: 14px; cursor: pointer;
  transition: all 0.2s;
}
.profile-settings-btn:active { transform: scale(0.98); }
.ps-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.ps-text { flex: 1; }
.ps-row .arrow { font-size: 18px; color: var(--text-dim); }

/* ===== RANK BADGE CLICKABLE ===== */
.pd-rank-badge { cursor: pointer; transition: all 0.2s; }
.pd-rank-badge:active { transform: scale(0.96); }
.pd-rank-arrow { font-size: 16px; color: var(--text-dim); margin-left: 4px; }

/* ===== LEADERBOARD PAGINATION ===== */
.lb-pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 0 8px;
}
.lb-page-btn {
  padding: 8px 18px; border-radius: 8px; border: 1px solid rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.08); color: var(--neon-bright);
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  letter-spacing: 0.3px; transition: all 0.2s;
}
.lb-page-btn:hover { background: rgba(59,130,246,0.18); border-color: rgba(59,130,246,0.45); }
.lb-page-btn:active { transform: scale(0.95); }
.lb-page-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: var(--text-dim);
}
.lb-page-info {
  font-size: 12px; font-weight: 600; color: var(--text-mid);
  min-width: 100px; text-align: center;
}

/* ===== REPUTATION REWARD BADGE (TOP 3 LEADERBOARD) ===== */
.lb-rep-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 7px; border-radius: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.3px;
  margin-left: 6px; white-space: nowrap; flex-shrink: 0;
}
.lb-rep-badge.lb-rep-gold {
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35);
  color: #FBBF24;
}
.lb-rep-badge.lb-rep-silver {
  background: rgba(192,192,192,0.12); border: 1px solid rgba(192,192,192,0.3);
  color: #C0C0C0;
}
.lb-rep-badge.lb-rep-bronze {
  background: rgba(205,127,50,0.12); border: 1px solid rgba(205,127,50,0.3);
  color: #CD7F32;
}

/* ===== NOTIFICATION PANEL ===== */
.notif-panel {
  position: fixed; top: 58px; right: 10px; left: 10px;
  max-width: 380px; margin-left: auto;
  background: rgba(10,22,40,0.97);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 20px rgba(59,130,246,0.1);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  z-index: 200; max-height: 400px;
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
.notif-panel.open {
  transform: translateY(0); opacity: 1; pointer-events: all;
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 14px; font-weight: 700;
  border-bottom: 1px solid rgba(59,130,246,0.12);
}
.notif-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--text-mid);
  font-size: 14px; transition: all 0.2s;
}
.notif-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.notif-list {
  overflow-y: auto; max-height: 320px; padding: 4px 0;
}
.notif-list::-webkit-scrollbar { display: none; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative; transition: all 0.25s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:active { background: rgba(59,130,246,0.06); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-msg {
  font-size: 12px; color: var(--text-light); line-height: 1.45;
  word-break: break-word;
}
.notif-item-time {
  font-size: 10px; color: var(--text-dim); margin-top: 3px;
}
.notif-item-dismiss {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: none;
  color: var(--text-dim); font-size: 11px; cursor: pointer;
  flex-shrink: 0; margin-top: 2px; transition: all 0.2s;
}
.notif-item-dismiss:hover { background: rgba(239,68,68,0.15); color: #EF4444; }
.notif-empty {
  text-align: center; padding: 30px 16px;
  font-size: 13px; color: var(--text-dim);
}
.bell-dot.has-unread {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.8);
  animation: bellPulseRed 1.5s ease-in-out infinite;
}
@keyframes bellPulseRed {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ===== STREAK CALENDAR POPUP ===== */
.streak-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease;
}
.streak-card {
  background: linear-gradient(145deg, #0C1A2E, #081223);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 18px; padding: 24px 20px;
  max-width: 340px; width: 100%;
  box-shadow: 0 0 40px rgba(59,130,246,0.15), 0 20px 60px rgba(0,0,0,0.4);
  position: relative; overflow: hidden;
}
.streak-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.1), transparent 60%);
  pointer-events: none;
}
.streak-title {
  text-align: center; font-size: 18px; font-weight: 800;
  margin-bottom: 4px; position: relative;
}
.streak-subtitle {
  text-align: center; font-size: 11px; color: var(--text-mid);
  margin-bottom: 18px; position: relative;
}

/* Day Cycle Circles */
.streak-days-row {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 18px; position: relative;
}
.streak-day {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim); position: relative;
  transition: all 0.3s;
}
.streak-day.completed {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.12);
  color: var(--green);
  box-shadow: 0 0 12px rgba(34,197,94,0.25);
}
.streak-day.completed::after {
  content: '✅'; position: absolute;
  top: -5px; right: -5px; font-size: 10px;
}
.streak-day.current {
  border-color: rgba(245,158,11,0.7);
  background: rgba(245,158,11,0.12);
  color: var(--gold-bright);
  animation: currentDayPulse 2s ease-in-out infinite;
}
@keyframes currentDayPulse {
  0%,100% { box-shadow: 0 0 8px rgba(245,158,11,0.3); }
  50% { box-shadow: 0 0 18px rgba(245,158,11,0.55), 0 0 6px rgba(245,158,11,0.2); }
}
.streak-day-label {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  font-size: 8px; color: var(--text-dim); font-weight: 600;
  white-space: nowrap;
}

/* Rewards Table */
.streak-rewards-table {
  margin: 24px 0 16px; position: relative;
}
.streak-reward-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  margin-bottom: 4px; font-size: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}
.streak-reward-row .sr-days {
  font-weight: 700; color: var(--text-light); min-width: 60px;
}
.streak-reward-row .sr-reward {
  font-weight: 600; color: var(--neon-bright);
}

/* Milestone Progress */
.streak-milestones {
  margin-top: 16px; position: relative;
}
.streak-milestone-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-mid); margin-bottom: 10px;
}
.streak-ms-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.streak-ms-bar {
  flex: 1; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.streak-ms-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.streak-ms-fill.ms-7 {
  background: linear-gradient(90deg, var(--neon), var(--green));
}
.streak-ms-fill.ms-14 {
  background: linear-gradient(90deg, var(--neon), #A855F7);
}
.streak-ms-fill.ms-30 {
  background: linear-gradient(90deg, var(--gold), #F97316);
}
.streak-ms-label {
  font-size: 10px; font-weight: 600; color: var(--text-mid);
  min-width: 38px; text-align: right;
}
.streak-ms-reward {
  font-size: 10px; font-weight: 700; color: var(--neon-bright);
  min-width: 85px;
}
.streak-close-btn {
  width: 100%; margin-top: 14px; padding: 11px;
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  border: none; border-radius: 10px; color: white;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
  position: relative;
}
.streak-close-btn:active { transform: scale(0.97); }

/* ===== MENU ICON HOME ===== */
#menuIcon { display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
