/* ==========================================================================
   MENTRO EXPERT – Expert app styles (extends connecto.css)
   ========================================================================== */

:root {
  --ex-accent: #4F46E5;
  --ex-accent-dark: #4338CA;
  --ex-accent-light: #EEF2FF;
  --ex-gradient: linear-gradient(135deg, #4F46E5, #6366F1);
  --ex-gradient-hero: linear-gradient(155deg, #4338CA 0%, #4F46E5 45%, #6366F1 100%);
  --ex-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

/* Expert badge on login */
.cn-expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ex-accent-light);
  color: var(--ex-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--cn-radius-pill);
  margin-bottom: 8px;
}

.cn-expert-badge i { font-size: 0.7rem; }

/* Expert hero header */
.cn-ex-home-hero {
  background: var(--ex-gradient-hero);
  border-radius: 0 0 28px 28px;
  padding: 16px 20px 28px;
  position: relative;
  overflow: hidden;
}

.cn-ex-home-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cn-ex-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cn-ex-home-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cn-ex-home-logo .cn-brand-logo {
  height: 34px;
  border-radius: 9px;
}

.cn-ex-home-logo span {
  font-family: var(--cn-font);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: var(--cn-radius-pill);
  vertical-align: middle;
  color: #fff;
}

.cn-ex-header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cn-ex-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.cn-ex-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid var(--ex-accent-dark);
}

.cn-ex-greeting {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.cn-ex-greeting strong { color: #fff; font-weight: 700; }

.cn-ex-greeting-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
}

/* Online toggle */
.cn-ex-online-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 20px;
  margin: -16px 20px 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--cn-shadow-lg);
  text-align: center;
}

.cn-ex-online-status {
  font-size: 0.82rem;
  color: var(--cn-text-muted);
  margin-bottom: 14px;
}

.cn-ex-online-status strong {
  color: var(--cn-text);
  display: block;
  font-size: 1rem;
  margin-top: 2px;
}

.cn-ex-online-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.cn-ex-online-btn--off {
  background: var(--ex-gradient);
  color: #fff;
  box-shadow: var(--ex-shadow);
}

.cn-ex-online-btn--on {
  background: #FEE2E2;
  color: #DC2626;
  box-shadow: 0 4px 16px rgba(220,38,38,0.2);
}

.cn-ex-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.cn-ex-online-btn--off .cn-ex-online-dot {
  background: var(--cn-success);
  animation: ex-pulse 1.5s infinite;
}

@keyframes ex-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Stats strip */
.cn-ex-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--cn-card);
  margin: 16px 20px 0;
  border-radius: var(--cn-radius-lg);
  padding: 16px 8px;
  box-shadow: var(--cn-shadow-sm);
}

.cn-ex-stat { text-align: center; flex: 1; }

.cn-ex-stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cn-text);
}

.cn-ex-stat-num--green { color: var(--ex-accent); }

.cn-ex-stat-label {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

.cn-ex-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--cn-border);
}

/* Incoming call card */
.cn-ex-incoming {
  margin: 16px 20px;
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 16px;
  box-shadow: var(--cn-shadow);
  border: 2px solid var(--ex-accent);
  animation: ex-ring 2s infinite;
}

@keyframes ex-ring {
  0%, 100% { border-color: var(--ex-accent); }
  50% { border-color: #86EFAC; }
}

.cn-ex-incoming-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ex-accent);
  margin-bottom: 12px;
}

.cn-ex-incoming-head i { animation: ex-shake 0.5s infinite; }

@keyframes ex-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.cn-ex-incoming-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cn-ex-incoming-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cn-ex-incoming-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cn-ex-incoming-name {
  font-size: 1rem;
  font-weight: 700;
}

.cn-ex-incoming-name span {
  font-weight: 400;
  color: var(--cn-text-muted);
  font-size: 0.85rem;
}

.cn-ex-incoming-meta {
  font-size: 0.78rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

.cn-ex-incoming-actions {
  display: flex;
  gap: 10px;
}

.cn-ex-incoming-decline,
.cn-ex-incoming-accept {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cn-ex-incoming-decline {
  background: #F3F4F6;
  color: var(--cn-text-muted);
}

.cn-ex-incoming-accept {
  background: var(--ex-gradient);
  color: #fff;
  box-shadow: var(--ex-shadow);
}

/* Tip card */
.cn-ex-tip {
  margin: 0 20px 16px;
  background: var(--ex-accent-light);
  border-radius: var(--cn-radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cn-ex-tip-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cn-ex-tip-text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.cn-ex-tip-text span {
  font-size: 0.78rem;
  color: var(--cn-text-muted);
}

/* Earnings hero */
.cn-ex-earn-hero {
  background: var(--ex-gradient-hero);
  padding: 16px 20px 32px;
  border-radius: 0 0 28px 28px;
}

.cn-ex-earn-balance-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 20px;
  margin: -20px 20px 0;
  box-shadow: var(--cn-shadow-lg);
  position: relative;
  z-index: 2;
}

.cn-ex-earn-balance-label {
  font-size: 0.82rem;
  color: var(--cn-text-muted);
}

.cn-ex-earn-balance-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ex-accent);
  margin: 4px 0 16px;
}

.cn-ex-withdraw-btn {
  width: 100%;
  padding: 14px;
  background: var(--ex-gradient);
  color: #fff;
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--ex-shadow);
  text-decoration: none;
}

