@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ================= AUTH PAGE ================= */
.auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Background glow */
.auth-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(166, 138, 249, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.auth-header h1 {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  color: #E5E7EB;
  margin-bottom: 10px;
}

.auth-header p {
  color: #9CA3AF;
  font-size: 15px;
}

/* ================= AUTH CARD ================= */
.auth-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(166, 138, 249, 0.2);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  animation: authFadeUp 0.5s ease forwards;
}

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

/* ================= TAB SWITCHER ================= */
.auth-tabs {
  display: flex;
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid rgba(166, 138, 249, 0.2);
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 36px;
}

.auth-tab {
  flex: 1;
  padding: 11px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-family: "Montserrat", system-ui;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: linear-gradient(90deg, #a68af9, #3ABEFF);
  color: #0B0E14;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(58, 190, 255, 0.3);
}

/* ================= FORM PANELS ================= */
.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: authFadeUp 0.35s ease forwards;
}

/* ================= FORM GROUPS ================= */
.auth-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.auth-form-group label {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form-group label i {
  color: #3ABEFF;
  font-size: 14px;
}

.auth-form-group input {
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(58, 190, 255, 0.3);
  color: #E5E7EB;
  font-size: 14px;
  font-family: "Montserrat", system-ui;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #3ABEFF;
  box-shadow: 0 0 0 3px rgba(58, 190, 255, 0.1);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================= PASSWORD TOGGLE ================= */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #3ABEFF;
}

/* ================= TERMS CHECKBOX ================= */
.auth-terms-group {
  margin: 16px 0 20px;
}

.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
}

.auth-terms-cb {
  display: none;
}

.auth-terms-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 1px;
}

.auth-terms-cb:checked + .auth-terms-check {
  background: linear-gradient(135deg, #3ABEFF, #a68af9);
  border-color: transparent;
}

.auth-terms-cb:checked + .auth-terms-check::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.auth-terms-text a {
  color: #3ABEFF;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-terms-text a:hover {
  text-decoration: underline;
}

/* ================= AUTH BUTTON ================= */
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #a68af9, #3ABEFF);
  color: #0B0E14;
  font-family: "Montserrat", system-ui;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 190, 255, 0.4);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================= DIVIDER ================= */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #4B5563;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ================= GOOGLE SIGN IN ================= */
.google-btn {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #E5E7EB;
  font-family: "Montserrat", system-ui;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(58, 190, 255, 0.3);
  transform: translateY(-1px);
}

.google-btn img {
  width: 18px;
  height: 18px;
}

/* ================= ERROR / SUCCESS MESSAGES ================= */
.auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
  animation: authFadeUp 0.3s ease forwards;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
  display: block;
}

.auth-message.success {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #67E8F9;
  display: block;
}

/* ================= FORGOT PASSWORD LINK ================= */
.auth-forgot {
  text-align: right;
  margin-top: -12px;
  margin-bottom: 20px;
}

.auth-forgot a {
  color: #9CA3AF;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-forgot a:hover {
  color: #3ABEFF;
}

/* ================= FORGOT PASSWORD PANEL ================= */
.auth-forgot-panel {
  animation: authFadeUp .35s ease forwards;
}

.forgot-header {
  text-align: center;
  margin-bottom: 24px;
}

.forgot-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(166, 138, 249, .15), rgba(58, 190, 255, .08));
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 20px;
  color: #3ABEFF;
}

.forgot-header h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  color: #E5E7EB;
  margin: 0 0 8px;
}

.forgot-header p {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
}

.auth-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #9CA3AF;
  font-family: "Montserrat", system-ui;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}

.auth-back-btn:hover {
  border-color: rgba(58, 190, 255, .3);
  color: #E5E7EB;
  background: rgba(58, 190, 255, .04);
}

/* ================= SWITCH PANEL TEXT ================= */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #9CA3AF;
}

