/* JupLite basic styles (dark, clean) */

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

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

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

/* ====== LAYOUT SHELL (header / nav / footer) ====== */

:root {
  --max-width: 1180px;
  --topbar-height: 52px;
  --shadow-soft-strong: 0 24px 60px rgba(15, 23, 42, 0.85);
}

.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top left, #020617, #020617 55%, #000 100%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-home {
  cursor: pointer;
}

.logo-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.logo-glow {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #22c55e, #38bdf8, #6366f1, #22c55e);
  filter: blur(6px);
  opacity: 0.9;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 0 12px rgba(56, 189, 248, 0.4),
    0 8px 18px rgba(15, 23, 42, 0.7);
  display: block;
}

.logo-text-main {
  font-size: 15px;
  font-weight: 600;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/*
  Navigation is shared across top-level pages.
  Keep it flexible so links can scroll on narrow screens instead of vanishing.
*/
.topbar .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 2px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar .nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0.65;
  transition: color 0.16s ease, opacity 0.16s ease;
  cursor: pointer;
}

.nav-tab:hover {
  color: #e5e7eb;
  opacity: 0.85;
}

.nav-tab.nav-tab-active {
  color: #e5e7eb;
  opacity: 1;
  cursor: default;
}

.nav-tab.nav-tab-active:hover {
  color: #e5e7eb;
  opacity: 1;
}

.nav-tab.nav-tab-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.nav-badge-new {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #22c55e;
  color: #020617;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.search {
  position: relative;
  min-width: 0;
  flex: 1;
  max-width: 260px;
}

.search input {
  width: 100%;
  padding: 6px 26px 6px 26px;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.8);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.13), rgba(15, 23, 42, 0.95));
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}

.search input::placeholder {
  color: #6b7280;
}

.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #6b7280;
}

.search-hotkey {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #6b7280;
  border-radius: 4px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 1px 4px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #9ca3af;
}

.icon-btn:hover {
  border-color: rgba(75, 85, 99, 0.9);
  color: var(--text-main);
}

.connect-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
  white-space: nowrap;
}

.connect-btn:hover {
  filter: brightness(1.05);
}

.ticker-shell {
  background: #020617;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.ticker {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), #020617);
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 11px;
  white-space: nowrap;
}

.ticker-token-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.ticker-symbol {
  font-weight: 500;
}

.ticker-price {
  color: #e5e7eb;
}

.ticker-change-up {
  color: #4ade80;
}

.ticker-change-down {
  color: #f97373;
}

.watchlist-popover {
  position: fixed;
  top: calc(var(--topbar-height) + 12px);
  right: 16px;
  width: min(320px, calc(100% - 24px));
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px;
  z-index: 40;
}

.watchlist-hidden {
  display: none;
}

.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.watchlist-title {
  font-weight: 700;
  font-size: 14px;
}

.watchlist-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.watchlist-close {
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.watchlist-add {
  display: flex;
  gap: 8px;
  margin: 6px 0 4px;
}

.watchlist-add input {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.watchlist-add button {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.32));
  color: #e0f2fe;
  cursor: pointer;
}

.watchlist-add.watchlist-loading {
  opacity: 0.8;
  cursor: wait;
}

.watchlist-status {
  min-height: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.watchlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
}

.watchlist-row-info {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.watchlist-remove {
  border: 1px solid var(--border-subtle);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.watchlist-empty {
  padding: 8px 10px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.page-main {
  max-width: var(--max-width);
  margin: 12px auto 0;
  padding: 0 12px 24px;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.99));
  box-shadow: var(--shadow-soft-strong, var(--shadow-soft));
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(18px);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  font-size: 11px;
  color: var(--text-muted);
}

.section-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

footer {
  max-width: var(--max-width);
  margin: 6px auto 0;
  padding: 0 12px 18px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0.85;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* UTILITIES */

.link-accent {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .topbar { height: auto; padding: 8px 0; }
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-inline: 10px;
  }
  .topbar-left,
  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .logo-wrap { flex: 1; min-width: 180px; }
  .nav { width: 100%; justify-content: center; }
  .search { max-width: none; width: 100%; }
  .topbar-right { justify-content: space-between; }
  .panel { padding: 14px 12px 16px; }
}

@media (max-width: 720px) {
  .topbar-left { flex-direction: column; align-items: flex-start; }
  .topbar-right { flex-direction: column; align-items: stretch; }
  .nav { justify-content: flex-start; }
  .lang-switch { width: 100%; justify-content: center; }
  .connect-btn, .icon-btn { width: 100%; justify-content: center; }
  .logo-text-sub { display: none; }
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.7);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 16px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

/* NAV */

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

.nav-link {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: 0.18s ease-out;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.85);
}