/* Earnings breakdown */
.cn-ex-earn-breakdown {
  display: flex;
  gap: 10px;
  margin: 16px 20px;
}

.cn-ex-earn-period {
  flex: 1;
  background: var(--cn-card);
  border-radius: var(--cn-radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--cn-shadow-sm);
}

.cn-ex-earn-period-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cn-text);
}

.cn-ex-earn-period-label {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

/* Call history item */
.cn-ex-call-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cn-border);
}

.cn-ex-call-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cn-ex-call-photo img { width: 100%; height: 100%; object-fit: cover; }

.cn-ex-call-body { flex: 1; min-width: 0; }

.cn-ex-call-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cn-ex-call-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.cn-ex-call-name span {
  font-weight: 400;
  color: var(--cn-text-muted);
  font-size: 0.8rem;
}

.cn-ex-call-time {
  font-size: 0.72rem;
  color: var(--cn-text-light);
}

.cn-ex-call-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--cn-text-muted);
}

.cn-ex-call-earned {
  font-weight: 700;
  color: var(--ex-accent);
}

.cn-ex-call-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cn-ex-call-type--missed { color: var(--cn-danger); }
.cn-ex-call-type--incoming { color: var(--ex-accent); }

/* Rate selector */
.cn-ex-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.cn-ex-rate-option {
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  padding: 14px 8px;
  text-align: center;
  background: var(--cn-card);
  cursor: pointer;
  font-family: var(--cn-font);
  transition: all 0.2s;
}

.cn-ex-rate-option.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
}

.cn-ex-rate-option .rate-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cn-text);
  display: block;
}

.cn-ex-rate-option .rate-label {
  font-size: 0.7rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

/* KYC upload */
.cn-ex-kyc-upload {
  border: 2px dashed var(--cn-border-input);
  border-radius: var(--cn-radius-lg);
  padding: 28px 20px;
  text-align: center;
  background: var(--cn-primary-light);
  cursor: pointer;
  margin: 12px 0;
  transition: border-color 0.2s;
}

.cn-ex-kyc-upload:hover { border-color: var(--ex-accent); }

.cn-ex-kyc-upload i {
  font-size: 2rem;
  color: var(--ex-accent);
  margin-bottom: 8px;
}

.cn-ex-kyc-upload p {
  font-size: 0.85rem;
  color: var(--cn-text-muted);
}

.cn-ex-kyc-upload strong {
  display: block;
  color: var(--cn-text);
  margin-bottom: 4px;
}

/* Category chips for expert */
.cn-ex-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.cn-ex-cat-chip {
  padding: 8px 16px;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius-pill);
  background: var(--cn-card);
  font-family: var(--cn-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--cn-text-muted);
  transition: all 0.2s;
}

.cn-ex-cat-chip.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
  color: var(--ex-accent);
}

/* Call active – earning counter */
.cn-ex-earning-counter {
  background: var(--ex-accent-light);
  border: 2px solid var(--ex-accent);
  border-radius: var(--cn-radius-lg);
  padding: 14px 20px;
  text-align: center;
  margin: 16px 20px 0;
}

.cn-ex-earning-counter-label {
  font-size: 0.78rem;
  color: var(--ex-accent);
  font-weight: 600;
}

.cn-ex-earning-counter-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ex-accent);
}

/* Call end summary */
.cn-ex-call-summary {
  text-align: center;
  padding: 24px 20px;
}

.cn-ex-call-summary-icon {
  width: 72px;
  height: 72px;
  background: var(--ex-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  color: var(--ex-accent);
}

.cn-ex-summary-stats {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.cn-ex-summary-stat {
  flex: 1;
  background: var(--cn-card);
  border-radius: var(--cn-radius);
  padding: 16px;
  box-shadow: var(--cn-shadow-sm);
}

.cn-ex-summary-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
}

.cn-ex-summary-stat-num--green { color: var(--ex-accent); }

.cn-ex-summary-stat-label {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

/* Star rating input */
.cn-ex-star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.cn-ex-star-rating button {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #D1D5DB;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s, transform 0.15s;
}

.cn-ex-star-rating button.active,
.cn-ex-star-rating button:hover { color: var(--cn-gold); transform: scale(1.1); }

/* Expert profile verified badge */
.cn-ex-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ex-accent-light);
  color: var(--ex-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--cn-radius-pill);
}

/* Expert btn primary override */
.cn-ex-app .cn-btn-primary,
.cn-ex-app .cn-ex-btn-green {
  background: var(--ex-gradient);
  box-shadow: var(--ex-shadow);
}

.cn-ex-app .cn-btn-primary:hover:not(:disabled) {
  background: var(--ex-accent-dark);
}