.auth-switch button {
  background: none;
  border: none;
  color: #3ABEFF;
  font-family: "Montserrat", system-ui;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-switch button:hover {
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 520px) {
  .auth-card {
    padding: 36px 24px;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
  }
}


/* ===========================================================
   DASHBOARD PAGE  —  Minimal Professional Redesign
   =========================================================== */
.dashboard-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

/* ================= LOADING ================= */
.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: #6B7280;
  font-size: 14px;
}

.dashboard-loading .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(58, 190, 255, 0.1);
  border-top-color: #3ABEFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ================= PROFILE HERO ================= */
.dash-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 50px;
  padding: 28px 32px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(58,190,255,0.04), rgba(162,138,249,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a68af9, #3ABEFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0B0E14;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 3px rgba(58,190,255,0.15);
}

.dash-hero-meta {
  flex: 1;
  min-width: 0;
}

.dash-hero-meta h2 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #F4F6FB;
  margin-bottom: 2px;
  line-height: 1.3;
}

.dash-hero-nick {
  font-size: 13px;
  color: #3ABEFF;
  font-weight: 500;
  margin-bottom: 1px;
}

.dash-hero-email {
  font-size: 12.5px;
  color: #6B7280;
}

.dash-hero-points {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: rgba(58,190,255,0.06);
  border: 1px solid rgba(58,190,255,0.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.dash-hero-pts-number {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #3ABEFF;
  line-height: 1;
}

.dash-hero-pts-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── Gem Icon ─── */
.gem-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  background: url(images/gem.webp) no-repeat center/contain;
  margin: 0 4px;
  flex-shrink: 0;
}
.gem-icon--sm { width: 30px; height: 30px; }
.gem-icon--lg { width: 44px; height: 44px; }
.gem-icon--inline { margin: 0 6px -5px 0; }

.dash-hero-edit {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #6B7280;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.dash-hero-edit:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #F4F6FB;
}

/* ================= REFERRAL ================= */
.dash-referral {
  display: flex;
  margin-bottom: 16px;
}
.dash-referral-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(58,190,255,0.04) 0%, rgba(162,138,249,0.02) 100%);
  border: 1px solid rgba(58,190,255,0.08);
  border-radius: 12px;
}
.dash-referral-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-referral-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(58,190,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #3ABEFF;
  flex-shrink: 0;
}
.dash-referral-info {
  flex: 1;
  min-width: 0;
}
.dash-referral-title {
  font-size: 14px;
  font-weight: 600;
  color: #F4F6FB;
  line-height: 1.3;
}
.dash-referral-sub {
  font-size: 11px;
  color: #6B7280;
  margin-top: 1px;
}
.dash-referral-payouts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.dash-referral-payout {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(58,190,255,0.06);
  border: 1px solid rgba(58,190,255,0.08);
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 44px;
}
.payout-value {
  font-size: 13px;
  font-weight: 700;
  color: #3ABEFF;
  line-height: 1.2;
}
.payout-label {
  font-size: 9px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.payout-plus {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}
.dash-referral-link-row {
  display: flex;
}
.dash-referral-link-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.dash-referral-link-wrap input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #3ABEFF;
  font-family: "Inter", system-ui;
  font-size: 12px;
  font-weight: 500;
  outline: none;
}
.dash-referral-link-wrap button {
  padding: 9px 14px;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  background: rgba(58,190,255,0.06);
  color: #3ABEFF;
  font-family: "Inter", system-ui;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.dash-referral-link-wrap button:hover {
  background: rgba(58,190,255,0.12);
}
#referral-share-btn {
  background: linear-gradient(135deg, rgba(166,138,249,0.15), rgba(58,190,255,0.15));
  color: #a68af9;
  border-left: 1px solid rgba(255,255,255,0.06);
}
#referral-share-btn:hover {
  background: linear-gradient(135deg, rgba(166,138,249,0.25), rgba(58,190,255,0.25));
}
.dash-referral-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0 2px;
}
.referral-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.referral-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #F4F6FB;
  line-height: 1.3;
}
.referral-stat-label {
  font-size: 10px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-top: 2px;
}
.referral-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 640px) {
  .dash-referral-inner {
    padding: 14px 14px;
    gap: 12px;
  }
  .dash-referral-top {
    flex-wrap: wrap;
  }
  .dash-referral-payouts {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }
  .dash-referral-link-wrap input {
    font-size: 11px;
  }
  .dash-referral-link-wrap button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .referral-stat {
    padding: 0 16px;
  }
}

