@charset "UTF-8";
.challenge-create { align-items:start; }
.card.challenge-purchase { padding:0; overflow:hidden; font-size:13px; font-weight:600; }
.challenge-purchase .wallet-head { display:flex; align-items:center; gap:12px; padding:22px 24px; }
.challenge-purchase .wallet-head h3 { margin:0 0 5px; font-family:var(--font-body); font-size:21px; font-weight:700; }
.challenge-purchase .wallet-head p { margin:0; font-size:12px; line-height:1.5; }
.challenge-purchase .wallet-asset-heading h4 { margin:0; font-size:15px; font-weight:700; }
.challenge-step-copy { font-size:12px; color:var(--text-2); line-height:1.65; margin:0 0 16px; }
.challenge-purchase fieldset { min-width:0; margin:0; padding:0; border:0; }
.challenge-purchase .wallet-asset-card { width:100%; }
.challenge-purchase .wallet-asset-value { min-width:0; }
.challenge-purchase .wallet-asset-value small { white-space:normal; overflow-wrap:anywhere; }
.challenge-purchase .wallet-panel label { font-weight:650; font-size:13px; }
.challenge-purchase .wallet-actions>.button { min-width:0; flex:1; }
.challenge-payment-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.challenge-payment-heading .wallet-label { margin:0; }
.challenge-purchase .tier-grid { margin:16px 0; }
.challenge-purchase .tier-card { min-width:0; padding:12px 6px; }
.challenge-purchase .tier-card strong { font-size:16px; }
.challenge-purchase .quote-box { padding:12px; margin:14px 0 10px; }
.challenge-purchase .quote-line { font-size:12px; gap:10px; }
.challenge-purchase .quote-line strong { text-align:right; overflow-wrap:anywhere; }
.challenge-purchase .calculation-result { padding:16px; }
.challenge-purchase .calculation-result strong { font-size:28px; }
.challenge-purchase .checkbox { align-items:flex-start; line-height:1.65; margin-top:18px; }
.challenge-purchase .form-error { margin:0 24px 16px; }
.challenge-purchase .form-error:empty { display:none; }
#challenge-funding-required { width:440px; }
#challenge-funding-required .modal-head>div { flex:1; min-width:0; }
#challenge-funding-required .dialog-close { flex-shrink:0; }
@media(max-width:600px) {
  .challenge-purchase .wallet-head { padding:18px; }
  .challenge-purchase .wallet-steps { padding:12px 16px; gap:7px; }
  .challenge-purchase .wallet-steps li { font-size:10px; gap:5px; }
  .challenge-purchase .wallet-steps li span { width:21px; height:21px; font-size:10px; }
  .challenge-purchase .wallet-panel { padding:18px 16px 0; }
  .challenge-purchase .wallet-actions>.button { padding-inline:12px; font-size:12px; }
  .challenge-purchase .tier-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:360px) {
  .challenge-purchase .wallet-steps { gap:4px; }
  .challenge-purchase .wallet-steps li { font-size:9px; gap:4px; }
  .challenge-purchase .wallet-steps li span { width:18px; height:18px; }
}
.funding-balance { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:10px 0 16px; padding:12px; border:1px solid var(--brand-line); border-radius:11px; background:var(--brand-soft); color:var(--text-2); font-size:12px; }
.funding-balance strong { color:var(--text); font-weight:600; overflow-wrap:anywhere; }
.funding-balance small { color:var(--muted); margin-left:auto; }
.challenge-amount { display:flex; align-items:stretch; border:1px solid var(--line-2); border-radius:11px; background:var(--input-bg); overflow:hidden; }
.challenge-amount:focus-within { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.challenge-amount > input { width:100%; border:0; background:transparent; padding-right:10px; border-radius:0; box-shadow:none; }
.challenge-amount.input-group .suffix { position:static; transform:none; display:flex; align-items:center; padding:0 10px; }
#challenge-max { flex-shrink:0; align-self:center; margin:5px; padding:8px 13px; background:var(--brand-soft); color:var(--brand); border:1px solid var(--brand-line); border-radius:7px; font-weight:600; font-size:12px; }
#challenge-max:hover { background:var(--brand); color:white; }
#challenge-max:disabled { opacity:.45; cursor:not-allowed; }
@media(max-width:600px) { .funding-balance small { width:100%; margin-left:0; } #challenge-max { min-height:40px; } }
/* Dashboard + administration (dashboard.propfirmdev.com) */

/* ---------- authentication ---------- */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-story {
  position: relative;
  padding: 44px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 80%, rgba(124, 108, 255, 0.28), transparent 55%), radial-gradient(ellipse at 90% 10%, rgba(34, 211, 238, 0.18), transparent 50%), var(--bg-2);
  border-right: 1px solid var(--line);
}
.auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.auth-story > * {
  position: relative;
}
.auth-story h1 {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.auth-story-body > p {
  font-size: 16px;
  max-width: 460px;
}
.auth-cards {
  position: relative;
  height: 230px;
  margin: 36px 0 20px;
  max-width: 520px;
}
.auth-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.auth-float small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.auth-float strong {
  font-size: 14px;
}
.auth-float.a {
  top: 0;
  left: 0;
}
.auth-float.b {
  top: 80px;
  left: 140px;
  animation-delay: -2s;
}
.auth-float.c {
  top: 160px;
  left: 30px;
  animation-delay: -4s;
}
.float-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-line);
}
.float-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.auth-points svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  stroke: var(--green);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-panel {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 40px;
}
.auth-top {
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.auth-tabs button {
  padding: 9px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.auth-tabs button.selected {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.auth-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
.auth-card > p {
  font-size: 14px;
  margin-bottom: 8px;
}
.password-group .eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.password-group .eye:hover,
.password-group .eye.on {
  color: var(--brand);
  background: var(--brand-soft);
}
.password-group .eye svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.password-group > input {
  padding-right: 48px;
}
.strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.strength-bars i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  transition: background 0.3s;
}
.strength[data-score="1"] i:nth-child(-n + 1) {
  background: var(--red);
}
.strength[data-score="2"] i:nth-child(-n + 2) {
  background: var(--amber);
}
.strength[data-score="3"] i:nth-child(-n + 3) {
  background: var(--green);
}
.strength[data-score="4"] i {
  background: var(--green);
}
.auth-switch {
  text-align: center;
  margin: 22px 0 0;
  font-size: 13.5px;
}

/* ---------- workspace shell ---------- */
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  padding: 26px 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  border-right: 1px solid var(--line);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  transition: transform 0.3s var(--ease);
}
.sidebar > .brand {
  margin: 4px 6px 34px;
}
.workspace-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-2);
  margin: 0 12px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar nav button {
  position: relative;
  color: var(--text-2);
  padding: 11px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.sidebar nav button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: color 0.2s;
}
.sidebar nav button:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(2px);
}
.sidebar nav button.selected {
  color: var(--text);
  background: var(--brand-soft);
}
.sidebar nav button.selected::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}
.sidebar nav button.selected svg {
  color: var(--brand);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
}
.sidebar-bottom > .quiet {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
}
.promo-card {
  padding: 16px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.25), transparent 55%), linear-gradient(135deg, rgba(124, 108, 255, 0.35), rgba(91, 91, 246, 0.15));
  border: 1px solid var(--brand-line);
}
.promo-card .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}
.promo-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.environment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.environment-card strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.environment-card small {
  font-size: 11px;
  color: var(--muted);
}
.sidebar-scrim {
  display: none;
}
.workspace-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-width: 0;
}
.workspace-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb > span {
  margin-inline: 10px;
  color: var(--muted-2);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.env-badge {
  margin-right: 6px;
}
.bell {
  position: relative;
}
.bell .count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.2s, background 0.2s;
}
.user-chip:hover {
  border-color: var(--brand-line);
  background: var(--surface-3);
}
.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.user-meta strong {
  font-size: 13px;
  font-weight: 600;
}
.user-meta small {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.workspace-content {
  padding: 32px;
  max-width: 1500px;
  margin: auto;
  animation: fade-in 0.4s ease;
}
.mobile-menu {
  display: none;
}

/* ---------- headings & banners ---------- */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 8px;
}
.page-heading h1 {
  font-size: 30px;
  margin-bottom: 6px;
}
.page-heading p {
  font-size: 14px;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 36px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: radial-gradient(ellipse at 95% 0%, rgba(34, 211, 238, 0.2), transparent 45%), radial-gradient(ellipse at 0% 100%, rgba(124, 108, 255, 0.3), transparent 50%), var(--surface);
  backdrop-filter: none;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid var(--brand-line);
  opacity: 0.5;
}
.hero-banner h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.hero-banner p {
  font-size: 14px;
  margin-bottom: 14px;
}
.hero-banner .eyebrow {
  margin-bottom: 10px;
}
.banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.status-chip.warn {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
}
.status-chip.warn .live-dot,
.status-chip.warn .live-dot::after {
  background: var(--amber);
  color: var(--amber);
}
.status-chip.warn .live-dot::after {
  background: none;
}

