:root {
  color-scheme: dark;
  --bg: #020202;
  --panel: #0a0a0b;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f8f8;
  --muted: #9f9fa4;
  --green: #71f5a1;
  --cyan: #6ed7ff;
  --violet: #8d78ff;
  --pink: #d56cff;
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(180deg, #050505 0%, #010101 48%, #080808 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.07) 50%, transparent 53%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.78));
  opacity: 0.48;
}

body::after {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.026) 0,
    rgba(255, 255, 255, 0.026) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.18;
}

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

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

svg,
img {
  display: block;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 28px;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 10px 0 20px;
  text-align: center;
}

.profile-ring {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #050505;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 48px rgba(0, 0, 0, 0.48);
}

.profile-ring img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 2.26rem;
  line-height: 1;
  font-weight: 950;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #050505;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    #080808;
  outline: none;
  transform: translateY(-3px);
}

.quick-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.quick-links a[aria-label="Telegram"] svg {
  width: 24px;
  height: 24px;
  transform: translate(-1px, 1px);
}

.quick-links .axiom-logo {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  object-fit: contain;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 72px;
  gap: 12px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.link-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 42%, rgba(113, 245, 161, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.link-card::after {
  position: absolute;
  top: 0;
  left: 18px;
  width: 64px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 40%),
    #080808;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
  outline: none;
  transform: translateY(-3px);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.primary-card {
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.22);
}

.card-icon,
.card-arrow,
.card-text {
  position: relative;
  z-index: 1;
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.axiom-icon {
  background: #050505;
}

.axiom-icon img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
}

.telegram {
  color: #ffffff;
  background: linear-gradient(135deg, #151515, #080808);
}

.telegram svg {
  transform: translate(-1px, 1px);
}

.x-icon {
  color: #ffffff;
  background: #050505;
}

.twitch {
  color: #ffffff;
  background: linear-gradient(135deg, #171717, #080808);
}

.card-text {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 5px;
  min-height: 32px;
}

.card-text strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.15;
  font-weight: 900;
}

.card-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 14px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #77777d;
}

.status-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.about-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.about-icon {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 950;
  font-style: italic;
  background: #050505;
}

.card-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(113, 245, 161, 0.1);
}

.wallet-card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.052), transparent 58%),
    linear-gradient(180deg, #0b0b0c 0%, #030303 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.34);
}

.wallet-card::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 84px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
}

.wallet-head,
.wallet-balance,
.wallet-grid {
  position: relative;
  z-index: 1;
}

.wallet-head,
.wallet-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.wallet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.wallet-address {
  max-width: 104px;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.045);
}

.wallet-copy {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f4f4f4;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.wallet-copy:hover,
.wallet-copy:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  outline: none;
}

.wallet-pnl-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.wallet-pnl-hero > div:first-child {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.wallet-pnl-hero small,
.wallet-sol-corner small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.wallet-pnl-hero strong {
  font-size: clamp(2.45rem, 11vw, 3.9rem);
  line-height: 0.92;
  font-weight: 950;
  white-space: nowrap;
}

.wallet-pnl-hero strong.is-pending {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.2;
  white-space: normal;
}

.wallet-sol-corner {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  min-width: 82px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: right;
  background: rgba(255, 255, 255, 0.045);
}

.wallet-sol-corner span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
}

.wallet-grid {
  margin-top: 16px;
}

.wallet-grid div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wallet-grid div:last-child {
  text-align: right;
}

.wallet-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.wallet-grid strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.about-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    #050505;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.about-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.about-panel h2 {
  margin: 12px 0 10px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.about-panel p {
  margin: 0;
  color: #d5d5d8;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.55;
}

.about-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.about-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.card-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.sol-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 54%),
    linear-gradient(180deg, #0b0b0c 0%, #030303 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.34);
}

.sol-card::before,
.sol-card::after {
  position: absolute;
  width: 84px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
}

.sol-card::before {
  top: 0;
  left: 18px;
}

.sol-card::after {
  right: 18px;
  bottom: 0;
}

.sol-mini-head,
.sol-price-row,
.sol-card__meta {
  position: relative;
  z-index: 1;
}

.sol-mini-head,
.sol-price-row,
.sol-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sol-mini-head {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.sol-mini-head span:last-child {
  margin-left: auto;
}

.sol-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.sol-price-row {
  justify-content: space-between;
  margin-top: 14px;
}

.sol-price-row strong {
  font-size: clamp(2.15rem, 10vw, 3.1rem);
  line-height: 0.95;
  font-weight: 950;
}

.sol-price-row span {
  padding: 7px 9px;
  border: 1px solid rgba(113, 245, 161, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(113, 245, 161, 0.075);
  font-size: 0.78rem;
  font-weight: 950;
}

.sol-card__meta {
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 12px;
  }

  .link-card {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    min-height: 68px;
    gap: 10px;
    padding: 10px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
  }

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

  .card-text strong {
    font-size: 0.9rem;
  }

  .sol-price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .wallet-pnl-hero {
    flex-direction: column;
  }

  .wallet-sol-corner {
    width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
