:root {
  --navy: #061039;
  --navy2: #101e62;
  --blue: #1b55ff;
  --blue2: #497aff;
  --sky: #dfe8ff;
  --paper: #fff;
  --bg: #f2f5ff;
  --ink: #0b1026;
  --mid: #5e6680;
  --dim: #99a1b7;
  --line: #e6eaf4;
  --green: #27a66c;
  --red: #e54855;
  --shadow: 0 18px 55px rgba(24, 49, 125, 0.14);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.toast {
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -20px);
  width: min(90vw, 390px);
  padding: 13px 15px;
  border-radius: 14px;
  background: #10183b;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #7b1724;
}
.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(28px + env(safe-area-inset-top)) 22px 28px;
  background:
    radial-gradient(
      650px 450px at 90% 0,
      rgba(63, 103, 255, 0.65),
      transparent 70%
    ),
    linear-gradient(160deg, #040a25 0%, #071547 52%, #1639b3 100%);
  color: #fff;
}
.auth-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.32;
}
.ambient-a {
  width: 320px;
  height: 320px;
  right: -160px;
  top: 180px;
  background: #497aff;
}
.ambient-b {
  width: 220px;
  height: 220px;
  left: -150px;
  bottom: 100px;
  background: #79a1ff;
}
.auth-brand,
.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.brand-mark,
.brand-mini span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #59c8ff, #315cff 55%, #d7ff65);
  font-weight: 900;
  color: #071039;
  box-shadow: 0 9px 24px rgba(71, 115, 255, 0.45);
}
.auth-brand strong {
  display: block;
  font-size: 17px;
}
.auth-brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #8ea7e9;
  margin-top: 3px;
}
.auth-copy {
  position: relative;
  z-index: 1;
  margin: 54px 2px 30px;
}
.eyebrow,
.screen-title small,
.section-head small,
.welcome small,
.section-kicker {
  font-size: 9px;
  letter-spacing: 0.17em;
  color: #78a1ff;
  font-weight: 800;
}
.auth-copy h1 {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 12px 0 16px;
}
.auth-copy h1 em {
  font-style: normal;
  color: #7da1ff;
}
.auth-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: #bac9f2;
  max-width: 430px;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  padding: 16px;
  border-radius: 25px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  max-width: 480px;
  margin: 0 auto;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: #edf1fb;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--mid);
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
}
.segmented button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(20, 48, 120, 0.1);
}
.auth-form,
.panel-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 17px;
}
.auth-form label,
.panel-form label {
  font-size: 11px;
  color: var(--mid);
  font-weight: 700;
}
.auth-form input,
.panel-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-top: 7px;
  padding: 0 13px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.auth-form input:focus,
