/* Account overview dashboard. Values follow the Account design file; colours
   come from the tenant theme tokens so every operator brand and both colour
   schemes keep working. */
.account-screen:has(.ao-grid) {
  --ao-gold: var(--accent);
  --ao-on-gold: var(--on-accent);
  --ao-line2: var(--line-strong, var(--line));
  --ao-soft: var(--soft, color-mix(in srgb, var(--ink) 6%, var(--card)));
  background: var(--paper);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.account-screen:has(.ao-grid) #account-content {
  width: min(100%, 560px);
  padding: calc(28px + env(safe-area-inset-top)) 20px
    calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  .account-screen:has(.ao-grid) #account-content {
    width: min(100%, 1160px);
  }
}

/* Header */
.account-screen:has(.ao-grid) .profile-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.account-screen:has(.ao-grid) .profile-page-header .signin-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ao-line2);
  border-radius: 14px;
  background: var(--ao-soft);
}
.account-screen:has(.ao-grid) .profile-page-header .signin-back svg {
  width: 20px;
  height: 20px;
}
.account-screen:has(.ao-grid) .profile-page-header h1 {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .account-screen:has(.ao-grid) .profile-page-header {
    justify-content: flex-start;
    gap: 16px;
  }
  .account-screen:has(.ao-grid) .profile-page-header .signin-back {
    position: static;
  }
}

/* Layout */
#account-panel-overview.account-settings-page {
  padding-top: 0;
}
.ao-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.ao-colA,
.ao-colB {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 900px) {
  .ao-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 28px;
  }
  .ao-colA,
  .ao-colB {
    gap: 20px;
  }
}

/* Profile */
.ao-prof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--ao-line2);
  border-radius: 16px;
  background: var(--card);
}
.ao-avwrap {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}
.ao-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ao-line2);
}
.account-screen .ao-avwrap .account-profile-avatar {
  position: absolute;
  inset: 4px;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.account-screen .ao-avwrap .account-profile-avatar svg {
  width: 34px;
  height: 34px;
}
.account-screen .ao-avwrap .profile-picture-edit {
  right: -8px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--paper);
  background: var(--ao-gold);
  color: var(--ao-on-gold);
}
.account-screen .ao-avwrap .profile-picture-edit svg {
  width: 12px;
  height: 12px;
}
.account-screen .ao-prof #profile-picture-editor {
  flex: 0 0 100%;
  max-width: none;
}
.account-screen .ao-prof #profile-picture-editor[hidden] {
  display: none;
}
.ao-pmeta {
  flex: 1;
  min-width: 0;
}
.account-screen .ao-name {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.ao-mail {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ao-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ao-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ao-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5a524;
}
@media (min-width: 900px) {
  .ao-prof {
    padding: 22px;
  }
  .ao-avwrap {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
  }
  .ao-name {
    font-size: 26px;
    line-height: 30px;
  }
}
@media (max-width: 430px) {
  .ao-prof {
    row-gap: 10px;
  }
  .ao-pmeta {
    flex: 1 1 calc(100% - 100px);
  }
  .ao-prof .ao-pill {
    margin-left: 88px;
  }
  .ao-mail {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Identity verification */
.ao-kyc {
  display: block;
  padding: 18px;
  border: 1px solid var(--ao-line2);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.ao-kyc-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ao-kyc-ico {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 16px;
  background: var(--ao-gold);
  color: var(--ao-on-gold);
}
.ao-kyc-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ao-kyc-t {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ao-kyc-s {
  color: var(--muted);
  font-size: 12.5px;
}
.ao-chev {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 50%;
  background: var(--ao-soft);
  color: var(--ink);
  transition:
    transform 0.18s,
    background 0.18s;
}
.ao-kyc:hover .ao-chev,
.ao-row:hover .ao-chev {
  background: var(--ao-gold);
  color: var(--ao-on-gold);
  transform: translateX(3px);
}
.ao-kst {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ao-kst li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}
.ao-kst li::before {
  content: "";
  order: -1;
  height: 4px;
  border-radius: 2px;
  background: var(--ao-line2);
}
.ao-kst li.done::before {
  background: var(--ao-gold);
}
.ao-kyc-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ao-line2);
  font-size: 12.5px;
}
.ao-kyc-note svg {
  flex: 0 0 14px;
  color: var(--ao-gold);
}
@media (max-width: 430px) {
  .ao-kyc-top .ao-pill {
    display: none;
  }
  .ao-kyc-ico {
    flex-basis: 44px;
    height: 44px;
  }
}

/* Cards */
.ao-card {
  padding: 18px;
  border: 1px solid var(--ao-line2);
  border-radius: 16px;
  background: var(--card);
}
.ao-ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.account-screen .ao-h {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ao-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ao-gold);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ao-more:hover {
  text-decoration: underline;
}
@media (min-width: 900px) {
  .ao-card,
  .ao-kyc {
    padding: 22px;
  }
}

/* Wallet */
.ao-bal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ao-bl {
  color: var(--muted);
  font-size: 12px;
}
.account-screen .ao-bv {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: -0.03em;
}
.ao-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ao-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ao-soft);
}
.ao-stat b {
  font-size: 16px;
  font-weight: 700;
}
.ao-stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.ao-acts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ao-acts-two {
  grid-template-columns: 1.2fr 1fr;
}
.ao-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid var(--ao-line2);
  border-radius: 12px;
  background: var(--ao-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.ao-act:hover {
  border-color: var(--ao-gold);
}
.ao-act-p {
  border-color: var(--ao-gold);
  background: var(--ao-gold);
  color: var(--ao-on-gold);
}
.ao-act-p:hover {
  filter: brightness(1.08);
}
@media (min-width: 900px) {
  .ao-bv {
    font-size: 40px;
    line-height: 44px;
  }
}
@media (max-width: 430px) {
  .ao-acts {
    grid-template-columns: 1fr 1fr;
  }
  .ao-act-p {
    grid-column: 1 / -1;
  }
  .ao-bv {
    font-size: 30px;
  }
}

/* Trading activity */
.ao-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.ao-bar:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.ao-bt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.ao-bt span {
  color: var(--muted);
}
.ao-trk {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ao-line2);
}
.ao-trk i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ao-gold);
}
.ao-bs {
  color: var(--muted);
  font-size: 12px;
}
.ao-bar:hover .ao-bt b {
  color: var(--ao-gold);
}