/* Welcome screen */
.cn-ex-welcome-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
  background: var(--ex-gradient-hero);
  color: #fff;
}

.cn-ex-welcome-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.cn-ex-welcome-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cn-ex-welcome-sub {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.5;
}

.cn-ex-welcome-checklist {
  background: rgba(255,255,255,0.12);
  border-radius: var(--cn-radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 32px;
  text-align: left;
}

.cn-ex-welcome-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
}

.cn-ex-welcome-check i { color: #86EFAC; }

.cn-ex-welcome-btn {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  background: #fff;
  color: var(--ex-accent-dark);
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Notification item */
.cn-ex-notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--cn-border);
}

.cn-ex-notif-item.unread { background: var(--ex-accent-light); }

.cn-ex-notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cn-ex-notif-icon--call { background: #DBEAFE; color: #2563EB; }
.cn-ex-notif-icon--earn { background: var(--ex-accent-light); color: var(--ex-accent); }
.cn-ex-notif-icon--star { background: #FEF3C7; color: var(--cn-gold); }
.cn-ex-notif-icon--info { background: #EDE9FE; color: var(--cn-primary); }

.cn-ex-notif-body { flex: 1; min-width: 0; }

.cn-ex-notif-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.cn-ex-notif-time {
  font-size: 0.72rem;
  color: var(--cn-text-light);
  margin-top: 4px;
}

/* Review item */
.cn-ex-review-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cn-border);
}

.cn-ex-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cn-ex-review-name { font-weight: 700; font-size: 0.9rem; }

.cn-ex-review-stars { color: var(--cn-gold); font-size: 0.82rem; }

.cn-ex-review-text {
  font-size: 0.85rem;
  color: var(--cn-text-muted);
  line-height: 1.4;
}

.cn-ex-review-date {
  font-size: 0.72rem;
  color: var(--cn-text-light);
  margin-top: 6px;
}

/* Withdraw form */
.cn-ex-withdraw-methods {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.cn-ex-withdraw-method {
  flex: 1;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  padding: 14px;
  text-align: center;
  background: var(--cn-card);
  cursor: pointer;
  font-family: var(--cn-font);
}

.cn-ex-withdraw-method.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
}

.cn-ex-withdraw-method i {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
  color: var(--ex-accent);
}

.cn-ex-withdraw-method span {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Section heading */
.cn-ex-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
}

.cn-ex-section-head h2 {
  font-size: 1rem;
  font-weight: 700;
}

.cn-ex-section-head a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ex-accent);
  text-decoration: none;
}

/* User app link */
.cn-ex-user-link {
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--cn-text-muted);
}

.cn-ex-user-link a {
  color: var(--cn-primary);
  font-weight: 600;
}

/* Expert page body padding */
.cn-ex-home-page { padding-bottom: calc(var(--cn-nav-h) + 28px + var(--cn-safe-bottom)); }
.cn-ex-page-body { padding: 0 0 16px; }

/* ==========================================================================
   EXPERT FLOW – Onboarding / Login / Setup (unique static design)
   ========================================================================== */

.ex-flow {
  min-height: 100vh;
  background: #F4FAF7;
  display: flex;
  flex-direction: column;
}

.ex-flow-top {
  background: var(--ex-gradient-hero);
  padding: 20px 20px 48px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ex-flow-top::before,
.ex-flow-top::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.ex-flow-top::before { width: 180px; height: 180px; top: -60px; right: -40px; }
.ex-flow-top::after { width: 100px; height: 100px; bottom: 20px; left: -30px; }

.ex-flow-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.ex-flow-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.ex-flow-skip {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.ex-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--cn-radius-pill);
  margin-bottom: 12px;
}

.ex-flow-headline { color: #fff; position: relative; z-index: 1; }

.ex-flow-headline h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.ex-flow-headline h1 em { font-style: normal; color: #A7F3D0; }

.ex-flow-headline p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  max-width: 280px;
}

.ex-flow-progress {
  padding: 0 20px 12px;
  position: relative;
  z-index: 2;
  margin-top: -28px;
}

.ex-flow-progress-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--cn-shadow-lg);
}

.ex-flow-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ex-flow-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ex-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ex-flow-progress-step {
  font-size: 0.78rem;
  color: var(--cn-text-muted);
  font-weight: 600;
}

.ex-flow-progress-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: var(--cn-radius-pill);
  overflow: hidden;
}

.ex-flow-progress-fill {
  height: 100%;
  background: var(--ex-gradient);
  border-radius: var(--cn-radius-pill);
}

.ex-flow-body { flex: 1; padding: 16px 20px 28px; }

.ex-flow-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 20px;
  box-shadow: var(--cn-shadow-sm);
  border: 1px solid rgba(5,150,105,0.08);
}

.ex-flow-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cn-text);
  margin-bottom: 8px;
}

.ex-flow-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  font-family: var(--cn-font);
  font-size: 0.95rem;
  background: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ex-flow-input:focus {
  outline: none;
  border-color: var(--ex-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  background: #fff;
}

.ex-flow-footer { padding: 0 20px 28px; flex-shrink: 0; }

.ex-flow-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--cn-radius-pill);
  background: var(--ex-gradient);
  color: #fff;
  font-family: var(--cn-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--ex-shadow);
  text-decoration: none;
}

