:root {
  --color-text: #111827;
  --color-muted: #747d8a;
  --color-subtle: #929ba8;
  --color-border: #e4e8ec;
  --color-progress: #e9edf1;
  --color-mint: #e8fbef;
  --color-green: #a5f779;
  --color-green-dark: #226c4d;
  --color-navy: #111827;
  --color-eyebrow: #858d99;
  --color-subtitle: #727b89;
  --color-usage: #707a89;
  --color-avatar: #f3f4f6;
  --color-avatar-border: #e5e7eb;
  --color-badge-bg: #e8faef;
  --color-badge-border: #8ddcb5;
  --color-badge-text: #246c4c;
  --color-secondary-bg: #f5f6f9;
  --color-secondary-border: #e1e4e9;
  --color-secondary-text: #697381;
  --color-edge: #1a1d22;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --page-width: 710px;
  --content-width: 640px;
  --space-page-left: 38px;
  --space-page-right: 32px;
  --radius-card: 29px;
  --radius-button: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--color-edge);
}

.page {
  width: var(--page-width);
  max-width: 100%;
  min-height: 1220px;
  margin: 0 auto;
  padding: 37px var(--space-page-right) 29px var(--space-page-left);
  background: #ffffff;
  flex: 1 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: -3px;
  width: calc(100% + 3px);
  min-height: 59px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 59px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: block;
  height: 59px;
  width: auto;
  aspect-ratio: 600 / 127;
  flex-shrink: 0;
  object-fit: contain;
}

.profile-menu {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4f5f7;
  border: 1.5px solid #e3e6ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar svg {
  display: block;
  transform: translateY(1px);
}

.profile-chevron {
  display: block;
  flex-shrink: 0;
}

.dashboard-intro {
  margin-top: 49px;
}

.eyebrow {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 3.8px;
  color: var(--color-eyebrow);
  line-height: 25px;
  text-transform: uppercase;
  text-align: left;
}

.page-title {
  margin: 15px 0 5px;
  font-size: 66px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--color-text);
  white-space: nowrap;
}

.page-subtitle {
  margin: 0 0 25px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.7px;
  color: var(--color-subtitle);
  text-align: left;
  white-space: nowrap;
}

.usage-card {
  width: var(--content-width);
  max-width: 100%;
  height: 182px;
  padding: 31px 28px 28px 29px;
  background: #ffffff;
  border: 1.5px solid #eceff2;
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(20, 35, 50, 0.02);
  display: flex;
  flex-direction: column;
}

.usage-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.usage-heading {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--color-usage);
  line-height: 32px;
}