/* ---------- metrics ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metrics-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.metrics-grid.compact {
  gap: 10px;
  margin-bottom: 18px;
}
.metric-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
}
.metric-card > span,
.metric-top > span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 10px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.metric-card.highlight {
  background: radial-gradient(ellipse at 100% 0%, rgba(124, 108, 255, 0.35), transparent 55%), var(--surface);
  border-color: var(--brand-line);
}
.metric-card.stat-warn strong {
  color: var(--amber);
}
.metric-card.stat-good strong {
  color: var(--green);
}
.metric-card.stat-brand strong {
  color: var(--brand);
}
.sparkline {
  width: 90px;
  height: 30px;
  flex-shrink: 0;
}
.sparkline .spark-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sparkline.spark-down .spark-line {
  stroke: var(--red);
}
.sparkline.spark-level .spark-line {
  stroke: var(--muted);
}

/* ---------- overview ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.challenge-summary {
  background: radial-gradient(ellipse at 0% 100%, rgba(124, 108, 255, 0.18), transparent 55%), var(--surface);
}
.challenge-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 6px 0 16px;
}
.ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}
.ring-bg {
  stroke: var(--surface-3);
}
.ring-fill {
  stroke: url(#ring-gradient);
  stroke: var(--brand);
  transition: stroke-dashoffset 1s var(--ease);
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-label strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ring-label small {
  font-size: 11px;
  color: var(--muted);
}
.challenge-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  flex: 1;
}
.challenge-figures small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.challenge-figures strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}
.summary-capital {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cta-panel h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.cta-panel p {
  font-size: 14px;
  max-width: 520px;
}
.mini-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mini-tiers span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.mini-tiers strong {
  font-family: var(--font-display);
  color: var(--brand);
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s;
}
.onboarding-step:hover {
  background: var(--surface-2);
}
.onboarding-step > svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted-2);
  stroke-width: 2;
  fill: none;
  margin-left: auto;
  flex-shrink: 0;
}
.step-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.step-dot svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.onboarding-step.done .step-dot {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.4);
}
.onboarding-step strong {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
}
.onboarding-step.done strong {
  text-decoration: line-through;
  color: var(--muted);
}
.onboarding-step small {
  font-size: 12px;
  color: var(--muted);
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.row-title {
  font-weight: 500;
  color: var(--text);
}
.asset-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.asset-cell small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.ref {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.mult-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- wallet ---------- */
.wallet-section-tabs{display:flex;align-items:center;gap:6px;width:fit-content;padding:5px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.wallet-section-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 21px;border:1px solid transparent;border-radius:10px;color:var(--text-2);background:transparent;font-size:13px;font-weight:700;transition:background .15s,color .15s}
.wallet-section-tabs button.selected{background:var(--brand-soft);color:var(--brand);border-color:var(--brand-border,var(--line))}
.wallet-section-tabs button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[data-wallet-panel][hidden]{display:none!important}
@media(max-width:760px){.wallet-section-tabs{width:100%;order:2}.wallet-section-tabs button{flex:1;padding:11px 10px}}
/* Wallet descriptions must wrap inside their card, including narrow foldables. */
[data-view="wallets"] .card-heading :is(.tag, .badge) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.portfolio-card {
  background: radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.14), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(124, 108, 255, 0.22), transparent 55%), var(--surface);
}
.portfolio-total {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
}
.portfolio-total strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.portfolio-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 22px;
}
.portfolio-sub small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.portfolio-sub strong {
  font-family: var(--font-mono);
  font-size: 16px;
}
.allocation-bar {
  display: flex;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  gap: 0;
}
.allocation-bar .alloc {
  display: block;
  flex: 0 1 0px;
  min-width: 0;
  height: 100%;
  transition: flex-grow 0.8s var(--ease);
}
.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.allocation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.allocation-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.allocation-legend strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}
.alloc-btc {
  background: #f7931a;
}
.alloc-eth {
  background: #627eea;
}
.alloc-usdc {
  background: #2775ca;
}
.alloc-usdt {
  background: #26a17b;
}
.alloc-bnb {background:#f3ba2f;}
.alloc-sol {background:#9945ff;}
.alloc-trx {background:#ef0027;}
.network-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 8px;
}
.network-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(168, 169, 168, 0.35);
  background: var(--surface-2);
}
.network-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.network-main > div {
  min-width: 0;
}
.network-item > .badge {
  white-space: nowrap;
}
.network-main .coin {
  width: 32px;
  height: 32px;
}
.network-main strong {
  display: block;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.network-main small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
  display: block;
}
@media (max-width: 350px) {
  .network-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .network-item > .badge { justify-self: start; margin-left: 44px; }
}
.asset-table td:first-child strong {
  display: inline;
  font-size: 14px;
}
.data-table-wrap .asset-cell > span:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.data-table-wrap .asset-cell small {
  display: inline;
}
.asset-table .coin {
  width: 34px;
  height: 34px;
}
.pill-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.pill-tabs button {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.pill-tabs button:hover {
  color: var(--text);
}
.pill-tabs button.selected {
  background: var(--surface-solid);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.asset-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.asset-preview strong {
  display: block;
  font-size: 16px;
}
.asset-preview small {
  color: var(--muted);
  font-size: 12px;
}
.activity-list {
  display: grid;
  gap: 4px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}
.activity-item:hover {
  background: var(--surface-2);
}
.activity-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
}
.activity-item .dot.warn {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.activity-item strong {
  display: block;
  font-size: 13.5px;
}
.activity-item small {
  color: var(--muted);
  font-size: 12px;
}
.activity-item time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- challenges ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 8px 0 6px;
}
.tier-card {
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: all 0.25s var(--ease);
}
.tier-card:hover,
.tier-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}
.tier-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tier-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.tier-card small {
  display: none;
}
.fee-chips {
  margin: 12px 0 4px;
}
.calculation-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  margin: 16px 0 14px;
}
.calculation-result small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.calculation-result strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.multiplier {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.35);
}
.quote-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.quote-line:last-of-type {
  border-bottom: 0;
}
.quote-line strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}
.quote-box .micro {
  margin: 8px 0 0;
}
.gauge-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.gauge-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.gauge-head strong {
  color: var(--text);
  font-family: var(--font-mono);
}
.gauge .progress-track {
  height: 7px;
}
.fill-green {
  background: var(--gradient-green);
}
.fill-red {
  background: var(--gradient-red);
}