/* Notifications */
.ao-notes {
  padding-bottom: 6px;
}
.ao-nt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.ao-nt:hover .ao-ntx b {
  color: var(--ao-gold);
}
.ao-nti {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ao-soft);
}
.ao-ntx {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.ao-ntx b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ao-ntx small {
  color: var(--muted);
  font-size: 12px;
}
.ao-dot {
  flex: 0 0 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.ao-dot.unread {
  background: var(--no);
}
.ao-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 12px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.ao-empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ao-soft);
  color: var(--muted);
}
.ao-empty b {
  font-size: 14px;
  font-weight: 700;
}
.ao-empty > span:not(.ao-empty-ico) {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.ao-empty-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--ao-line2);
  border-radius: 12px;
  background: var(--ao-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ao-empty-cta:hover {
  border-color: var(--ao-gold);
}

/* Settings and support */
.ao-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}
.ao-lab {
  margin: 6px 4px -6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ao-group {
  overflow: hidden;
  border: 1px solid var(--ao-line2);
  border-radius: 16px;
  background: var(--card);
}
.ao-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.ao-group > .ao-row:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 70px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--line);
}
.ao-row:hover {
  background: var(--ao-soft);
}
.ao-ico {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--ao-soft);
  color: var(--ink);
}
.ao-lbl {
  flex: 1;
}
.ao-out .ao-ico {
  border-color: color-mix(in srgb, var(--no) 30%, var(--line));
  background: color-mix(in srgb, var(--no) 14%, var(--ao-soft));
  color: var(--no);
}

.account-screen:has(.ao-grid)
  :is(.ao-kyc, .ao-row, .ao-act, .ao-more, .ao-bar, .ao-nt):focus-visible {
  outline: 2px solid var(--ao-gold);
  outline-offset: 2px;
}
.ao-kyc .ao-pill {
  text-transform: uppercase;
}

/* Verification stage, streak and note states. */
.ao-kst li.current {
  color: var(--ink);
}
.ao-kst li.current::before {
  background: color-mix(in srgb, var(--ao-gold) 45%, var(--ao-line2));
}
.ao-bar[data-state="forfeited"] .ao-trk i {
  background: var(--muted);
}
.ao-bar[data-state="completed"] .ao-bt span {
  color: var(--ao-gold);
}
.ao-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
