/* ═══════════════════════════════════════════════════════════════
   gamification.css — Visual layer for Leaderboard, Trader Profile, etc.
   ──────────────────────────────────────────────
   Source: extracted from HTML mockups
   Namespaced under .lb-page (leaderboard) and .tp-page (trader profile)
   Loaded site-wide via <link> in [locale]/layout.tsx
   ──────────────────────────────────────────────
   DO NOT redefine: .topbar, .brand, .btn, .nav, .badge, .avatar,
   .hero, .footer, .page — those live in main.css/components.css/sections.css.
   ──────────────────────────────────────────────
   Wrapper convention:
     <div class="lb-page">...</div>  ← scopes .lb-* rules
     <div class="tp-page">...</div>  ← scopes .tp-* rules
═══════════════════════════════════════════════════════════════ */

/* ── Wrappers ── */
.lb-page, .tp-page {
  font-family: 'Inter', Arial, Tahoma, sans-serif;
  color: var(--dark, #101828);
}

/* ──────────────────────────────────────────────────────────────────────
   LEADERBOARD (.lb-*)
   ────────────────────────────────────────────────────────────────────── */

.lb-page .hero-left {
  position: relative; z-index: 1;
}

h1 {
  font-size: 52px;
      line-height: 1.12;
      letter-spacing: -2px;
      margin-bottom: 16px;
}

.lb-page h1 .accent {
  color: var(--green-dark);
}

.lb-page h1 .gold {
  color: var(--gold);
}

.lb-page .hero-sub {
  color: var(--gray);
      font-size: 17px;
      line-height: 1.9;
      font-weight: 700;
      max-width: 600px;
      margin-bottom: 22px;
}

.lb-page .hero-stats-row {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 22px;
}

.lb-page .mini-stat {
  background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px;
}

.lb-page .mini-stat strong {
  display: block; font-size: 24px; font-weight: 950; margin-bottom: 4px;
}

.lb-page .mini-stat span {
  color: var(--gray); font-size: 13px; font-weight: 800;
}

.lb-page .mini-stat.green strong {
  color: var(--green-dark);
}

.lb-page .mini-stat.gold strong {
  color: var(--gold);
}

.lb-page .countdown-card {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
      border-radius: 28px;
      padding: 26px;
      color: white;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.lb-page .countdown-card:after {
  content: ""; position: absolute;
      width: 220px; height: 220px; border-radius: 50%;
      background: rgba(16,185,129,.22);
      left: -70px; bottom: -90px;
}

.lb-page .countdown-card:before {
  content: ""; position: absolute;
      width: 160px; height: 160px; border-radius: 50%;
      background: rgba(245,158,11,.15);
      right: -50px; top: -50px;
}

.lb-page .countdown-card > * {
  position: relative; z-index: 1;
}

.lb-page .countdown-title {
  font-size: 14px;
      font-weight: 900;
      color: #d1fae5;
      margin-bottom: 6px;
      letter-spacing: 0.5px;
}

.lb-page .countdown-card h3 {
  font-size: 24px;
      margin-bottom: 16px;
      color: white;
}

.lb-page .countdown-grid {
  display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 18px;
}

.lb-page .countdown-box {
  background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 16px;
      padding: 14px 8px;
      text-align: center;
}

.lb-page .countdown-box strong {
  display: block;
      font-size: 28px;
      font-weight: 950;
      color: white;
      line-height: 1;
}

.lb-page .countdown-box span {
  display: block;
      font-size: 11px;
      color: #d1fae5;
      margin-top: 6px;
      font-weight: 800;
}

.lb-page .prizes {
  background: rgba(255,255,255,.08);
      border-radius: 16px;
      padding: 14px;
      margin-top: 14px;
}

.lb-page .prize-row {
  display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      font-size: 13px;
}

.lb-page .prize-row + .prize-row {
  border-top: 1px solid rgba(255,255,255,.10); margin-top: 6px; padding-top: 12px;
}

.lb-page .prize-row .place {
  font-weight: 900;
}

.lb-page .prize-row .place.gold {
  color: #fbbf24;
}

.lb-page .prize-row .place.silver {
  color: #cbd5e1;
}

.lb-page .prize-row .place.bronze {
  color: #fdba74;
}

.lb-page .prize-row strong {
  font-weight: 950; color: white;
}

.lb-page .your-rank {
  background: linear-gradient(135deg, var(--green-soft), #fef3c7);
      border: 2px solid var(--green);
      border-radius: 26px;
      padding: 24px 28px;
      margin-bottom: 22px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 24px;
      align-items: center;
      box-shadow: 0 14px 44px rgba(16,185,129,.15);
      position: relative;
      overflow: hidden;
}

.lb-page .your-rank:before {
  content: ""; position: absolute;
      width: 200px; height: 200px; border-radius: 50%;
      background: rgba(245,158,11,.12);
      right: -70px; bottom: -90px;
}

.lb-page .your-rank-avatar {
  position: relative;
      width: 90px;
      height: 90px;
      z-index: 1;
}

.lb-page .your-rank-aura {
  position: absolute; inset: -6px;
      border-radius: 28px;
      background: conic-gradient(from 180deg, var(--green), #d1fae5, var(--gold), var(--green));
      animation: spin 5s linear infinite;
}

.lb-page .your-rank-avatar .avatar {
  position: absolute; inset: 5px;
      border-radius: 24px;
      background: linear-gradient(135deg, #111827, #1f2937);
      border: 4px solid white;
      color: white;
      display: grid; place-items: center;
      font-size: 30px; font-weight: 950;
      box-shadow: 0 14px 30px rgba(16,24,40,.22);
}

.lb-page .your-rank-info {
  position: relative; z-index: 1;
}

.lb-page .your-rank-info h3 {
  font-size: 24px;
      margin-bottom: 4px;
}

.lb-page .your-rank-info p {
  color: var(--gray);
      font-weight: 700;
      font-size: 14px;
      line-height: 1.7;
}

.lb-page .your-rank-num {
  text-align: center;
      position: relative;
      z-index: 1;
}

.lb-page .your-rank-num strong {
  display: block;
      font-size: 56px;
      font-weight: 950;
      line-height: 1;
      color: var(--green-dark);
      letter-spacing: -2px;
}

.lb-page .your-rank-num span {
  display: block;
      font-size: 13px;
      color: var(--gray);
      font-weight: 900;
      margin-top: 4px;
}

.lb-page .motivation-pill {
  display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: var(--gold-soft);
      color: var(--bronze);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      margin-top: 10px;
      border: 1px solid rgba(245,158,11,.25);
}

.lb-page .filters-bar {
  display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 22px;
      flex-wrap: wrap;
      background: white;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 16px 20px;
      box-shadow: 0 12px 40px rgba(16,24,40,.05);
}

.lb-page .filter-group {
  display: flex;
      gap: 8px;
      flex-wrap: wrap;
}

.lb-page .filter-chip {
  padding: 9px 14px;
      border-radius: 14px;
      background: #f8fafc;
      border: 1px solid var(--line);
      font-weight: 900;
      font-size: 13px;
      color: var(--gray);
      cursor: pointer;
      transition: all .2s;
}

.lb-page .filter-chip:hover {
  background: #f2f4f7;
}

.lb-page .filter-chip.active {
  background: var(--green-dark);
      color: white;
      border-color: var(--green-dark);
      box-shadow: 0 8px 20px rgba(16,185,129,.22);
}

.lb-page .filter-search {
  display: flex;
      align-items: center;
      gap: 8px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 10px 14px;
      min-width: 220px;
}

.lb-page .filter-search input {
  border: 0; background: transparent; outline: 0;
      flex: 1; font-weight: 800; color: var(--dark);
      font-family: inherit;
}

.lb-page .podium-section {
  background: white;
      border: 1px solid var(--line);
      border-radius: 32px;
      padding: 30px;
      margin-bottom: 22px;
      box-shadow: 0 24px 80px rgba(16,24,40,.07);
      position: relative;
      overflow: hidden;
}

.lb-page .podium-section:before {
  content: ""; position: absolute;
      width: 100%; height: 60%;
      bottom: 0; left: 0;
      background: linear-gradient(180deg, transparent, rgba(16,185,129,.04));
      pointer-events: none;
}

.lb-page .podium-head {
  display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      position: relative;
}

.lb-page .podium-head h2 {
  font-size: 28px;
      letter-spacing: -.5px;
}

.lb-page .podium-head p {
  color: var(--gray);
      font-weight: 700;
      font-size: 14px;
      margin-top: 4px;
}

.lb-page .podium {
  display: grid;
      grid-template-columns: 1fr 1.15fr 1fr;
      gap: 18px;
      align-items: end;
      position: relative;
}

.lb-page .podium-card {
  background: white;
      border: 1px solid var(--line);
      border-radius: 26px;
      padding: 22px;
      text-align: center;
      position: relative;
      box-shadow: 0 14px 44px rgba(16,24,40,.08);
}

.lb-page .podium-card.first {
  transform: translateY(-20px);
      background: linear-gradient(180deg, #fffbeb, #fff);
      border: 2px solid var(--gold);
      box-shadow: 0 24px 60px rgba(245,158,11,.25);
}

.lb-page .podium-card.second {
  background: linear-gradient(180deg, #f1f5f9, #fff);
      border: 2px solid var(--silver);
      box-shadow: 0 18px 48px rgba(148,163,184,.22);
}

.lb-page .podium-card.third {
  background: linear-gradient(180deg, #fff7ed, #fff);
      border: 2px solid #fb923c;
      box-shadow: 0 18px 48px rgba(251,146,60,.22);
}

.lb-page .crown {
  position: absolute;
      top: -28px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 38px;
      filter: drop-shadow(0 6px 12px rgba(245,158,11,.4));
      animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(-6px); }
    }

.lb-page .medal {
  position: absolute;
      top: -22px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 32px;
}

.lb-page .podium-rank {
  display: inline-block;
      padding: 6px 16px;
      border-radius: 999px;
      font-weight: 950;
      font-size: 14px;
      margin-bottom: 12px;
}

.lb-page .podium-rank.gold {
  background: var(--gold-soft); color: #b45309; border: 1px solid rgba(245,158,11,.3);
}

.lb-page .podium-rank.silver {
  background: var(--silver-soft); color: #475569; border: 1px solid rgba(148,163,184,.3);
}

.lb-page .podium-rank.bronze {
  background: var(--bronze-soft); color: var(--bronze); border: 1px solid rgba(251,146,60,.3);
}

.lb-page .podium-avatar-wrap {
  position: relative;
      width: 110px;
      height: 110px;
      margin: 0 auto 14px;
}

.lb-page .podium-avatar-wrap.first {
  width: 130px; height: 130px;
}

.lb-page .podium-aura {
  position: absolute; inset: -6px;
      border-radius: 32px;
      animation: spin 5s linear infinite;
}

.lb-page .podium-aura.gold {
  background: conic-gradient(from 180deg, #fbbf24, #fff7ed, var(--gold), #fbbf24);
}

.lb-page .podium-aura.silver {
  background: conic-gradient(from 180deg, #cbd5e1, #fff, var(--silver), #cbd5e1);
}

.lb-page .podium-aura.bronze {
  background: conic-gradient(from 180deg, #fb923c, #fff7ed, var(--bronze), #fb923c);
}

.lb-page .podium-avatar {
  position: absolute; inset: 6px;
      border-radius: 26px;
      background: linear-gradient(135deg, #111827, #1f2937);
      border: 5px solid white;
      color: white;
      display: grid; place-items: center;
      font-size: 36px; font-weight: 950;
      box-shadow: 0 14px 30px rgba(16,24,40,.22);
}

.lb-page .podium-card.first .podium-avatar {
  font-size: 42px;
}

.lb-page .podium-card h3 {
  font-size: 22px;
      margin-bottom: 4px;
}

.lb-page .podium-card.first h3 {
  font-size: 26px;
}

.lb-page .podium-card .handle {
  color: var(--gray);
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 16px;
}

.lb-page .podium-cashback {
  font-size: 32px;
      font-weight: 950;
      color: var(--green-dark);
      letter-spacing: -1px;
}

.lb-page .podium-card.first .podium-cashback {
  font-size: 38px;
}

.lb-page .podium-label {
  font-size: 12px;
      color: var(--gray);
      font-weight: 800;
      margin-bottom: 14px;
}

.lb-page .podium-meta {
  display: flex;
      justify-content: space-around;
      gap: 8px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed var(--line);
}

.lb-page .podium-meta-item {
  text-align: center;
}

.lb-page .podium-meta-item strong {
  display: block;
      font-size: 16px;
      font-weight: 900;
      color: var(--dark);
}

.lb-page .podium-meta-item span {
  font-size: 11px;
      color: var(--gray);
      font-weight: 800;
}

.lb-page .podium-prize {
  display: inline-block;
      margin-top: 12px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
}

.lb-page .podium-prize.gold {
  background: var(--gold-soft); color: #b45309; border: 1px solid rgba(245,158,11,.3);
}

.lb-page .podium-prize.silver {
  background: var(--silver-soft); color: #475569; border: 1px solid rgba(148,163,184,.3);
}

.lb-page .podium-prize.bronze {
  background: var(--bronze-soft); color: var(--bronze); border: 1px solid rgba(251,146,60,.3);
}

.lb-page .table-section {
  background: white;
      border: 1px solid var(--line);
      border-radius: 32px;
      padding: 30px;
      box-shadow: 0 24px 80px rgba(16,24,40,.07);
      margin-bottom: 22px;
}

.lb-page .table-head {
  display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 22px;
      flex-wrap: wrap;
      gap: 12px;
}

.lb-page .table-head h2 {
  font-size: 28px;
      letter-spacing: -.5px;
}

.lb-page .table-head p {
  color: var(--gray);
      font-weight: 700;
      font-size: 14px;
      margin-top: 4px;
}

.lb-page .table-meta {
  display: flex;
      gap: 8px;
      flex-wrap: wrap;
}

.lb-page .meta-chip {
  padding: 8px 12px;
      border-radius: 999px;
      background: #f8fafc;
      border: 1px solid var(--line);
      font-weight: 900;
      font-size: 12px;
      color: var(--gray);
      display: inline-flex;
      align-items: center;
      gap: 6px;
}

.lb-page .meta-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
      background: var(--green);
      animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .4; }
    }

.lb-page .trader-row {
  display: grid;
      grid-template-columns: 60px 1fr 110px 110px 110px 90px 110px;
      gap: 14px;
      padding: 14px 16px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 18px;
      margin-bottom: 10px;
      align-items: center;
      transition: all .25s ease;
}

.lb-page .trader-row:hover {
  transform: translateY(-2px);
      box-shadow: 0 14px 44px rgba(16,24,40,.08);
      border-color: var(--green);
      background: white;
}

.lb-page .trader-row.you {
  background: linear-gradient(90deg, var(--green-soft), #fef3c7);
      border: 2px solid var(--green);
      box-shadow: 0 14px 44px rgba(16,185,129,.15);
}

.lb-page .rank-cell {
  text-align: center;
      font-size: 22px;
      font-weight: 950;
      color: var(--dark);
}

.lb-page .rank-cell .move {
  display: block;
      font-size: 11px;
      font-weight: 800;
      margin-top: 2px;
}

.lb-page .rank-cell .move.up {
  color: var(--green-dark);
}

.lb-page .rank-cell .move.down {
  color: var(--red);
}

.lb-page .rank-cell .move.stay {
  color: var(--gray);
}

.lb-page .trader-info {
  display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
}

.lb-page .trader-avatar-wrap {
  position: relative;
      width: 52px;
      height: 52px;
      flex: 0 0 auto;
}

.lb-page .trader-aura {
  position: absolute; inset: -3px;
      border-radius: 17px;
      background: conic-gradient(from 180deg, var(--green), #d1fae5, var(--gold), var(--green));
      animation: spin 5s linear infinite;
}

.lb-page .trader-avatar {
  position: absolute; inset: 3px;
      border-radius: 14px;
      background: linear-gradient(135deg, #111827, #1f2937);
      border: 2.5px solid white;
      color: white;
      display: grid; place-items: center;
      font-size: 18px; font-weight: 950;
}

.lb-page .trader-name-block {
  min-width: 0; flex: 1;
}

.lb-page .trader-name {
  font-weight: 900;
      font-size: 16px;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      gap: 6px;
}

.lb-page .verified-mark {
  color: var(--green-dark);
      font-size: 14px;
}

.lb-page .trader-meta {
  display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
}

.lb-page .pill-mini {
  padding: 3px 9px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      background: #f2f4f7;
      color: #475569;
}

.lb-page .pill-mini.legend {
  background: #fef3c7; color: #92400e;
}

.lb-page .pill-mini.elite {
  background: #ede9fe; color: #5b21b6;
}

.lb-page .pill-mini.vip {
  background: #dcfce7; color: var(--green-dark);
}

.lb-page .pill-mini.gold {
  background: var(--gold-soft); color: #b45309;
}

.lb-page .pill-mini.country {
  background: #f1f5f9; color: #475569;
}

.lb-page .cell-value {
  text-align: center;
}

.lb-page .cell-value strong {
  display: block;
      font-size: 16px;
      font-weight: 900;
      color: var(--dark);
}

.lb-page .cell-value.green strong {
  color: var(--green-dark); font-size: 18px;
}

.lb-page .cell-value span {
  font-size: 11px;
      color: var(--gray);
      font-weight: 800;
}

.lb-page .streak-badge {
  display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 10px;
      border-radius: 999px;
      background: #fff7ed;
      color: var(--bronze);
      font-weight: 900;
      font-size: 13px;
}

.lb-page .trader-actions {
  display: flex;
      gap: 6px;
      justify-content: flex-end;
}

.lb-page .icon-btn {
  width: 36px; height: 36px;
      border-radius: 12px;
      background: white;
      border: 1px solid var(--line);
      display: grid; place-items: center;
      font-size: 14px;
      cursor: pointer;
      transition: all .2s;
}

.lb-page .icon-btn:hover {
  background: var(--green-soft);
      border-color: var(--green);
      color: var(--green-dark);
}

.lb-page .table-headers {
  display: grid;
      grid-template-columns: 60px 1fr 110px 110px 110px 90px 110px;
      gap: 14px;
      padding: 0 16px 12px;
      font-size: 12px;
      font-weight: 900;
      color: var(--gray);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px dashed var(--line);
      margin-bottom: 14px;
}

.lb-page .table-headers > div {
  text-align: center;
}

.lb-page .table-headers > div:nth-child(2) {
  text-align: right;
}

.lb-page .motivation-section {
  display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 22px;
}

.lb-page .motivation-card {
  background: white;
      border: 1px solid var(--line);
      border-radius: 26px;
      padding: 24px;
      box-shadow: 0 14px 44px rgba(16,24,40,.06);
      position: relative;
      overflow: hidden;
}

.lb-page .motivation-card:before {
  content: ""; position: absolute;
      width: 140px; height: 140px; border-radius: 50%;
      opacity: .08;
      right: -50px; top: -50px;
}

.lb-page .motivation-card.green:before {
  background: var(--green);
}

.lb-page .motivation-card.gold:before {
  background: var(--gold);
}

.lb-page .motivation-card.purple:before {
  background: var(--purple);
}

.lb-page .mot-icon {
  width: 56px; height: 56px;
      border-radius: 18px;
      display: grid; place-items: center;
      font-size: 28px;
      margin-bottom: 14px;
      position: relative;
}

.lb-page .mot-icon.green {
  background: var(--green-soft); color: var(--green-dark);
}

.lb-page .mot-icon.gold {
  background: var(--gold-soft); color: #b45309;
}

.lb-page .mot-icon.purple {
  background: #f3e8ff; color: #6b21a8;
}

.lb-page .motivation-card h3 {
  font-size: 20px;
      margin-bottom: 8px;
      position: relative;
}

.lb-page .motivation-card p {
  color: var(--gray);
      line-height: 1.7;
      font-weight: 700;
      font-size: 14px;
      position: relative;
}

.lb-page .mot-cta {
  display: inline-block;
      margin-top: 14px;
      color: var(--green-dark);
      font-weight: 900;
      font-size: 13px;
      position: relative;
}

.lb-page .tips-section {
  display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 22px;
      margin-bottom: 22px;
}

.lb-page .tips-card {
  background: white;
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 28px;
      box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.lb-page .tips-card h2 {
  font-size: 24px;
      margin-bottom: 6px;
}

.lb-page .tips-card .sub {
  color: var(--gray);
      font-weight: 700;
      margin-bottom: 20px;
      font-size: 14px;
}

.lb-page .tip-row {
  display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 18px;
      margin-bottom: 10px;
}

.lb-page .tip-num {
  width: 36px; height: 36px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      display: grid; place-items: center;
      font-weight: 950;
      font-size: 15px;
      flex: 0 0 auto;
      box-shadow: 0 6px 14px rgba(16,185,129,.22);
}

.lb-page .tip-text strong {
  display: block;
      margin-bottom: 4px;
      font-size: 15px;
}

.lb-page .tip-text p {
  color: var(--gray);
      font-weight: 700;
      font-size: 13px;
      line-height: 1.7;
}

.lb-page .next-rank-card {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
      color: white;
      border-radius: 28px;
      padding: 28px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.lb-page .next-rank-card:after {
  content: ""; position: absolute;
      width: 200px; height: 200px; border-radius: 50%;
      background: rgba(245,158,11,.18);
      left: -60px; bottom: -80px;
}

.lb-page .next-rank-card > * {
  position: relative; z-index: 1;
}

.lb-page .next-rank-card h3 {
  font-size: 22px;
      margin-bottom: 8px;
}

.lb-page .next-rank-card p {
  color: #d1fae5;
      line-height: 1.7;
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 18px;
}

.lb-page .progress-mini {
  height: 12px;
      background: rgba(255,255,255,.12);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 10px;
}

.lb-page .progress-mini span {
  display: block;
      width: 68%;
      height: 100%;
      background: linear-gradient(90deg, var(--green), var(--gold));
}

.lb-page .progress-info {
  display: flex;
      justify-content: space-between;
      color: #d1fae5;
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 18px;
}

.lb-page .gap-info {
  background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 16px;
      padding: 14px;
      margin-top: 12px;
}

.lb-page .gap-info strong {
  display: block;
      font-size: 28px;
      color: #fbbf24;
      font-weight: 950;
      margin-bottom: 4px;
}

.lb-page .gap-info span {
  font-size: 12px;
      color: #d1fae5;
      font-weight: 800;
}

.lb-page .wide-cta {
  margin-top: 22px;
      padding: 38px;
      border-radius: 34px;
      background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
      color: white;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 20px;
      align-items: center;
      overflow: hidden;
      position: relative;
      box-shadow: 0 24px 80px rgba(16,24,40,.15);
}

.lb-page .wide-cta:after {
  content: ""; position: absolute;
      width: 280px; height: 280px; border-radius: 50%;
      background: rgba(16,185,129,.22);
      left: -100px; bottom: -120px;
}

.lb-page .wide-cta:before {
  content: ""; position: absolute;
      width: 200px; height: 200px; border-radius: 50%;
      background: rgba(245,158,11,.15);
      right: -60px; top: -60px;
}

.lb-page .wide-cta > div {
  position: relative; z-index: 1;
}

.lb-page .wide-cta h2 {
  font-size: 34px; margin-bottom: 10px; letter-spacing: -.5px;
}

.lb-page .wide-cta p {
  color: #d1fae5; line-height: 1.8; font-weight: 700; max-width: 540px;
}

@media (max-width: 1100px) {
      .trader-row, .table-headers {
        grid-template-columns: 50px 1fr 90px 90px 80px;
      }
      .trader-row > .col-hide-mid,
      .table-headers > .col-hide-mid { display: none; }
    }

@media (max-width: 980px) {
      body { padding: 14px; }
      .nav, .actions { display: none; }
      .hero-card { grid-template-columns: 1fr; }
      .hero-stats-row { grid-template-columns: repeat(3, 1fr); }
      h1 { font-size: 36px; }
      .your-rank { grid-template-columns: 1fr; text-align: center; }
      .your-rank-avatar { margin: 0 auto; }
      .podium { grid-template-columns: 1fr; }
      .podium-card.first { transform: none; }
      .motivation-section, .tips-section { grid-template-columns: 1fr; }
      .trader-row, .table-headers {
        grid-template-columns: 40px 1fr 80px;
      }
      .trader-row > .col-hide-mobile,
      .table-headers > .col-hide-mobile { display: none; }
      .wide-cta { grid-template-columns: 1fr; }
      .countdown-grid { grid-template-columns: repeat(4, 1fr); }
    }

@media (max-width: 560px) {
      .countdown-grid { grid-template-columns: repeat(2, 1fr); }
      .filters-bar { flex-direction: column; align-items: stretch; }
      .filter-search { min-width: auto; }
    }

/* ──────────────────────────────────────────────────────────────────────
   TRADER PROFILE (.tp-*)
   ────────────────────────────────────────────────────────────────────── */

.tp-page .cover {
  height: 220px;
  background: linear-gradient(135deg, #0f766e 0%, #047857 30%, #065f46 60%, #14532d 100%);
  position: relative;
  overflow: hidden;
}

.tp-page .cover::before {
  content: ""; position: absolute;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(16,185,129,.30);
  right: -100px; top: -160px;
}

.tp-page .cover::after {
  content: ""; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(245,158,11,.22);
  left: -80px; bottom: -140px;
}

.tp-page .cover-edit {
  position: absolute;
  top: 16px; right: 16px;
  padding: 8px 14px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tp-page .stories {
  position: absolute;
  bottom: 16px;
  left: 30px;
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 5;
}

.tp-page .story {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
}

.tp-page .story-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf24, #10b981, #fbbf24);
  padding: 3px;
  margin-bottom: 4px;
  animation: spin 4s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tp-page .story-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.tp-page .story-label {
  font-size: 10px;
  color: white;
  font-weight: 900;
  letter-spacing: .5px;
}

.tp-page .hero-body {
  padding: 0 36px 30px;
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 26px;
  align-items: flex-end;
}

.tp-page .avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-top: -100px;
}

.tp-page .avatar-aura {
  position: absolute; inset: -8px;
  border-radius: 44px;
  background: conic-gradient(from 180deg, #fbbf24, #10b981, #fbbf24, #047857, #fbbf24);
  animation: spin 5s linear infinite;
}

.tp-page .avatar-frame {
  position: absolute; inset: 6px;
  border-radius: 36px;
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 6px solid white;
  color: white;
  display: grid; place-items: center;
  font-size: 56px; font-weight: 950;
  box-shadow: 0 24px 60px rgba(16,24,40,.3);
  position: absolute;
  letter-spacing: -2px;
}

.tp-page .live-badge {
  position: absolute;
  bottom: 6px; right: 6px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-page .live-dot {
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.tp-page .hero-info {
  padding-bottom: 6px;
}

.tp-page .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tp-page .name-row h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.tp-page .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, var(--gold));
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(245,158,11,.32);
}

.tp-page .legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(139,92,246,.28);
}

.tp-page .custom-title {
  display: inline-block;
  font-size: 16px;
  color: var(--gold);
  font-weight: 900;
  font-style: italic;
  margin-bottom: 8px;
}

.tp-page .bio {
  color: var(--gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 540px;
}

.tp-page .meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 13px;
  font-weight: 800;
}

.tp-page .meta-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.tp-page .live-counter-block {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
  color: white;
  border-radius: 22px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(16,24,40,.18);
}

.tp-page .live-counter-block::after {
  content: ""; position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(16,185,129,.22);
  right: -50px; top: -60px;
}

.tp-page .live-counter-block > * {
  position: relative; z-index: 1;
}

.tp-page .live-counter-label {
  font-size: 11px;
  color: #d1fae5;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tp-page .live-counter-value {
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
  color: white;
}

.tp-page .live-counter-sub {
  font-size: 11px;
  color: #d1fae5;
  font-weight: 800;
}

.tp-page .hero-actions {
  padding: 0 36px 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-page .share-toolbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(16,24,40,.05);
}

.tp-page .share-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tp-page .share-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-soft), #fef3c7);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.tp-page .share-text strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}

.tp-page .share-text span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
}

.tp-page .share-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.tp-page .platform-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
}

.tp-page .platform-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.tp-page .stats-section {
  margin-bottom: 22px;
}

.tp-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.tp-page .section-head h2 {
  font-size: 22px;
  letter-spacing: -.5px;
  font-weight: 900;
}

.tp-page .section-head .sub {
  font-size: 13px;
  color: var(--gray);
  font-weight: 700;
}

.tp-page .stats-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.tp-page .stats-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tp-page .stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
  position: relative;
  overflow: hidden;
  transition: all .25s;
}

.tp-page .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(16,24,40,.10);
}

.tp-page .stat-card::before {
  content: ""; position: absolute;
  width: 140px; height: 140px; border-radius: 50%;
  opacity: .08;
  right: -50px; top: -50px;
}

.tp-page .stat-card.green::before {
  background: var(--green);
}

.tp-page .stat-card.gold::before {
  background: var(--gold);
}

.tp-page .stat-card.orange::before {
  background: var(--orange);
}

.tp-page .stat-card.purple::before {
  background: var(--purple);
}

.tp-page .stat-card.blue::before {
  background: var(--blue);
}

.tp-page .stat-card.pink::before {
  background: var(--pink);
}

.tp-page .stat-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
  position: relative;
}

.tp-page .stat-icon.green {
  background: var(--green-soft); color: var(--green-dark);
}

.tp-page .stat-icon.gold {
  background: var(--gold-soft); color: #b45309;
}

.tp-page .stat-icon.orange {
  background: #fff7ed; color: var(--bronze);
}

.tp-page .stat-icon.purple {
  background: #f3e8ff; color: #6b21a8;
}

.tp-page .stat-icon.blue {
  background: #dbeafe; color: #1e40af;
}

.tp-page .stat-icon.pink {
  background: #fce7f3; color: #9d174d;
}

.tp-page .stat-value {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -1px;
  margin-bottom: 4px;
  position: relative;
}

.tp-page .stat-label {
  color: var(--gray);
  font-weight: 800;
  font-size: 12px;
  position: relative;
  letter-spacing: .3px;
}

.tp-page .stat-sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green-dark);
  position: relative;
}

.tp-page .stat-sub.gold {
  color: var(--gold);
}

.tp-page .sparkline {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 80px;
  height: 30px;
  opacity: .7;
}

.tp-page .rank-progress {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
  color: white;
  border-radius: 28px;
  padding: 28px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.tp-page .rank-progress::after {
  content: ""; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(245,158,11,.18);
  right: -100px; bottom: -120px;
}

.tp-page .rank-progress::before {
  content: ""; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(139,92,246,.22);
  left: -80px; top: -60px;
}

.tp-page .rank-progress > * {
  position: relative; z-index: 1;
}

.tp-page .rank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.tp-page .rank-current {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tp-page .rank-emoji {
  font-size: 56px;
  filter: drop-shadow(0 8px 20px rgba(245,158,11,.4));
}

.tp-page .rank-info h3 {
  font-size: 26px;
  margin-bottom: 4px;
  font-weight: 900;
}

.tp-page .rank-info span {
  color: #d1fae5;
  font-size: 13px;
  font-weight: 800;
}

.tp-page .rank-next-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 12px 18px;
  text-align: right;
}

.tp-page .rank-next-badge strong {
  font-size: 18px;
  color: #fbbf24;
  font-weight: 950;
  display: block;
  margin-bottom: 4px;
}

.tp-page .rank-next-badge span {
  font-size: 11px;
  color: #d1fae5;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tp-page .progress-mega {
  height: 18px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.tp-page .progress-mega-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, var(--green), #fbbf24);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.tp-page .progress-mega-fill::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.tp-page .progress-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 900;
  color: #d1fae5;
}

.tp-page .rewards-list {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px 20px;
}

.tp-page .rewards-list-title {
  font-size: 12px;
  color: #d1fae5;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tp-page .reward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 800;
}

.tp-page .reward-item::before {
  content: "✓";
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.tp-page .eta-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-page .eta-text {
  font-size: 13px;
  color: #d1fae5;
  font-weight: 800;
}

.tp-page .eta-text strong {
  color: #fbbf24; font-size: 16px;
}

.tp-page .showcase-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
  position: relative;
  overflow: hidden;
}

.tp-page .showcase-section::before {
  content: ""; position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(245,158,11,.05);
  right: -80px; top: -80px;
}

.tp-page .showcase-section > * {
  position: relative;
}

.tp-page .showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tp-page .trophy {
  background: linear-gradient(180deg, #fffbeb, white);
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(245,158,11,.18);
  position: relative;
  transition: all .25s;
}

.tp-page .trophy:hover {
  transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 50px rgba(245,158,11,.28);
}

.tp-page .trophy.epic {
  background: linear-gradient(180deg, #f3e8ff, white); border-color: var(--purple); box-shadow: 0 14px 30px rgba(139,92,246,.18);
}

.tp-page .trophy.legendary {
  background: linear-gradient(180deg, #fce7f3, white); border-color: var(--pink); box-shadow: 0 14px 30px rgba(236,72,153,.22);
}

.tp-page .trophy.rare {
  background: linear-gradient(180deg, #dbeafe, white); border-color: var(--blue); box-shadow: 0 14px 30px rgba(37,99,235,.18);
}

.tp-page .trophy-emoji {
  font-size: 48px; margin-bottom: 10px; line-height: 1;
}

.tp-page .trophy-name {
  font-size: 14px; font-weight: 950; margin-bottom: 4px;
}

.tp-page .trophy-date {
  font-size: 11px; color: var(--gray); font-weight: 800; margin-bottom: 10px;
}

.tp-page .rarity-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tp-page .rarity-badge.gold {
  background: var(--gold-soft); color: #b45309;
}

.tp-page .rarity-badge.epic {
  background: #f3e8ff; color: #6b21a8;
}

.tp-page .rarity-badge.legendary {
  background: #fce7f3; color: #9d174d;
}

.tp-page .rarity-badge.rare {
  background: #dbeafe; color: #1e40af;
}

.tp-page .heatmap-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .heatmap-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--green-soft), #fef3c7);
  border-radius: 18px;
  border: 1px solid rgba(16,185,129,.15);
}

.tp-page .heatmap-summary-item strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
  color: var(--green-dark);
}

.tp-page .heatmap-summary-item span {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tp-page .heatmap-grid {
  display: grid;
  grid-template-columns: 36px repeat(53, 14px);
  gap: 3px;
  font-size: 10px;
  color: var(--gray);
  overflow-x: auto;
  padding-bottom: 8px;
}

.tp-page .heatmap-label {
  font-weight: 800;
  font-size: 10px;
  color: var(--gray);
  text-align: right;
  padding-right: 8px;
  line-height: 14px;
}

.tp-page .day {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #f1f5f9;
  transition: transform .2s;
  cursor: pointer;
}

.tp-page .day:hover {
  transform: scale(1.6); z-index: 10; position: relative;
}

.tp-page .day.l1 {
  background: #d1fae5;
}

.tp-page .day.l2 {
  background: #86efac;
}

.tp-page .day.l3 {
  background: #34d399;
}

.tp-page .day.l4 {
  background: var(--green-dark);
}

.tp-page .heatmap-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray);
  font-weight: 800;
}

.tp-page .heatmap-legend .day {
  cursor: default;
}

.tp-page .two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.tp-page .records-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tp-page .record-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all .2s;
}

.tp-page .record-row:hover {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold-soft), white);
}

.tp-page .record-emoji {
  font-size: 26px;
}

.tp-page .record-text {
  flex: 1;
}

.tp-page .record-value {
  display: block;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.3px;
}

.tp-page .record-label {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.tp-page .compare-card {
  background: linear-gradient(135deg, var(--green-soft), #fef3c7);
  border: 2px solid var(--green);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(16,185,129,.15);
}

.tp-page .compare-card::after {
  content: ""; position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245,158,11,.15);
  right: -100px; bottom: -100px;
}

.tp-page .compare-card > * {
  position: relative;
}

.tp-page .compare-big {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.tp-page .compare-big .pct {
  color: var(--green-dark);
}

.tp-page .compare-tier {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tp-page .tier-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tp-page .tier-badge.gold {
  border-color: var(--gold); color: #b45309;
}

.tp-page .tier-badge.purple {
  border-color: var(--purple); color: #6b21a8;
}

.tp-page .compare-bar {
  margin-bottom: 12px;
}

.tp-page .compare-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.tp-page .compare-bar-track {
  height: 10px;
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  overflow: hidden;
}

.tp-page .compare-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 999px;
}

.tp-page .dna-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
  position: relative;
  overflow: hidden;
}

.tp-page .dna-card::before {
  content: ""; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(139,92,246,.05);
  right: -60px; top: -60px;
}

.tp-page .dna-card > * {
  position: relative;
}

.tp-page .dna-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  align-items: center;
}

.tp-page .personality-block {
  background: linear-gradient(135deg, #f3e8ff, white);
  border: 2px solid var(--purple);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}

.tp-page .personality-emoji {
  font-size: 80px;
  margin-bottom: 10px;
  line-height: 1;
}

.tp-page .personality-name {
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 6px;
  color: #6b21a8;
}

.tp-page .personality-desc {
  font-size: 13px;
  color: var(--gray);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tp-page .personality-quiz-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--purple);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.tp-page .dna-bars {
  padding: 0 10px;
}

.tp-page .dna-bar {
  margin-bottom: 16px;
}

.tp-page .dna-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.tp-page .dna-bar-label .name {
  color: var(--dark);
}

.tp-page .dna-bar-label .pct {
  color: var(--purple); font-weight: 950;
}

.tp-page .dna-bar-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.tp-page .dna-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, var(--purple));
  border-radius: 999px;
}

.tp-page .dna-bar-fill.green {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.tp-page .dna-bar-fill.gold {
  background: linear-gradient(90deg, #fbbf24, var(--gold));
}

.tp-page .dna-bar-fill.blue {
  background: linear-gradient(90deg, #60a5fa, var(--blue));
}

.tp-page .dna-info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.tp-page .dna-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.tp-page .dna-info-item .icon {
  font-size: 16px;
}

.tp-page .hours-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .hours-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  margin: 18px 0 12px;
}

.tp-page .hour-bar {
  height: 60px;
  background: #f1f5f9;
  border-radius: 6px;
  position: relative;
}

.tp-page .hour-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-radius: 6px;
}

.tp-page .hour-labels {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  font-size: 9px;
  color: var(--gray);
  font-weight: 800;
  text-align: center;
}

.tp-page .hours-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.tp-page .hours-insight {
  text-align: center;
}

.tp-page .hours-insight strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--dark);
}

.tp-page .hours-insight span {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.tp-page .brokers-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .broker-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 10px;
  transition: all .25s;
}

.tp-page .broker-row:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 14px 34px rgba(16,185,129,.10);
  background: white;
}

.tp-page .broker-logo {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(16,24,40,.18);
}

.tp-page .broker-info strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 3px;
}

.tp-page .broker-info .meta {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
}

.tp-page .broker-earned {
  text-align: center;
}

.tp-page .broker-earned strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
  color: var(--green-dark);
  letter-spacing: -.3px;
}

