/* pools.tradeV2 — UI clone of RBHPad Green-Black theme */

:root {
  color-scheme: dark;
  --bg: #030504;
  --panel: rgba(10, 18, 14, 0.82);
  --panel-strong: rgba(16, 28, 22, 0.92);
  --text: #eafff3;
  --muted: #9ab8a6;
  --line: rgba(0, 255, 136, 0.16);
  --accent: #00ff88;
  --accent-2: #00d4aa;
  --lime: #c8ff00;
  --danger: #ff4d6d;
  --radius: 12px;
  --font: 'Kanit', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
}

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

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #0a120e;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff88, #00d4aa);
  border-radius: 4px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
  color: #eafff3;
  margin-top: 0;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 5, 4, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.brand-title {
  font-family: 'Kanit', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 25%, #c8ff00 50%, #ffffff 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 4px rgba(200, 255, 0, 0.55))
    drop-shadow(0 0 12px rgba(200, 255, 0, 0.35));
  animation: rbhTextShimmer 3.5s linear infinite;
  white-space: nowrap;
}

@keyframes rbhTextShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

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

.header-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
  background: rgba(0, 255, 136, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #eafff3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.social-btn:hover {
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chain-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.header-connect {
  min-height: 42px !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

/* =========================
   Buttons
   ========================= */
.rbh-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 32px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #c8ff00 0%, #00ff88 55%, #00d4aa 100%);
  color: #0a120e;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  box-shadow:
    0 10px 32px rgba(200, 255, 0, 0.35),
    0 0 20px rgba(0, 255, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rbh-connect-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rbh-connect-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 44px rgba(200, 255, 0, 0.45),
    0 0 32px rgba(0, 255, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rbh-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1.5px solid rgba(0, 255, 136, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.03));
  color: #eafff3;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.25);
}

.rbh-ghost-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.rbh-ghost-btn:hover {
  border-color: rgba(0, 255, 136, 0.7);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 255, 136, 0.18);
  transform: translateY(-2px);
}

/* =========================
   CA Banner
   ========================= */
.ca-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 255, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(200, 255, 0, 0.08), rgba(0, 255, 136, 0.05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.ca-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ca-banner-left strong {
  display: block;
  font-size: 14px;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.ca-banner-left span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.ca-badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(200, 255, 0, 0.14);
  border: 1px solid rgba(200, 255, 0, 0.35);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.18);
}

/* =========================
   Hero
   ========================= */
.rbh-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 64px 40px;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 255, 136, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 212, 170, 0.10) 0%, transparent 40%),
    linear-gradient(135deg, rgba(10, 18, 14, 0.92), rgba(6, 12, 9, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 255, 136, 0.08);
}

.rbh-hero-copy {
  position: relative;
  z-index: 1;
}

.rbh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbh-hero-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 20%,
    #c8ff00 40%,
    #00ff88 50%,
    #c8ff00 60%,
    #ffffff 80%,
    #ffffff 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 18px rgba(0, 255, 136, 0.45))
    drop-shadow(0 0 36px rgba(200, 255, 0, 0.25));
  animation: rbhTextShimmer 4s linear infinite;
}

.rbh-hero-subtitle {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.rbh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rbh-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.rbh-hero-ring {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.18), transparent 60%);
  border: 1px solid var(--line);
  box-shadow:
    0 0 60px rgba(0, 255, 136, 0.20),
    inset 0 0 40px rgba(0, 255, 136, 0.08);
}

.rbh-hero-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 136, 0.25);
  animation: rbh-spin 18s linear infinite;
}

.rbh-hero-ring span {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.55);
  letter-spacing: -0.02em;
}

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

.rbh-hero-metrics {
  position: absolute;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.rbh-hero-metrics .metric {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--line);
  text-align: center;
}

.rbh-hero-metrics .metric dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rbh-hero-metrics .metric dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

/* =========================
   Banners
   ========================= */
.rbh-banner-carousel {
  position: relative;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.rbh-banner-track {
  position: relative;
  aspect-ratio: 16 / 5;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 212, 170, 0.03));
}

.rbh-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rbh-banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.rbh-banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.rbh-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rbh-banner-controls {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.rbh-banner-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(3, 5, 4, 0.6);
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.rbh-banner-arrow:hover {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.5);
}

.rbh-banner-dots {
  display: flex;
  gap: 8px;
}

.rbh-banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.rbh-banner-dots button.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* =========================
   Feature Cards
   ========================= */
.rbh-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.rbh-feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 212, 170, 0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rbh-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 16px 40px rgba(0, 255, 136, 0.10);
}

.rbh-feature-card .card-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 255, 136, 0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.rbh-feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text);
}

.rbh-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================
   Launch List Panel
   ========================= */
.rbh-list-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.rbh-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.rbh-panel-head .eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbh-panel-head h3 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
}

.rbh-list-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.rbh-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rbh-search-trigger:hover {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--text);
}