/* ================= STATS ROW ================= */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(58,190,255,0.05) 0%, rgba(166,138,249,0.02) 100%);
  border: 1px solid rgba(58,190,255,0.08);
  border-radius: 12px;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.stat-card:hover {
  border-color: rgba(58,190,255,0.18);
  box-shadow: 0 4px 20px rgba(58,190,255,0.06);
  transform: translateY(-2px);
}

#stat-card-level { cursor: pointer; }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-icon.blue { background: rgba(58,190,255,0.1); color: #3ABEFF; }
.stat-icon.purple { background: rgba(166,138,249,0.1); color: #a68af9; }
.stat-icon.green { background: rgba(52,211,153,0.1); color: #34D399; }
.stat-icon.orange { background: rgba(251,146,60,0.1); color: #fb923c; }

.stat-body { flex: 1; min-width: 0; }

.stat-number {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #F4F6FB;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================= CONTINUE LEARNING ================= */
.dash-continue {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(58,190,255,0.06) 0%, rgba(166,138,249,0.03) 100%);
  border: 1px solid rgba(58,190,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.dash-continue-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(58,190,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #3ABEFF;
  flex-shrink: 0;
}

.dash-continue-body { flex: 1; min-width: 0; }

.dash-continue-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  margin-bottom: 2px;
}

.dash-continue-title {
  font-size: 15px;
  font-weight: 600;
  color: #F4F6FB;
  margin-bottom: 1px;
}

.dash-continue-sub {
  font-size: 12px;
  color: #6B7280;
}

.dash-continue-btn {
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #a68af9, #3ABEFF);
  color: #0B0E14;
  font-family: "Inter", system-ui;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dash-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58,190,255,0.3);
}

/* ================= STREAK ALERT ================= */
.streak-alert {
  margin-bottom: 16px;
  animation: streak-alert-in 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes streak-alert-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.streak-alert-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.03) 100%);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  position: relative;
}
.streak-alert-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(251,191,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FBBF24;
  flex-shrink: 0;
  animation: streak-alert-pulse 2s ease-in-out infinite;
}
@keyframes streak-alert-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.streak-alert-body { flex: 1; min-width: 0; }
.streak-alert-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FBBF24;
  line-height: 1.3;
}
.streak-alert-sub {
  font-size: 0.72rem;
  color: rgba(251,191,36,0.6);
  margin-top: 1px;
}
.streak-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #0B0E14;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.streak-alert-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251,191,36,0.2);
}
.streak-alert-close {
  background: none;
  border: none;
  color: rgba(251,191,36,0.3);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
  position: absolute;
  top: 8px;
  right: 10px;
}
.streak-alert-close:hover { color: rgba(251,191,36,0.6); }

@media (max-width: 640px) {
  .streak-alert-inner { flex-wrap: wrap; gap: 10px; }
  .streak-alert-btn { width: 100%; justify-content: center; }
}

/* ================= DASHBOARD GRID ================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dash-badges-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-badges-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.dash-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 60px;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(162, 138, 249, 0.04);
  border: 1px solid rgba(162, 138, 249, 0.08);
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.dash-badge-item:hover {
  background: rgba(162, 138, 249, 0.06);
  border-color: rgba(162, 138, 249, 0.12);
}

.dash-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: rgba(162, 138, 249, 0.1);
  color: var(--purple);
}

.dash-badge-label {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  line-height: 1.2;
  max-width: 52px;
}

.award-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2px;
}

.cert-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(162, 138, 249, 0.08);
  color: var(--purple);
  text-decoration: none;
  font-size: 0.7rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-left: 2px;
}

.cert-download-btn:hover {
  background: rgba(162, 138, 249, 0.18);
  transform: scale(1.08);
  box-shadow: 0 1px 6px rgba(162, 138, 249, 0.15);
}

.cert-download-btn.loading {
  cursor: wait;
  opacity: 0.6;
  pointer-events: none;
}

.cert-download-btn.loading i {
  animation: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header i {
  font-size: 15px;
  color: #6B7280;
}

.card-header h3 {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #D1D5DB;
  letter-spacing: 0.01em;
}

/* ================= CONFERENCES LIST ================= */
.conferences-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conf-item {
  position: relative;
  padding: 14px 16px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.conf-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: rgba(58,190,255,0.2);
}