.tp-page .broker-earned span {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
}

.tp-page .activity-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .activity-list {
  margin-top: 14px;
}

.tp-page .activity-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 8px;
}

.tp-page .activity-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.tp-page .activity-icon-wrap.cashback {
  background: var(--green-soft); color: var(--green-dark);
}

.tp-page .activity-icon-wrap.achievement {
  background: var(--gold-soft); color: #b45309;
}

.tp-page .activity-icon-wrap.rank {
  background: #f3e8ff; color: #6b21a8;
}

.tp-page .activity-icon-wrap.record {
  background: #fce7f3; color: #9d174d;
}

.tp-page .activity-icon-wrap.referral {
  background: #dbeafe; color: #1e40af;
}

.tp-page .activity-icon-wrap.streak {
  background: #fff7ed; color: var(--bronze);
}

.tp-page .activity-content {
  flex: 1;
}

.tp-page .activity-content strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px;
}

.tp-page .activity-content .meta {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
}

.tp-page .activity-rarity {
  font-size: 11px;
  color: var(--gold);
  font-weight: 900;
  margin-top: 4px;
  display: inline-block;
}

.tp-page .activity-time {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
  white-space: nowrap;
}

.tp-page .achievements-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.tp-page .achievement-mini {
  text-align: center;
  padding: 14px 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all .2s;
  cursor: pointer;
}