.ex-flow-btn:disabled {
  background: var(--cn-btn-disabled);
  box-shadow: none;
  cursor: not-allowed;
}

.ex-flow-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--cn-text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ex-flow-hint i { color: var(--ex-accent); }

.ex-login-showcase { position: relative; z-index: 1; margin-top: 8px; }

.ex-earn-mockup {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 18px;
  max-width: 300px;
  margin: 0 auto;
}

.ex-earn-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ex-earn-mockup-label { font-size: 0.72rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.ex-earn-mockup-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #86EFAC;
  font-weight: 700;
}

.ex-earn-mockup-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.ex-earn-mockup-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.ex-earn-mockup-stats { display: flex; gap: 8px; }

.ex-earn-mockup-stat {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.ex-earn-mockup-stat strong { display: block; font-size: 0.85rem; color: #fff; font-weight: 800; }
.ex-earn-mockup-stat span { font-size: 0.62rem; color: rgba(255,255,255,0.6); }

.ex-login-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.ex-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--cn-radius-pill);
}

.ex-login-pill i { font-size: 0.75rem; color: #A7F3D0; }

.ex-login-form-wrap {
  margin-top: -24px;
  position: relative;
  z-index: 2;
  padding: 0 20px 24px;
  flex: 1;
}

.ex-login-form-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 22px 20px;
  box-shadow: var(--cn-shadow-lg);
}

.ex-login-logo-wrap {
  text-align: center;
  padding: 28px 20px 0;
  position: relative;
  z-index: 1;
}

.ex-login-logo-wrap .cn-logo { color: #fff; font-size: 2rem; margin: 0 0 4px; }
.ex-login-logo-wrap .cn-login-tagline { color: rgba(255,255,255,0.75); }

body[data-page="expert-login"] .ex-flow { background: var(--ex-gradient-hero); min-height: 100vh; }

/* Expert login – swiper (same layout as user login) */
body[data-page="expert-login"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="expert-login"] .cn-login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.cn-ex-login-page {
  background: linear-gradient(180deg, #ECFDF5 0%, var(--cn-bg) 42%, #FFFFFF 100%);
}

.ex-login-slide--1 {
  background: linear-gradient(145deg, #D1FAE5 0%, #A7F3D0 50%, #ECFDF5 100%);
}

.ex-login-slide--2 {
  background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 50%, #FEF3C7 100%);
}

.ex-login-slide--3 {
  background: linear-gradient(145deg, #A7F3D0 0%, #6EE7B7 50%, #D1FAE5 100%);
}

body[data-page="expert-login"] .cn-login-icon--1 { color: #4F46E5; }
body[data-page="expert-login"] .cn-login-icon--2 { color: #6366F1; }
body[data-page="expert-login"] .cn-login-icon--3 { color: #4338CA; }

body[data-page="expert-login"] .cn-promo-title span { color: var(--ex-accent); }

.expert-login-swiper {
  width: 100%;
  padding-bottom: 40px;
}

.expert-login-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="expert-login"] .expert-login-pagination {
  bottom: 4px !important;
}

body[data-page="expert-login"] .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #D1D5DB !important;
  opacity: 1 !important;
}

body[data-page="expert-login"] .swiper-pagination-bullet-active {
  background: var(--ex-accent) !important;
  width: 22px !important;
  border-radius: 4px !important;
}

body[data-page="expert-login"] .cn-expert-badge {
  background: var(--ex-accent-light);
  color: var(--ex-accent);
}

/* Expert onboarding – swiper (matches user onboarding layout) */
body[data-page="expert-onboarding"] .cn-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="expert-onboarding"] .cn-onboard-swiper-page {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ex-onboard-page {
  background: linear-gradient(180deg, #ECFDF5 0%, #F4FAF7 55%, #FFFFFF 100%);
}

.ex-onboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 8px;
  flex-shrink: 0;
}

.ex-onboard-skip {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ex-accent);
  text-decoration: none;
}

.ex-onboard-skip:hover { text-decoration: underline; }

.expert-onboarding-swiper {
  flex: 1;
  width: 100%;
  min-height: 420px;
  padding: 12px 0 44px;
  overflow: hidden;
}

.expert-onboarding-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 360px;
}

.expert-onboarding-swiper .cn-onboard-slide-inner {
  width: 100%;
  padding: 0 28px;
}

.ex-onboard-page .cn-onboard-illus {
  background: linear-gradient(135deg, #D1FAE5, #ECFDF5);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}

.ex-onboard-page .cn-onboard-illus.teal {
  background: linear-gradient(135deg, #A7F3D0, #D1FAE5);
}

.ex-onboard-page .cn-onboard-illus.gold {
  background: linear-gradient(135deg, #FEF3C7, #ECFDF5);
}

.ex-onboard-page .cn-onboard-slide-inner h2 span {
  color: var(--ex-accent);
}

.ex-onboard-skip-link {
  color: var(--ex-accent) !important;
}

.ex-onboard-user-link {
  text-align: center;
  font-size: 0.78rem;
  color: var(--cn-text-muted);
  margin-top: 4px;
}

.ex-onboard-user-link a {
  color: var(--cn-primary);
  font-weight: 600;
  text-decoration: none;
}

body[data-page="expert-onboarding"] .expert-onboarding-pagination {
  bottom: 8px !important;
}

body[data-page="expert-onboarding"] .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #D1D5DB;
  opacity: 1;
}

body[data-page="expert-onboarding"] .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 4px;
  background: var(--ex-accent);
}

body[data-page="expert-onboarding"] .cn-onboard-actions {
  flex-shrink: 0;
}

.ex-intro-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 20px;
  position: relative;
  z-index: 1;
}

.ex-intro-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--cn-radius-lg);
  padding: 14px 16px;
}

.ex-intro-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ex-intro-feature-text strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ex-intro-feature-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.35;
}

.ex-intro-big-icon {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,0.2);
}

