:root {
  color-scheme: dark;
  --bg: #060915;
  --surface: rgba(10, 15, 42, 0.72);
  --surface-strong: rgba(12, 18, 50, 0.86);
  --surface-soft: rgba(18, 24, 66, 0.7);
  --surface-border: rgba(122, 159, 255, 0.2);
  --surface-border-strong: rgba(104, 232, 255, 0.32);
  --text: #f6f8ff;
  --muted: #b8c0e3;
  --ink: #ffffff;
  --accent: #3dd8ff;
  --accent-strong: #3b6dff;
  --violet: #8d63ff;
  --pink: #ff56c9;
  --gold: #ffbe5c;
  --warm: #ff9248;
  --ok: #79f4cd;
  --warn: #ffd37a;
  --err: #ff9aa4;
  --shadow: 0 34px 80px rgba(2, 5, 20, 0.56);
  --radius-xl: clamp(24px, 2.6vw, 30px);
  --radius-lg: clamp(17px, 2vw, 22px);
  --radius-md: clamp(13px, 1.5vw, 16px);
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  --shell-width: min(1180px, calc(100% - clamp(0.8rem, 2vw, 1.6rem)));
  --section-gap: clamp(1rem, 2vw, 1.3rem);
  --card-padding: clamp(1rem, 2.6vw, 1.4rem);
  --hero-padding: clamp(1.1rem, 3vw, 1.9rem);
  --button-pad-y: clamp(0.76rem, 1.7vw, 0.92rem);
  --button-pad-x: clamp(1rem, 2vw, 1.2rem);
  --compact-pad-y: clamp(0.5rem, 1.2vw, 0.62rem);
  --compact-pad-x: clamp(0.78rem, 1.5vw, 0.95rem);
  --field-pad-y: clamp(0.82rem, 2vw, 0.98rem);
  --field-pad-x: clamp(0.9rem, 2vw, 1rem);
  --eyebrow-size: clamp(0.68rem, 0.22vw + 0.64rem, 0.78rem);
  --small-copy-size: clamp(0.84rem, 0.18vw + 0.8rem, 0.94rem);
  --mono-size: clamp(0.82rem, 0.18vw + 0.78rem, 0.94rem);
}