.panel-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27, 85, 255, 0.1);
}
.primary,
.secondary {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}
.primary {
  color: #fff;
  background: linear-gradient(180deg, #3269ff, #1747df);
  box-shadow: 0 12px 24px rgba(27, 85, 255, 0.28);
}
.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid #cadaff;
}
.large {
  min-height: 50px;
  padding: 0 18px;
}
.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.input-action button {
  height: 48px;
  margin-top: 7px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 800;
}
.referral-first {
  padding: 14px;
  border: 1px solid #d7e1ff;
  border-radius: 17px;
  background: linear-gradient(140deg, #f3f7ff, #ebf2ff);
}
.referral-first .input-action input {
  background: #f7faff;
  border-color: #d4e0fb;
}
.referral-result,
.recipient-result {
  font-size: 11px;
  line-height: 1.55;
  color: var(--dim);
  padding: 9px 2px 0;
}
.referral-result.valid,
.recipient-result.valid {
  color: var(--green);
  font-weight: 700;
}
.form-note {
  font-size: 10px;
  color: var(--dim);
  text-align: center;
  margin: 0;
}
.auth-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 10px;
  color: #8da2d8;
  margin-top: 22px;
}
.auth-footer a {
  color: #fff;
}
.app-shell {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7f9ff;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  box-shadow: 0 0 70px rgba(10, 25, 74, 0.12);
}
.mobile-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: calc(env(safe-area-inset-top) + 8px) 20px 8px;
  background: rgba(247, 249, 255, 0.9);
  backdrop-filter: blur(18px);
}
.brand-mini span {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}
.brand-mini b {
  font-size: 15px;
}
.header-actions {
  display: flex;
  gap: 7px;
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}
.screen {
  display: none;
  padding: 18px 18px 28px;
}
.screen.active {
  display: block;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 3px 17px;
}
.welcome h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #162a75, #3972ff);
  color: #fff;
  font-weight: 900;
}
.avatar.large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 22px;
}
.balance-card {
  position: relative;
  overflow: hidden;
  min-height: 202px;
  padding: 21px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(
      300px 150px at 90% 10%,
      rgba(105, 146, 255, 0.75),
      transparent 65%
    ),
    linear-gradient(140deg, #07184f, #0d2eb0 65%, #3972ff);
  box-shadow: 0 22px 45px rgba(24, 58, 175, 0.3);
}
.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #bdcbf6;
}
.eye {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.balance-card > strong {
  display: block;
  font-size: 37px;
  letter-spacing: -0.04em;
  margin: 14px 0 10px;
}
.balance-meta {
  display: flex;
  gap: 7px;
}
.balance-meta span {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 9px;
}
.balance-card svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 92px;
}
.balance-card path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}
.balance-card .glow {
  stroke: #7be4ff;
  filter: drop-shadow(0 0 7px #5dd6ff);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 15px 0 25px;
}
.quick-grid button {
  border: 0;
  background: transparent;
}
.quick-grid i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 7px;
  border-radius: 17px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 9px 25px rgba(39, 68, 151, 0.11);
  font-size: 19px;
  font-style: normal;
}
.quick-grid span {
  font-size: 10px;
  color: var(--mid);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 22px 2px 11px;
}
.section-head h3 {
  font-size: 16px;
  margin: 4px 0 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.referral-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid #dae3ff;
  border-radius: 19px;
  background: linear-gradient(145deg, #fff, #eef3ff);
  box-shadow: 0 10px 30px rgba(37, 65, 145, 0.07);
}
.referral-card small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.referral-card strong {
  display: block;
  font-size: 20px;
  color: var(--blue);
  margin: 6px 0;
}
.referral-card p {
  font-size: 10px;
  color: var(--mid);
  margin: 0;
}
.code-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(145deg, #2257f4, #0d1f6c);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 12px 0;
}
.metric-grid.two {
  grid-template-columns: 1fr 1fr;
}
.metric-grid > div {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.metric-grid small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-bottom: 6px;
}
.metric-grid strong {
  font-size: 14px;
}
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.transaction-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.transaction-icon {
  width: 37px;
  height: 37px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 900;
}
.transaction-icon.debit {
  background: #fff0f2;
  color: var(--red);
}
.transaction-body {
  min-width: 0;
  flex: 1;
}
.transaction-body b {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transaction-body small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-top: 4px;
}
.transaction-amount {
  text-align: right;
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
}
.transaction-amount.debit {
  color: var(--red);
}
.transaction-amount small {
  display: block;
  color: var(--dim);
  font-size: 8px;
  margin-top: 4px;
}
.screen-title {
  margin: 4px 2px 19px;
}
.screen-title h2 {
  font-size: 26px;
  margin: 7px 0 7px;
}
.screen-title p {
  font-size: 11px;
  color: var(--mid);
  line-height: 1.6;
  margin: 0;
}
.wallet-total {
  padding: 22px;
  border-radius: 23px;
  background: linear-gradient(145deg, #071647, #1d4cec);
  color: #fff;
  box-shadow: var(--shadow);
}
.wallet-total span {
  font-size: 10px;
  color: #b8c9ff;
}
.wallet-total > strong {
  display: block;
  font-size: 34px;
  margin: 12px 0 18px;
}
.wallet-total div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wallet-total button {
  height: 39px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}
.asset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.asset-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2d68ff, #10256f);
  color: #fff;
  font-weight: 900;
}
.asset-logo.outline {
  background: #f1f4fb;
  color: #8790a9;
}
.asset-card div:nth-child(2) {
  flex: 1;
}
.asset-card b {
  display: block;
  font-size: 13px;
}
.asset-card small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-top: 4px;
}
.asset-card > strong {
  font-size: 13px;
}
.asset-card > span {
  font-size: 10px;
  color: var(--dim);
}
.asset-card.disabled {
  opacity: 0.67;
}
.notice-card {
  padding: 13px 14px;
  margin-top: 13px;
  border: 1px solid #d8e2ff;
  border-radius: 15px;
  background: #edf3ff;
  color: #3653a7;
  font-size: 11px;
  line-height: 1.6;
}
.panel-form {
  padding: 17px;
  border-radius: 21px;
  box-shadow: 0 12px 30px rgba(29, 54, 125, 0.07);
}
.recipient-result {
  padding: 12px;
  border-radius: 13px;
  background: #f5f7fc;
}
.transfer-summary {
  display: flex;
  justify-content: space-between;
  padding: 13px;
  border-radius: 13px;
  background: #f2f5ff;
  color: var(--mid);
  font-size: 11px;
}
.transfer-summary strong {
  color: var(--blue);
}
.privacy-chip {
  padding: 10px 12px;
  border-radius: 13px;
  background: #eaf0ff;
  color: #3453a8;
  font-size: 10px;
  line-height: 1.5;
}
.network-tree {
  margin-top: 14px;
}
.network-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(32, 55, 122, 0.06);
}
.network-person.sponsor {
  border-color: #a9bcff;
  background: linear-gradient(145deg, #eef3ff, #fff);
}
.network-person.self {
  color: #fff;
  border: 0;
  background: linear-gradient(145deg, #0a1950, #2458f0);
}
.network-person .mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e9efff;
  color: var(--blue);
  font-weight: 900;
  flex: none;
}
.network-person.self .mini-avatar {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.network-person .person-copy {
  min-width: 0;
  flex: 1;
}
.network-person b {
  display: block;
  font-size: 12px;
}
.network-person small {
  display: block;
  color: var(--dim);
  font-size: 9px;
  margin-top: 4px;
}
.network-person.self small {
  color: #b9c9ff;
}
.network-person .counts {
  text-align: right;
  font-size: 9px;
  color: var(--dim);
}
.network-person.self .counts {
  color: #cad6ff;
}
.sponsor-bridge,
.tree-bridge {
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: #aebce2;
}
.tree-children {
  position: relative;
  margin-left: 17px;
  padding-left: 16px;
  border-left: 1px solid #cbd5ef;
}
.tree-child {
  position: relative;
  margin-top: 9px;
}
.tree-child:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 1px;
  left: -16px;
  top: 27px;
  background: #cbd5ef;
}
.loading-card {
  text-align: center;
  padding: 30px;
  color: var(--dim);
  font-size: 11px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 13px;
}
.filter-tabs button {
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  background: #e9edf7;
  color: var(--mid);
  font-size: 10px;
  font-weight: 800;
}
.filter-tabs button.active {
  background: var(--navy);
  color: #fff;
}
.profile-card {
  text-align: center;
  padding: 25px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(
      220px 120px at 80% 0,
      rgba(87, 127, 255, 0.7),
      transparent 70%
    ),
    linear-gradient(145deg, #071443, #163fb7);
}
.profile-card .avatar {
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.14);
}
.profile-card h2 {
  margin: 0;
}
.profile-card p {
  font-size: 10px;
  color: #b8c8f7;
}
.status-chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(197, 255, 93, 0.16);
  color: #d7ff80;
  font-size: 9px;
}
.profile-list {
  margin-top: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
}
.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.profile-list div:last-child {
  border: 0;
}
.profile-list span {
  color: var(--dim);
}
.profile-list b {
  text-align: right;
}
.security-note {
  padding: 15px;
  margin-top: 13px;
  border-radius: 17px;
  background: #edf3ff;
  color: #3956a4;
}
.security-note b {
  font-size: 12px;
}
.security-note p {
  font-size: 10px;
  line-height: 1.65;
  margin: 6px 0 0;
}
.danger-button {
  width: 100%;
  height: 49px;
  margin-top: 14px;
  border: 1px solid #ffd0d5;
  border-radius: 15px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 800;
}
.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(560px, 100%);
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 8px 8px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.bottom-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #929bb2;
  font-size: 9px;
}
.bottom-nav i {
  display: block;
  font-style: normal;
  font-size: 18px;
  margin-bottom: 3px;
}
.bottom-nav button.active {
  color: var(--blue);
  font-weight: 800;
}
.bottom-nav .nav-main i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #3972ff, #0c2ba4);
  box-shadow: 0 9px 22px rgba(27, 85, 255, 0.35);
}
@media (min-width: 700px) {
  body {
    background: #e7ecfb;
  }
  .auth-shell {
    gap: 20px;
    padding: 42px max(5vw, 50px);
  }
  .auth-brand {
    grid-column: 1;
  }
  .auth-copy {
    grid-column: 1;
    align-self: center;
  }
  .auth-card {
    grid-column: 2;
    grid-row: 1/4;
    align-self: center;
    width: 100%;
  }
  .auth-footer {
    grid-column: 1;
    text-align: left;
  }
  .auth-copy h1 {
    font-size: 52px;
  }
  .app-shell {
    margin: 22px auto;
    border-radius: 30px;
    overflow: hidden;
    min-height: calc(100vh - 44px);
  }
  .bottom-nav {
    bottom: 22px;
    border-radius: 0 0 30px 30px;
  }
}