.rbh-search-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.rbh-segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.rbh-segment-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rbh-segment-btn:hover {
  color: var(--text);
}

.rbh-segment-btn.active {
  background: rgba(0, 255, 136, 0.14);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.12);
}

.rbh-token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rbh-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Token Card */
.rbh-token-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 170, 0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.rbh-token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.rbh-token-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 18px 48px rgba(0, 255, 136, 0.12);
}

.rbh-token-card:hover::before {
  opacity: 1;
}

.rbh-token-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.rbh-token-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 170, 0.10));
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.rbh-token-info {
  flex: 1;
  min-width: 0;
}

.rbh-token-info h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rbh-token-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.rbh-status-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rbh-status-badge.minting {
  background: rgba(0, 255, 136, 0.10);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.rbh-status-badge.launched {
  background: rgba(200, 255, 0, 0.12);
  color: var(--lime);
  border: 1px solid rgba(200, 255, 0, 0.3);
}

.rbh-status-badge.upcoming {
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.rbh-card-progress {
  margin-bottom: 18px;
}

.rbh-card-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.rbh-card-progress-head span {
  color: var(--muted);
}

.rbh-card-progress-head strong {
  color: var(--accent);
  font-weight: 800;
}

.rbh-card-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rbh-card-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
  transition: width 0.6s ease;
}

.rbh-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.rbh-card-stats .stat {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.rbh-card-stats .stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.rbh-card-stats .stat strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.rbh-card-contract {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.rbh-card-contract span {
  font-size: 12px;
  color: var(--muted);
}

.rbh-card-contract a {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rbh-card-contract a:hover {
  text-decoration: underline;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  margin-top: 48px;
  padding: 28px 0 12px;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

/* Toast */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 2000;
  min-width: min(420px, 92vw);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(11, 14, 17, 0.98);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.toast span {
  color: var(--muted);
  font-size: 13px;
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(3, 5, 4, 0.78);
  backdrop-filter: blur(8px);
}

.search-modal.open {
  display: flex;
}

.search-panel {
  width: min(560px, 100%);
  padding: 20px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.search-panel input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  outline: none;
}

.search-panel input:focus {
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

.search-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  .rbh-token-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .chain-pill {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rbh-hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .rbh-feature-grid {
    grid-template-columns: 1fr;
  }

  .rbh-panel-head {
    flex-direction: column;
  }

  .rbh-list-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rbh-search-trigger {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 24px);
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .site-header-inner {
    width: calc(100% - 24px);
    min-height: 64px;
  }

  .brand-title {
    font-size: 18px;
  }

  .rbh-hero-actions {
    flex-direction: column;
  }

  .rbh-hero-actions > * {
    width: 100%;
  }

  .rbh-hero-metrics {
    position: relative;
    margin-top: 20px;
    max-width: none;
  }

  .rbh-token-grid {
    grid-template-columns: 1fr;
  }

  .rbh-list-panel {
    padding: 20px 16px;
  }

  .rbh-segmented {
    flex-wrap: wrap;
  }

  .rbh-segment-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
  }

  .header-connect span {
    display: none;
  }
}

/* =========================
   Launch Page (/mint/launch)
   ========================= */
.rbh-launch-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}

.rbh-launch-hero-main {
  padding: 40px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 255, 136, 0.10) 0%, transparent 45%),
    linear-gradient(135deg, rgba(10, 18, 14, 0.92), rgba(6, 12, 9, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.rbh-launch-hero-main .eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbh-launch-hero-main h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
}

.rbh-launch-hero-main > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
}

.rbh-launch-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rbh-launch-steps span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.rbh-status-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.rbh-status-card .status-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rbh-status-card .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #454545;
  transition: all 0.3s ease;
}

.rbh-status-card .status-dot.ok {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.rbh-status-card .card-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rbh-status-card strong {
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
}

.rbh-launch-console {
  display: grid;
  gap: 24px;
}

.rbh-form-panel {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.rbh-form-section {
  margin-bottom: 36px;
}

.rbh-form-section:last-child {
  margin-bottom: 0;
}

.rbh-section-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.rbh-section-title > span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.rbh-section-title h4 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}

.rbh-section-title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.rbh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.rbh-form-field.full-field {
  grid-column: 1 / -1;
}

.rbh-form-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.rbh-form-field input,
.rbh-form-field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.rbh-form-field input::placeholder,
.rbh-form-field textarea::placeholder {
  color: #4a6354;
}

.rbh-form-field input:focus,
.rbh-form-field textarea:focus {
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

.rbh-form-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.rbh-payment-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rbh-payment-token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rbh-payment-token.active {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.10);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.rbh-payment-token img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.rbh-upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1 / -1;
}

.rbh-upload-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.rbh-upload-field input[type="file"] {
  display: none;
}

.rbh-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rbh-upload-box:hover {
  border-color: rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.04);
}

.rbh-upload-box .upload-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.10);
  color: var(--accent);
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
}