/* ---------- KYC ---------- */
.kyc-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.kstep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.kstep > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  color: var(--muted);
  flex-shrink: 0;
}
.kstep > span svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kstep.done {
  border-color: rgba(52, 211, 153, 0.35);
}
.kstep.done > span {
  background: var(--green-soft);
  color: var(--green);
  border-color: transparent;
}
.kstep.bad > span {
  background: var(--red-soft);
  color: var(--red);
}
.kstep strong {
  display: block;
  font-size: 13px;
}
.kstep small {
  font-size: 11.5px;
  color: var(--muted);
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 20px;
  border-radius: 14px;
  border: 2px dashed var(--line-2);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin: 16px 0 10px;
}
.dropzone:hover,
.dropzone.has-file {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.drop-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 6px;
}
.drop-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dropzone strong {
  font-size: 14px;
}
.dropzone small {
  color: var(--muted);
  font-size: 12px;
}
.kyc-entry p {
  margin: 8px 0 0;
}

/* ---------- profile ---------- */
.theme-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
}
.theme-choice {
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  gap: 2px;
  transition: border-color 0.2s;
}
.theme-choice.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.theme-choice strong {
  font-size: 14px;
}
.theme-choice small {
  color: var(--muted);
  font-size: 12px;
}
.swatch {
  display: block;
  height: 46px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}