.ex-otp-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: var(--cn-radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 12px;
}

.ex-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 20px;
}

.ex-otp-box {
  width: 56px;
  height: 60px;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--cn-font);
  background: #FAFAFA;
}

.ex-otp-box:focus {
  outline: none;
  border-color: var(--ex-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  background: #fff;
}

.ex-avatar-upload { text-align: center; margin-bottom: 20px; }

.ex-avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ex-gradient);
  padding: 3px;
  margin: 0 auto 10px;
  position: relative;
}

.ex-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ex-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ex-accent);
  border: 3px solid #fff;
}

.ex-avatar-cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ex-gradient);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ex-gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ex-gender-opt {
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius-lg);
  padding: 16px 12px;
  text-align: center;
  background: #FAFAFA;
  cursor: pointer;
  font-family: var(--cn-font);
  position: relative;
}

.ex-gender-opt.selected { border-color: var(--ex-accent); background: var(--ex-accent-light); }
.ex-gender-opt-emoji { font-size: 2rem; display: block; margin-bottom: 6px; }
.ex-gender-opt-label { font-size: 0.85rem; font-weight: 700; }

.ex-gender-opt .ex-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ex-accent);
  color: #fff;
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.ex-gender-opt.selected .ex-check { display: flex; }

.ex-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ex-lang-tile {
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  padding: 14px;
  background: #FAFAFA;
  cursor: pointer;
  font-family: var(--cn-font);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ex-lang-tile.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
  color: var(--ex-accent-dark);
  box-shadow: 0 0 0 1px var(--ex-accent);
}

.ex-lang-tile-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cn-text);
}

.ex-lang-tile.selected .ex-lang-tile-name {
  color: var(--ex-accent-dark);
}

.ex-lang-tile-char {
  font-size: 1.4rem;
  opacity: 0.35;
  color: var(--cn-text-muted);
  font-weight: 700;
}

.ex-lang-tile.selected .ex-lang-tile-char {
  opacity: 0.5;
  color: var(--ex-accent);
}

.ex-upload-zone {
  border: 2px dashed #A7F3D0;
  border-radius: var(--cn-radius-lg);
  padding: 24px 16px;
  text-align: center;
  background: var(--ex-accent-light);
  cursor: pointer;
  margin-bottom: 14px;
}

.ex-upload-zone i { font-size: 1.8rem; color: var(--ex-accent); margin-bottom: 8px; display: block; }
.ex-upload-zone strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.ex-upload-zone span { font-size: 0.78rem; color: var(--cn-text-muted); }

.ex-rate-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
}

.ex-rate-scroll::-webkit-scrollbar { display: none; }

.ex-rate-card {
  flex: 0 0 100px;
  scroll-snap-align: start;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius-lg);
  padding: 16px 10px;
  text-align: center;
  background: #FAFAFA;
  cursor: pointer;
  font-family: var(--cn-font);
}

.ex-rate-card.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
  box-shadow: var(--cn-shadow);
}

.ex-rate-card-val { font-size: 1.3rem; font-weight: 800; display: block; }
.ex-rate-card-label { font-size: 0.68rem; color: var(--cn-text-muted); margin-top: 4px; font-weight: 600; }
.ex-rate-card.selected .ex-rate-card-val { color: var(--ex-accent); }

.ex-rate-preview {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border-radius: var(--cn-radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  border: 1px solid #A7F3D0;
}

.ex-rate-preview-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ex-accent);
  flex-shrink: 0;
}

.ex-rate-preview strong { display: block; font-size: 0.92rem; color: var(--ex-accent-dark); }
.ex-rate-preview span { font-size: 0.78rem; color: var(--cn-text-muted); }

.ex-welcome-wrap {
  min-height: 100vh;
  background: var(--ex-gradient-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.ex-welcome-circle {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
}

.ex-welcome-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ex-welcome-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 28px; }

.ex-welcome-steps {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--cn-radius-lg);
  padding: 6px;
  margin-bottom: 28px;
}

.ex-welcome-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--cn-radius);
  text-align: left;
}

