/* ─────────────────────────────────────────────────────
   Agentpesa Ambassador Hub — Stylesheet
   Sections:
     01. Design Tokens (edit here to retheme)
     02. Reset & Base
     03. Animated Background
     04. Top Navigation
     05. Page Layout & Grid Helpers
     06. Hero Section
     07. Stats Strip
     08. Tab System
     09. Card Component
     10. Button Components
     11. Badge Components
     12. Chart Wrapper
     13. Notification Strip
     14. Activity Feed
     15. Performance Bars
     16. Leaderboard
     17. Data Table
     18. Search Bar
     19. Ambassador Profile Card
     20. Register Form
     21. Empty State
     22. Toast Notifications
     23. Mobile Bottom Nav
     24. Keyframe Animations
     25. Responsive Breakpoints
───────────────────────────────────────────────────── */


/* ─────────────────────────────────────────
   01. DESIGN TOKENS
   Change colours, fonts, radii here — no
   need to touch anything else to retheme.
───────────────────────────────────────── */
:root {
  /* Brand palette */
  --color-purple:      #8b5cf6;
  --color-purple-dark: #6d28d9;
  --color-cyan:        #22d3ee;
  --color-gold:        #f59e0b;
  --color-emerald:     #10b981;
  --color-rose:        #f43f5e;

  /* Surfaces */
  --color-bg:      #060610;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border:  rgba(255, 255, 255, 0.08);

  /* Text */
  --color-text:  #f8fafc;
  --color-muted: #94a3b8;

  /* Typography */
  --font-sans: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Border radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --ease:        all 0.2s ease;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ─────────────────────────────────────────
   02. RESET & BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}


/* ─────────────────────────────────────────
   03. ANIMATED BACKGROUND
───────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.orb--purple {
  width: 700px;
  height: 700px;
  background: var(--color-purple);
  top: -300px;
  left: -200px;
}

.orb--cyan {
  width: 500px;
  height: 500px;
  background: var(--color-cyan);
  bottom: -150px;
  right: -150px;
}

.orb--gold {
  width: 350px;
  height: 350px;
  background: var(--color-gold);
  top: 40%;
  left: 45%;
}


/* ─────────────────────────────────────────
   04. TOP NAVIGATION
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav__logo-text {
  background: linear-gradient(135deg, #fff, var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__tabs {
  display: flex;
  gap: 0.2rem;
  flex: 1;
}

.nav__tab {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}

.nav__tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav__tab.is-active {
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
  border-color: rgba(139, 92, 246, 0.35);
}

.nav__tab--accent {
  color: var(--color-purple);
  border-color: rgba(139, 92, 246, 0.35);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-emerald);
  white-space: nowrap;
}

.live-pill__dot {
  width: 6px;
  height: 6px;
  background: var(--color-emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

#clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
}


/* ─────────────────────────────────────────
   05. PAGE LAYOUT & GRID HELPERS
───────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 68px; /* matches nav height */
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}


/* ─────────────────────────────────────────
   06. HERO SECTION
───────────────────────────────────────── */
.hero {
  padding: 3.5rem 2rem 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__headline {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan), var(--color-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: gradShift 4s ease infinite;
}

.hero__subtext {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}


/* ─────────────────────────────────────────
   07. STATS STRIP
───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--color-purple), var(--color-cyan)); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--color-cyan), var(--color-emerald)); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--color-gold), var(--color-rose)); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--color-emerald), var(--color-purple)); }

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.3);
}

.stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.stat-card:nth-child(1) .stat-card__icon { background: rgba(139, 92, 246, 0.18); }
.stat-card:nth-child(2) .stat-card__icon { background: rgba(34, 211, 238, 0.18); }
.stat-card:nth-child(3) .stat-card__icon { background: rgba(245, 158, 11, 0.18); }
.stat-card:nth-child(4) .stat-card__icon { background: rgba(16, 185, 129, 0.18); }

.stat-card__label {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.stat-card__value {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stat-card:nth-child(1) .stat-card__value { color: var(--color-purple); }
.stat-card:nth-child(2) .stat-card__value { color: var(--color-cyan); }
.stat-card:nth-child(3) .stat-card__value { color: var(--color-gold); }
.stat-card:nth-child(4) .stat-card__value { color: var(--color-emerald); }


/* ─────────────────────────────────────────
   08. TAB SYSTEM
───────────────────────────────────────── */
.tab-pane {
  display: none;
  padding: 0 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeUp 0.4s ease;
}

.tab-pane.is-active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ─────────────────────────────────────────
   09. CARD COMPONENT
───────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}