.rbh-upload-box strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.rbh-upload-box small {
  font-size: 12px;
  color: var(--muted);
}

.rbh-upload-box img.preview {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.rbh-template-section {
  margin-bottom: 36px;
}

.rbh-template-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.rbh-template-hero .eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbh-template-hero h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.rbh-template-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}

.rbh-selected-template-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--line);
}

.rbh-selected-template-panel span {
  font-size: 13px;
  color: var(--muted);
}

.rbh-selected-template-panel strong {
  font-size: 15px;
  color: var(--accent);
}

.rbh-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rbh-template-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rbh-template-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rbh-template-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}

.rbh-template-card span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.rbh-template-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.rbh-template-card.selected {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.10);
}

.rbh-template-card.selected strong {
  color: var(--accent);
}

.rbh-fee-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.10);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.rbh-tax-box {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}

.rbh-tax-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.rbh-tax-head h3 {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.rbh-tax-rate-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.rbh-slider-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rbh-slider-field > span {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.rbh-slider-field > span b {
  color: var(--accent);
}

.rbh-slider-field input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #03ff88 0%,
    #03ff88 var(--range-progress, 0%),
    rgba(255, 255, 255, 0.08) var(--range-progress, 0%),
    rgba(255, 255, 255, 0.08) 100%
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rbh-slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  cursor: pointer;
}

.rbh-slider-field small {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.rbh-tax-note {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rbh-tax-split-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.rbh-tax-split-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rbh-tax-split-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.rbh-tax-split-head span {
  font-size: 13px;
  color: var(--muted);
}

.rbh-tax-warning {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.rbh-tax-split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.rbh-tax-chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rbh-tax-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(
    #00ff88 0 calc(var(--fund, 0) * 1%),
    #00d4aa calc(var(--fund, 0) * 1%) calc((var(--fund, 0) + var(--lp, 0)) * 1%),
    #c8ff00 calc((var(--fund, 0) + var(--lp, 0)) * 1%) calc((var(--fund, 0) + var(--lp, 0) + var(--dividend, 0)) * 1%),
    #ffb237 calc((var(--fund, 0) + var(--lp, 0) + var(--dividend, 0)) * 1%) calc((var(--fund, 0) + var(--lp, 0) + var(--dividend, 0) + var(--burn, 0)) * 1%),
    #6b8a78 calc((var(--fund, 0) + var(--lp, 0) + var(--dividend, 0) + var(--burn, 0)) * 1%) 100%
  );
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.rbh-tax-ring::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #0a120e;
  border: 1px solid var(--line);
}

.rbh-tax-ring strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
  color: var(--text);
}

.rbh-tax-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  width: 100%;
}

.rbh-tax-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.rbh-tax-legend span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #454545);
  flex-shrink: 0;
}

.rbh-tax-legend span em {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.rbh-tax-legend span b {
  color: var(--text);
  font-weight: 700;
}

.rbh-tax-slider-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.allocation-input {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 10px;
  align-items: center;
}

.allocation-input label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.allocation-input input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 14px;
  text-align: right;
  outline: none;
}

.allocation-input input:focus {
  border-color: rgba(0, 255, 136, 0.55);
}

.disabled-field {
  opacity: 0.45;
  pointer-events: none;
}

.rbh-social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rbh-social-input {
  display: grid;
  grid-template-columns: 38px 110px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.rbh-social-input .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
}

.rbh-social-input .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rbh-social-input > span:not(.social-icon) {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.rbh-social-input input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.rbh-social-input input:focus {
  border-color: rgba(0, 255, 136, 0.4);
}

.rbh-social-input input::placeholder {
  color: #4a6354;
}

.rbh-submit-wide {
  width: 100%;
  margin-top: 8px;
  min-height: 56px;
  font-size: 17px;
  border-radius: 14px;
}

.rbh-deploy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 4, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rbh-deploy-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.rbh-deploy-panel {
  width: min(420px, 100%);
  padding: 36px;
  border-radius: var(--radius);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.rbh-deploy-panel .eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rbh-deploy-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--text);
}

.rbh-deploy-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rbh-deploy-orbit {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.rbh-deploy-orbit span {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

.rbh-deploy-address {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .rbh-launch-hero {
    grid-template-columns: 1fr;
  }

  .rbh-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rbh-tax-split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rbh-launch-hero-main {
    padding: 24px 18px;
  }

  .rbh-form-panel {
    padding: 18px 12px;
  }

  .rbh-form-grid {
    grid-template-columns: 1fr;
  }

  .rbh-template-hero {
    flex-direction: column;
  }

  .rbh-template-grid {
    grid-template-columns: 1fr;
  }

  .rbh-tax-rate-stack {
    grid-template-columns: 1fr;
  }

  .rbh-social-input {
    grid-template-columns: 34px 1fr;
  }

  .rbh-social-input > span:not(.social-icon) {
    display: none;
  }

  .rbh-tax-box {
    padding: 18px 12px;
  }
}