.swatch.dark {
  background: linear-gradient(135deg, #0a0e1a, #1a1f3a 60%, #22d3ee);
}
.swatch.light {
  background: linear-gradient(135deg, #ffffff, #e8ecff 60%, #635bff);
}

/* ---------- admin ---------- */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  min-width: 260px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
}
.search input {
  padding-left: 36px;
  border-radius: 12px;
}
.sub-heading {
  margin: 24px 0 12px;
  font-size: 14px;
  color: var(--text-2);
}
.card-heading p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- footer ---------- */
body[data-app="dashboard"] > .site-footer {
  margin-left: 260px;
}
body[data-app="dashboard"]:has(#auth-view:not(.hidden)) > .site-footer {
  margin-left: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .sidebar {
    width: 232px;
  }
  .workspace-main {
    margin-left: 232px;
    width: calc(100% - 232px);
  }
  body[data-app="dashboard"] > .site-footer {
    margin-left: 232px;
  }
  .workspace-content {
    padding: 26px;
  }
  .workspace-header {
    padding-inline: 24px;
  }
  .overview-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kyc-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 100px 20px 40px;
  }
  .auth-top {
    left: 20px;
    right: 20px;
  }
  .metrics-grid,
  .metrics-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid,
  .two-columns,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }
  .env-badge {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-105%);
    width: 270px;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.6);
    backdrop-filter: none;
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  body.sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .workspace-main,
  body[data-app="dashboard"] > .site-footer {
    margin-left: 0;
    width: 100%;
  }
  .workspace-header {
    height: 64px;
    padding: 0 16px;
    gap: 10px;
  }
  .mobile-menu {
    display: grid;
  }
  .breadcrumb {
    flex: 1;
    font-size: 12px;
  }
  .user-meta {
    display: none;
  }
  .user-chip {
    padding: 3px;
  }
  .workspace-content {
    padding: 20px 16px;
  }
  .hero-banner h1 {
    font-size: 26px;
  }
  .banner-actions {
    width: 100%;
  }
  .banner-actions .button {
    flex: 1;
  }
  .metrics-grid,
  .metrics-grid.three {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-card strong {
    font-size: 22px;
  }
  .sparkline {
    width: 60px;
  }
  .challenge-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .challenge-figures {
    width: 100%;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .button {
    flex: 1;
  }
  .portfolio-total strong {
    font-size: 34px;
  }
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kyc-stepper {
    grid-template-columns: 1fr;
  }
  .theme-choices {
    grid-template-columns: 1fr 1fr;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    min-width: 0;
  }
  .card-heading {
    flex-wrap: wrap;
  }
}

/* Background glows retain motion without three independently floating cards. */
.auth-float { animation:none; background:var(--surface-solid); }
.auth-float.a { animation:float 12s ease-in-out infinite; }
@media (max-width:760px), (pointer:coarse) {
  .auth-float.a { animation:none; }
}

/* A small, consistent gap below the sticky header on every screen. */
body[data-app="dashboard"] .workspace-content {padding-top:7px}
#dashboard-market-hours {margin-top:0;margin-bottom:20px}
#deposit-history .data-table-wrap th,#deposit-history .data-table-wrap td,
#withdrawal-history .data-table-wrap th,#withdrawal-history .data-table-wrap td{padding-left:10px;padding-right:10px}
#deposit-history .data-table-wrap th,#deposit-history .data-table-wrap td,
#withdrawal-history .data-table-wrap th,#withdrawal-history .data-table-wrap td{padding-left:10px;padding-right:10px}

.profile-rank-tags{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;text-align:left;margin:0 0 16px}
.profile-rank-tags:empty{display:none}.md-profile-summary .profile-rank-tags{margin:0;justify-content:flex-start}

.profile-rank-tags{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;text-align:left;margin-bottom:16px}
.md-profile-summary .profile-rank-tags{margin-bottom:0}

.profile-shortcut { position: relative; }
.profile-shortcut-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(19rem, calc(100vw - 2rem));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  transform-origin: top right;
  animation: account-menu-arrive 160ms ease-out;
}
.profile-shortcut-panel[hidden] { display: none; }
.profile-shortcut-panel dl { margin: 0 0 14px; }
.profile-shortcut-panel dl > div, .profile-id-line, .support-owner-id {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-shortcut-panel dl > div { justify-content: space-between; padding: 5px 0; }
.profile-shortcut-panel dt, .profile-id-line, .support-owner-id { font-size: .8rem; color: var(--muted); }
.profile-shortcut-panel dd { margin: 0; font-size: .85rem; text-align: end; }
.profile-shortcut-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.public-account-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 7px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
}
.public-account-copy code { user-select: all; }
@keyframes account-menu-arrive {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-shortcut-panel { animation: none; }
}