.conf-item.mun::before { background: rgba(166,138,249,0.4); }
.conf-item.debate::before { background: rgba(58,190,255,0.4); }

.conf-item:hover {
  border-color: rgba(58, 190, 255, 0.15);
  background: rgba(58, 190, 255, 0.02);
}

.conf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.conf-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #F4F6FB;
}

.conf-title-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  height: 28px;
}

.conf-badge.mun {
  background: rgba(166, 138, 249, 0.1);
  color: #C4B5FD;
  border: 1px solid rgba(166, 138, 249, 0.2);
}

.conf-badge.debate {
  background: rgba(58, 190, 255, 0.08);
  color: #67E8F9;
  border: 1px solid rgba(58, 190, 255, 0.18);
}

.conf-badge i {
  font-size: 10px;
}

.pts-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #3ABEFF;
  background: rgba(58, 190, 255, 0.06);
  border: 1px solid rgba(58, 190, 255, 0.12);
  height: 28px;
}

.pts-chip .gem-icon {
  width: 16px;
  height: 16px;
  margin: 0 4px 0 0;
}

.conf-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.conf-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6B7280;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.conf-meta i {
  font-size: 10px;
  color: #6B7280;
}

.conf-date {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.conf-date i {
  font-size: 11px;
  color: #6B7280;
}

/* ================= AWARDS LIST ================= */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.award-item:hover {
  border-color: rgba(162, 138, 249, 0.12);
  background: rgba(162, 138, 249, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.award-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.award-icon.gold {
  background: rgba(234,179,8,0.08);
  border-color: rgba(234,179,8,0.15);
  box-shadow: 0 0 12px rgba(234,179,8,0.08);
}

.award-icon.silver {
  background: rgba(203,213,225,0.08);
  border-color: rgba(203,213,225,0.15);
}

.award-icon.bronze {
  background: rgba(180,83,9,0.08);
  border-color: rgba(180,83,9,0.15);
}

.award-info {
  flex: 1;
  min-width: 0;
}

.award-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.award-info h4 {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #F4F6FB;
  margin: 0;
}

.award-sub {
  font-size: 12px;
  color: #6B7280;
}

/* ================= POINTS HISTORY ================= */
.points-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.history-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.history-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: #6B7280;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-label {
  font-size: 13px;
  font-weight: 500;
  color: #D1D5DB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-date {
  font-size: 11px;
  color: #6B7280;
  margin-top: 1px;
}

.history-amount {
  font-size: 14px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-amount.positive { color: #34D399; }
.history-amount.negative { color: #F87171; }

.history-empty {
  text-align: center;
  padding: 24px 16px;
  color: #6B7280;
  font-size: 13px;
}

.card-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6B7280;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.2s;
}

.card-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #F4F6FB;
}

@media (max-width: 640px) {
  .history-entry {
    padding: 8px 10px;
    gap: 10px;
  }
  .history-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .history-label {
    font-size: 12px;
  }
  .history-amount {
    font-size: 13px;
  }
}

/* ================= EMPTY STATE ================= */
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: #6B7280;
  font-size: 13px;
}

.empty-state i {
  font-size: 28px;
  margin-bottom: 10px;
  color: rgba(107, 114, 128, 0.3);
  display: block;
}

.empty-state span {
  display: block;
  margin-bottom: 12px;
}

.empty-state-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--button-1), var(--button-2));
  color: #0B0E14;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.empty-state-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #0B0E14;
}