.tp-page .achievement-mini:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.tp-page .achievement-mini.locked {
  opacity: .4;
  filter: grayscale(80%);
}

.tp-page .achievement-mini .emoji {
  font-size: 30px;
  margin-bottom: 6px;
  line-height: 1;
}

.tp-page .achievement-mini .name {
  font-size: 11px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.tp-page .social-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}

.tp-page .followers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.tp-page .follower-block {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}

.tp-page .follower-block strong {
  display: block;
  font-size: 32px;
  font-weight: 950;
  margin-bottom: 4px;
  letter-spacing: -.5px;
  color: var(--green-dark);
}

.tp-page .follower-block span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 12px;
  display: block;
}

.tp-page .follower-avatars {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.tp-page .follower-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 3px solid white;
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  margin-right: -10px;
  box-shadow: 0 4px 10px rgba(16,24,40,.15);
}

.tp-page .challenge-card {
  background: linear-gradient(135deg, #1e3a8a, #6b21a8 60%, #be185d);
  color: white;
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(190,24,93,.22);
}

.tp-page .challenge-card::after {
  content: ""; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  right: -100px; bottom: -120px;
}

.tp-page .challenge-card > * {
  position: relative;
}

.tp-page .challenge-card h2 {
  font-size: 28px;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  font-weight: 900;
}

.tp-page .challenge-card p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 540px;
}