.ex-welcome-step + .ex-welcome-step { border-top: 1px solid rgba(255,255,255,0.08); }

.ex-welcome-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #86EFAC;
  flex-shrink: 0;
}

.ex-welcome-step-icon.pending { color: #FCD34D; }

.ex-welcome-step-text strong { display: block; color: #fff; font-size: 0.85rem; font-weight: 700; }
.ex-welcome-step-text span { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

.ex-welcome-go {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  background: #fff;
  color: var(--ex-accent-dark);
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ex-bio-area {
  width: 100%;
  min-height: 90px;
  padding: 14px 16px;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  font-family: var(--cn-font);
  font-size: 0.92rem;
  line-height: 1.5;
  resize: none;
  background: #FAFAFA;
}

.ex-bio-area:focus {
  outline: none;
  border-color: var(--ex-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  background: #fff;
}

.ex-cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.ex-cat-tag {
  padding: 10px 16px;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius-pill);
  background: #FAFAFA;
  font-family: var(--cn-font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--cn-text-muted);
}

.ex-cat-tag.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
  color: var(--ex-accent);
}

.ex-phone-row {
  display: flex;
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  overflow: hidden;
  background: #FAFAFA;
}

.ex-phone-row:focus-within {
  border-color: var(--ex-accent);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  background: #fff;
}

.ex-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--ex-accent-light);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ex-accent-dark);
  border-right: 2px solid var(--cn-border);
  flex-shrink: 0;
}

.ex-phone-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: var(--cn-font);
  font-size: 1rem;
  background: transparent;
  min-width: 0;
}

.ex-phone-input:focus { outline: none; }

/* ==========================================================================
   EXPERT — Accounts, Wallet, Competitions
   ========================================================================== */

.cn-ex-page-pad { padding: 0 20px 24px; }

.cn-ex-page-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--cn-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cn-ex-page-hint i { color: var(--ex-accent); margin-top: 2px; flex-shrink: 0; }

.cn-ex-header-add-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ex-accent-light);
  color: var(--ex-accent);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
}

.cn-ex-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.cn-ex-outline-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border: 2px dashed var(--cn-border);
  border-radius: var(--cn-radius);
  background: transparent;
  color: var(--ex-accent);
  font-family: var(--cn-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cn-ex-link-sm {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ex-accent);
  text-decoration: none;
}

/* Payment accounts */
.cn-ex-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cn-card);
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cn-ex-account-card.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
}

.cn-ex-account-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ex-accent-light);
  color: var(--ex-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cn-ex-account-icon--upi { background: #EEF2FF; color: #4F46E5; }

.cn-ex-account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cn-ex-account-info strong { font-size: 0.9rem; }
.cn-ex-account-info span { font-size: 0.78rem; color: var(--cn-text-muted); }

.cn-ex-account-default {
  display: inline-block;
  font-size: 0.68rem !important;
  font-weight: 700;
  color: var(--ex-accent) !important;
  background: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  width: fit-content;
}

.cn-ex-account-menu {
  border: none;
  background: none;
  color: var(--cn-text-muted);
  padding: 8px;
  cursor: pointer;
}

.cn-ex-account-form { margin-top: 12px; }

.cn-ex-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--cn-text-muted);
  cursor: pointer;
}

.cn-ex-add-account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ex-accent);
  text-decoration: none;
}

.cn-ex-add-account-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cn-border);
}

/* Wallet grid */
.cn-ex-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.cn-ex-wallet-grid--compact { margin: 16px 20px 0; }

.cn-ex-wallet-item {
  background: var(--cn-card);
  border-radius: var(--cn-radius);
  padding: 14px;
  box-shadow: var(--cn-shadow-sm);
}

.cn-ex-wallet-item label {
  display: block;
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin-bottom: 4px;
}

.cn-ex-wallet-item strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cn-text);
}

.cn-ex-wallet-item--highlight {
  background: var(--ex-accent-light);
  border: 1.5px solid var(--ex-accent);
}

.cn-ex-wallet-item--highlight strong { color: var(--ex-accent); }

.is-requested { color: #D97706 !important; }
.is-paid { color: var(--ex-accent) !important; }
.is-pending { color: var(--ex-accent) !important; }

.cn-ex-account-pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cn-card);
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius);
  margin-bottom: 8px;
  cursor: pointer;
  font-family: var(--cn-font);
  text-align: left;
}

.cn-ex-account-pick.selected {
  border-color: var(--ex-accent);
  background: var(--ex-accent-light);
}

.cn-ex-account-pick > i:first-child {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cn-ex-account-pick div { flex: 1; }
.cn-ex-account-pick strong { display: block; font-size: 0.88rem; }
.cn-ex-account-pick span { font-size: 0.75rem; color: var(--cn-text-muted); }

.cn-ex-pick-check {
  color: var(--ex-accent);
  opacity: 0;
  font-size: 1.1rem;
}

.cn-ex-account-pick.selected .cn-ex-pick-check { opacity: 1; }

.cn-ex-pending-request {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--cn-radius);
}