/* ================= TOAST ================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #181b24;
  border: 1px solid rgba(255,255,255,0.06);
  color: #F4F6FB;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

.toast.success i { color: #10B981; }
.toast.error i { color: #F87171; }
.toast.info i { color: #3ABEFF; }

/* ================= JOIN CONFERENCE CTA ================= */
.join-conf-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(58, 190, 255, 0.03), rgba(162, 138, 249, 0.02));
  border: 1px solid rgba(58, 190, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.join-conf-cta:hover {
  border-color: rgba(58,190,255,0.15);
}

.join-conf-cta h4 {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #F4F6FB;
  margin-bottom: 4px;
}

.join-conf-cta p {
  color: #6B7280;
  font-size: 13px;
  margin: 0;
}

.join-conf-cta .join-btn {
  transition: all 0.2s;
  white-space: nowrap;
}

.join-conf-cta .join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58, 190, 255, 0.3);
}

/* ================= EDIT PROFILE MODAL ================= */
#profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#profile-modal.open {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0F1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-modal-header h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #F4F6FB;
  margin: 0;
}

.profile-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6B7280;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #F4F6FB;
}

/* ================= EDIT FORM ================= */
.edit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.edit-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-group label {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
}

.edit-group input {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #E5E7EB;
  font-size: 13.5px;
  font-family: "Inter", system-ui;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-group input::placeholder {
  color: #4B5563;
}

.edit-group input:focus {
  outline: none;
  border-color: #3ABEFF;
  box-shadow: 0 0 0 2px rgba(58, 190, 255, 0.1);
}

.save-profile-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #a68af9, #3ABEFF);
  color: #0B0E14;
  font-family: "Inter", system-ui;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 190, 255, 0.3);
}

.save-profile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.sign-out-btn {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "Inter", system-ui;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sign-out-btn:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.3);
}

.profile-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.profile-modal-actions .sign-out-btn {
  margin-top: 0;
}

/* ================= MESSAGE ================= */
.auth-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  display: block;
}

.auth-message.success {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: #67E8F9;
  display: block;
}

/* ================= NAVBAR AUTH BADGE ================= */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(58, 190, 255, 0.08);
  border: 1px solid rgba(58, 190, 255, 0.25);
  color: #3ABEFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  font-family: "Inter", system-ui;
  transition: all 0.25s ease;
}

.nav-account-btn:hover {
  background: rgba(58, 190, 255, 0.15);
  border-color: rgba(58, 190, 255, 0.5);
  box-shadow: 0 0 16px rgba(58, 190, 255, 0.2);
}