.consent-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 12px !important;
}
.consent-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

/* ===== v8.5 FRONTEND QA · premium dark system ===== */
:root {
  --navy: #07142f;
  --navy2: #0d265d;
  --blue: #2f6eff;
  --blue2: #68a0ff;
  --sky: #dce9ff;
  --paper: #0b1732;
  --bg: #030817;
  --ink: #f7f9ff;
  --mid: #aebdde;
  --dim: #7f91b8;
  --line: rgba(145, 174, 236, 0.18);
  --green: #2ee5a8;
  --red: #ff6884;
  --amber: #ffbe59;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}
html {
  background: #030817;
  color-scheme: dark;
}
body {
  background:
    radial-gradient(circle at 90% 0, rgba(47, 110, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #020611, #071126 62%, #071a3a);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(92, 146, 255, 0.26);
  outline-offset: 2px;
}
.hidden {
  display: none !important;
}
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  top: max(18px, env(safe-area-inset-top));
  transform: translateX(-50%) translateY(-12px);
  width: min(400px, calc(100% - 28px));
  padding: 13px 15px;
  border-radius: 15px;
  background: rgba(8, 24, 53, 0.98);
  border: 1px solid rgba(139, 173, 236, 0.28);
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  border-color: rgba(255, 104, 132, 0.45);
  background: rgba(62, 18, 38, 0.98);
}
.auth-shell {
  min-height: 100vh;
  padding: calc(22px + env(safe-area-inset-top)) 20px
    calc(30px + env(safe-area-inset-bottom));
  max-width: 520px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.auth-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-a {
  width: 340px;
  height: 340px;
  right: -180px;
  top: -190px;
  background: rgba(47, 110, 255, 0.19);
}
.ambient-b {
  width: 240px;
  height: 240px;
  left: -180px;
  top: 42%;
  background: rgba(85, 218, 253, 0.07);
}
.auth-brand,
.brand-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 2;
}
.brand-logo {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.auth-brand .brand-logo {
  height: 34px;
}
.brand-mark,
.brand-mini span {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8bd8ff, #4d8cff 47%, #3840d9);
  font-weight: 900;
  color: #071126;
  box-shadow: 0 12px 26px rgba(47, 110, 255, 0.35);
}
.auth-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
}
.auth-brand span {
  display: block;
  color: var(--blue2);
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-top: 3px;
}
.auth-copy {
  position: relative;
  z-index: 2;
  margin: 38px 0 22px;
}
.eyebrow,
.section-kicker {
  color: var(--blue2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.auth-copy h1 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 10px 0;
  color: #fff;
}
.auth-copy h1 em {
  font-style: normal;
  color: #8fc2ff;
}
.auth-copy p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--dim);
  margin: 0;
}
.auth-card {
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: 27px;
  background: linear-gradient(
    145deg,
    rgba(14, 32, 69, 0.97),
    rgba(5, 17, 40, 0.98)
  );
  border: 1px solid rgba(139, 173, 236, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.segmented,
.login-region,
.filter-tabs {
  display: flex;
  padding: 5px;
  gap: 4px;
  border-radius: 14px;
  background: rgba(2, 8, 22, 0.72);
  border: 1px solid var(--line);
}
.segmented button,
.login-region button,
.filter-tabs button {
  min-height: 42px;
  flex: 1;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}
.segmented button.active,
.login-region button.active,
.filter-tabs button.active {
  color: #fff;
  background: linear-gradient(145deg, #2f6eff, #5b77ff);
  box-shadow: 0 9px 18px rgba(47, 110, 255, 0.28);
}
.auth-form,
.panel-form {
  display: grid;
  gap: 16px;
  margin-top: 17px;
}
.auth-form.busy {
  opacity: 0.68;
}
.auth-form label,
.panel-form label {
  display: grid;
  gap: 8px;
  color: #dce8ff;
  font-size: 12px;
  font-weight: 800;
}
.auth-form input,
.panel-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(139, 173, 236, 0.2);
  background: rgba(3, 11, 27, 0.82);
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.auth-form input:focus,
.panel-form input:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(47, 110, 255, 0.12);
}
.form-note {
  margin: 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
}
.region-note {
  margin-top: -8px;
}
.primary,
.secondary,
.danger-button {
  border: 0;
  min-height: 54px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
}
.primary {
  background: linear-gradient(145deg, #3377ff, #3159e7);
  color: #fff;
  box-shadow: 0 14px 26px rgba(47, 110, 255, 0.28);
}
.secondary {
  background: rgba(15, 35, 76, 0.88);
  color: #dce8ff;
  border: 1px solid var(--line);
}
.danger-button {
  width: 100%;
  background: rgba(255, 104, 132, 0.12);
  color: #ff8ba0;
  border: 1px solid rgba(255, 104, 132, 0.24);
}
.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.auth-links button,
.back-link {
  border: 0;
  background: transparent;
  color: var(--blue2);
  font-size: 11px;
  font-weight: 800;
}
.auth-links span {
  width: 1px;
  height: 12px;
  background: var(--line);
}
.recovery-head {
  display: grid;
  gap: 5px;
}
.recovery-head b {
  font-size: 20px;
}
.recovery-head p {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}
.recovery-verify {
  display: grid;
  gap: 14px;
}
.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.input-action button {
  min-height: 56px;
  min-width: 68px;
  border: 1px solid rgba(96, 146, 255, 0.3);
  background: rgba(47, 110, 255, 0.14);
  color: #bcd4ff;
  border-radius: 14px;
  font-weight: 900;
}
.referral-first {
  background: linear-gradient(
    145deg,
    rgba(10, 27, 60, 0.78),
    rgba(6, 18, 44, 0.9)
  );
  display: grid;
  gap: 12px;
  border-color: rgba(139, 173, 236, 0.22);
}
.referral-first .input-action input {
  background: rgba(8, 23, 52, 0.82);
  border-color: rgba(139, 173, 236, 0.24);
  color: #eef5ff;
}
.referral-result,
.recipient-result {
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 190, 89, 0.08);
  border: 1px solid rgba(255, 190, 89, 0.2);
  color: #e0c996;
  font-size: 11px;
  line-height: 1.55;
}
.referral-result.valid,
.recipient-result.valid {
  background: rgba(46, 229, 168, 0.08);
  border-color: rgba(46, 229, 168, 0.23);
  color: #9be4cd;
}
.consent-row {
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
}
.consent-row input {
  width: 22px !important;
  height: 22px !important;
  min-height: 0 !important;
  accent-color: var(--blue);
}
.auth-footer {
  text-align: center;
  margin-top: 18px;
  color: var(--dim);
  font-size: 10px;
}
.auth-footer a {
  color: var(--blue2);
}
.text-link-button {
  border: 0;
  background: transparent;
  color: var(--blue2);
  font-size: 11px;
  font-weight: 700;
  justify-self: center;
  padding: 2px 0;
  min-height: auto;
  line-height: 1.5;
}
.text-link-button strong {
  color: #fff;
}
.app-shell {
  max-width: 560px;
  margin: auto;
  min-height: 100vh;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0, rgba(47, 110, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #020611 0%, #071126 52%, #071a3a 100%);
  color: var(--ink);
}
.mobile-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 23, 0.98),
    rgba(3, 8, 23, 0.86),
    transparent
  );
  backdrop-filter: blur(14px);
}
.brand-mini b {
  letter-spacing: 2.5px;
}
.brand-mini .brand-logo {
  height: 26px;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.icon-button,
.profile-button,
.eye {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 31, 66, 0.88);
  color: #fff;
  font-weight: 900;
}
.profile-button {
  background: linear-gradient(145deg, #2f6eff, #6555eb);
  position: relative;
}
.status-banner {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 18px 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 190, 89, 0.09);
  border: 1px solid rgba(255, 190, 89, 0.25);
  color: #cdb981;
}
.status-banner b {
  color: var(--amber);
  font-size: 11px;
}
.status-banner span {
  font-size: 9.5px;
  line-height: 1.45;
}
main {
  padding: 0 8px;
}
.screen {
  display: none;
  animation: fadeIn 0.2s ease;
}
.screen.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}
.welcome small,
.screen-title small,
.section-head small {
  color: var(--blue2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.welcome h2,
.screen-title h2 {
  margin: 6px 0 0;
  font-size: 28px;
  letter-spacing: -1px;
}
.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f6eff, #6555eb);
  color: #fff;
  font-weight: 900;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 17px;
}
.avatar.large {
  width: 74px;
  height: 74px;
  border-radius: 25px;
  font-size: 24px;
}
.balance-card,
.wallet-total,
.reward-hero {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0, rgba(85, 218, 253, 0.15), transparent 30%),
    linear-gradient(140deg, #07142f, #0d3489 58%, #1b67ff);
  border: 1px solid rgba(145, 183, 255, 0.25);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.balance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #b7c9e9;
  font-size: 10px;
}
.balance-card > strong,
.wallet-total > strong,
.reward-hero > strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 18px 0 12px;
}
.balance-meta {
  display: flex;
  gap: 7px;
}
.balance-meta span {
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 8px;
  color: #d9e7ff;
}
.balance-card svg {
  width: 100%;
  height: 65px;
  margin-top: 10px;
  overflow: visible;
}
.balance-card svg path {
  fill: none;
  stroke: rgba(143, 204, 255, 0.72);
  stroke-width: 2;
}
.balance-card svg path.glow {
  stroke: rgba(89, 130, 255, 0.28);
  stroke-width: 8;
  filter: blur(5px);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 17px 0;
}
.quick-grid button {
  border: 0;
  background: transparent;
  color: #dce8ff;
  font-size: 9px;
  font-weight: 800;
}
.quick-grid i {
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(92, 145, 255, 0.42),
    rgba(7, 21, 49, 0.92)
  );
  border: 1px solid rgba(116, 163, 255, 0.36);
  font-style: normal;
  font-size: 18px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 22px 0 11px;
}
.section-head h3 {
  font-size: 17px;
  margin: 5px 0 0;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue2);
  font-size: 10px;
  font-weight: 900;
}
.referral-card,
.asset-card,
.notice-card,
.privacy-chip,
.security-note,
.profile-card,
.profile-list,
.loading-card,
.rank-card,
.reward-breakdown article {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(14, 31, 66, 0.95),
    rgba(6, 18, 42, 0.97)
  );
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}
.referral-card {
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.referral-card small {
  color: var(--blue2);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.referral-card strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}
.referral-card p {
  font-size: 9.5px;
  color: var(--dim);
  margin: 5px 0 0;
}
.code-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: rgba(47, 110, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--blue2);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.metric-grid.two {
  grid-template-columns: 1fr;
}
.metric-grid > div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(13, 30, 64, 0.72);
  border: 1px solid var(--line);
}
.metric-grid small {
  display: block;
  color: var(--dim);
  font-size: 8px;
}
.metric-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}
.reward-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.reward-snapshot > div {
  padding: 16px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: rgba(10, 27, 60, 0.86);
}
.reward-snapshot small,
.reward-snapshot span {
  display: block;
  color: var(--dim);
  font-size: 9px;
}
.reward-snapshot strong {
  display: block;
  font-size: 18px;
  margin: 9px 0 6px;
}
.transaction-list {
  display: grid;
  gap: 8px;
}
.transaction-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: rgba(10, 27, 60, 0.8);
}
.transaction-icon {
  width: 37px;
  height: 37px;
  border-radius: 13px;
  background: rgba(46, 229, 168, 0.1);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}