/* ─────────────────────────────────────────
   10. BUTTON COMPONENTS
───────────────────────────────────────── */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-cyan);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-refresh:hover {
  background: rgba(34, 211, 238, 0.18);
}

.btn-refresh.is-spinning svg {
  animation: spin 1s linear infinite;
}

.btn-primary {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple));
  border: none;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::after  { left: 100%; }
.btn-primary:hover         { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(139, 92, 246, 0.42); }
.btn-primary:active        { transform: none; }
.btn-primary:disabled      { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-search {
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple));
  border: none;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--ease);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}


/* ─────────────────────────────────────────
   11. BADGE COMPONENTS
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Reward milestones */
.badge--30 { background: rgba(16, 185, 129, 0.12); color: var(--color-emerald); border: 1px solid rgba(16, 185, 129, 0.28); }
.badge--45 { background: rgba(245, 158, 11, 0.12); color: var(--color-gold);    border: 1px solid rgba(245, 158, 11, 0.28); }
.badge--60 { background: rgba(139, 92, 246, 0.12); color: var(--color-purple);  border: 1px solid rgba(139, 92, 246, 0.28); }

/* Transaction types */
.badge--WITHDRAW { background: rgba(244, 63, 94, 0.1);  color: var(--color-rose);    border: 1px solid rgba(244, 63, 94, 0.2); }
.badge--TRANSFER { background: rgba(34, 211, 238, 0.1); color: var(--color-cyan);    border: 1px solid rgba(34, 211, 238, 0.2); }
.badge--AIRTIME  { background: rgba(245, 158, 11, 0.1); color: var(--color-gold);    border: 1px solid rgba(245, 158, 11, 0.2); }
.badge--DATA     { background: rgba(139, 92, 246, 0.1); color: var(--color-purple);  border: 1px solid rgba(139, 92, 246, 0.2); }


/* ─────────────────────────────────────────
   12. CHART WRAPPER
───────────────────────────────────────── */
.chart-wrap {
  position: relative;
  height: 240px;
}


/* ─────────────────────────────────────────
   13. NOTIFICATION STRIP
───────────────────────────────────────── */
.notif-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
}

.notif-strip__text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.notif-strip__text strong {
  color: var(--color-purple);
}

.notif-strip__meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  white-space: nowrap;
}


/* ─────────────────────────────────────────
   14. ACTIVITY FEED
───────────────────────────────────────── */
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.feed-item__body {
  flex: 1;
}

