@font-face {
  font-family: "Aeonik";
  src: url("./assets/fonts/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Aeonik";
  src: url("./assets/fonts/Aeonik-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --ui-scale: 1.12;
  --bg: #020409;
  --card: #0e1015;
  --border: #1e2025;
  --muted: #8f949c;
  --muted-2: #848484;
  --text: #ffffff;
  --accent: #ffffff;
  --green: #8cffcb;
  --red: #ff6d6d;
  --amber: #f4c65e;
  --violet: #8c6dff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Aeonik", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: radial-gradient(1200px 500px at 50% -100px, #1a2138 0%, var(--bg) 45%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Aeonik", sans-serif;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  border: none;
  background: transparent;
}

.page {
  min-height: calc(100vh - 60px);
  padding-top: 60px;
}

.page.page-scaled {
  transform: scale(var(--ui-scale));
  transform-origin: top center;
  width: calc(100% / var(--ui-scale));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 20;
}

.topbar-content {
  width: min(1200px, 100%);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-content.home {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.topbar-content.home .brand { justify-self: start; }
.topbar-content.home .nav-center { justify-self: center; }
.topbar-content.home .btn-staking { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand img { width: 26px; height: 26px; }
.brand span {
  font-size: 17px;
  line-height: 1;
}
.brand span {
  font-weight: 500;
}

.nav-center {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.nav-link.active { color: #fff; }

.btn {
  height: 35px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-staking {
  width: 140px;
  color: #caccd0;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  transition: transform 180ms ease, background 180ms ease;
}
.btn-staking:hover { transform: scale(0.98); background: #13151c; }

.top-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #caccd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: #13151c;
  border-color: #2b2e38;
  color: #fff;
}

.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-link-telegram svg {
  width: 15px;
  height: 15px;
}

.social-link-github svg {
  width: 16px;
  height: 16px;
}

.btn-connect, .btn-disconnect {
  width: 160px;
  background: var(--card);
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}
.btn-connect:hover, .btn-disconnect:hover { transform: scale(0.98); background: #13151c; }

.btn-disconnect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.btn-disconnect span {
  flex: 1;
  text-align: center;
}

.main-center {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.home-section {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: home-enter 420ms ease-out;
  will-change: opacity, transform;
}

.home-lift {
  margin-top: -68px;
}

@keyframes home-enter {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.vault-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.vault-pill {
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(30,32,37,0.2) 0%, #0e1015 20%, rgba(30,32,37,0.2) 100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}
.vault-pill:hover { transform: translateY(-1px); border-color: #31343f; }

.vault-pill img {
  width: 21px;
  height: 21px;
  border-radius: 0;
}

.hero-title {
  margin: 32px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  font-weight: 500;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 400;
  color: var(--muted-2);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-video {
  height: 45px;
  padding: 0 18px;
  border-radius: 12px;
  color: #e8ecf3;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.07) 100%),
    rgba(22, 26, 34, 0.32);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 18px rgba(255, 255, 255, 0.03),
    0 6px 18px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.btn-video:hover {
  transform: translateY(-1px) scale(0.985);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 20px rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.3);
}
.btn-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 42%, rgba(255,255,255,0.045) 100%);
  opacity: 0.62;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.btn-video:hover::before { opacity: 1; }
.btn-video::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.01) 38%, rgba(255,255,255,0.14));
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
}

.btn-primary {
  height: 45px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.9) 100%);
  color: #0b0f15;
  font-weight: 500;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 16px rgba(0, 0, 0, 0.16);
}
.btn-primary:hover {
  transform: translateY(-1px) scale(0.985);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-primary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  transform: translateY(-1px);
}

.btn-primary-arrow-slot {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
}

@keyframes arrow-cycle {
  0% { transform: translate(0, -1px); opacity: 1; }
  45% { transform: translate(24px, -1px); opacity: 0; }
  46% { transform: translate(-24px, -1px); opacity: 0; }
  100% { transform: translate(0, -1px); opacity: 1; }
}

.btn-primary:hover .btn-primary-arrow {
  animation: arrow-cycle 450ms ease-out;
}

.icon-row {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.icon-row img {
  height: 17px;
  width: auto;
  max-width: 22px;
  object-fit: contain;
}

.features-title,
.overview-title {
  font-size: clamp(34px, 6vw, 54px);
  margin: 0;
}

.features-sub {
  color: var(--muted-2);
  margin: 8px 0 32px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 280px));
  gap: 32px;
}

.feature-card {
  height: 300px;
  border-radius: 20px;
  background: var(--card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
}

.feature-visual img {
  width: 100px;
  height: 100px;
}

.feature-title { font-size: 17px; margin: 0; }
.feature-sub { margin: 6px 0 0; color: var(--muted-2); font-size: 14px; line-height: 1.3; }

.overview-links {
  display: flex;
  gap: 16px;
  color: var(--muted-2);
  margin-top: 10px;
}
.overview-links a:hover { color: #fff; }

.swap-flow {
  margin-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(14vw, 300px);
}

.flow-col { text-align: center; }
.flow-col img { width: 100px; height: 100px; }
.flow-label { margin-top: 16px; color: var(--muted-2); }

.flow-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.flow-bars { display: flex; align-items: flex-end; gap: 16px; height: 100px; }
.flow-bar {
  width: 30px;
  border-radius: 6px;
  transition: height 600ms ease;
  position: relative;
}

.flow-bar img {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 5px;
  bottom: 4px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px;
}

.flow-bar.sol { background: #8a53ff; height: 60px; }
.flow-bar.usdc { background: #306bff; height: 60px; }

.flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: flow-dot 2.1s linear infinite;
}

@keyframes flow-dot {
  0% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(-150px); opacity: 0.8; }
  50% { transform: translateX(-150px); opacity: 0; }
  100% { transform: translateX(-300px); opacity: 0; }
}

.staking-wrap {
  width: min(980px, 100%);
  margin: 16px auto 64px;
}

.flutter-staking {
  display: flex;
  justify-content: center;
}

.flutter-staking-inner {
  width: min(420px, 100%);
}

.flutter-stake-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.flutter-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.flutter-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.flutter-amount-box {
  margin-top: 16px;
  min-height: 100px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.flutter-amount-box > .row {
  min-width: 0;
}

.flutter-amount-box > .row:first-child {
  flex-wrap: wrap;
  row-gap: 6px;
}

.flutter-amount-box > .row:first-child .row-start {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flutter-amount-box > .row:nth-child(2) {
  align-items: center;
}

.flutter-amount-input {
  font-size: 26px;
  min-width: 0;
}

.flutter-token-btn {
  width: auto;
  height: 35px;
  padding: 0 8px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.asset-select-btn.flutter-token-btn {
  width: auto;
  min-width: 0;
  max-width: none;
}

.flutter-token-btn span {
  white-space: nowrap;
}

.flutter-yield-block {
  margin-top: 16px;
}

.flutter-fee-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.flutter-yield-block .stake-submit {
  margin-top: 24px;
}

.flutter-stakes-card {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.flutter-stakes-title {
  padding: 0 0 8px;
  color: #8d929b;
  font-size: 14px;
}

.ux-staking.staking-wrap {
  width: min(1120px, 100%);
}

.ux-staking-head {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 16, 21, 0.88);
}

.ux-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.ux-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ux-head-status {
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.ux-head-status.connected {
  color: var(--green);
  border: 1px solid rgba(140,255,203,0.3);
  background: rgba(140,255,203,0.08);
}

.ux-head-status.disconnected {
  color: #f2c66b;
  border: 1px solid rgba(242,198,107,0.3);
  background: rgba(242,198,107,0.1);
}

.ux-staking-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 1fr);
  gap: 16px;
  align-items: start;
}

.ux-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 16, 21, 0.84);
}

.ux-step {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.015);
  border-radius: 12px;
  padding: 12px;
}

.ux-step + .ux-step {
  margin-top: 12px;
}

.ux-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ux-step-index {
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #c4c8d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ux-step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.ux-step-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: #8b8f98;
}

.ux-asset-main {
  margin-top: 10px;
}

.ux-asset-quick {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ux-chip {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.ux-chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.ux-chip.active {
  border-color: rgba(140,255,203,0.3);
  background: rgba(140,255,203,0.08);
}

.ux-chip img {
  width: 16px;
  height: 16px;
  border-radius: 0;
}

.ux-input-wrap {
  margin-top: 10px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.18);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ux-estimate {
  margin-top: 10px;
}

.ux-composer-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ux-composer-actions .stake-submit {
  margin-top: 0;
  flex: 1;
}

.ux-composer-actions .quick-action {
  height: 42px;
  min-width: 110px;
}

.ux-portfolio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ux-metrics-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staking-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(380px, 1fr) minmax(320px, 1fr);
  align-items: start;
}

.staking-dashboard {
  grid-column: 1 / -1;
  padding: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 74px;
  grid-column: span 2;
}

.dashboard-label {
  color: #7f848d;
  font-size: 12px;
}

.dashboard-value {
  font-size: 18px;
  font-weight: 500;
}

.dashboard-positive {
  color: var(--green);
}

.asset-card {
  justify-content: space-between;
  grid-column: span 3;
}

.trend-card {
  min-height: 88px;
  grid-column: span 3;
}

.trend-sparkline {
  width: 100%;
  height: 44px;
}

.trend-line {
  fill: none;
  stroke: rgba(140, 255, 203, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-caption {
  color: #7f848d;
  font-size: 11px;
}

.status-card {
  min-height: 88px;
  justify-content: space-between;
  grid-column: span 3;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.status-badge.ok {
  color: var(--green);
  background: rgba(140, 255, 203, 0.12);
  border: 1px solid rgba(140, 255, 203, 0.25);
}

.status-badge.neutral {
  color: #c4c8d0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.status-badge.warn {
  color: #f2c66b;
  background: rgba(242, 198, 107, 0.12);
  border: 1px solid rgba(242, 198, 107, 0.26);
}

.quick-actions {
  display: flex;
  gap: 6px;
}

.quick-action {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #dde2ea;
  transition: border-color 180ms ease, background 180ms ease;
}

.quick-action:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.asset-select-btn {
  height: 36px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.asset-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.asset-select-btn img {
  width: 20px;
  height: 20px;
  border-radius: 0;
}

.asset-select-meta {
  color: #8b8f98;
  font-size: 12px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
}

.staking-panel,
.staking-side {
  padding: 14px;
}

.staking-header,
.stakes-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staking-title,
.stakes-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.staking-subtitle,
.stakes-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.apr-chip {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 255, 203, 0.35);
  background: rgba(140, 255, 203, 0.08);
  color: var(--green);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.staking-vault-row {
  margin-top: 12px;
  justify-content: flex-start;
}

.stake-input-block {
  margin-top: 16px;
  min-height: 112px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-start { display: flex; align-items: center; gap: 8px; }

.muted { color: var(--muted); }

.balance-chip {
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-btn {
  height: 24px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c4c8d0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  cursor: pointer;
  padding: 0 8px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.mini-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stake-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.2;
  font-size: 26px;
  outline: none;
  min-width: 80px;
}

.stake-input::placeholder {
  color: #8f949c;
  font-family: inherit;
  font-weight: 400;
}

.stake-symbol {
  color: #c4c8d0;
  font-size: 16px;
  font-weight: 500;
}

.est-panel {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(130% 140% at 0% 0%, rgba(140, 255, 203, 0.08) 0%, rgba(140, 255, 203, 0) 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 100%),
    rgba(10, 13, 19, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.2);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.est-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.est-label {
  color: #aeb5c1;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.periods {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.period-btn {
  min-width: 36px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.period-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.period-btn.active {
  border-color: rgba(255, 255, 255, 0.22);
  color: #0c1118;
  background: rgba(255,255,255,0.92);
}

.est-main {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.est-value {
  margin-top: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.est-token {
  font-size: 14px;
  color: #a8b0bd;
  font-weight: 500;
}

.stake-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.stake-submit {
  margin-top: 14px;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: #f4f6fa;
  color: #0b0f15;
  font-size: 17px;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 150ms ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.stake-submit:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.stake-submit:disabled {
  background: #9ea1a8;
  cursor: not-allowed;
}

.flutter-yield-block .stake-submit {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease, background 180ms ease, opacity 150ms ease;
}

.flutter-yield-block .stake-submit:hover:not(:disabled) {
  transform: translateY(-1px) scale(0.985);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

.flutter-yield-block .stake-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 42%, rgba(255,255,255,0.08) 100%);
  opacity: 0.62;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.flutter-yield-block .stake-submit:hover:not(:disabled)::before {
  opacity: 1;
}

.flutter-yield-block .stake-submit::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.24), rgba(255,255,255,0.02) 38%, rgba(255,255,255,0.18));
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
}

.stakes-panel { margin-top: 16px; }

.staking-side.stakes-panel { margin-top: 0; }

.stakes-metrics {
  display: flex;
  gap: 8px;
}

.metric-card {
  min-width: 120px;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  color: #7f848d;
  font-size: 12px;
}

.metric-value {
  font-size: 13px;
  font-weight: 500;
}

.metric-value.earned {
  color: var(--green);
}

.stakes-empty {
  margin-top: 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.015);
  padding: 14px;
}

.stakes-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.stakes-empty .mini-btn {
  margin-top: 10px;
}

.stake-row {
  margin-top: 8px;
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.05) 100%),
    rgba(14, 16, 21, 0.28);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.stake-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.09) 100%),
    rgba(14, 16, 21, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.stake-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.stake-row-logo {
  width: 24px;
  height: 24px;
  border-radius: 0;
  flex-shrink: 0;
}

.stake-row-info {
  min-width: 0;
}

.stake-row-title {
  font-size: 14px;
  font-weight: 600;
  color: #e8ecf4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stake-row-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #5e646f;
  white-space: nowrap;
}

.stake-row-metrics {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.stake-row-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  width: 80px;
}

.stake-row-metric-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555b66;
}

.stake-row-metric-value {
  font-size: 13px;
  font-weight: 500;
  color: #c8cdd8;
  white-space: nowrap;
}

.stake-row-metric-value--green {
  color: var(--green);
}

.stake-row-metric-sym {
  font-size: 11px;
  color: #6a707a;
  font-weight: 400;
}

.stake-row-arrow {
  font-size: 18px;
  color: #3a404b;
  flex-shrink: 0;
  transition: color 180ms ease, transform 180ms ease;
  line-height: 1;
}

.stake-row:hover .stake-row-arrow {
  color: #6a707a;
  transform: translateX(2px);
}

.tx-indicator {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(420px, calc(100vw - 24px));
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(255, 255, 255, 0.08) 100%),
    rgba(14, 16, 21, 0.68);
  backdrop-filter: blur(8px) saturate(112%);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.3);
  z-index: 45;
}

.tx-indicator.tx-indicator-scaled {
  transform: translateX(-50%) scale(var(--ui-scale));
  transform-origin: center bottom;
}

.tx-status-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.3;
  color: #d7dde8;
}

.tx-indicator.is-pending .tx-status-text {
  color: #ffb45f;
}

.tx-indicator.is-success .tx-status-text {
  color: var(--green);
}

.tx-indicator.is-error .tx-status-text {
  color: var(--red);
}

.tx-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
}

.tx-lead-success {
  color: var(--green);
}

.tx-lead-error {
  color: var(--red);
}

.tx-explorer-link {
  color: #9ea5b1;
  font-size: 13px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.tx-explorer-link:hover {
  color: #c9d1dd;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ffab55;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
}

.modal {
  width: min(422px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.04) 100%),
    rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(4px) saturate(108%);
  -webkit-backdrop-filter: blur(4px) saturate(108%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.26);
  padding: 8px;
}

.modal.modal-scaled {
  width: min(420px, calc((100vw - 24px) / var(--ui-scale)));
  transform: scale(var(--ui-scale));
  transform-origin: center;
}

.wallet-connect-modal,
.modal.wallet-connect-modal {
  width: min(300px, calc(100vw - 24px));
  padding: 16px;
}

.wallet-modal-title {
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 12px;
}

.wallet-modal-footer {
  padding-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #555a63;
  line-height: 1.4;
}

.wallet-grid {
  display: grid;
  gap: 4px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.wallet-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.wallet-item:active {
  transform: translateX(4px) scale(0.97);
}

.wallet-item img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.manage-modal {
  padding: 16px;
}

.manage-head {
  align-items: center;
  margin-bottom: 14px;
}

.manage-head-token {
  gap: 10px;
}

.manage-token-logo {
  border-radius: 0;
  width: 30px;
  height: 30px;
}

.manage-title {
  font-size: 15px;
  font-weight: 500;
}

.manage-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #8e95a1;
}

/* KPI grid */
.manage-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.manage-kpi {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manage-kpi--earned {
  border-color: rgba(140, 255, 203, 0.22);
  background: rgba(140, 255, 203, 0.05);
}

.manage-kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a828f;
}

.manage-kpi-value {
  font-size: 14px;
  font-weight: 500;
  color: #dde2ea;
  word-break: break-word;
  line-height: 1.2;
}

.manage-kpi-value--green {
  color: var(--green);
}

.manage-kpi-value--accent {
  color: #c4b5fd;
}

/* Pulsing dot on earned */
.manage-kpi-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: kpi-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes kpi-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50% { opacity: 0.55; box-shadow: 0 0 2px var(--green); }
}

/* Meta chips */
.manage-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manage-meta-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: #8f96a3;
  letter-spacing: 0.01em;
}

/* Divider */
.manage-divider {
  margin: 14px 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* Actions */
.manage-actions {
  margin-top: 12px;
}

.manage-claim-primary {
  width: 100%;
  margin-top: 0;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  border: 1px solid rgba(140, 255, 203, 0.32);
  background:
    linear-gradient(145deg, rgba(140, 255, 203, 0.16) 0%, rgba(140, 255, 203, 0.06) 60%, rgba(140, 255, 203, 0.12) 100%),
    rgba(10, 18, 14, 0.38);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  color: #a8ffda;
  box-shadow:
    inset 0 1px 0 rgba(140, 255, 203, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease, background 180ms ease, opacity 150ms ease;
}

.manage-claim-primary:hover:not(:disabled) {
  transform: translateY(-1px) scale(0.985);
  border-color: rgba(140, 255, 203, 0.52);
  background:
    linear-gradient(145deg, rgba(140, 255, 203, 0.24) 0%, rgba(140, 255, 203, 0.1) 60%, rgba(140, 255, 203, 0.2) 100%),
    rgba(10, 22, 16, 0.42);
  color: #c8ffea;
  box-shadow:
    inset 0 1px 0 rgba(140, 255, 203, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(140, 255, 203, 0.1);
}

.manage-actions-inline {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Secondary action buttons */
.manage-sec-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.07) 100%),
    rgba(14, 16, 21, 0.3);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  color: #b8bec9;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.manage-sec-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.12) 100%),
    rgba(14, 16, 21, 0.35);
  color: #e8ecf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

.manage-sec-btn--danger {
  border-color: rgba(255, 109, 109, 0.2);
  color: #ffa8a8;
  background:
    linear-gradient(150deg, rgba(255, 109, 109, 0.14) 0%, rgba(255, 109, 109, 0.04) 50%, rgba(255, 109, 109, 0.1) 100%),
    rgba(20, 10, 10, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 160, 160, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.manage-sec-btn--danger:hover {
  border-color: rgba(255, 109, 109, 0.38);
  background:
    linear-gradient(150deg, rgba(255, 109, 109, 0.22) 0%, rgba(255, 109, 109, 0.08) 50%, rgba(255, 109, 109, 0.18) 100%),
    rgba(22, 10, 10, 0.35);
  color: #ffc8c8;
  box-shadow:
    inset 0 1px 0 rgba(255, 160, 160, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(255, 109, 109, 0.1);
}

.manage-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #6a7280;
  text-align: center;
}

/* Unstake panel */
.manage-unstake {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 109, 109, 0.24);
  background: rgba(255, 109, 109, 0.05);
  padding: 12px;
}

.manage-unstake-title {
  font-size: 12px;
  font-weight: 500;
  color: #ffb4b4;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.manage-unstake-row {
  gap: 8px;
}

.manage-unstake-input {
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
}

.manage-unstake-submit {
  margin-top: 10px;
  border-color: rgba(255, 109, 109, 0.36);
  background: rgba(255, 109, 109, 0.14);
  color: #ffdede;
  box-shadow: none;
}

.manage-unstake-submit:hover:not(:disabled) {
  background: rgba(255, 109, 109, 0.22);
  border-color: rgba(255, 109, 109, 0.5);
  box-shadow: none;
}

.esc-btn {
  height: 23px;
  width: 42px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.esc-btn:hover {
  border-color: rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.16);
  color: #d8dde6;
}

.token-search-modal {
  padding: 12px;
}

.token-search-head {
  margin-bottom: 10px;
  align-items: flex-start;
}

.token-search-title {
  font-size: 15px;
  font-weight: 500;
}

.token-search-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #89909b;
}

.token-search-input-wrap {
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.token-search-input {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-size: 14px;
}

.token-search-clear-btn {
  height: 26px;
  font-size: 12px;
}

.search-list {
  max-height: min(420px, 65vh);
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.search-empty {
  min-height: 120px;
}

.search-item {
  height: 56px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 8px;
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.search-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.search-item.is-active {
  background: rgba(140, 255, 203, 0.08);
  border-color: rgba(140, 255, 203, 0.32);
}

.search-item img {
  width: 25px;
  height: 25px;
  border-radius: 0;
}

.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
}

.search-item-symbol {
  font-size: 14px;
  color: #ecf0f8;
}

.search-item-mint {
  font-size: 11px;
  color: #8b919c;
}

.search-item-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 110px;
}

.search-item-apr {
  color: var(--green);
  font-size: 13px;
}

.search-item-selected {
  color: #0b1016;
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(140, 255, 203, 0.9);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-size: 54px;
  color: #1e2025;
}

@media (max-width: 980px) {
  .nav-center { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .swap-flow { gap: 48px; margin-top: 40px; }
  .flow-col img { width: 72px; height: 72px; }
  .home-section { justify-content: center; }
  .topbar-content { gap: 12px; }
  .btn-staking { width: 120px; }
  .btn-connect, .btn-disconnect { width: 140px; }
  .ux-staking.staking-wrap { width: min(920px, 100%); }
  .ux-staking-head { flex-direction: column; align-items: flex-start; }
  .ux-staking-grid { grid-template-columns: 1fr; }
  .ux-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .main-center { padding: 12px; }
  .home-lift { margin-top: -50px; }
  .hero-title {
    font-size: 36px;
    margin-top: 24px;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.3;
  }
  .hero-subtitle br { display: none; }
  .hero-actions { gap: 12px; margin-top: 24px; }
  .icon-row { gap: 12px; margin-top: 24px; }
  .icon-row img { width: auto; height: 14px; max-width: 18px; }
  .manage-kpis { grid-template-columns: 1fr; }
  .features-sub {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 24px;
  }
  .swap-flow {
    gap: 20px;
    align-items: flex-start;
  }
  .flow-bars { height: 80px; }
  .flow-bar { width: 24px; }
  .flow-bar img { width: 16px; height: 16px; left: 4px; }
  .flow-dot { display: none; }
  .topbar-content { padding: 0 8px; }
  .staking-wrap { padding: 0 8px; }
  .flutter-staking-inner { width: min(420px, 100%); }
  .flutter-token-btn {
    min-width: 0;
    max-width: none;
  }
  .ux-staking.staking-wrap { width: min(560px, 100%); }
  .ux-title { font-size: 21px; }
  .ux-subtitle { font-size: 13px; }
  .ux-card { padding: 12px; }
  .ux-step { padding: 10px; }
  .ux-metrics-grid { grid-template-columns: 1fr; }
  .ux-composer-actions { flex-direction: column; }
  .ux-composer-actions .quick-action,
  .ux-composer-actions .stake-submit { width: 100%; }
  .ux-asset-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .staking-wrap { width: min(760px, 100%); margin-top: 8px; }
  .staking-layout { grid-template-columns: 1fr; }
  .staking-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-card,
  .asset-card,
  .trend-card,
  .status-card { grid-column: span 1; }
  .stake-row-sub { display: none; }
  .stake-row-metric { width: auto; }
  .stake-row-metric-value { font-size: 12px; }
  .stake-row-metric-label { font-size: 9px; }
  .stakes-metrics { flex-wrap: wrap; }
  .stake-input { font-size: 22px; }
  .vault-row {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  .vault-pill { flex: 0 0 auto; }
  .staking-dashboard { grid-template-columns: 1fr; }
  .dashboard-card,
  .asset-card,
  .trend-card,
  .status-card { grid-column: span 1; }
  .dashboard-card { min-height: 66px; }
  .trend-card,
  .status-card { min-height: 76px; }
  .quick-actions { flex-wrap: wrap; }
  .tx-indicator {
    width: min(420px, calc(100vw - 24px));
    bottom: 10px;
  }
  .tx-indicator.tx-indicator-scaled {
    transform: translateX(-50%) scale(1);
  }
  .tx-explorer-link {
    font-size: 12px;
  }
}