.nav-link.active {
  background: var(--accent-soft);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.9);
}

/* LANG SWITCH */

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent-soft);
  color: #e0f2fe;
}

/* MAIN / HERO */

.main {
  padding-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
  margin-top: 6px;
}

.hero-text h1 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-primary,
.btn-ghost {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.hero-list h3 {
  font-size: 13px;
  margin: 0 0 6px;
}

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

.tag {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
}

/* WIDGET */

.hero-widget {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.96));
  border-radius: 22px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.widget-title {
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pair-label {
  font-size: 11px;
  color: var(--text-muted);
}

.jupiter-container {
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  min-height: 360px;
}

.widget-caption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* SECTION */

.section {
  margin-top: 32px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: rgba(15, 23, 42, 0.94);
  border-radius: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card p,
.card ul {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.card ul {
  padding-left: 16px;
}

/* FOOTER */

.footer {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  font-size: 11px;
  text-decoration: underline;
}
.visit-counter {
  font-size: 9px;
  opacity: 0.45;
  margin-left: 8px;
}


/* MOBILE */

@media (min-width: 1024px) {
  .hero-actions,
  .hero-footer {
    align-items: center;
    gap: 10px;
  }

  .hero-footer .cta-btn {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero-widget {
    order: -1;
  }

  .page {
    padding-inline: 10px;
  }
}

/* Shared responsive helpers for focused pages */
@media (max-width: 540px) {
  .swap-page,
  .mobile-page {
    padding-inline: 10px;
  }

  .swap-header,
  .mobile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .swap-header a,
  .mobile-header a {
    align-self: stretch;
    text-align: center;
  }

  .swap-main {
    width: 100%;
    max-width: none;
  }

  #jupiter-plugin-swap,
  #jupiter-plugin-fullpage {
    min-height: 560px;
  }

  .terminal-wrapper {
    padding: 10px;
  }

  #ultra-frame {
    min-height: 900px;
  }
}

/* Swap page */

.swap-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.swap-header {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.swap-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swap-home {
  cursor: pointer;
}

.swap-logo {
  width: 36px;
  height: 36px;
  border-radius: 14px;
}

.swap-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.swap-brand-name {
  font-size: 18px;
  font-weight: 600;
}

.swap-brand-tagline {
  font-size: 11px;
  color: #9ca3af;
}

.swap-back-link {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.swap-main {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swap-title {
  font-size: 20px;
  font-weight: 600;
  margin: 4px 0;
  text-align: left;
}

.swap-sub {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 6px;
}

.swap-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.swap-card-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

#jupiter-plugin-swap {
  width: 100%;
  min-height: 540px;
}

.swap-caption {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

/* Mobile swap page */

.mobile-page {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 10px;
}

.mobile-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-home {
  cursor: pointer;
}

.mobile-logo {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 0 12px rgba(56, 189, 248, 0.4),
    0 8px 18px rgba(15, 23, 42, 0.7);
}

.mobile-logo-glow {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #22c55e, #38bdf8, #6366f1, #22c55e);
  filter: blur(6px);
  opacity: 0.9;
  z-index: -1;
}

.mobile-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mobile-brand-name {
  font-size: 17px;
  font-weight: 600;
}

.mobile-brand-tagline {
  font-size: 11px;
  color: #9ca3af;
}

.mobile-link-main {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-title {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0;
}

.mobile-sub {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 8px;
}

.mobile-widget-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.mobile-widget-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #e5e7eb;
}

#jupiter-plugin-mobile {
  width: 100%;
  min-height: 520px;
}

.mobile-caption {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

.mobile-quick-links {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-quick-links h3 {
  font-size: 13px;
  margin: 0 0 6px;
}

.mobile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}

/* Pools view */

.pools-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.pool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.pool-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: border 0.2s ease, transform 0.2s ease;
}

.pool-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.pool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pool-name {
  font-size: 16px;
  font-weight: 600;
}

.pool-desc {
  color: var(--text-muted);
  margin: 6px 0 10px;
  line-height: 1.4;
  font-size: 13px;
}

.pool-chip {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
}

.pool-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pool-metric {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 120px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 15px;
  font-weight: 600;
}

.pool-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.pool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-tag {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.pill-btn {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #020617;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.25);
}

.pill-btn:hover {
  filter: brightness(1.05);
}

.pool-swap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pool-deposit-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pool-deposit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pool-deposit-target {
  text-align: right;
}

.deposit-pool-name {
  font-weight: 700;
  font-size: 14px;
}

.deposit-apr {
  color: #34d399;
  font-size: 12px;
  margin-top: 2px;
}

.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deposit-label {
  font-size: 12px;
  color: var(--text-muted);
}

.deposit-input-row {
  display: flex;
  gap: 8px;
}

.deposit-input-row input,
.deposit-input-row select {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text-main);
}

.deposit-input-row input {
  flex: 1.2;
}

.deposit-input-row select {
  flex: 0.8;
}

.deposit-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.deposit-status {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
}

.deposit-status.success {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

.section-title.mini {
  font-size: 16px;
  margin: 0;
}

@media (max-width: 960px) {
  .pools-layout {
    grid-template-columns: 1fr;
  }

  .pool-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-deposit-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-deposit-target {
    text-align: left;
  }
}

/* Pools page */

.pools-page {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #020617;
  color: #e5e7eb;
}

.pools-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.pools-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.pools-card {
  background: #0f172a;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #1e293b;
}

.pools-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.pools-table th,
.pools-table td {
  padding: 10px;
  border-bottom: 1px solid #1e293b;
  text-align: left;
}

.pools-badge {
  background: #22c55e;
  color: #022c22;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-left: 6px;
}

.pools-footer {
  max-width: 1200px;
  margin: 8px auto 20px;
  padding: 0 20px;
  font-size: 10px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0.85;
}

.pools-footer a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 10px;
}

.pools-footer a:hover {
  text-decoration: underline;
}

/* Refer & Earn page */

.refer-page {
  --accent-soft: rgba(56, 189, 248, 0.15);
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
}

.refer-page .ref-card {
  margin-top: 14px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
}

.refer-page .ref-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.refer-page .ref-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.refer-page .ref-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.refer-page .ref-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  padding: 7px 11px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  min-width: 0;
}

.refer-page .ref-input::placeholder {
  color: #6b7280;
}

.refer-page .ref-copy-btn {
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.refer-page .ref-copy-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.refer-page .ref-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.refer-page .ref-stat {
  flex: 1;
  min-width: 120px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(15, 23, 42, 0.95);
  font-size: 11px;
}

.refer-page .ref-stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.refer-page .ref-stat-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.refer-page .ref-stat-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.refer-page .ref-vip-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.refer-page .ref-vip-note strong {
  color: var(--accent);
}

@media (max-width: 900px) {
  .refer-page .topbar-inner {
    padding-inline: 8px;
  }

  .refer-page .nav {
    display: none;
  }

  .refer-page .search {
    max-width: 180px;
  }

  .refer-page .panel {
    padding: 14px 12px 16px;
  }
}

@media (max-width: 600px) {
  .refer-page .logo-text-sub {
    display: none;
  }

  .refer-page .section-text {
    max-width: none;
  }

  .refer-page .ref-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .refer-page .ref-copy-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .refer-page .lang-switch {
    display: none;
  }
}

/* Lightweight legal pages styling */
.legal-container {
  max-width: 820px;
  margin: 80px auto;
  padding: 20px 24px;
  line-height: 1.6;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.legal-container h1,
.legal-container h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.legal-container p {
  margin-bottom: 12px;
}

.legal-container hr {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

@media (max-width: 600px) {
  .legal-container {
    margin: 60px 12px;
    padding: 16px;
    font-size: 14px;
  }
}

/* Wallet modal */
.wallet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.wallet-modal-open.wallet-overlay {
  opacity: 1;
}

.wallet-modal {
  background: #0b1224;
  border: 1px solid #1e293b;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 24px;
  max-height: 80vh;
  overflow: auto;
  width: min(520px, 90vw);
  color: #f8fafc;
  position: relative;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-modal-title {
  font-size: 18px;
  font-weight: 700;
}

.wallet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wallet-close:hover {
  color: #e2e8f0;
}

.wallet-section {
  margin-bottom: 14px;
}

.wallet-section-title {
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wallet-list {
  display: grid;
  gap: 8px;
}

.wallet-item {
  width: 100%;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px 14px;
  color: #e2e8f0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
}

.wallet-item:hover {
  border-color: #334155;
  background: #0f172a;
}

.wallet-name {
  font-weight: 600;
}

.wallet-sub {
  color: #94a3b8;
  font-size: 13px;
}

.wallet-toggle {
  width: 100%;
  border: 1px solid #1f2937;
  background: #0f172a;
  color: #cbd5e1;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 6px;
}

.wallet-toggle:hover {
  background: #111827;
}

.wallet-error {
  background: #7f1d1d;
  border: 1px solid #b91c1c;
  color: #fecdd3;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