.cn-ex-pending-request > i {
  font-size: 1.2rem;
  color: #D97706;
}

.cn-ex-pending-request strong { display: block; font-size: 0.88rem; }
.cn-ex-pending-request span { font-size: 0.75rem; color: var(--cn-text-muted); }

/* Quick links on earnings */
.cn-ex-quick-links {
  display: flex;
  gap: 10px;
  margin: 16px 20px;
}

.cn-ex-quick-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--cn-card);
  border-radius: var(--cn-radius);
  box-shadow: var(--cn-shadow-sm);
  text-decoration: none;
  color: var(--cn-text);
  font-size: 0.72rem;
  font-weight: 600;
}

.cn-ex-quick-link i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ex-accent-light);
  color: var(--ex-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Home competition banner */
.cn-ex-home-comp-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  border-radius: var(--cn-radius-lg);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--ex-shadow);
}

.cn-ex-home-comp-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cn-ex-home-comp-left strong { font-size: 0.88rem; }
.cn-ex-home-comp-left span { font-size: 0.72rem; opacity: 0.85; }

.cn-ex-home-comp-podium {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
  opacity: 0.9;
}

.cn-ex-home-comp-arrow { opacity: 0.7; font-size: 0.8rem; }

/* Competitions page */
.cn-ex-comp-page { background: #F1F5F9; }

.cn-ex-comp-hero {
  position: relative;
  background: linear-gradient(145deg, #312E81 0%, #4F46E5 45%, #6366F1 100%);
  padding: 0 20px 56px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}

.cn-ex-comp-hero-deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.cn-ex-comp-deco-trophy {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 4.5rem;
  color: rgba(255,255,255,0.08);
  transform: rotate(12deg);
}

.cn-ex-comp-deco-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cn-header--transparent { background: transparent; position: relative; z-index: 2; }

.cn-ex-comp-hero-body {
  position: relative;
  z-index: 2;
  padding-bottom: 4px;
}

.cn-ex-comp-hero-body h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}

.cn-ex-comp-hero-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 14px;
}

.cn-ex-comp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #BBF7D0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.cn-ex-comp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
  animation: ex-pulse 1.5s infinite;
}

.cn-ex-comp-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cn-ex-comp-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

@keyframes ex-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Floating leaderboard card */
.cn-ex-leaderboard-card {
  margin: -36px 16px 20px;
  background: var(--cn-card);
  border-radius: 20px;
  padding: 20px 16px 16px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.1);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  z-index: 3;
}

.cn-ex-leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cn-ex-leaderboard-head h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cn-ex-leaderboard-head h2 i { color: #F59E0B; font-size: 0.9rem; }

.cn-ex-leaderboard-head p {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin: 0;
}

.cn-ex-level-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.cn-ex-level-badge--gold {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #B45309;
  box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

/* Podium stage */
.cn-ex-podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px 0;
  margin-bottom: 20px;
}

.cn-ex-podium-slot {
  flex: 1;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.cn-ex-podium-slot--1 { order: 2; z-index: 2; }
.cn-ex-podium-slot--2 { order: 1; }
.cn-ex-podium-slot--3 { order: 3; }

.cn-ex-podium-crown {
  position: absolute;
  top: -8px;
  font-size: 1rem;
  color: #FCD34D;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  animation: ex-crown-bob 2.5s ease-in-out infinite;
}

@keyframes ex-crown-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.cn-ex-podium-rank-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--cn-text-muted);
  background: #F1F5F9;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.cn-ex-podium-rank-badge--gold {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: #fff;
}

.cn-ex-podium-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,0.12);
  margin-bottom: 6px;
}

.cn-ex-podium-avatar--winner {
  width: 58px;
  height: 58px;
  font-size: 0.95rem;
  border-color: #FCD34D;
  box-shadow: 0 0 0 4px rgba(252,211,77,0.25), 0 6px 20px rgba(79,70,229,0.25);
}

.cn-ex-podium-avatar--you {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}

.cn-ex-podium-slot strong {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.cn-ex-podium-slot strong em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  color: #4F46E5;
  margin-top: 1px;
}

.cn-ex-podium-hrs {
  font-size: 0.68rem;
  color: var(--cn-text-muted);
  font-weight: 600;
  margin: 2px 0 8px;
}

.cn-ex-podium-pedestal {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  position: relative;
}

.cn-ex-podium-pedestal--1 {
  height: 88px;
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35);
}

.cn-ex-podium-pedestal--2 {
  height: 64px;
  background: linear-gradient(180deg, #E2E8F0 0%, #94A3B8 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.4);
}

.cn-ex-podium-pedestal--3 {
  height: 48px;
  background: linear-gradient(180deg, #FDBA74 0%, #EA580C 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
}

.cn-ex-podium-slot--you .cn-ex-podium-pedestal--3 {
  outline: 2px solid #4F46E5;
  outline-offset: -2px;
}

.cn-ex-podium-medal { font-size: 1.35rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

/* Progress to next rank */
.cn-ex-rank-progress {
  background: linear-gradient(135deg, #EEF2FF, #F8FAFC);
  border: 1px solid #E0E7FF;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.cn-ex-rank-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.cn-ex-rank-progress-label {
  display: block;
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin-bottom: 2px;
}

.cn-ex-rank-progress-top strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #4F46E5;
}

.cn-ex-rank-progress-top strong small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cn-text-muted);
}

.cn-ex-rank-progress-pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
}