.tp-page .challenge-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.tp-page .challenge-player {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px;
}

.tp-page .challenge-player strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 4px;
}

.tp-page .challenge-player span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 800;
}

.tp-page .challenge-vs {
  font-size: 28px;
  font-weight: 950;
  color: rgba(255,255,255,.5);
}

.tp-page .challenge-prize {
  background: rgba(255,255,255,.08);
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.tp-page .insights-card {
  background: linear-gradient(135deg, var(--green-soft), white);
  border: 2px solid var(--green);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.tp-page .insights-card::after {
  content: ""; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(245,158,11,.10);
  right: -80px; bottom: -80px;
}

.tp-page .insights-card > * {
  position: relative;
}

.tp-page .insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.tp-page .insight-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.tp-page .insight-item strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
  color: var(--green-dark);
  letter-spacing: -.5px;
  margin-bottom: 4px;
}

.tp-page .insight-item span {
  font-size: 11px;
  color: var(--gray);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.tp-page .insight-trend {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--green-dark);
}

.tp-page .customization-card {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16,24,40,.18);
}

.tp-page .customization-card::after {
  content: ""; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(16,185,129,.18);
  right: -80px; bottom: -80px;
}

.tp-page .customization-card > * {
  position: relative;
}

.tp-page .customization-card h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 6px;
}

