:root {
  --ink: #15232a;
  --ink-soft: #52646d;
  --muted: #809099;
  --line: #dce6e9;
  --surface: #ffffff;
  --surface-soft: #f4f8f9;
  --surface-blue: #e9f2f5;
  --teal: #1f6b82;
  --teal-deep: #144d60;
  --teal-bright: #2c849e;
  --orange: #ff6b13;
  --orange-soft: #fff0e7;
  --green: #188264;
  --red: #c8493d;
  --shadow-sm: 0 8px 24px rgba(16, 62, 75, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 62, 75, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface-soft);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--surface-soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 18px;
  color: var(--ink-soft);
  text-align: center;
}

.orbit-loader {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto;
}

.orbit-loader span:first-child {
  position: absolute;
  inset: 7px;
  border: 3px solid rgba(31, 107, 130, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.orbit-loader span:last-child {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--orange-soft);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.brand-word {
  display: flex;
  align-items: baseline;
  font-size: 29px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  line-height: 1;
  transform: skewX(-5deg);
}

.brand-word .brand-cele {
  color: var(--orange);
}

.brand-word .brand-sto {
  color: var(--teal);
}

.product-lockup {
  display: grid;
  gap: 1px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.product-lockup strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.product-lockup small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.public-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(31, 107, 130, 0.1), transparent 29%),
    linear-gradient(180deg, #fff 0%, #f8fbfc 66%, #edf4f6 100%);
}

.public-shell::before {
  position: absolute;
  top: 120px;
  right: -120px;
  width: min(54vw, 770px);
  height: min(54vw, 770px);
  border: 1px solid rgba(31, 107, 130, 0.16);
  border-radius: 50%;
  content: "";
}

.public-shell::after {
  position: absolute;
  top: 180px;
  right: 2vw;
  width: min(38vw, 540px);
  height: min(38vw, 540px);
  border-radius: 50%;
  background-image: radial-gradient(rgba(31, 107, 130, 0.42) 1.35px, transparent 1.35px);
  background-size: 21px 21px;
  content: "";
  mask-image: radial-gradient(circle, #000 42%, transparent 72%);
}

.public-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.public-nav a {
  transition: color 160ms ease;
}

.public-nav a:hover {
  color: var(--teal);
}

.public-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(370px, 0.72fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 50px 0 90px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 130, 100, 0.12);
}

.hero-copy h1 {
  max-width: 690px;
  margin: 28px 0 22px;
  color: var(--ink);
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-copy > p {
  max-width: 630px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 38px;
}

.hero-point {
  padding: 16px 17px;
  border: 1px solid rgba(31, 107, 130, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.hero-point strong {
  display: block;
  color: var(--teal-deep);
  font-size: 15px;
}

.hero-point span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.auth-card {
  position: relative;
  z-index: 4;
  padding: 30px;
  border: 1px solid rgba(31, 107, 130, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.auth-card-header {
  margin-bottom: 25px;
}

.auth-card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.025em;
}

.auth-card-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 38px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--teal);
  box-shadow: 0 3px 10px rgba(18, 73, 89, 0.08);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field textarea {
  min-height: 90px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(44, 132, 158, 0.1);
}

.field-hint {
  margin-top: -3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 11px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover {
  background: var(--teal-deep);
  box-shadow: 0 8px 20px rgba(31, 107, 130, 0.2);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary-orange {
  background: var(--orange);
}

.button.primary-orange:hover {
  background: #e85a06;
  box-shadow: 0 8px 20px rgba(255, 107, 19, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-deep);
}

.button.secondary:hover {
  border-color: rgba(31, 107, 130, 0.35);
  background: var(--surface-soft);
  box-shadow: none;
}

.button.danger {
  border: 1px solid rgba(200, 73, 61, 0.18);
  background: #fff4f2;
  color: var(--red);
}

.button.danger:hover {
  background: #ffe8e4;
  box-shadow: none;
}

.button.full {
  width: 100%;
  min-height: 48px;
}

.button.icon-only {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.auth-footer-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status-indicator.offline {
  background: var(--red);
}

.portal-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface-soft);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.sidebar .brand-lockup {
  margin: 2px 8px 32px;
  gap: 10px;
}

.sidebar .brand-word {
  font-size: 21px;
  letter-spacing: -1.5px;
}

.sidebar .product-lockup {
  padding-left: 10px;
}

.sidebar .product-lockup strong {
  font-size: 10px;
}

.sidebar .product-lockup small {
  font-size: 6px;
}

.nav-section-label {
  margin: 8px 12px 9px;
  color: #9aa8ae;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.side-nav button svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.side-nav button:hover {
  background: var(--surface-soft);
  color: var(--teal-deep);
}

.side-nav button.active {
  background: var(--surface-blue);
  color: var(--teal-deep);
}

.side-nav button.active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -5px;
  width: 3px;
  border-radius: 4px;
  background: var(--orange);
  content: "";
}

.side-nav button.active svg {
  color: var(--teal);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-help {
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal-deep), var(--teal));
  color: #fff;
}

.sidebar-help strong {
  display: block;
  font-size: 13px;
}

.sidebar-help p {
  margin: 6px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-help button {
  padding: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.portal-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 52px);
  border-bottom: 1px solid rgba(220, 230, 233, 0.85);
  background: rgba(244, 248, 249, 0.88);
  backdrop-filter: blur(18px);
}

.page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.page-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(31, 107, 130, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
}

.balance-pill strong {
  color: var(--teal-deep);
  font-size: 13px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: #fff;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-chip span {
  max-width: 120px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-button {
  display: none;
}

.page-content {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 32px clamp(22px, 4vw, 52px) 70px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

.stat-card,
.panel {
  border: 1px solid rgba(31, 107, 130, 0.1);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(16, 62, 75, 0.045);
}

.stat-card {
  position: relative;
  min-height: 128px;
  padding: 19px;
  overflow: hidden;
}

.stat-card::after {
  position: absolute;
  top: -31px;
  right: -25px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(31, 107, 130, 0.05);
  content: "";
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.stat-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-blue);
  color: var(--teal);
}

.stat-icon svg {
  width: 15px;
  height: 15px;
}

.stat-value {
  display: block;
  margin-top: 15px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.stat-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.75fr);
  gap: 18px;
}

.panel {
  padding: 21px;
}

.panel + .panel {
  margin-top: 18px;
}

.quickstart {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #153f4d, #1f6b82);
  color: #fff;
}

.quickstart::before {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.quickstart h2,
.quickstart p,
.quickstart .code-block {
  position: relative;
  z-index: 1;
}

.quickstart h2 {
  margin: 0;
  font-size: 18px;
}

.quickstart > p {
  margin: 7px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.code-block {
  position: relative;
  padding: 17px 52px 17px 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(4, 24, 31, 0.45);
  color: #d7eef5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.code-copy svg {
  width: 14px;
  height: 14px;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.service-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.service-name strong {
  display: block;
  font-size: 12px;
}

.service-name span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge.pending {
  background: var(--orange-soft);
  color: #c85d1b;
}

.badge.muted {
  background: #edf1f2;
  color: #6f7f86;
}

.table-card {
  overflow: hidden;
  border: 1px solid rgba(31, 107, 130, 0.11);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(16, 62, 75, 0.045);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f3;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #fbfcfc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfdfd;
}

.table-primary {
  color: var(--ink);
  font-weight: 700;
}

.table-secondary {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.key-mask {
  color: var(--teal-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.mini-button:hover {
  border-color: rgba(31, 107, 130, 0.4);
  background: var(--surface-soft);
}

.mini-button.danger {
  color: var(--red);
}

.empty-state {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 42px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 17px;
  background: var(--surface-blue);
  color: var(--teal);
}

.empty-state-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p {
  max-width: 390px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.balance-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #174f61 0%, #227992 100%);
  color: #fff;
}

.balance-hero::before,
.balance-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.balance-hero::before {
  right: -80px;
  bottom: -130px;
  width: 320px;
  height: 320px;
}

.balance-hero::after {
  right: 80px;
  bottom: -160px;
  width: 260px;
  height: 260px;
}

.balance-hero-label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 650;
}

.balance-hero-value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 780;
  letter-spacing: -0.05em;
}

.balance-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  margin-top: 34px;
}

.balance-hero-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.balance-hero-meta strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
}

.notice-box {
  padding: 14px 15px;
  border: 1px solid rgba(255, 107, 19, 0.16);
  border-radius: 12px;
  background: var(--orange-soft);
  color: #92501f;
  font-size: 11px;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.profile-card {
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 5px auto 15px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--teal), var(--teal-bright));
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(31, 107, 130, 0.22);
}

.profile-card h2 {
  margin: 0;
  font-size: 20px;
}

.profile-card p {
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  border-bottom: 1px solid #edf2f3;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
  font-size: 11px;
}

.detail-row strong {
  color: var(--ink);
  font-size: 12px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-card {
  min-height: 180px;
  padding: 21px;
  border: 1px solid rgba(31, 107, 130, 0.11);
  border-radius: var(--radius-md);
  background: #fff;
}

.doc-card-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-blue);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.doc-card h3 {
  margin: 17px 0 7px;
  font-size: 15px;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(9, 28, 35, 0.48);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  padding: 25px;
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100% - 36px));
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(31, 107, 130, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  animation: toast-in 180ms ease-out;
}

.toast.success {
  border-left: 4px solid var(--green);
}

.toast.error {
  border-left: 4px solid var(--red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #edf2f3 25%, #f8fafb 50%, #edf2f3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1080px) {
  .public-main {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 6vw, 64px);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .public-main {
    grid-template-columns: 1fr;
    padding-top: 35px;
  }

  .public-shell::before,
  .public-shell::after {
    opacity: 0.45;
  }

  .hero-copy {
    max-width: 100%;
  }

  .auth-card {
    width: min(520px, 100%);
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 260px;
    box-shadow: var(--shadow-lg);
    transition: transform 180ms ease;
  }

  .portal-shell.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .portal-shell.mobile-nav-open::after {
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(9, 28, 35, 0.3);
    content: "";
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

@media (max-width: 640px) {
  .public-header {
    width: calc(100% - 32px);
    height: 78px;
  }

  .public-nav {
    display: none;
  }

  .public-main {
    width: calc(100% - 32px);
    padding: 35px 0 60px;
  }

  .brand-word {
    font-size: 24px;
  }

  .product-lockup {
    padding-left: 10px;
  }

  .hero-copy h1 {
    margin-top: 22px;
    font-size: 43px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
    border-radius: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .topbar {
    height: 68px;
    padding: 0 15px;
  }

  .page-heading p,
  .balance-pill span,
  .user-chip span {
    display: none;
  }

  .balance-pill {
    padding: 0 10px;
  }

  .page-content {
    padding: 22px 15px 50px;
  }

  .card-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header .button {
    width: 100%;
  }

  .panel {
    padding: 17px;
  }

  .balance-hero-meta {
    gap: 18px;
  }
}