.cn-ex-rank-progress-bar {
  height: 8px;
  background: #E0E7FF;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cn-ex-rank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #818CF8);
  border-radius: 20px;
  transition: width 0.4s ease;
}

.cn-ex-rank-progress-hint {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cn-ex-rank-progress-hint i { color: #F59E0B; }

/* Rank list 4+ */
.cn-ex-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cn-border);
  padding-top: 8px;
}

.cn-ex-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
}

.cn-ex-rank-num {
  width: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cn-text-light);
  text-align: center;
  flex-shrink: 0;
}

.cn-ex-rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cn-ex-rank-info {
  flex: 1;
  min-width: 0;
}

.cn-ex-rank-info strong {
  display: block;
  font-size: 0.85rem;
}

.cn-ex-rank-info span {
  font-size: 0.68rem;
  color: var(--cn-text-muted);
}

.cn-ex-rank-hrs {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cn-text);
  flex-shrink: 0;
}

.cn-ex-comp-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cn-text-muted);
  background: #E2E8F0;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Competition cards v2 */
.cn-ex-join-section { padding: 0 16px 100px; }

.cn-ex-comp-card {
  position: relative;
  background: var(--cn-card);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  overflow: hidden;
  border: 1px solid var(--cn-border);
}

.cn-ex-comp-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F59E0B, #D97706);
}

.cn-ex-comp-card-accent--monthly { background: linear-gradient(180deg, #4F46E5, #6366F1); }
.cn-ex-comp-card-accent--ended { background: #CBD5E1; }

.cn-ex-comp-card-inner { padding: 16px 16px 16px 18px; }

.cn-ex-comp-card.joined {
  border-color: #A5B4FC;
  background: linear-gradient(135deg, #fff 0%, #EEF2FF 100%);
}

.cn-ex-comp-card.ended { opacity: 0.75; }

.cn-ex-comp-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.cn-ex-comp-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,0.2);
}

.cn-ex-comp-icon--monthly {
  background: linear-gradient(135deg, #EEF2FF, #C7D2FE);
  color: #4F46E5;
  box-shadow: 0 4px 12px rgba(79,70,229,0.15);
}

.cn-ex-comp-icon--ended {
  background: #F1F5F9;
  color: #94A3B8;
  box-shadow: none;
}

.cn-ex-comp-card-meta { flex: 1; min-width: 0; }

.cn-ex-comp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.cn-ex-comp-title-row h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.cn-ex-comp-card-meta > p {
  font-size: 0.72rem;
  color: var(--cn-text-muted);
  margin: 0 0 8px;
}

.cn-ex-comp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cn-ex-comp-stats span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cn-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cn-ex-comp-stats i { color: #4F46E5; font-size: 0.65rem; }

.cn-ex-comp-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  background: #F3F4F6;
  color: var(--cn-text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.cn-ex-comp-badge--live {
  background: #DCFCE7;
  color: #15803D;
}

.cn-ex-comp-badge--joined {
  background: #EEF2FF;
  color: #4F46E5;
}

.cn-ex-comp-badge--ended {
  background: #F1F5F9;
  color: #64748B;
}

.cn-ex-comp-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cn-ex-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 20px;
}

.cn-ex-reward-pill--gold { background: #FEF3C7; color: #B45309; }
.cn-ex-reward-pill--indigo { background: #EEF2FF; color: #4338CA; }
.cn-ex-reward-pill--purple { background: #F3E8FF; color: #7C3AED; }

.cn-ex-comp-prize-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.cn-ex-comp-prize {
  background: #F8FAFC;
  border: 1px solid var(--cn-border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.cn-ex-comp-prize span { font-size: 1.1rem; display: block; margin-bottom: 2px; }

.cn-ex-comp-prize strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4F46E5;
}

.cn-ex-comp-prize small {
  font-size: 0.62rem;
  color: var(--cn-text-muted);
}

.cn-ex-comp-winner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px;
}

.cn-ex-comp-winner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cn-ex-comp-winner-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.cn-ex-comp-winner-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cn-text-muted);
}

.cn-ex-comp-winner-row strong {
  display: block;
  font-size: 0.9rem;
}

.cn-ex-comp-winner-row > div:nth-child(2) > span:last-child {
  font-size: 0.7rem;
  color: var(--cn-text-muted);
}

.cn-ex-comp-winner-medal { font-size: 1.5rem; }

.cn-ex-comp-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cn-ex-comp-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.cn-ex-comp-btn--joined {
  background: #fff;
  color: #4F46E5;
  border: 2px solid #A5B4FC;
  box-shadow: none;
  cursor: default;
}

.cn-profile-grid-icon--gold {
  background: #FEF3C7 !important;
  color: #D97706 !important;
}