.tp-page .customization-card .sub {
  color: #d1fae5;
  margin-bottom: 22px;
}

.tp-page .custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tp-page .custom-block {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
}

.tp-page .custom-block-title {
  font-size: 11px;
  color: #d1fae5;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tp-page .theme-options {
  display: flex; gap: 6px;
}

.tp-page .theme-opt {
  flex: 1;
  padding: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.tp-page .theme-opt.active {
  background: rgba(16,185,129,.22); border-color: var(--green);
}

.tp-page .color-circles {
  display: flex; gap: 6px; flex-wrap: wrap;
}

.tp-page .color-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}

.tp-page .color-circle.active {
  border-color: white; transform: scale(1.15);
}

.tp-page .frame-options {
  display: flex; gap: 6px;
}

.tp-page .frame-opt {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.10);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px;
}

.tp-page .frame-opt.active {
  border-color: var(--gold);
}

.tp-page .frame-opt.locked {
  opacity: .35; cursor: not-allowed;
}

.tp-page .wrapped-card {
  background: linear-gradient(135deg, #be185d 0%, #6b21a8 35%, #1e3a8a 70%, #047857 100%);
  color: white;
  border-radius: 32px;
  padding: 36px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(190,24,93,.30);
}

.tp-page .wrapped-card::before {
  content: ""; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  right: -100px; top: -160px;
  animation: pulse 4s ease-in-out infinite;
}

.tp-page .wrapped-card::after {
  content: ""; position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  left: -80px; bottom: -120px;
}

.tp-page .wrapped-card > * {
  position: relative;
}

.tp-page .wrapped-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tp-page .wrapped-card h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.tp-page .wrapped-card p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 580px;
}