.transaction-icon.debit {
  background: rgba(255, 104, 132, 0.1);
  color: var(--red);
}
.transaction-icon.held {
  background: rgba(255, 104, 132, 0.1);
  color: var(--red);
}
.transaction-icon.pending {
  background: rgba(255, 190, 89, 0.1);
  color: var(--amber);
}
.transaction-body {
  min-width: 0;
}
.transaction-body b {
  font-size: 11px;
}
.transaction-body small,
.transaction-amount small {
  display: block;
  color: var(--dim);
  font-size: 8.5px;
  margin-top: 4px;
}
.transaction-amount {
  text-align: right;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 900;
}
.transaction-amount.debit {
  color: var(--red);
}
.screen-title {
  margin: 15px 0 17px;
}
.screen-title p {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.wallet-total > div {
  display: flex;
  gap: 8px;
}
.wallet-total > div button {
  flex: 1;
  min-height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.13);
  color: #fff;
  font-weight: 900;
}
.asset-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 15px;
  margin-top: 10px;
}
.asset-logo {
  width: 43px;
  height: 43px;
  border-radius: 15px;
  background: rgba(47, 110, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}
.asset-logo.outline {
  background: rgba(255, 190, 89, 0.08);
  color: var(--amber);
}
.asset-card b {
  display: block;
  font-size: 11px;
}
.asset-card small {
  color: var(--dim);
  font-size: 8px;
}
.asset-card > strong {
  font-size: 11px;
}
.asset-card.disabled {
  opacity: 0.62;
}
.notice-card,
.privacy-chip,
.security-note {
  padding: 13px;
  margin-top: 12px;
  color: #aebdde;
  font-size: 10.5px;
  line-height: 1.6;
}
.notice-card b {
  color: #fff;
}
.transfer-summary {
  display: flex;
  justify-content: space-between;
  padding: 13px;
  border-radius: 14px;
  background: rgba(47, 110, 255, 0.08);
  border: 1px solid var(--line);
}
.rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
}
.rank-card > span {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(47, 110, 255, 0.16);
  color: var(--blue2);
  font-size: 18px;
}
.rank-card small {
  color: var(--dim);
  font-size: 8px;
}
.rank-card b {
  display: block;
  font-size: 15px;
  margin-top: 3px;
}
.rank-card p {
  color: var(--dim);
  font-size: 9px;
  margin: 4px 0 0;
}
.reward-tabs {
  margin: 13px 0;
}
.reward-hero small {
  color: #b7c9e9;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.reward-hero > div:first-child b {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}
.reward-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}
.reward-metrics span {
  padding: 10px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.13);
  color: #b7c9e9;
  font-size: 8px;
}
.reward-metrics b {
  display: block;
  color: #fff;
  font-size: 11px;
  margin-top: 5px;
}
.reward-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.reward-breakdown article {
  padding: 14px;
}
.reward-breakdown small,
.reward-breakdown span {
  display: block;
  color: var(--dim);
  font-size: 8.5px;
}
.reward-breakdown strong {
  display: block;
  font-size: 16px;
  margin: 8px 0;
}
.reward-breakdown span {
  margin-top: 4px;
}
.green {
  color: var(--green) !important;
}
.red {
  color: var(--red) !important;
}
.network-tree {
  overflow-x: auto;
  gap: 8px;
  display: grid;
  padding: 8px 2px 14px;
}
.network-person {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(10, 27, 60, 0.85);
  border: 1px solid var(--line);
}
.network-person.self {
  border-color: rgba(96, 146, 255, 0.58);
  background: linear-gradient(
    145deg,
    rgba(29, 76, 180, 0.72),
    rgba(10, 34, 80, 0.9)
  );
}
.network-person.sponsor {
  opacity: 0.9;
}
.mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: none;
}
.person-copy {
  flex: 1;
  min-width: 0;
}
.person-copy b {
  font-size: 11px;
}
.person-copy small {
  display: block;
  color: var(--dim);
  font-size: 8px;
  margin-top: 4px;
}
.counts {
  text-align: right;
  color: #bcd0f4;
  font-size: 8px;
  line-height: 1.5;
}
.tree-children {
  margin-left: 28px;
  padding-left: 14px;
  border-left: 1px solid rgba(96, 146, 255, 0.28);
  display: grid;
  gap: 8px;
}
.tree-child {
  display: grid;
  gap: 8px;
}
.tree-bridge,
.sponsor-bridge {
  width: 1px;
  height: 20px;
  background: rgba(96, 146, 255, 0.34);
  margin-left: 28px;
}
.loading-card {
  padding: 22px;
  text-align: center;
  color: var(--dim);
  font-size: 11px;
}
.profile-card {
  text-align: center;
  padding: 22px;
}
.profile-card .avatar {
  margin: auto;
}
.profile-card h2 {
  margin: 11px 0 4px;
}
.profile-card p {
  margin: 0;
  color: var(--dim);
}
.status-chip {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(46, 229, 168, 0.1);
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
}
.status-chip.warn {
  background: rgba(255, 190, 89, 0.1);
  color: var(--amber);
}
.profile-list {
  margin: 12px 0;
  padding: 4px 16px;
}
.profile-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.profile-list > div:last-child {
  border: 0;
}
.profile-list span {
  color: var(--dim);
  font-size: 10px;
}
.profile-list b {
  font-size: 10.5px;
  text-align: right;
}
.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(532px, calc(100% - 24px));
  height: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px;
  border-radius: 25px;
  background: linear-gradient(
    145deg,
    rgba(14, 31, 68, 0.98),
    rgba(4, 13, 32, 0.99)
  );
  border: 1px solid rgba(151, 184, 245, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #7585a9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 900;
}
.bottom-nav i {
  width: 37px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 17px;
}
.bottom-nav button.active {
  color: #fff;
}
.bottom-nav button.active i {
  background: linear-gradient(145deg, #75b8ff, #356cff 53%, #4d48ef);
  box-shadow: 0 8px 18px rgba(47, 110, 255, 0.36);
}
.bottom-nav .nav-main i {
  width: 49px;
  height: 49px;
  margin-top: 0;
  border-radius: 17px;
  background: linear-gradient(145deg, #2f6eff, #64c7ff);
  color: #fff;
  box-shadow: 0 12px 25px rgba(47, 110, 255, 0.48);
}
@media (max-width: 380px) {
  .auth-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .auth-copy h1 {
    font-size: 27px;
  }
  .quick-grid i {
    width: 44px;
    height: 44px;
  }
  .reward-breakdown {
    grid-template-columns: 1fr;
  }
  .reward-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .transaction-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .transaction-amount {
    grid-column: 2;
    text-align: left;
  }
  .bottom-nav {
    width: calc(100% - 12px);
  }
}
/* ===== FRONTEND QA · form legibility / touch / focus ===== */
.section-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue2);
  outline-offset: 3px;
}
.auth-form label,
.panel-form label {
  font-size: 12px;
  color: var(--sky);
}
.auth-form input,
.panel-form input {
  height: 56px;
  border-radius: 16px;
  font-size: 16px;
  padding-left: 15px;
  padding-right: 15px;
}
.auth-form .primary.large {
  min-height: 56px;
  font-size: 13px;
}
.auth-links {
  justify-content: center;
  margin: 1px 0 2px;
}
.text-button,
.icon-button,
.bottom-nav button,
.quick-grid button {
  min-width: 44px;
  min-height: 44px;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 54px;
}
.password-reveal {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dim);
  display: grid;
  place-items: center;
  font-size: 15px;
}
@media (max-width: 380px) {
  .auth-form input,
  .panel-form input {
    height: 54px;
  }
  .input-action button {
    min-height: 54px;
  }
  .auth-form .primary.large {
    min-height: 54px;
  }
}