.feed-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.feed-item__meta {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.feed-item__time {
  font-size: 0.68rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}


/* ─────────────────────────────────────────
   15. PERFORMANCE BARS
───────────────────────────────────────── */
.perf-item {
  margin-bottom: 1rem;
}

.perf-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.perf-item__track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.perf-item__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.perf-item__sub {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}


/* ─────────────────────────────────────────
   16. LEADERBOARD
───────────────────────────────────────── */
.podium {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.podium__slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.podium__avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.podium__base {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.podium__pts {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
}

.podium__pts-label {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.lb-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
}

.lb-row:nth-child(1) { background: rgba(245, 158, 11, 0.07); border-color: rgba(245, 158, 11, 0.22); }
.lb-row:nth-child(1)::before { background: var(--color-gold); }

.lb-row:nth-child(2) { background: rgba(148, 163, 184, 0.05); border-color: rgba(148, 163, 184, 0.18); }
.lb-row:nth-child(2)::before { background: #94a3b8; }

.lb-row:nth-child(3) { background: rgba(180, 83, 9, 0.05); border-color: rgba(180, 83, 9, 0.18); }
.lb-row:nth-child(3)::before { background: #b45309; }

.lb-row:hover { transform: translateX(4px); }

.lb-row__rank   { font-size: 1.35rem; width: 38px; text-align: center; flex-shrink: 0; }

.lb-row__avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lb-row__info       { flex: 1; min-width: 0; }
.lb-row__code       { font-weight: 700; font-size: 0.95rem; font-family: var(--font-mono); margin-bottom: 0.15rem; }
.lb-row__tier       { font-size: 0.72rem; }

.lb-row__progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.lb-row__progress-fill { height: 100%; border-radius: 2px; transition: width 1.2s ease; }

.lb-row__points         { text-align: right; flex-shrink: 0; }
.lb-row__points-value   { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; color: var(--color-cyan); }
.lb-row__points-label   { font-size: 0.65rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

.tier-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  text-align: center;
}

.tier-slot__icon  { font-size: 1.6rem; margin-bottom: 0.4rem; }
.tier-slot__name  { font-weight: 700; font-size: 0.85rem; }
.tier-slot__range { font-size: 0.7rem; color: var(--color-muted); margin-top: 0.2rem; font-family: var(--font-mono); }


/* ─────────────────────────────────────────
   17. DATA TABLE
───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  vertical-align: middle;
}

.data-table tr:last-child td     { border-bottom: none; }
.data-table tbody tr:hover td    { background: rgba(255, 255, 255, 0.02); }


/* ─────────────────────────────────────────
   18. SEARCH BAR
───────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.search-bar__input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--ease);
}

.search-bar__input:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.search-bar__input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}


/* ─────────────────────────────────────────
   19. AMBASSADOR PROFILE CARD
───────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-points              { margin-left: auto; text-align: right; }
.profile-points__value       { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.profile-points__label       { font-size: 0.7rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.profile-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  padding: 0.9rem;
  text-align: center;
}

.profile-stat__value { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800; }
.profile-stat__label { font-size: 0.68rem; color: var(--color-muted); margin-top: 0.2rem; }


/* ─────────────────────────────────────────
   20. REGISTER FORM
───────────────────────────────────────── */
.register-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 4rem;
}

.register-card {
  background: var(--color-surface);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.register-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.15), transparent 60%);
  z-index: -1;
}

.register-card__icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.4rem;
}

.register-card__title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }

.register-card__sub {
  color: var(--color-muted);
  text-align: center;
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--ease);
}

.form-input--mono { font-family: var(--font-mono); }

.form-input:focus {
  border-color: var(--color-purple);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.form-input::placeholder { color: rgba(148, 163, 184, 0.45); }

.form-hint { font-size: 0.7rem; color: var(--color-muted); margin-top: 0.4rem; }

.how-it-works {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.how-it-works__heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.how-it-works__steps { display: flex; flex-direction: column; gap: 0.65rem; }

.step { display: flex; align-items: center; gap: 0.7rem; font-size: 0.83rem; color: var(--color-muted); }

.step__num {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   21. EMPTY STATE
───────────────────────────────────────── */
.empty-state      { text-align: center; padding: 3rem 1rem; color: var(--color-muted); }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.9rem; opacity: 0.5; }
.empty-state p    { font-size: 0.875rem; }


/* ─────────────────────────────────────────
   22. TOAST NOTIFICATIONS
───────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  background: rgba(10, 10, 25, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  min-width: 290px;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  transform: translateX(380px);
  transition: transform 0.38s var(--ease-spring);
  pointer-events: auto;
}

.toast.is-visible { transform: translateX(0); }
.toast.is-hidden  { transform: translateX(380px); }

.toast__header  { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.toast__icon    { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

.toast--success .toast__icon { background: rgba(16, 185, 129, 0.18); color: var(--color-emerald); }
.toast--error   .toast__icon { background: rgba(244, 63, 94, 0.18);  color: var(--color-rose); }
.toast--info    .toast__icon { background: rgba(34, 211, 238, 0.18); color: var(--color-cyan); }

.toast__title   { font-weight: 700; font-size: 0.85rem; }
.toast__message { font-size: 0.77rem; color: var(--color-muted); line-height: 1.5; }


/* ─────────────────────────────────────────
   23. MOBILE BOTTOM NAV
───────────────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 6, 16, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 0.5rem;
  gap: 0.2rem;
  z-index: 200;
}

.mob-nav__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.3rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.mob-nav__tab.is-active { color: var(--color-purple); background: rgba(139, 92, 246, 0.1); }
.mob-nav__icon          { font-size: 1.15rem; }


/* ─────────────────────────────────────────
   24. KEYFRAME ANIMATIONS
───────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────
   25. RESPONSIVE BREAKPOINTS
───────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__tabs     { display: none; }
  .mob-nav       { display: flex; }
  main           { padding-bottom: 75px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .profile-points { display: none; }
}