.nav-account-btn i {
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .nav-account-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .dashboard-section {
    padding: 90px 16px 60px;
  }

  .dash-hero {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .dash-hero-edit {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .dash-hero-points {
    width: 100%;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dash-continue {
    flex-wrap: wrap;
    gap: 14px;
  }

  .dash-continue-btn {
    width: 100%;
    text-align: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card.full-width {
    grid-column: 1;
  }

  .edit-form-row {
    grid-template-columns: 1fr;
  }

  .join-conf-cta {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .profile-modal {
    padding: 24px 20px;
  }

  .profile-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .profile-modal-actions .save-profile-btn,
  .profile-modal-actions .sign-out-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .stat-number {
    font-size: 15px;
  }

  .stat-label {
    font-size: 10px;
  }

  .dash-avatar {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .dash-hero-meta h2 {
    font-size: 17px;
  }

  .dash-hero-pts-number {
    font-size: 20px;
  }

  .dash-hero {
    padding: 16px;
    gap: 12px;
  }

  .dash-hero-points {
    padding: 8px 14px;
  }

  .conf-title-row {
    flex-wrap: wrap;
  }

  .dashboard-card {
    padding: 18px 16px;
  }

  .join-conf-cta {
    padding: 16px;
  }
}

/* ══════════════════════════════════════════════
   BADGE SHARE MODAL
   ══════════════════════════════════════════════ */

.badge-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 9, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s ease;
}

.badge-modal-overlay.open {
  opacity: 1;
}

.badge-modal {
  width: 100%;
  max-width: 380px;
  background: #0F1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 24px 28px;
  transform: translateY(12px) scale(.96);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
}

.badge-modal-overlay.open .badge-modal {
  transform: translateY(0) scale(1);
}

.badge-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #6B7280;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s ease;
  z-index: 1;
}

.badge-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
}

.badge-modal-preview {
  margin: 0 -8px 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-modal-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.badge-modal-info {
  text-align: center;
  margin-bottom: 20px;
}

.badge-modal-name {
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #E5E7EB;
  margin-bottom: 6px;
}

.badge-modal-name i {
  margin-right: 6px;
  background: linear-gradient(135deg, #a68af9, #3ABEFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-modal-desc {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
}

.badge-modal-share {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #a68af9, #3ABEFF);
  color: #0B0E14;
  font-family: "Montserrat", system-ui;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}

.badge-modal-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 190, 255, 0.3);
}

.badge-modal-share:active {
  transform: scale(.97);
}

/* ══════════════════════════════════════════════
   OTP VERIFICATION
   ══════════════════════════════════════════════ */

.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: "Montserrat", system-ui;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(58, 190, 255, 0.2);
  color: #E5E7EB;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .15s ease;
  caret-color: #3ABEFF;
}

.otp-digit:focus {
  border-color: #3ABEFF;
  box-shadow: 0 0 0 3px rgba(58, 190, 255, 0.1);
  transform: translateY(-2px);
}

.otp-digit.filled {
  border-color: rgba(166, 138, 249, 0.3);
  background: rgba(166, 138, 249, 0.06);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.otp-shake {
  animation: shake .4s ease;
}

@media (max-width: 400px) {
  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 18px;
    border-radius: 10px;
  }

  #otpInputs {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 86px 14px 60px;
  }

  .auth-card {
    padding: 28px 18px;
    border-radius: 10px;
  }

  .auth-header h1 {
    font-size: 1.3rem;
  }

  .auth-header p {
    font-size: 0.78rem;
  }

  .auth-form-group label {
    font-size: 0.75rem;
  }

  .auth-form-group input {
    font-size: 15px;
    padding: 13px 14px;
  }

  .auth-submit-btn {
    padding: 14px 20px;
    font-size: 0.85rem;
  }

  .auth-tab {
    padding: 12px 16px;
    font-size: 0.82rem;
  }

  .google-btn {
    padding: 13px 18px;
    font-size: 0.82rem;
  }

  .auth-switch {
    font-size: 0.78rem;
  }

  .password-wrapper input {
    padding-right: 48px;
  }

  .password-toggle {
    width: 44px;
    height: 44px;
  }

  #panel-otp {
    padding: 20px 14px;
  }

  .otp-digit {
    width: 42px;
    height: 50px;
    font-size: 20px;
  }

  #otpInputs {
    gap: 8px;
  }

  #otp-verify-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.9rem;
  }

  .auth-forgot-panel {
    padding: 20px 0;
  }

  .forgot-header h3 {
    font-size: 1rem;
  }

  .forgot-header p {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 20px 12px;
  }

  .auth-header h1 {
    font-size: 1.1rem;
  }

  .otp-digit {
    width: 36px;
    height: 44px;
    font-size: 17px;
  }

  #otpInputs {
    gap: 5px;
  }
}

/* ═══════════════════════════════════
   LEVEL UP CELEBRATION
   ═══════════════════════════════════ */