.usage-count {
  margin: 2px 0 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.usage-count-main {
  font-size: 54px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 60px;
}

.usage-count-max {
  font-size: 30px;
  font-weight: 400;
  color: var(--color-subtle);
  line-height: 1;
  padding-bottom: 8px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 46px;
  margin-top: 0;
  border-radius: 999px;
  background: var(--color-badge-bg);
  border: 1.5px solid var(--color-badge-border);
  color: var(--color-badge-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

.progress-track {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: var(--color-progress);
}

.progress-fill {
  width: 12.5%;
  height: 100%;
  border-radius: 999px;
  background: var(--color-green);
}

.empty-card {
  width: var(--content-width);
  max-width: 100%;
  height: 656px;
  margin-top: 23px;
  padding: 28px 27px 24px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 12px rgba(20, 35, 50, 0.025);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-card--entry,
.empty-card--found {
  height: auto;
  min-height: 656px;
}

.empty-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wallet-illustration {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--color-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-body {
  display: block;
  width: 100px;
  height: 92px;
  margin-top: 8px;
}

.chain-badge {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(34, 108, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-badge svg {
  display: block;
}

.empty-title {
  margin: 11px 0 12px;
  width: 460px;
  max-width: 100%;
  font-size: 49px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -1.7px;
  color: var(--color-text);
  text-align: center;
  flex-shrink: 0;
}

.empty-title--found {
  width: 580px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -1.3px;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.token-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px 0 8px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: #f7f8fa;
}

.token-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.token-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--color-text);
  line-height: 1;
}

.token-ticker {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--color-usage);
  line-height: 1;
}

.empty-description {
  margin: 0 0 19px;
  width: 520px;
  max-width: 100%;
  font-size: 28.5px;
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: -0.55px;
  color: var(--color-muted);
  text-align: center;
  flex-shrink: 0;
}

.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 80px;
  padding: 0;
  border-radius: var(--radius-button);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

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

.wallet-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wallet-input {
  width: 100%;
  height: 80px;
  margin: 0;
  padding: 0 24px;
  border: 1.5px solid var(--color-secondary-border);
  border-radius: var(--radius-button);
  background: var(--color-secondary-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  outline: none;
}

.wallet-input::placeholder {
  color: var(--color-subtle);
}

.wallet-input:focus {
  border-color: var(--color-badge-border);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(165, 247, 121, 0.22);
}

.wallet-input--error,
.wallet-input--error:focus {
  border-color: #e07a7a;
  box-shadow: 0 0 0 4px rgba(224, 122, 122, 0.16);
}

.wallet-input:disabled {
  opacity: 0.7;
}

.wallet-error {
  min-height: 28px;
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #c44545;
  text-align: center;
}

.button-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid #080d08;
  border-right-color: transparent;
  border-radius: 50%;
}

.wallet-form.is-loading .button-spinner {
  display: block;
  animation: spin 0.7s linear infinite;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.9;
}

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

.primary-button {
  margin: 0;
  border: 0;
  background: var(--color-green);
  color: #080d08;
  font-size: 27.5px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.primary-button svg,
.secondary-button svg {
  display: block;
  flex-shrink: 0;
}

.secondary-button {
  margin-top: 14px;
  border: 1.5px solid var(--color-secondary-border);
  background: var(--color-secondary-bg);
  color: var(--color-secondary-text);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.6px;
}

.button-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.button-row .secondary-button {
  margin-top: 14px;
}

@media (min-width: 710px) and (max-width: 1099px) {
  .page {
    width: 710px;
    min-height: 1220px;
    padding: 37px 32px 29px 38px;
  }

  .page-title,
  .page-subtitle {
    white-space: nowrap;
  }

  .usage-card,
  .empty-card {
    width: 640px;
  }
}

@media (min-width: 1100px) {
  body {
    box-shadow: none;
  }

  .page {
    width: 100%;
    max-width: 1120px;
    min-height: 0;
    padding: 28px 48px 40px;
  }

  .site-header {
    margin-left: 0;
    width: 100%;
    min-height: 48px;
  }

  .brand,
  .brand-mark {
    height: 48px;
  }

  .profile-avatar {
    width: 44px;
    height: 44px;
  }

  .dashboard-intro {
    margin-top: 24px;
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 18px;
  }

  .page-title {
    margin: 8px 0 4px;
    font-size: 42px;
    letter-spacing: -1.6px;
  }

  .page-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .usage-card,
  .empty-card {
    width: 100%;
  }

  .usage-card {
    height: 118px;
    padding: 20px 28px 18px;
  }

  .usage-heading {
    font-size: 16px;
    line-height: 22px;
  }

  .usage-count-main {
    font-size: 36px;
    line-height: 40px;
  }

  .usage-count-max {
    font-size: 20px;
    padding-bottom: 4px;
  }

  .plan-badge {
    width: 108px;
    height: 34px;
    font-size: 15px;
  }

  .progress-track {
    height: 10px;
  }

  .empty-card,
  .empty-card--entry,
  .empty-card--found {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    height: auto;
    min-height: 0;
    margin-top: 16px;
    padding: 28px 36px;
  }

  .wallet-illustration {
    width: 148px;
    height: 148px;
  }

  .wallet-body {
    width: 84px;
    height: 78px;
  }

  .chain-badge {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 16px;
  }

  .empty-copy {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    max-width: 720px;
  }

  .empty-title,
  .empty-title--found,
  .empty-description {
    width: 100%;
    text-align: left;
  }

  .empty-title {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -1px;
  }

  .empty-title--found {
    font-size: 26px;
    line-height: 1.2;
  }

  .empty-description {
    margin: 0 0 12px;
    font-size: 16px;
  }

  .empty-description br,
  .empty-title--found br {
    display: none;
  }

  .token-list {
    justify-content: flex-start;
    margin: 4px 0 10px;
    gap: 8px;
  }

  .token-chip {
    height: 40px;
    padding: 0 12px 0 6px;
  }

  .token-logo {
    width: 26px;
    height: 26px;
  }

  .token-value,
  .token-ticker {
    font-size: 15px;
  }

  .wallet-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 8px 12px;
    align-items: start;
  }

  .wallet-input {
    grid-column: 1;
    grid-row: 1;
    height: 52px;
    font-size: 16px;
    padding: 0 18px;
  }

  .wallet-error {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
  }

  .empty-card--entry .primary-button {
    grid-column: 2;
    grid-row: 1;
    width: 140px;
    height: 52px;
    font-size: 16px;
    gap: 0;
  }

  .button-row {
    flex-direction: row;
    gap: 12px;
  }

  .button-row .primary-button,
  .button-row .secondary-button {
    flex: 1;
    width: auto;
    max-width: none;
    height: 52px;
    margin-top: 0;
    font-size: 16px;
    gap: 10px;
  }

  .button-row .primary-button svg,
  .button-row .secondary-button svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 709px) {
  body {
    box-shadow: none;
  }

  .page {
    width: 100%;
    min-height: auto;
    padding: 24px 18px 32px;
  }

  .site-header {
    margin-left: 0;
    width: 100%;
  }

  .brand {
    height: 44px;
  }

  .brand-mark {
    height: 44px;
    width: auto;
  }

  .profile-avatar {
    width: 48px;
    height: 48px;
  }

  .dashboard-intro {
    margin-top: 36px;
  }

  .eyebrow {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .page-title {
    margin-top: 10px;
    font-size: clamp(38px, 10vw, 66px);
    letter-spacing: -1.6px;
    white-space: normal;
  }

  .page-subtitle {
    font-size: clamp(20px, 5vw, 34px);
    letter-spacing: -0.4px;
    white-space: normal;
    margin-bottom: 20px;
  }

  .usage-card,
  .empty-card {
    width: 100%;
  }

  .usage-card {
    height: auto;
    min-height: 156px;
    padding: 24px 22px 22px;
  }

  .usage-heading {
    font-size: 22px;
    line-height: 28px;
  }

  .usage-count-main {
    font-size: 44px;
    line-height: 50px;
  }

  .usage-count-max {
    font-size: 24px;
  }

  .plan-badge {
    width: 112px;
    height: 40px;
    font-size: 18px;
  }

  .progress-track {
    margin-top: 18px;
    height: 14px;
  }

  .empty-card {
    height: auto;
    padding: 28px 20px 24px;
  }

  .wallet-illustration {
    width: 156px;
    height: 156px;
  }

  .empty-title {
    width: 100%;
    font-size: clamp(30px, 8vw, 49px);
    letter-spacing: -1.1px;
  }

  .empty-title--found {
    width: 100%;
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -1.1px;
  }

  .wallet-input {
    height: 68px;
    font-size: clamp(16px, 4vw, 24px);
  }

  .empty-description {
    width: 100%;
    font-size: clamp(18px, 4.4vw, 28.5px);
    margin-bottom: 18px;
  }

  .token-chip {
    height: 42px;
    padding: 0 12px 0 6px;
  }

  .token-logo {
    width: 28px;
    height: 28px;
  }

  .token-value,
  .token-ticker {
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    height: 68px;
    gap: 12px;
    font-size: clamp(18px, 4.2vw, 27px);
  }

  .primary-button svg,
  .secondary-button svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 20px 14px 28px;
  }

  .brand {
    height: 36px;
  }

  .brand-mark {
    height: 36px;
    width: auto;
  }

  .profile-avatar {
    width: 42px;
    height: 42px;
  }

  .profile-menu {
    gap: 8px;
  }

  .page-title {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .empty-title {
    font-size: 28px;
  }

  .empty-description {
    font-size: 17px;
  }

  .primary-button,
  .secondary-button {
    height: 60px;
    white-space: nowrap;
  }

  .wallet-input {
    height: 60px;
  }
}

.app-footer {
  background: #ffffff;
  border-top: 1px solid #eef1f4;
  color: #9aa3ae;
  flex-shrink: 0;
}

.app-footer-inner {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.72fr));
  column-gap: 36px;
  row-gap: 28px;
  align-items: start;
}

.app-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #8b93a0;
}

.app-footer-logo .logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.app-footer-logo .logo-word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.app-footer-tagline {
  margin: 16px 0 0;
  max-width: 268px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9aa3ae;
}

.app-footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.app-footer-social a {
  display: flex;
  color: #b0b7c1;
  text-decoration: none;
}

.app-footer-social a:hover {
  color: #6b7380;
}

.app-footer-col h2 {
  margin: 4px 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f2937;
}

.app-footer-col a {
  display: block;
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.35;
  color: #9aa3ae;
  text-decoration: none;
}

.app-footer-col a:hover {
  color: #1f2937;
}

.app-footer-copy {
  grid-column: 4;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1d22;
}

@media (max-width: 900px) {
  .app-footer-inner {
    width: min(1120px, calc(100% - 36px));
    grid-template-columns: 1fr 1fr;
    padding: 40px 0 36px;
  }

  .app-footer-brand {
    grid-column: 1 / -1;
  }

  .app-footer-copy {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .app-footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 0 28px;
  }

  .app-footer-tagline {
    max-width: none;
  }
}