/* ===== FRONTEND QA · coin capability parity ===== */
.wallet-subhead {
  margin-top: 20px;
}
.coin-assets {
  display: grid;
  gap: 9px;
}
.coin-assets .asset-card {
  margin-top: 0;
}
.mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(96, 146, 255, 0.08);
  color: var(--blue2);
  font-size: 8.5px;
  font-weight: 900;
}
.mini-status.ok {
  color: var(--green);
  border-color: rgba(46, 229, 168, 0.22);
  background: rgba(46, 229, 168, 0.08);
}
.mini-status.warn {
  color: var(--amber);
  border-color: rgba(255, 190, 89, 0.22);
  background: rgba(255, 190, 89, 0.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: saturate(0.6);
  transform: none !important;
}

/* ===== FRONTEND QA FINAL · mobile readability / state clarity ===== */
button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: saturate(0.6);
  transform: none !important;
}
.auth-form {
  gap: 16px;
}
.auth-form label,
.panel-form label {
  font-size: 12px;
  line-height: 1.35;
}
.auth-form input,
.panel-form input {
  font-size: 16px;
}
.welcome small,
.screen-title small,
.section-head small {
  font-size: 9px;
}
.quick-grid span {
  font-size: 10.5px;
  line-height: 1.3;
}
.bottom-nav button {
  font-size: 9px;
}
.metric-grid small {
  font-size: 9px;
}
.reward-snapshot small,
.reward-snapshot span {
  font-size: 9.5px;
}
.transaction-body small,
.transaction-amount small {
  font-size: 9px;
}
.person-copy small,
.counts {
  font-size: 9px;
}
.asset-card small {
  font-size: 9px;
}
.rank-card small {
  font-size: 9px;
}
.rank-card p {
  font-size: 9.5px;
}
.reward-hero small {
  font-size: 9px;
}
.reward-metrics span {
  font-size: 9px;
}
.reward-breakdown small,
.reward-breakdown span {
  font-size: 9px;
}
@media (max-width: 380px) {
  .bottom-nav button {
    font-size: 8.5px;
  }
  .quick-grid span {
    font-size: 10px;
  }
}