.lvlup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: lvlupFadeIn 0.3s ease;
}
@keyframes lvlupFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lvlup-card {
  position: relative;
  background: linear-gradient(145deg, #1a1f2e 0%, #0f1420 100%);
  border: 1px solid rgba(58,190,255,0.15);
  border-radius: 20px;
  padding: 48px 40px 36px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  overflow: hidden;
  animation: lvlupScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lvlupScale { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lvlup-icon {
  font-size: 40px;
  color: #3ABEFF;
  margin-bottom: 8px;
  animation: lvlupBounce 1s ease infinite;
}
@keyframes lvlupBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.lvlup-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3ABEFF;
  font-weight: 600;
  margin-bottom: 4px;
}
.lvlup-name {
  font-size: 24px;
  font-weight: 700;
  color: #F4F6FB;
  margin-bottom: 2px;
}
.lvlup-num {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 24px;
}
.lvlup-btn {
  padding: 10px 32px;
  border: 1px solid rgba(58,190,255,0.15);
  background: rgba(58,190,255,0.06);
  color: #3ABEFF;
  border-radius: 10px;
  font-family: "Inter", system-ui;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lvlup-btn:hover {
  background: rgba(58,190,255,0.12);
  border-color: rgba(58,190,255,0.25);
}
.lvlup-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.lvlup-confetti span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease-in infinite;
}
.lvlup-confetti span:nth-child(1) { left: 5%;  top: -8px;  background: #3ABEFF; animation-delay: 0.0s; animation-duration: 2.2s; }
.lvlup-confetti span:nth-child(2) { left: 15%; top: -8px;  background: #a68af9; animation-delay: 0.2s; animation-duration: 2.8s; width: 5px; height: 8px; border-radius: 50%; }
.lvlup-confetti span:nth-child(3) { left: 25%; top: -8px;  background: #3ABEFF; animation-delay: 0.5s; animation-duration: 2.0s; }
.lvlup-confetti span:nth-child(4) { left: 35%; top: -8px;  background: #a68af9; animation-delay: 0.1s; animation-duration: 2.5s; height: 5px; border-radius: 50%; }
.lvlup-confetti span:nth-child(5) { left: 45%; top: -8px;  background: #3ABEFF; animation-delay: 0.7s; animation-duration: 2.3s; }
.lvlup-confetti span:nth-child(6) { left: 55%; top: -8px;  background: #a68af9; animation-delay: 0.3s; animation-duration: 2.7s; width: 4px; height: 6px; }
.lvlup-confetti span:nth-child(7) { left: 65%; top: -8px;  background: #3ABEFF; animation-delay: 0.9s; animation-duration: 2.1s; border-radius: 50%; }
.lvlup-confetti span:nth-child(8) { left: 75%; top: -8px;  background: #a68af9; animation-delay: 0.4s; animation-duration: 2.6s; }
.lvlup-confetti span:nth-child(9) { left: 85%; top: -8px;  background: #3ABEFF; animation-delay: 0.6s; animation-duration: 2.4s; height: 5px; }
.lvlup-confetti span:nth-child(10) { left: 92%; top: -8px; background: #a68af9; animation-delay: 0.8s; animation-duration: 2.9s; width: 7px; height: 7px; border-radius: 50%; }
.lvlup-confetti span:nth-child(11) { left: 10%; top: -8px; background: #3ABEFF; animation-delay: 1.0s; animation-duration: 2.3s; }
.lvlup-confetti span:nth-child(12) { left: 30%; top: -8px; background: #a68af9; animation-delay: 1.2s; animation-duration: 2.0s; width: 5px; }
.lvlup-confetti span:nth-child(13) { left: 50%; top: -8px; background: #3ABEFF; animation-delay: 1.4s; animation-duration: 2.5s; border-radius: 50%; }
.lvlup-confetti span:nth-child(14) { left: 70%; top: -8px; background: #a68af9; animation-delay: 1.1s; animation-duration: 2.2s; height: 7px; }
.lvlup-confetti span:nth-child(15) { left: 88%; top: -8px; background: #3ABEFF; animation-delay: 0.5s; animation-duration: 2.8s; border-radius: 50%; }
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  70%  { opacity: 0.8; }
  100% { transform: translateY(450px) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════
   LEVEL PROGRESSION MODAL
   ═══════════════════════════════════ */
.lvlprog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: lvlprogFadeIn 0.3s ease;
}
@keyframes lvlprogFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lvlprog-card {
  position: relative;
  background: linear-gradient(160deg, #1a1f30 0%, #0e121f 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  max-width: 480px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  animation: lvlprogScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lvlprogScale { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lvlprog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #6B7280;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.lvlprog-close:hover {
  background: rgba(255,255,255,0.08);
  color: #F4F6FB;
}
.lvlprog-header {
  text-align: center;
  margin-bottom: 28px;
}
.lvlprog-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(58,190,255,0.12), rgba(162,138,249,0.06));
  border: 1px solid rgba(58,190,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #3ABEFF;
  margin: 0 auto 12px;
}
.lvlprog-title {
  font-size: 20px;
  font-weight: 700;
  color: #F4F6FB;
  line-height: 1.3;
}
.lvlprog-sub {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

/* Current level bar */
.lvlprog-current {
  background: rgba(58,190,255,0.03);
  border: 1px solid rgba(58,190,255,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.lvlprog-current-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.lvlprog-current-label {
  font-size: 11px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lvlprog-current-level {
  font-size: 16px;
  font-weight: 700;
  color: #F4F6FB;
  margin-left: auto;
}
.lvlprog-current-name {
  font-size: 13px;
  font-weight: 500;
  color: #3ABEFF;
}
.lvlprog-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.lvlprog-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3ABEFF, #a68af9);
  transition: width 0.6s ease;
}
.lvlprog-bar-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6B7280;
}

/* Level timeline */
.lvlprog-list {
  display: flex;
  flex-direction: column;
}
.lvlprog-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding: 0 0 0 0;
  opacity: 0;
  transform: translateY(16px);
  animation: lvlprogItemIn 0.45s ease forwards;
}
@keyframes lvlprogItemIn {
  to { opacity: 1; transform: translateY(0); }
}
.lvlprog-item-body {
  flex: 1;
  padding: 10px 14px 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.lvlprog-item--unlocked .lvlprog-item-body {
  border-color: rgba(162,138,249,0.08);
  background: rgba(162,138,249,0.02);
}
.lvlprog-item--current .lvlprog-item-body {
  border-color: rgba(58,190,255,0.12);
  background: rgba(58,190,255,0.03);
  box-shadow: 0 0 20px rgba(58,190,255,0.04);
}
.lvlprog-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0px;
}
.lvlprog-item-level {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
}
.lvlprog-item-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
}
.lvlprog-item-badge--unlocked {
  color: #A28AF9;
}
.lvlprog-item-badge--current {
  color: #3ABEFF;
}
.lvlprog-item-badge--locked {
  color: #4B5563;
}
.lvlprog-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #F4F6FB;
  margin-top: 2px;
}
.lvlprog-item-req {
  font-size: 11px;
  color: #6B7280;
  margin-top: 1px;
}

/* Current level item special glow */
.lvlprog-item--current {
  background: rgba(255,215,0,0.02);
  border-radius: 12px;
  margin: -4px -10px;
  padding: 4px 10px;
}

@media (max-width: 640px) {
  .lvlprog-card {
    padding: 28px 20px 24px;
  }
  .lvlprog-current {
    padding: 14px 16px;
  }
  .lvlprog-item {
    gap: 12px;
  }
  .lvlprog-item-marker {
    width: 32px;
  }
  .lvlprog-item-marker i {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .lvlprog-item-name {
    font-size: 14px;
  }
  .lvlprog-item--current {
    margin: -4px -6px;
    padding: 4px 6px;
  }
}

/* ══════════════════════════════════════════════
   PROGRESS CHART
   ══════════════════════════════════════════════ */
.dash-chart-section {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(58,190,255,0.04) 0%, rgba(166,138,249,0.015) 100%);
  border: 1px solid rgba(58,190,255,0.08);
  border-radius: 16px;
  padding: 20px 24px 16px;
  backdrop-filter: blur(8px);
}
.dash-chart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dash-chart-header i {
  font-size: 0.9rem;
  color: #3ABEFF;
}
.dash-chart-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E5E7EB;
  margin: 0;
}
.dash-chart-wrap {
  position: relative;
  width: 100%;
  height: 200px;
}