.tp-page .wrapped-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.tp-page .wrapped-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.tp-page .wrapped-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}

.tp-page .wrapped-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tp-page .featured-card {
  background: linear-gradient(135deg, #fbbf24, var(--gold) 50%, #b45309);
  color: white;
  border-radius: 28px;
  padding: 24px 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(245,158,11,.30);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.tp-page .featured-card::after {
  content: ""; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  right: -80px; top: -100px;
}

.tp-page .featured-card > * {
  position: relative;
}

.tp-page .featured-trophy {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.tp-page .featured-text h3 {
  font-size: 24px;
  margin-bottom: 4px;
  font-weight: 900;
}

.tp-page .featured-text p {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.tp-page .verified-card {
  background: white;
  border: 2px solid var(--gold);
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(245,158,11,.18);
}

.tp-page .verified-card::after {
  content: ""; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(245,158,11,.08);
  right: -60px; top: -60px;
}

.tp-page .verified-card > * {
  position: relative;
}

.tp-page .verified-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.tp-page .verified-level {
  padding: 18px;
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  text-align: center;
  transition: all .25s;
}

.tp-page .verified-level.current {
  background: linear-gradient(135deg, #fce7f3, var(--pink) 200%);
  border-color: var(--pink);
  color: white;
  background: linear-gradient(135deg, #a78bfa, #6b21a8);
}

.tp-page .verified-level .emoji {
  font-size: 36px; margin-bottom: 8px; line-height: 1;
}

.tp-page .verified-level .name {
  font-size: 14px; font-weight: 900; margin-bottom: 4px;
}

.tp-page .verified-level .desc {
  font-size: 11px; opacity: .8; font-weight: 700;
}

.tp-page .verified-level .achieved {
  font-size: 10px;
  font-weight: 900;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  display: inline-block;
}

.tp-page .anniversary-card {
  background: linear-gradient(135deg, #be185d, #ec4899 60%, #f9a8d4);
  color: white;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(190,24,93,.22);
}

.tp-page .anniversary-card::after {
  content: ""; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  right: -80px; top: -80px;
}

.tp-page .anniversary-card > * {
  position: relative;
}

.tp-page .anniversary-emoji {
  font-size: 52px;
}

.tp-page .anniversary-text {
  flex: 1;
}

.tp-page .anniversary-text h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.tp-page .anniversary-text p {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 800;
}

.tp-page .footer-cta {
  background: linear-gradient(135deg, #111827, #1f2937 55%, #064e3b);
  color: white;
  border-radius: 32px;
  padding: 38px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 24px 80px rgba(16,24,40,.15);
}

.tp-page .footer-cta::before {
  content: ""; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(16,185,129,.22);
  left: -100px; top: -100px;
}

.tp-page .footer-cta::after {
  content: ""; position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(245,158,11,.18);
  right: -80px; bottom: -100px;
}

.tp-page .footer-cta > * {
  position: relative;
}

.tp-page .footer-cta h2 {
  font-size: 32px;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.tp-page .footer-cta p {
  color: #d1fae5;
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .hero-body { grid-template-columns: 160px 1fr; }
  .live-counter-block { grid-column: 1 / -1; margin-top: 14px; }
  .stats-primary, .stats-secondary { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid, .achievements-grid { grid-template-columns: repeat(3, 1fr); }
  .records-grid, .followers-row { grid-template-columns: 1fr; }
  .two-col, .dna-grid { grid-template-columns: 1fr; }
  .wrapped-stats, .insights-grid, .custom-grid { grid-template-columns: repeat(2, 1fr); }
  .verified-levels { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  body { padding: 14px; }
  .nav { display: none; }
  .cover { height: 180px; }
  .hero-body { padding: 0 22px 24px; grid-template-columns: 1fr; }
  .avatar-wrap { width: 120px; height: 120px; margin-top: -70px; }
  .avatar-frame { font-size: 38px; border-width: 4px; }
  .name-row h1 { font-size: 30px; }
  .stories { left: 16px; right: 16px; overflow-x: auto; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .broker-row { grid-template-columns: 50px 1fr 100px; }
  .broker-row > .col-hide { display: none; }
  .featured-card, .anniversary-card { grid-template-columns: 1fr; text-align: center; }
  .challenge-stats { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .lb-page .podium { grid-template-columns: 1fr !important; }
  .lb-page .filters-bar { flex-direction: column; gap: 12px; }
  .tp-page .two-col { grid-template-columns: 1fr !important; }
  .tp-page .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .lb-page .hero-card { padding: 20px !important; }
  .tp-page .hero-body { flex-direction: column !important; }
}

/* ═════════════════════════════════════════════════════════════
   Phase B addenda — small helpers used by LeaderboardClient.tsx
   that complement the mockup classes
═════════════════════════════════════════════════════════════ */
.lb-page .lb-loading,
.lb-page .lb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray, #667085);
  font-weight: 600;
  font-size: 15px;
}
.lb-page .lb-empty::before {
  content: '📊';
  display: block;
  font-size: 48px;
  margin-bottom: 12px;
}

.lb-page .table-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 4px;
  color: var(--gray, #667085);
  font-weight: 900;
  font-size: 13px;
}
.lb-page .table-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line, #e4e7ec);
}
.lb-page .table-divider span {
  white-space: nowrap;
}

.lb-page .lb-cta-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.lb-page .lb-cta-btn-large {
  padding: 18px 30px;
  font-size: 15px;
  border-radius: 18px;
  text-decoration: none;
  display: inline-block;
}

/* Filter chip active state (in case mockup CSS uses different selector) */
.lb-page .filter-chip.active,
.lb-page .filter-chip:hover {
  background: linear-gradient(135deg, var(--green, #10b981), var(--green-dark, #047857));
  color: white;
  border-color: transparent;
}

/* RTL podium order fix — keep visual order even in RTL */
[dir="rtl"] .lb-page .podium {
  direction: ltr;
}
[dir="rtl"] .lb-page .podium > * {
  direction: rtl;
}

/* ═════════════════════════════════════════════════════════════
   Phase C addenda — small helpers for TraderProfileSkin.tsx
═════════════════════════════════════════════════════════════ */
.tp-page .tp-todo-banner {
  margin-top: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: 14px;
  color: #78350f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.tp-page .tp-empty {
  padding: 32px;
  text-align: center;
  color: var(--gray, #667085);
  font-size: 14px;
}

.tp-page .tp-notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft, #f8fafc);
}
.tp-page .tp-notfound-inner {
  text-align: center;
  padding: 32px;
}
.tp-page .tp-notfound-emoji {
  font-size: 80px;
  margin-bottom: 16px;
}

/* Section head — used across sections */
.tp-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.tp-page .section-head h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark, #101828);
  margin: 0 0 4px;
}
.tp-page .section-head .sub {
  color: var(--gray, #667085);
  font-size: 13px;
  font-weight: 600;
}

/* Socials section row */
.tp-page .socials-section {
  background: white;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line, #e4e7ec);
  margin-bottom: 22px;
}
.tp-page .socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tp-page .social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--dark, #101828);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e4e7ec;
}
.tp-page .social-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16,24,40,.08);
}

/* All-achievements gallery */
.tp-page .achievements-section {
  background: white;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--line, #e4e7ec);
  margin-bottom: 22px;
  box-shadow: 0 14px 44px rgba(16,24,40,.06);
}
.tp-page .achievement-mini-emoji {
  font-size: 36px;
  margin-bottom: 6px;
}
.tp-page .achievement-mini-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--dark, #101828);
  line-height: 1.3;
  margin-bottom: 2px;
}
.tp-page .achievement-mini-date {
  font-size: 10px;
  color: var(--gray, #667085);
}

/* RTL — keep podium-like icon orientation in trader profile */
[dir="rtl"] .tp-page .meta-row { flex-direction: row-reverse; }
[dir="rtl"] .tp-page .hero-actions { flex-direction: row-reverse; }

/* ═════════════════════════════════════════════════════════════
   Inner-wrapper fix — replaces generic .page class
   to avoid collision with shared main.css .page rule
═════════════════════════════════════════════════════════════ */
.lb-page .lb-inner,
.tp-page .tp-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: block;
  position: relative;
  overflow: visible;
  min-height: auto;
  box-sizing: border-box;
}

/* Reset any global flex/grid container behaviour */
.lb-page,
.tp-page {
  display: block;
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: auto;
}

/* Ensure sections inside flow naturally — no absolute/sticky misuse */
.lb-page .lb-inner > section,
.tp-page .tp-inner > section {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* Mobile spacing */
@media (max-width: 720px) {
  .lb-page .lb-inner,
  .tp-page .tp-inner {
    padding: 0 14px;
  }
}

/* ── heatmap-empty — empty-state card for the cashback activity heatmap ── */
.tp-page .heatmap-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  color: #667085;
  box-shadow: 0 14px 44px rgba(16, 24, 40, .06);
}