/* ===== FRONTEND QA · coin transfer form ===== */
.panel-form select {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 7px;
  padding: 0 42px 0 15px;
  outline: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  appearance: auto;
}
.panel-form select:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 4px rgba(47, 110, 255, 0.12);
}
.coin-transfer-entry {
  width: 100%;
  margin-top: 12px;
}
.coin-request-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 99px;
  background: rgba(96, 146, 255, 0.08);
  color: var(--blue2);
  font-size: 8.5px;
  font-weight: 900;
}
.coin-request-status.ok {
  color: var(--green);
  background: rgba(46, 229, 168, 0.08);
}
.coin-request-status.warn {
  color: var(--amber);
  background: rgba(255, 190, 89, 0.08);
}
.coin-request-status.bad {
  color: var(--red);
  background: rgba(255, 104, 132, 0.08);
}

/* Keep the auth hero copy locked to a mobile-style left edge on all widths. */
.auth-copy {
  width: 100%;
  max-width: none;
}
.auth-copy h1,
.auth-copy p {
  width: 100%;
  text-align: left;
}
.auth-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-copy h1 span {
  display: block;
  width: 100%;
}
.auth-copy h1 .hero-copy-accent {
  margin-top: 2px;
  color: #8fc2ff;
}

/* ── Import Solana Wallet Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9000;
}
.modal-backdrop.hidden {
  display: none;
}
.modal-sheet {
  background: #0b1630;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  color: #f7f9ff;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}
.modal-desc {
  color: #dde6ff;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.modal-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(145, 174, 236, 0.16);
  border-radius: 10px;
  color: #f7f9ff;
  font-size: 12px;
  padding: 11px 13px;
  outline: none;
}
.modal-input:focus {
  border-color: rgba(93, 141, 255, 0.5);
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .secondary {
  flex: 1;
}
.modal-actions .primary {
  flex: 2;
}
.icon-btn {
  background: none;
  border: none;
  color: #dde6ff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