html {
  font-size: clamp(14px, 0.35vw + 13px, 16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 14%, rgba(53, 122, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(72, 229, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(255, 180, 78, 0.14), transparent 28%),
    linear-gradient(145deg, #060915 0%, #0a1030 44%, #150f41 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 31rem;
  height: 31rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}

.ambient-left {
  top: -9rem;
  left: -8rem;
  background: rgba(72, 105, 255, 0.22);
}

.ambient-right {
  right: -10rem;
  bottom: -10rem;
  background: rgba(255, 176, 74, 0.18);
  animation-delay: -6s;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  margin: 0 auto;
  padding: clamp(0.95rem, 2.6vw, 2rem) 0 clamp(1.8rem, 4vw, 3rem);
  display: grid;
  gap: var(--section-gap);
}

.hero-card,
.panel,
.token-card {
  background: linear-gradient(180deg, rgba(16, 22, 58, 0.9), rgba(8, 12, 34, 0.8));
  backdrop-filter: blur(18px);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: calc(var(--radius-xl) + 6px);
  padding: var(--hero-padding);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(76, 228, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 89, 201, 0.12), transparent 28%),
    radial-gradient(circle at center bottom, rgba(255, 179, 80, 0.09), transparent 30%);
  pointer-events: none;
}

.hero-brand,
.hero-copy,
.panel,
.token-card,
.workspace-panel {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero-logo {
  width: clamp(4rem, 8vw, 5.4rem);
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 20px 45px rgba(31, 124, 255, 0.28);
}

.brand-copy {
  min-width: 0;
}

.hero-tagline {
  margin: 0;
  color: rgba(255, 202, 123, 0.96);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow,
.panel-kicker,
.token-label {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--eyebrow-size);
  color: #88dfff;
}

.hero-copy {
  display: block;
}

.hero-text {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 64rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 0.98;
  text-shadow: 0 10px 30px rgba(38, 102, 255, 0.24);
}

h2 {
  font-size: clamp(1.14rem, 0.95vw + 0.96rem, 1.42rem);
}

h3 {
  font-size: clamp(1.02rem, 0.62vw + 0.92rem, 1.18rem);
}

.lede,
.support-copy,
.mode-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.lede {
  margin-top: 0.9rem;
  max-width: 56ch;
  font-size: clamp(0.98rem, 0.34vw + 0.9rem, 1.08rem);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-chip {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 224, 255, 0.2);
  background: rgba(12, 20, 52, 0.72);
  color: #dff6ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-dock {
  display: grid;
  gap: 0.78rem;
  justify-items: start;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.88rem;
  border-radius: 999px;
  background: rgba(10, 17, 47, 0.74);
  border: 1px solid rgba(142, 183, 255, 0.16);
  flex-wrap: wrap;
}

.label {
  color: var(--muted);
  font-size: 0.84rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.1rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-badge.ok {
  background: rgba(121, 244, 205, 0.14);
  color: var(--ok);
}

.status-badge.muted {
  background: rgba(184, 192, 227, 0.1);
  color: var(--muted);
}

.mode-status {
  color: #e8eeff;
  font-weight: 600;
}

.auth-grid,
.feedback-grid,
.workspace-grid {
  display: grid;
  gap: clamp(0.95rem, 2vw, 1.2rem);
}

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

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

.panel,
.token-card {
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  animation: rise 0.55s ease both;
}

.panel {
  background:
    linear-gradient(180deg, rgba(14, 20, 56, 0.92), rgba(9, 14, 37, 0.84));
}

.panel-head,
.token-head,
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.workspace-panel {
  display: grid;
  gap: 1.15rem;
}

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.auth-note {
  min-height: 2.8em;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: var(--button-pad-y) var(--button-pad-x);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease,
    background 150ms ease;
  min-height: 2.8rem;
  touch-action: manipulation;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:focus-visible,
.field input:focus-visible {
  outline: 2px solid rgba(102, 228, 255, 0.4);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

button[aria-busy="true"] {
  cursor: progress;
}

.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 42%, var(--violet) 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(33, 119, 255, 0.3);
}

.secondary-tone {
  background: linear-gradient(135deg, var(--violet) 0%, #4c67ff 58%, var(--accent) 100%);
  box-shadow: 0 16px 34px rgba(110, 92, 255, 0.28);
}

.warm-tone {
  background: linear-gradient(135deg, var(--gold) 0%, var(--warm) 100%);
  color: #220d00;
  box-shadow: 0 16px 34px rgba(255, 160, 74, 0.26);
}

.ghost {
  background: rgba(9, 15, 40, 0.7);
  color: var(--ink);
  border: 1px solid rgba(160, 186, 255, 0.16);
}

.compact {
  padding: var(--compact-pad-y) var(--compact-pad-x);
  font-size: 0.85rem;
  min-height: auto;
}

.mono-copy,
.mono-card {
  font-family: var(--font-mono);
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: var(--mono-size);
}

.address-stack {
  display: grid;
  gap: 0.6rem;
}

.mono-copy {
  margin: 0.35rem 0 0;
  color: #f1f4ff;
}

.mono-card {
  margin: 0;
  min-height: clamp(4rem, 10vw, 5.3rem);
  padding: clamp(0.84rem, 2.2vw, 1rem);
  border-radius: var(--radius-lg);
  background: rgba(9, 15, 40, 0.76);
  border: 1px solid rgba(140, 173, 255, 0.12);
  color: #edf2ff;
  line-height: 1.48;
}

.copy-button {
  justify-self: start;
}

.metric-card {
  margin: 0;
  font-size: clamp(1rem, 0.62vw + 0.9rem, 1.12rem);
  font-weight: 800;
  color: var(--ink);
}

.field-stack {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: var(--small-copy-size);
}

.field input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(140, 173, 255, 0.16);
  background: rgba(7, 13, 35, 0.84);
  color: var(--ink);
  padding: var(--field-pad-y) var(--field-pad-x);
  font: inherit;
  min-width: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field input::placeholder {
  color: rgba(184, 192, 227, 0.54);
}

.field input:focus {
  border-color: rgba(102, 228, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(102, 228, 255, 0.08);
}

.token-card {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(16, 23, 61, 0.96), rgba(8, 12, 36, 0.88));
}

.icp-card {
  background:
    radial-gradient(circle at top left, rgba(56, 216, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(15, 30, 70, 0.98), rgba(8, 12, 36, 0.9));
}

.icp-card .metric-card {
  color: #8fe9ff;
}

.sol-card {
  background:
    radial-gradient(circle at top right, rgba(143, 99, 255, 0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(61, 216, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 22, 64, 0.98), rgba(8, 12, 36, 0.9));
}

.sol-card .metric-card {
  color: #b79cff;
}

.doge-card {
  background:
    radial-gradient(circle at top right, rgba(255, 190, 92, 0.2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 146, 72, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(46, 28, 13, 0.96), rgba(20, 14, 9, 0.92));
}

.doge-card .metric-card {
  color: #ffd37a;
}

.transaction-card,
.notice {
  padding: clamp(0.86rem, 2vw, 1rem) clamp(0.9rem, 2.2vw, 1.05rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(140, 173, 255, 0.12);
  background: rgba(8, 14, 38, 0.8);
  line-height: 1.58;
}

.transaction-card a {
  color: #92ecff;
  font-weight: 700;
  text-decoration: none;
}

.transaction-card.ok,
.notice.ok {
  color: var(--ok);
  border-color: rgba(121, 244, 205, 0.24);
}

.transaction-card.warn,
.notice.warn {
  color: var(--warn);
  border-color: rgba(255, 211, 122, 0.22);
}

.transaction-card.err,
.notice.err {
  color: var(--err);
  border-color: rgba(255, 154, 164, 0.22);
}

.transaction-card.muted,
.notice.muted {
  color: var(--muted);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 20px, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) and (min-width: 941px) {
  .workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 14ch;
  }

  .workspace-head,
  .panel-head,
  .token-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .auth-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ambient {
    width: 20rem;
    height: 20rem;
    filter: blur(34px);
    opacity: 0.42;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .status-pill {
    width: 100%;
    justify-content: space-between;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row > * {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 0.75rem, 100%);
    padding-top: 0.85rem;
  }

  .hero-card,
  .panel,
  .token-card {
    border-radius: 22px;
    padding: clamp(0.98rem, 4.5vw, 1.12rem);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(1.88rem, 11vw, 2.55rem);
  }

  .hero-chip,
  button,
  .copy-button,
  .token-head .compact {
    width: 100%;
    justify-content: center;
  }

  .hero-chips {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .status-pill {
    align-items: flex-start;
  }

  .status-badge {
    min-width: 0;
  }
}
