/* ================= ROOT COLORS ================= */
:root {
  --bg: #0f1724;
  --navy: #111a2a;
  --gold: #f6c453;
  --amber: #ffb547;
  --text: #e9edf3;
  --muted: #9fb0c4;

  --card-bg: #050814;
  --card-border: #171f31;
  --nav-h: 64px;
}

/* ================= GLOBAL ================= */

html {
  scroll-behavior: smooth;
}

section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(246, 196, 83, 0.07),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(80, 120, 255, 0.06),
      transparent 45%
    ),
    linear-gradient(180deg, #0f1724, #0c1520);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  opacity: 0.25;
}

/* Better vertical rhythm between big sections */
.hero-section,
.how-it-works,
.security-section,
.features,
.feature-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Make the 3-step + security area feel more “anchored” */
.how-it-works,
.security-section {
  position: relative;
}

.how-it-works::before,
.security-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Keep content above that overlay */
.how-it-works > .shell,
.security-section > .shell {
  position: relative;
  z-index: 1;
}


/* Utility */
.hidden {
  display: none !important;
}

a {
  color: var(--gold);
}

/* ================= NAVBAR (landing page) ================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  background: rgba(18, 26, 43, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2a44;
}

.logo {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--amber) 60%, #1b2435 100%);
  color: var(--bg);
  font-weight: 800;
  border-radius: 10px;
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

.soltra-s {
  font-weight: 900;
  letter-spacing: -2px;
  font-size: 1.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(13, 18, 36, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2a44;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.85rem;
}

.site-nav a {
  color: rgba(159, 176, 196, 0.92);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 14px rgba(246,196,83,0.12);
}

.site-nav a.active {
  color: var(--text);
  border-color: var(--gold);
  opacity: 1;
}

.site-nav a.active {
  color: var(--text);
  border-bottom-color: rgba(246, 196, 83, 0.9);
}

.site-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  box-shadow: 0 0 14px rgba(246,196,83,0.22);
}


.site-nav-cta {
  display: flex;
  align-items: center;
}

.nav-cta-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--amber));
  color: #050814;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.nav-cta-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

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

  .site-header {
    padding: 12px 20px;
  }
}

.nav-signin-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.nav-signin-link:hover {
  color: var(--text);
  border-bottom-color: rgba(246,196,83,0.7);
}



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

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #F9FAFB;
}

/* === Security / Non-custodial section === */

.security-section {
  padding: 4rem 0 4.5rem;
  border-top: 1px solid #1c2740;
  border-bottom: 1px solid #1c2740;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(246,196,83,0.08),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(56,189,248,0.07),
      transparent 55%
    ),
    #050b16;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.security-copy h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.security-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
}

.security-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.security-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  max-width: 34rem;
}

.security-bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  margin-top: 0.35rem;
}

.security-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* right-hand cards */

.security-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-card {
  background: #111a2a;
  border-radius: 14px;
  border: 1px solid #1c2740;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 35px rgba(0,0,0,0.6);
  font-size: 0.85rem;
}

.security-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.security-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.security-icon {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* responsive stack */

@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .security-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}



/* ---------- HERO LAYOUT ---------- */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-section {
  padding: 4.5rem 0 4rem;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

/* ---------- HERO LEFT: COPY + WAITLIST ---------- */

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-title .highlight {
  color: var(--gold);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30rem;
  margin: 0 0 0.9rem;
}

/* ===== Scroll hint ===== */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  opacity: 0.85;
  user-select: none;
}

.scroll-hint-text {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint-mouse {
  width: 34px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(5, 11, 22, 0.55);
  display: grid;
  place-items: start center;
  padding-top: 10px;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.scroll-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--amber));
  animation: scrollDot 1.25s ease-in-out infinite;
}

/* Dot moves down, fades, snaps back */
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  55%  { transform: translateY(14px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Optional: hide on small screens so it doesn’t crowd */
@media (max-width: 600px) {
  .scroll-hint { display: none; }
}

/* ===== Integrations strip ===== */
.integrations {
  padding: 0.5rem 0 2.25rem;
}

.integrations-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;

  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: radial-gradient(
    circle at top left,
    rgba(246,196,83,0.08),
    rgba(8,16,32,0.92) 55%,
    #050b16 100%
  );
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* subtle sheen */
.integrations-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.06),
    transparent
  );
  transform: translateX(-120%);
  animation: integSheen 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes integSheen {
  0%, 55% { transform: translateX(-120%); }
  85%    { transform: translateX(120%); }
  100%   { transform: translateX(120%); }
}

.integrations-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-right: 0.25rem;
}

.integrations-logos {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.integration-pill.ghost {
  color: var(--muted);
  font-weight: 500;
  background: rgba(255,255,255,0.03);
}

.integration-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
}

.integration-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--amber));
  box-shadow: 0 0 14px rgba(246,196,83,0.25);
}

@media (max-width: 700px) {
  .integrations-inner {
    padding: 0.85rem 0.85rem;
  }
}

/* Secondary descriptor line */
.integrations-meta {
  width: 100%;
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.integrations-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Solana coming soon pill */
.integration-pill.muted {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
  font-weight: 500;
}

.coming-soon {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* Mobile tightening */
@media (max-width: 600px) {
  .integrations-meta {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}

/* ===== Treasury wallets support strip ===== */
.treasury-support {
  padding: 0.4rem 0 2.2rem;
}

.treasury-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;

  max-width: 820px;
  margin: 0 auto;
  padding: 0.6rem 0.9rem;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.025);
}

.treasury-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.treasury-logos {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.treasury-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

/* Mobile spacing */
@media (max-width: 600px) {
  .treasury-inner {
    gap: 0.45rem;
    padding: 0.6rem;
  }
}

/* ===== Trust strip ===== */
.trust-strip {
  padding: 0.6rem 0 3.2rem;
}

.trust-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;

  border-radius: 18px;
  background: radial-gradient(
    circle at top left,
    rgba(246,196,83,0.06),
    rgba(8,16,32,0.92) 55%,
    #050b16 100%
  );
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  text-align: center;
}

.trust-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.trust-copy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
}

/* Mobile tightening */
@media (max-width: 600px) {
  .trust-inner {
    padding: 0.95rem 0.9rem;
  }

  .trust-copy {
    font-size: 0.9rem;
  }
}

/* ===== Pricing section ===== */
.pricing-section {
  padding: 3.5rem 0 4.5rem;
}

.pricing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pricing-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.pricing-header p {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing card */
.pricing-card {
  display: flex;
  justify-content: center;
}

.pricing-tier {
  width: 100%;
  max-width: 420px;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 20px;
  background: radial-gradient(
    circle at top left,
    rgba(246,196,83,0.12),
    rgba(8,16,32,0.95) 55%,
    #050b16 100%
  );
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 26px 70px rgba(0,0,0,0.7);
}

.pricing-name {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.pricing-price {
  margin-bottom: 1rem;
}

.price {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold);
}

.price-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Feature list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-features li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* CTA */
.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.pricing-footnote {
  font-size: 0.75rem;
  color: var(--muted);
}



/* Waitlist form inside hero */

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.waitlist-input {
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #24304a;
  background: #050b16;
  color: var(--text);
  font-size: 0.9rem;
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.waitlist-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
}

.waitlist-message {
  width: 100%;
  font-size: 0.75rem;
  margin-top: 0.15rem;
  color: var(--muted);
}

.waitlist-message.success {
  color: #5de0b1;
}

.waitlist-message.error {
  color: #ff8b8b;
}

/* ---------- HERO RIGHT: PREVIEW CARD ---------- */

.hero-preview {
  display: flex;
  justify-content: center;
}

.hero-preview-inner {
  background: radial-gradient(circle at top left,
      #1d2942 0%,
      #111827 55%,
      #050b16 100%);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.hero-preview-inner h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

/* payout rows */

.payout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.payout-row:last-of-type {
  border-bottom: none;
}

/* summary rows at bottom */

.payout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  font-size: 0.8rem;
}

.payout-summary-main {
  font-weight: 600;
}

.payout-summary-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,215,128,0.25), transparent 70%);
  top: -150px;
  left: -100px;
  animation: float 8s ease-in-out infinite alternate;
  filter: blur(40px);
  z-index: -1;
}

@keyframes float {
  from { transform: translateY(0px) translateX(0px); }
  to { transform: translateY(40px) translateX(30px); }
}

/* ===== CSV Preview ===== */
.csv-preview {
  padding: 3.5rem 0 4.5rem;
}

.csv-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: center;
}

.csv-copy h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.csv-copy p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.csv-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.csv-copy li + li {
  margin-top: 0.25rem;
}

/* CSV card */
.csv-card {
  border-radius: 16px;
  background: #050b16;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 22px 60px rgba(0,0,0,0.65);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.csv-header {
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem;
  background: #0b1220;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.csv-table {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.csv-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr 0.9fr 1.4fr;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.csv-row:last-child {
  border-bottom: none;
}

.csv-head {
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.csv-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csv-footer {
  padding: 0.45rem 0.7rem;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Mobile */
@media (max-width: 900px) {
  .csv-inner {
    grid-template-columns: 1fr;
  }
}

.compliance-line {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}




/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .hero-section {
    padding-top: 3rem;
  }

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

  .hero-preview {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .waitlist-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .waitlist-input {
    width: 100%;
  }

  .waitlist-btn {
    width: auto;
  }
}

/* ===== How Soltra Works ===== */

.how-it-works {
  padding: 3.5rem 0 3.5rem;
}

.how-header {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.how-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.how-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps grid */

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.how-step {
  background: radial-gradient(circle at top left,
    #17233a 0%,
    #0e1728 55%,
    #050b16 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

.how-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #020617;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
  margin-bottom: 0.7rem;
}

.how-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.how-step p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.how-step ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.how-step li + li {
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .how-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== APP PREVIEW STRIP ===== */
.app-preview-strip {
  padding: 4.25rem 0 3.5rem;
}

.app-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.app-preview-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.app-preview-copy h2 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  line-height: 1.15;
}

.app-preview-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38rem;
}

.app-preview-bullets {
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.92rem;
}

.app-preview-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--amber));
  box-shadow: 0 0 0 4px rgba(246,196,83,0.12);
  flex: 0 0 auto;
}

.app-preview-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.secondary-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
  font-size: 0.9rem;
}

.secondary-link:hover {
  color: var(--text);
  border-bottom-color: rgba(246,196,83,0.7);
}

/* UI window */
.app-preview-ui .ui-window {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: radial-gradient(circle at top left,
    rgba(246,196,83,0.12),
    rgba(8,16,32,0.96) 55%,
    #050b16 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,0.75);
}

.ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 16, 32, 0.85);
}

.ui-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.ui-title {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
}

.ui-pill {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.15);
}

.ui-body {
  padding: 1rem;
}

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ui-kpi {
  border-radius: 14px;
  padding: 0.85rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.ui-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ui-kpi-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.ui-kpi-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.ui-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}

.ui-table-head,
.ui-table-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr 0.7fr 1.2fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  align-items: center;
}

.ui-table-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.ui-table-row {
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ui-table-row:last-child {
  border-bottom: none;
}

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

.ui-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.ui-footer-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .app-preview-grid {
    grid-template-columns: 1fr;
  }
  .ui-kpis {
    grid-template-columns: 1fr;
  }
  .ui-table-head,
  .ui-table-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .ui-table-head span:nth-child(n+3),
  .ui-table-row span:nth-child(n+3) {
    display: none;
  }
}



/* ---------- DASHBOARD LAYOUT ---------- */

.dashboard-shell {
  padding: 2.5rem 0 4rem;
}

/* === Dashboard onboarding banner === */

.onboarding-banner {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(246, 196, 83, 0.32);
  background: radial-gradient(
      circle at top left,
      rgba(246, 196, 83, 0.18),
      rgba(15, 23, 42, 0.96) 55%,
      #050b16 100%
    );
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  display: flex;
  gap: 1.2rem;
}

.onboarding-main {
  flex: 1;
}

.onboarding-main h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.onboarding-text {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 280px;
}

.onboarding-step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #020617;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.onboarding-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.onboarding-step-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.onboarding-step-text {
  font-size: 0.78rem;
  color: var(--muted);
}

.onboarding-cta {
  margin-top: 0.15rem;
  padding-inline: 0.7rem;
}

/* dismiss button (X) */
.onboarding-dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.1rem;
}

.onboarding-dismiss:hover {
  color: var(--text);
}

/* responsive */
@media (max-width: 900px) {
  .onboarding-banner {
    flex-direction: column;
  }
}


.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dash-title {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.dash-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Filters (reuse from earlier but tuned a bit) */

.dash-filters {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  font-size: 0.8rem;
}

.dash-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-filter-group label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.dash-filter-group select {
  background: #050b16;
  border-radius: 999px;
  border: 1px solid #24304a;
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}

.dash-filters-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.dash-updated {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.8;
}

/* tweak for mobile */
@media (max-width: 900px) {
  .dash-filters-wrap {
    align-items: flex-start;
  }
}


/* KPI cards */

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.dash-card {
  background: radial-gradient(circle at top left,
      #17233a 0%,
      #0e1728 55%,
      #050b16 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.dash-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.dash-card-value {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.dash-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Table card */

.dash-table-card {
  margin-top: 0.5rem;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dash-table thead tr {
  border-bottom: 1px solid #1f2a44;
}

.dash-table th,
.dash-table td {
  padding: 0.5rem 0.25rem;
  text-align: left;
  white-space: nowrap;
}

.dash-table th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 36, 0.6);
}

.dash-table tbody tr:hover {
  background: rgba(28, 39, 64, 0.9);
}

/* Tx hash column: slightly dimmer */
.dash-table td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* === Empty states for tables === */

.empty-state {
  text-align: center;
  padding: 1.9rem 0.75rem;
  color: var(--muted);
}

.empty-state-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.empty-state-text {
  font-size: 0.8rem;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.4;
}


/* ---------- DASHBOARD CHARTS ---------- */

.dash-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
  margin-bottom: 2.4rem;
}

.chart-card {
  background: radial-gradient(
      circle at top left,
      rgba(246, 196, 83, 0.12),
      rgba(8, 16, 32, 0.95) 55%,
      #050b16 100%
    );
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.chart-card-header h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.chart-card-header p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}


/* Make canvas fit nicely */
.chart-card canvas {
  width: 100% !important;
  height: 260px !important;
}

/* Responsive: stack charts on narrow screens */
@media (max-width: 900px) {
  .dash-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Dashboard highlight animations ===== */

@keyframes dashPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.03);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    border-color: rgba(246, 196, 83, 0.65);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.03);
  }
}

@keyframes dashGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 196, 83, 0);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(246, 196, 83, 0.14);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 196, 83, 0);
  }
}

.dash-pulse {
  animation: dashPulse 0.55s ease-out;
}

.dash-pulse-soft {
  animation: dashGlow 0.85s ease-out;
}



/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 600px) {
  .dash-filters {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ---------- SHARED SECTION STYLES ---------- */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Two-column layout for forms + tables */

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr);
  gap: 1.7rem;
}

/* ---------- FORM CARDS ---------- */

.form-card,
.table-card {
  background: radial-gradient(circle at top left,
      #17233a 0%,
      #0e1728 55%,
      #050b16 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.form-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.form-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Form grid */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

/* Labels & inputs */

.field-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field-label span {
  color: var(--gold);
  margin-left: 0.15rem;
}

.input-control {
  background: #050b16;
  border-radius: 10px;
  border: 1px solid #24304a;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.55rem 0.7rem;
}

.input-control::placeholder {
  color: var(--muted);
}

.input-control.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
}

.textarea-control {
  resize: vertical;
  min-height: 70px;
}

/* Helper text */

.field-help {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Primary form button override */

.primary-btn {
  margin-top: 0.3rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
}

/* Table card header */

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Responsive */

@media (max-width: 900px) {
  .two-column-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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



/* CTA button micro-interactions */

.btn {
  position: relative;
  border: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
}

.btn:hover::after {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover::before {
  opacity: 1;
}



/* ===== Section divider between hero and feature cards ===== */

.section-divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246,196,83,0.55),
    transparent
  );
  opacity: 0.5;
}

/* ===== Feature cards row ===== */

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 3.25rem 1rem 5.5rem;
  background: var(--navy);
}

/* feature is now an <a>, so treat it as a block link */
.features .feature {
  background: #111a2a;
  border: 1px solid #1c2740;
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  max-width: 260px;
  width: 100%;
  text-align: left;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  transform: translateY(0);
  text-decoration: none;
}

.features .feature:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* ===== Feature detail sections (landing page) ===== */

.feature-section {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2.4rem 2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
    #17233a 0%,
    #0e1728 55%,
    #050b16 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.feature-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.feature-section p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-section ul {
  margin: 0 0 1.4rem 1.2rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-section li + li {
  margin-top: 0.25rem;
}

.feature-section .btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
}


.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.feature h3 {
  color: var(--gold);
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

html { scroll-behavior: smooth; }

.features .feature {
  text-decoration: none;
  color: inherit;
  display: block;
}

.features .feature.reveal { transform: translateY(16px); }
.features .feature.reveal.in-view { transform: translateY(0); }

/* Stack nicely on mobile */
@media (max-width: 800px) {
  .features {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .feature {
    max-width: 320px;
  }
}


/* ================= FOOTER ================= */
footer {
  border-top: 1px solid #1c2740;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ========================================= */
/* ========== APP SHELL (Stripe UI) ========= */
/* ========================================= */

.app-shell {
  display: none; /* Auth reveals it */
  padding: 3rem 1rem 5rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* Main layout container */
.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.app-sidebar {
  background: #070b16;
  border-right: 1px solid #171f31;
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  font-weight: 600;
}

.sidebar-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--amber) 60%, #1b2435 100%);
  color: #050814;
  font-size: 0.9rem;
}

.app-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tab-button {
  position: relative;
  width: 100%;
  text-align: left;
  background: transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;                 /* new */
  align-items: center;           /* new */
  justify-content: space-between;/* new */
  gap: 0.4rem;                   /* new */
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}

.tab-button:hover {
  background: #0e1728;
  border-color: #293555;
  color: var(--text);
  transform: translateX(2px);
}

/* gold accent bar on active/hover */
.tab-button::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--gold),
    var(--amber)
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tab-button.active::before,
.tab-button:hover::before {
  opacity: 1;
}

.tab-pill {
  min-width: 1.4rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #050814;
  border: 1px solid #283351;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.tab-pill:empty {
  display: none; /* hide pill when no count */
}

.tab-button.active .tab-pill {
  border-color: var(--gold);
  color: var(--text);
}


.sidebar-foot {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.sidebar-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #283351;
  background: #0b1120;
}

/* ================= MAIN AREA ================= */
.app-main {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #171f31;
}

.app-header h2 {
  margin: 0 0 0.25rem;
}

.app-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-select {
  background: #050814;
  border-radius: 999px;
  border: 1px solid #283351;
  padding: 0.4rem 0.9rem;
  color: var(--text);
  font-size: 0.8rem;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0b1120;
  border-radius: 999px;
  border: 1px solid #283351;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111827;
  font-size: 0.8rem;
}

.user-name {
  font-size: 0.8rem;
}

.app-main-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ================= KPI CARDS ================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  padding: 0.9rem 1rem;
}

.kpi-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ================= CARDS ================= */
.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
}

.card-title {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
}

.summary-list span {
  max-width: 70%;
}

.summary-list strong {
  font-size: 0.9rem;
  color: var(--text);
}


/* ================= TABLES ================= */
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.app-table th,
.app-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--card-border);
}

.app-table th {
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}

.app-table tbody tr:hover {
  background: #080f22;
}

/* ================= FORMS ================= */
.add-contractor-form,
.payout-form {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
  background: #0b1120;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #1b2435;
}

.add-contractor-form input,
.payout-form input,
.payout-form select,
.payout-form textarea {
  width: 100%;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid #283351;
  background: #050814;
  color: var(--text);
  font-size: 0.85rem;
}

.mini-btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--gold);
  color: #050814;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ================= REPORTS ================= */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters-row {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.filters-row select {
  background: #050814;
  border-radius: 8px;
  border: 1px solid #283351;
  padding: 0.5rem;
  color: var(--text);
}

/* === Reports empty state === */

.reports-empty {
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.78);
  margin-bottom: 1rem;
}

.reports-empty h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.reports-empty p {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .app-tabs {
    flex-direction: row;
  }

  .sidebar-foot {
    display: none;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== Auth card (login/signup) ===== */

#auth-wrapper {
  padding: 3rem 1rem 0;
  display: flex;
  justify-content: center;
  margin-top: 3rem;  /* was 4rem */
  margin-bottom: 1.8rem;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background: #111a2a;
  border-radius: 16px;
  border: 1px solid #1c2740;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: left;
}

.auth-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

#auth-form input {
  background: #0f1724;
  border-radius: 10px;
  border: 1px solid #1c2740;
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
}

#auth-form input::placeholder {
  color: var(--muted);
}

.auth-btn {
  width: 100%;
  justify-content: center;
}

.auth-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  cursor: pointer;
  text-decoration: underline;
}

.auth-message {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.auth-message.error {
  color: #ff6b6b;
}

.auth-message.success {
  color: #4ade80;
}

/* Ensure app shell is hidden when logged out */
.app-shell {
  display: none;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.2rem;
}

.waitlist-input {
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #24304a;
  background: #050b16;
  color: var(--text);
  font-size: 0.9rem;
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.waitlist-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
}

.waitlist-message {
  width: 100%;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  color: var(--muted);
}

.waitlist-message.success {
  color: #5de0b1;
}

.waitlist-message.error {
  color: #ff8b8b;
}

@media (max-width: 700px) {
  .waitlist-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .waitlist-input {
    width: 100%;
  }
}

.dash-filters {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.dash-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-filter-group label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.dash-filter-group select {
  background: #050b16;
  border-radius: 999px;
  border: 1px solid #24304a;
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
}

@media (max-width: 800px) {
  .dash-filters {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Make contractors & payouts views line up with dashboard */
#view-contractors .dashboard-shell,
#view-payouts .dashboard-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Ensure the two-column layout fills that width */
#view-contractors .two-column-layout,
#view-payouts .two-column-layout {
  width: 100%;
}

/* Optional: give a little extra space below the top dashboard snapshot
   so the next sections don't feel jammed up against it */
#view-contractors .section-header,
#view-payouts .section-header {
  margin-top: 0.5rem;
}

/* Dashboard (Overview) – tighten top spacing so it sits closer to the header */
#view-dashboard .dashboard-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.5rem;   /* was effectively larger before */
  padding-bottom: 4rem;
}

/* Align Overview (Dashboard) with Contractors & Payouts */

/* If your wrapper is #view-dashboard OR #view-overview,
   this will catch both. One of them will match. */
#view-dashboard .dashboard-shell,
#view-overview .dashboard-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.25rem;   /* tighter gap under "Soltra Dashboard" bar */
  padding-bottom: 4rem;
}

/* Bring the "Dashboard" title a bit closer to the top bar */
#view-dashboard .dash-header,
#view-overview .dash-header {
  margin-top: 0.5rem;
}

/* ---- INPUT FIELDS ---- */
input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  outline: none;
  transition: 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(246,196,83,0.5); /* soft gold */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(246,196,83,0.35);
}

/* === Chain Pill Component === */
.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af; /* soft text gray */
}

.chain-pill img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

/* === Wallet cell (avatar + address) === */

.wallet-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wallet-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #020617;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.wallet-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text);
}

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger support (optional) */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 4rem 0 3.5rem;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
  border-radius: 22px;
  padding: 2.2rem 2rem;
  background: radial-gradient(circle at top left,
      rgba(246,196,83,0.16),
      rgba(8,16,32,0.96) 55%,
      #050b16 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 28px 70px rgba(0,0,0,0.7);
}

.final-cta h2 {
  margin: 0 0 0.6rem;
  font-size: 1.75rem;
}

.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.final-cta-btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--amber));
  color: #050814;
  font-weight: 700;
  text-decoration: none;
}

.final-cta-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
}

.final-cta-link:hover {
  color: var(--text);
  border-bottom-color: rgba(246,196,83,0.7);
}

@media (max-width: 900px) {
  .final-cta-inner {
    grid-template-columns: 1fr;
  }
  .final-cta-actions {
    align-items: flex-start;
  }
}

/* ===== MINI FAQ ===== */
.mini-faq {
  padding: 3rem 0 4.5rem;
}

.faq-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.faq-header p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  background: radial-gradient(circle at top left,
      #17233a 0%,
      #0e1728 55%,
      #050b16 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-card {
  position: relative;
  z-index: 61;
  width: 420px;
  max-width: 90%;
  background: #050b16;
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(246, 196, 83, 0.15);
}

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

.modal-header h3 {
  font-size: 16px;
  color: #e5edf7;
}

.modal-close {
  background: transparent;
  border: none;
  color: #9fb0c4;
  cursor: pointer;
  font-size: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #9fb0c4;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-row span {
  opacity: 0.7;
}

.modal-row strong {
  color: #f6c453;
}

.modal-note {
  text-align: right;
  white-space: pre-wrap;
}

/* === Payout detail side panel === */

#payout-detail-root {
  position: fixed;
  inset: 0;
  pointer-events: none;        /* only active when open */
  z-index: 40;                 /* above app-shell */
}

/* Backdrop */
.payout-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* Panel */
.payout-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 90vw;
  background: #050b16;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.24s ease-out, opacity 0.24s ease-out;
}

/* Open state toggled via JS */
.payout-detail-open #payout-detail-backdrop {
  opacity: 1;
}

.payout-detail-open .payout-detail-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pd-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0c4;
  margin-bottom: 4px;
}

.pd-title {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.pd-close-btn {
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.pd-close-btn:hover {
  background: rgba(30, 64, 175, 0.9);
}

.pd-body {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pd-row-notes {
  flex-direction: column;
  gap: 6px;
}

.pd-label {
  color: #9fb0c4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pd-value,
.pd-notes {
  color: #e5e7eb;
  font-size: 13px;
  word-break: break-word;
}

.pd-notes {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 40px;
}

#pd-txhash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
}

.tx-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: #9fb0c4;
  text-decoration: none;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(148, 163, 184, 0.16);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.tx-link:hover {
  background: rgba(246, 196, 83, 0.18);
  color: #f6c453;
  transform: translateY(-1px);
}

.payout-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payout-modal.hidden {
  display: none;
}

.payout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 22, 0.78);
  backdrop-filter: blur(4px);
}

.payout-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 1.25rem;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #18253a 0%, #0b1220 50%, #050814 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  padding: 1.4rem 1.5rem 1.6rem;
}

.payout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.payout-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payout-modal-close {
  border: none;
  background: transparent;
  color: #9fb0c4;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
}

.payout-modal-close:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e5eefb;
}

.payout-modal-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.payout-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.2rem;
  margin: 0;
}

.payout-modal-grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.payout-modal-grid dd {
  margin: 0;
  color: #e5eefb;
  word-break: break-all;
}

@media (max-width: 640px) {
  .payout-modal-dialog {
    margin: 0 0.75rem;
  }

  .payout-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Payout rows --- */

.payout-row {
  cursor: pointer;
  transition:
    background-color 120ms ease-out,
    transform 120ms ease-out;
}

.payout-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.payout-row--active {
  background-color: rgba(246, 196, 83, 0.08); /* gold-ish highlight */
}

.payout-row--active td {
  color: #f6c453;
}

/* --- Payout detail modal animations --- */

#payout-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

#payout-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* Dimmed background */
#payout-modal .modal-backdrop {
  opacity: 0;
  transition: opacity 160ms ease-out;
}

#payout-modal.open .modal-backdrop {
  opacity: 1;
}

/* Panel itself */
#payout-modal .modal-panel {
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition:
    transform 170ms ease-out,
    opacity 170ms ease-out;
}

#payout-modal.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Copy TX button */
.modal-copy-btn {
  border: none;
  background: rgba(246, 196, 83, 0.08);
  color: #f6c453;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 120ms ease-out,
    transform 120ms ease-out;
}

.modal-copy-btn:hover {
  background: rgba(246, 196, 83, 0.18);
  transform: translateY(-1px);
}

.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}

/* Toast */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
  z-index: 9999;
}

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

.payout-row--new {
  animation: payoutRowFlash 900ms ease-out;
}

@keyframes payoutRowFlash {
  0%   { background-color: rgba(246, 196, 83, 0.28); }
  60%  { background-color: rgba(246, 196, 83, 0.12); }
  100% { background-color: transparent; }
}

.dash-row--new {
  animation: payoutRowFlash 900ms ease-out; /* reuse same keyframes */
}


/* Toast */
.toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  padding: 0.6rem 1.0rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96); /* deep slate */
  color: #f9fafb;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tx hash row in modal */
.txhash-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
}

/* Copy button */
.copy-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.copy-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(191, 219, 254, 0.9);
}

.copy-btn:active {
  transform: translateY(1px);
}

/* ===== MODAL HASH SECTION ===== */
.payout-modal-field {
  margin-top: 1.2rem;
}

.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.modal-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d8e1ec;
}

.modal-copy-btn {
  background: #1c7ed6;
  color: white;
  border: none;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-copy-btn:hover {
  background: #0b69c8;
}

.modal-code {
  background: #0d111a;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  display: inline-block;
  word-break: break-all;
  border: 1px solid #1e2635;
  width: 100%;
  color: #9ec3f0;
}


/* ===== COPY TOAST ===== */
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #3b82f6;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-explorer-link {
  font-size: 0.75rem;
  color: #93c5fd;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.modal-explorer-link:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: #60a5fa;
  color: #bfdbfe;
}


/* === Payout modal base === */
.payout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;        /* turned back on when open */
  opacity: 0;
  transition: opacity 160ms ease-out;
}

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

/* Backdrop */
.payout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(246,196,83,0.18), transparent),
              rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
}

/* Dialog card */
.payout-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, rgba(246,196,83,0.12), transparent),
              #050816;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}

.payout-modal--open .payout-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */
.payout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.payout-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Close button */
.payout-modal-close {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 80ms;
}

.payout-modal-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #f9fafb;
}

.payout-modal-close:active {
  transform: scale(0.93);
}

/* Body / grid */
.payout-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.payout-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.4rem;
}

.payout-modal-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
}

.payout-modal-grid dd {
  margin-top: 0.15rem;
  font-size: 0.92rem;
}

/* Field sections (TX hash + notes) */
.payout-modal-field {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.modal-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

/* Copy button */
.modal-copy-btn {
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(246, 196, 83, 0.1);
  color: #f6c453;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition:
    background-color 140ms ease-out,
    box-shadow 140ms ease-out,
    transform 80ms ease-out;
}

.modal-copy-btn:hover {
  background: rgba(246, 196, 83, 0.2);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.35);
}

.modal-copy-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* TX hash code block */
.modal-code {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  color: #e5e7eb;
}

/* Note text */
.modal-note {
  font-size: 0.86rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* Little toast (if you’re using a #copy-toast div) */
.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.78rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}

.copy-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .payout-modal,
  .payout-modal-dialog,
  .copy-toast {
    transition: none !important;
  }
}

.payout-row {
  cursor: pointer;
  transition: background-color 120ms ease-out, transform 100ms ease-out;
}

.payout-row:hover {
  background: rgba(15, 23, 42, 0.9);
}

.payout-row:focus-visible {
  outline: 2px solid rgba(246, 196, 83, 0.75);
  outline-offset: 2px;
  background: rgba(15, 23, 42, 0.96);
}

.pricing-page {
  background: #050b16;
  color: #fff;
  font-family: sans-serif;
  padding: 40px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-plans {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.plan-card {
  background: #0d1627;
  border-radius: 12px;
  padding: 24px;
  width: 280px;
  border: 1px solid #1e2a40;
  transition: 0.2s;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: #f6c453;
}

.plan-card.highlight {
  border: 2px solid #f6c453;
  box-shadow: 0 0 20px rgba(246,196,83,0.2);
}

.price {
  font-size: 2rem;
  margin: 16px 0;
}

.plan-btn {
  background: #1a2538;
  color: white;
  padding: 12px;
  border-radius: 6px;
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.plan-btn.gold {
  background: #f6c453;
  color: #000;
  font-weight: bold;
}

.upgrade-cta {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #FFD86F, #FFB44A);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  transition: 0.2s ease;
}

.upgrade-cta:hover {
  background: linear-gradient(135deg, #FFE9A9, #FFCB7E);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 214, 120, 0.6);
}

.modal-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  color: #f8fafc;
  font-size: 13px;
}

.modal-btn.primary {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #f6b74b;
  color: #050816;
  font-weight: 600;
}

.modal-btn.secondary {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
}

.modal-btn.secondary.danger {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

/* === Landing CTA polish (index.html) === */

/* Base button: works for <button> and <a class="btn"> */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #111827; /* subtle dark base for non-primary */
  color: var(--text);
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Gold primary variant – used across landing CTAs */
.primary-btn {
  background: linear-gradient(120deg, var(--gold), var(--amber));
  color: #050814;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

/* Keep existing sheen effect but make sure it’s additive */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
}

.btn:hover::after {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  opacity: 0.15; /* subtle glow overlay */
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* Tap feedback */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.compliance-line {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: left;
}

/* ===== Who Soltra is for ===== */

.who-for {
  padding: 3.5rem 0 4rem;
}

.who-header {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: left;
}

.who-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.who-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.who-card {
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  background: radial-gradient(
    circle at top left,
    #17233a 0%,
    #0e1728 55%,
    #050b16 100%
  );
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
  font-size: 0.9rem;
}

.who-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--gold);
}

.who-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.who-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.who-card li + li {
  margin-top: 0.25rem;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .who-header {
    text-align: left;
  }
}

.treasury-logos {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* make wallet pills flex so text + logo align */
.treasury-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

/* wallet logo */
.treasury-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

/* Base pill icon style (chains) */
.integration-icon,
.treasury-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

/* Chain “logos” */
.integration-icon-usdc {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #1c64f2 50%, #0b1d3a 100%);
}

.integration-icon-base {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #0ea5e9 50%, #022c43 100%);
}

.integration-icon-polygon {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #a855f7 55%, #2b0f46 100%);
}

.integration-icon-ethereum {
  background: radial-gradient(circle at 30% 10%, #e5e7eb 0%, #4b5563 45%, #020617 100%);
}

.integration-icon-solana {
  background: linear-gradient(135deg, #22d3ee, #a855f7, #22c55e);
}

/* Wallet “logos” */
.treasury-icon-safe {
  background: radial-gradient(circle at 30% 30%, #ecfeff 0%, #22c55e 55%, #052e16 100%);
}

.treasury-icon-ledger {
  background: radial-gradient(circle at 30% 30%, #f9fafb 0%, #111827 60%, #020617 100%);
}

.treasury-icon-browser {
  background: radial-gradient(circle at 30% 30%, #fef9c3 0%, #f97316 55%, #1b1a2f 100%);
}

/* Real logo icons for chain + wallets */
.integration-icon,
.treasury-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: contain;
  background: #020617;        /* subtle dark circle behind logo */
  padding: 2px;
  display: inline-block;
}

.pill-logo {
  height: 16px;
  width: 16px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

.integration-pill img {
  height: 18px;
  width: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.integration-pill img[src*="base.svg"] {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  border-radius: 50%;
}

.integration-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
}

.integration-pill img[src*="usdc"] {
  filter: drop-shadow(0 0 3px rgba(113, 168, 255, 0.65));
}

.pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #262c3e, #050814);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-icon .pill-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

/* USDC pill: remove the dark ring and let the logo be the circle */
.pill--usdc .pill-icon {
  background: transparent;   /* kill the black circle */
  box-shadow: none;          /* no extra glow/ring */
  padding: 0;
}

/* Make the USDC logo fill the same size as the Base dot */
.pill--usdc .pill-icon-img {
  display: block;
  width: 26px;               /* match .pill-icon width */
  height: 26px;              /* match .pill-icon height */
  border-radius: 999px;      /* keep it perfectly round */
}

/* Container Fix */
.integrations-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Default Pill Layout */
.pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #fff;
}

/* Highlighted Primary Pills (USDC + Base) */
.pill--primary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Coming soon (Solana) */
.pill--ghost {
  opacity: 0.35;
}

/* Logo Sizing */
.pill-icon img,
.pill-logo,
.integration-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
}

/* Label inside pill */
.pill-label {
  display: block;
  line-height: 1;
}

/* Coming soon text */
.pill-meta {
  font-size: 12px;
  opacity: 0.55;
  margin-left: 4px;
}

.treasury-logos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.treasury-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-right: 1.25rem;
}

.treasury-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #1c2638, #020617);
}

.pill-icon-img {
  width: 16px;
  height: 16px;
}

.pill-label {
  font-size: 0.85rem;
  color: #F1F5F9;
}

/* --- BASE (SQUARE LOGO) --- */
.base-pill .base-icon {
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.base-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 0 !important;
  object-fit: contain;
}

/* Make Base pill match other pill dimensions */
.integration-pill.base-pill {
  height: 40px; /* same height as others */
  padding: 0 14px; /* match horizontal spacing */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Adjust the square icon inside */
.base-pill .base-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px; /* still square, but smooth edges */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the Base SVG fills properly */
.base-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Base-only tweak: keep the square, but centered in the same shell */
.pill-icon--base .pill-icon-img {
  width: 18px;        /* slightly smaller so corners don't touch the circle */
  height: 18px;
  border-radius: 4px; /* rounded square, not a circle */
}

/* 1. Give ALL chain icons the same circular shell */
.pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Default logo size for USDC / Polygon / Ethereum / Solana */
.pill-icon > img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 3. Base override: same shell, but smaller square inside */
.pill-icon--base > img,
.pill-icon-img--base {           /* covers the class on your <img> */
  width: 14px;                   /* tweak to 15–16 if you want it a touch bigger */
  height: 14px;
  border-radius: 4px;            /* rounded square, not a circle */
}

/* ===========================
   PRICING PAGE
   =========================== */

.pricing-page {
  padding: 4rem 0 5rem;
}

.pricing-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-header h1 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.pricing-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Grid layout */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

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

/* Card base */

.pricing-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 2.25rem;
  background: rgba(5, 9, 20, 0.92);      /* dark panel */
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Highlighted Pro card */

.pricing-card--pro {
  border-color: #f4b73c;
  box-shadow: 0 0 0 1px rgba(244, 183, 60, 0.35);
}

.pricing-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(244, 183, 60, 0.12);
  color: #f4b73c;
}

/* Header in card */

.pricing-card-header {
  margin-bottom: 1.3rem;
}

.pricing-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-price {
  margin-top: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-amount {
  font-size: 1.8rem;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Features list */

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
}

.pricing-features li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
}

.pricing-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(244, 183, 60, 0.9);
}

/* CTA buttons (smaller, consistent pills) */

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 0;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.12s ease;
}

/* Primary (Pro) */

.pricing-cta--primary {
  background: #f4b73c;
  color: #111318;
  border-color: #f4b73c;
}

.pricing-cta--primary:hover {
  background: #ffca52;
  border-color: #ffca52;
  transform: translateY(-1px);
}

/* Outline (Free) */

.pricing-cta--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-cta--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

/* Ghost (Organization contact) */

.pricing-cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

.pricing-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Footnote */

.pricing-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 640px;
  margin: 0 auto;
}

/* Make ALL pricing cards align buttons at the bottom */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ensure button stays at bottom and keeps consistent spacing */
.pricing-card .pricing-cta {
  margin-top: auto;
  align-self: center;
  width: 70%;                    /* adjust if you want thinner or wider */
  text-align: center;
}

/* ========== Wallet selector ========== */

.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 12px;               /* tweak to match your spacing */
}

/* Wrapper */
.wallet-selector {
  position: relative;
  font-size: 12px;
}

/* Trigger button (pill) */
.wallet-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, #171b25, #0f141d);
  color: #e5ecff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.05s ease;
}

.wallet-selector-toggle:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 25px rgba(0, 0, 0, 0.7);
}

.wallet-selector-toggle:active {
  transform: translateY(1px);
}

/* Label on the left ("Wallet") */
.wallet-selector-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  opacity: 0.6;
}

/* Current wallet name */
.wallet-selector-current {
  font-weight: 500;
}

/* Chevron */
.wallet-selector-chevron {
  font-size: 9px;
  opacity: 0.7;
}

/* ========== Dropdown menu ========== */

.wallet-selector-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #181f2b, #050710);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.7);
  padding: 8px;
  z-index: 40;

  display: none; /* toggled via JS */
}

/* section label inside menu */
.wallet-selector-section {
  padding: 6px 4px 4px;
}

.wallet-selector-section-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  margin-bottom: 4px;
}

/* Items */
.wallet-selector-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #e5ecff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: background 0.12s ease, color 0.12s ease, transform 0.05s ease;
}

.wallet-selector-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wallet-selector-item:active {
  transform: translateY(1px);
}

.wallet-selector-item--active {
  background: linear-gradient(135deg, #f8b93a, #f2a93a);
  color: #05070c;
}

.wallet-selector-item--active .wallet-selector-item-address {
  opacity: 0.8;
}

/* Item text */
.wallet-selector-item-name {
  font-weight: 500;
}

.wallet-selector-item-address {
  font-size: 11px;
  opacity: 0.6;
}

/* "Add wallet" action */
.wallet-selector-add {
  margin-top: 4px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  background: rgba(9, 13, 20, 0.9);
  color: #f6bc42;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.wallet-selector-add:hover {
  border-color: rgba(246, 188, 66, 0.7);
  background: rgba(20, 24, 33, 0.95);
}

.wallet-selector-add-plus {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 188, 66, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ========== Open state helper class ========== */

.wallet-selector.is-open .wallet-selector-menu {
  display: block;
}

.wallet-selector.is-open .wallet-selector-chevron {
  transform: rotate(180deg);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* allows wrapping on narrow widths */
  justify-content: flex-end;
}

/* Wallet selector should size like a control */
.wallet-selector {
  position: relative;
}

.wallet-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.wallet-selector-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  z-index: 50;
  display: none;
}

.wallet-selector.is-open .wallet-selector-menu {
  display: block;
}

/* ===== APP LAYOUT GRID (fixes sidebar/content alignment) ===== */
.app-layout{
  display:grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items:start;
  max-width: 1120px;          /* keep everything centered like your screenshots */
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.app-main{ min-width:0; }      /* critical: prevents tables/charts forcing overflow */

/* ===== HEADER ALIGNMENT ===== */
.app-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom: 18px;
}
.app-header > div:first-child{ min-width:0; }
.app-header-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== KPI GRID ===== */
.dash-kpi-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 16px;
}
.dash-kpi-row .dash-card{
  min-height: 90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* payout-table column model */
.dash-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed; /* KEY */
}

.dash-table th,
.dash-table td{
  padding:10px 12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}

/* Shared payout column widths */
.payout-table .col-date{ width:110px; }
.payout-table .col-contractor{ width:32%; }
.payout-table .col-amount{ width:140px; }
.payout-table .col-chain{ width:150px; }
.payout-table .col-tx{ width:180px; }

/* Right align amounts */
.payout-table th.th-amount,
.payout-table td:nth-child(3){
  text-align:right;
  font-variant-numeric: tabular-nums;
}

/* ===== FIX: header labels alignment ===== */
.dash-table thead th{
  text-align: left !important;   /* override any prior right-align */
}

/* Amount column right aligned (header + cells) */
.dash-table thead th:nth-child(3),
.dash-table tbody td:nth-child(3){
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

/* ================================
   TABLE HARD RESET (fix collapse)
   ================================ */

/* Force real table layout (overrides any flex/block table hacks) */
.dash-table{
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

.dash-table thead{ display: table-header-group !important; }
.dash-table tbody{ display: table-row-group !important; }
.dash-table tr{ display: table-row !important; }
.dash-table th,
.dash-table td{
  display: table-cell !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Header labels should be left-aligned (except Amount) */
.dash-table thead th{ text-align: left !important; }
.dash-table thead th:nth-child(3),
.dash-table tbody td:nth-child(3){
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

/* Let wrapper scroll horizontally if needed (instead of crushing columns) */
.dash-table-wrapper{
  overflow-x: auto !important;
}

/* Give payout tables a sane minimum width so columns don't shrink to dust */
.dash-table.payout-table{
  min-width: 780px; /* adjust if you add/remove columns */
}

/* Optional: subtle alignment polish */
.payout-table td:nth-child(4){
  padding-left: 8px;
}

/* ===== Chain column (logo + short label) ===== */
.chain-cell{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chain-cell img{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chain-cell .chain-name{
  font-size: 12px;
  color: #9fb0c4;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ================================
   Soltra custom scrollbar
   (Recent payouts table)
   ================================ */

/* Firefox */
.dash-table-wrapper{
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 193, 71, 0.45) rgba(255,255,255,0.06);
}

/* Chromium / WebKit */
.dash-table-wrapper::-webkit-scrollbar{
  height: 10px;              /* horizontal scrollbar height */
}

.dash-table-wrapper::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
}

.dash-table-wrapper::-webkit-scrollbar-thumb{
  background: linear-gradient(
    180deg,
    rgba(255, 193, 71, 0.65),
    rgba(255, 193, 71, 0.35)
  );
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.4); /* inset feel */
}

.dash-table-wrapper::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(
    180deg,
    rgba(255, 193, 71, 0.9),
    rgba(255, 193, 71, 0.6)
  );
}

.dash-table-wrapper::-webkit-scrollbar-thumb{
  opacity: 0.6;
}

.dash-table-wrapper:hover::-webkit-scrollbar-thumb{
  opacity: 1;
}

.dash-table-wrapper{
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 12px,
    black calc(100% - 12px),
    transparent
  );
}

/* ====== DENSITY TUNING (desktop) ====== */
@media (min-width: 1100px) {
  .shell.dashboard-shell {
    width: min(1200px, calc(100% - 64px));
  }

  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 13px; line-height: 1.4; }

  .dash-card, .chart-card, .form-card, .table-card {
    padding: 16px;     /* was probably ~20-24 */
    border-radius: 18px;
  }

  .dash-table th, .dash-table td {
    padding: 10px 12px;  /* tighter rows */
    font-size: 13px;
  }

  .btn, .mini-btn, .input-control {
    height: 40px;        /* tighten controls */
  }

  .input-control {
    font-size: 13px;
  }
}

/* Reduce top header vertical footprint */
.section-header {
  padding-top: 12px;
  padding-bottom: 10px;
}

.section-header .section-title {
  margin-bottom: 6px;
}

.section-header .section-subtitle {
  margin-top: 0;
}

/* Optional: subtle desktop scale */
@media (min-width: 1200px) {
  .app-shell {
    transform: scale(0.95);
    transform-origin: top center;
  }
}

@media (min-width: 1200px) {
  body { overflow-x: hidden; }
}

.chart-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:12px;
}
.chart-kicker{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.chart-big{
  font-size:28px;
  font-weight:700;
  line-height:1.1;
  color:rgba(255,255,255,.92);
  margin-top:6px;
}
.chart-sub{
  margin-top:6px;
  font-size:13px;
  color:rgba(255,255,255,.55);
}

.chart-canvas-wrap{
  position:relative;
  height:160px; /* key: keeps it consistent */
}
.chart-canvas-wrap canvas{
  width:100% !important;
  height:100% !important;
}
/* ============================
   Payouts tab — Premium Inputs
   (no HTML changes required)
   ============================ */

:root{
  /* tweak if you already have variables */
  --field-bg: rgba(255,255,255,0.035);
  --field-bg-2: rgba(255,255,255,0.055);
  --field-border: rgba(255,255,255,0.10);
  --field-border-2: rgba(255,255,255,0.18);
  --field-text: rgba(255,255,255,0.92);
  --field-muted: rgba(255,255,255,0.55);
  --focus-ring: rgba(240, 185, 75, 0.25); /* soft gold */
}

/* Normalize all inputs used in your forms */
.input-control,
.textarea-control,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  color: var(--field-text);
  background: linear-gradient(180deg, var(--field-bg-2), var(--field-bg));
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 44px;

  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 30px rgba(0,0,0,0.35);
  outline: none;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

/* Make textareas feel intentional */
.textarea-control,
.form-grid textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
  padding-top: 12px;
}

/* Placeholders */
.input-control::placeholder,
.textarea-control::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Focus state (premium ring) */
.input-control:focus,
.textarea-control:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--field-border-2);
  box-shadow:
    0 0 0 4px var(--focus-ring),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 14px 40px rgba(0,0,0,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
}

/* Subtle hover lift */
.input-control:hover,
.textarea-control:hover,
.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover {
  border-color: rgba(255,255,255,0.16);
}

/* Disabled */
.input-control:disabled,
.form-grid input:disabled,
.form-grid select:disabled,
.form-grid textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Select styling consistency */
.form-grid select,
.input-control[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Add a dropdown chevron for selects (no markup changes) */
.form-grid select {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 16px 16px;
  padding-right: 42px;
}

/* Date input: ensure text doesn't look tiny/washed */
.input-control[type="date"],
.form-grid input[type="date"] {
  color-scheme: dark; /* helps native picker match dark UI */
  letter-spacing: 0.2px;
}

/* Improve labels spacing so fields breathe */
.field-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Small help text under fields */
.field-help {
  margin-top: 8px;
  color: rgba(255,255,255,0.42);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Chrome autofill fix (prevents bright yellow) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--field-text);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px rgba(18, 24, 38, 0.9) inset !important;
  border: 1px solid rgba(255,255,255,0.14);
}


/* ================================
   PAYOUT FORM: FIX ALIGNMENT ONLY
   ================================ */

/* Make the form a strict 2-col grid */
#payout-form.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px; /* row gap, col gap */
  align-items: start;
}

/* Every field should fill its grid cell */
#payout-form.form-grid .field {
  width: 100%;
  min-width: 0; /* prevents weird overflow/shrink issues */
}

/* Full-row fields span both columns */
#payout-form.form-grid .field.full-row {
  grid-column: 1 / -1;
}

/* Force controls to be identical sizing */
#payout-form.form-grid .input-control,
#payout-form.form-grid .textarea-control,
#payout-form.form-grid select,
#payout-form.form-grid input,
#payout-form.form-grid textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
}

/* Make select + date match height/padding */
#payout-form.form-grid select,
#payout-form.form-grid input[type="date"] {
  height: 44px;
  line-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Textarea should not be forced to the same height */
#payout-form.form-grid textarea {
  min-height: 110px;
  line-height: 1.35;
  padding-top: 12px;
  padding-bottom: 12px;
}

#payout-form.form-grid .field {
  display: block;
}

/* =========================================
   HOTFIX: Payouts tab form alignment (app)
   Paste at VERY BOTTOM of styles.css
   ========================================= */

#view-payouts #payout-form.form-grid{
  display:grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: start !important;
}

/* Force each field to behave like a stacked label + input */
#view-payouts #payout-form.form-grid .field{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
}

/* Make sure "full-row" items truly span */
#view-payouts #payout-form.form-grid .field.full-row{
  grid-column: 1 / -1 !important;
}

/* Controls should fill their grid cell (selects are the usual culprit) */
#view-payouts #payout-form.form-grid .input-control,
#view-payouts #payout-form.form-grid .textarea-control,
#view-payouts #payout-form.form-grid select,
#view-payouts #payout-form.form-grid input,
#view-payouts #payout-form.form-grid textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Normalize heights so select/input/date line up */
#view-payouts #payout-form.form-grid select,
#view-payouts #payout-form.form-grid input{
  height: 44px !important;
  min-height: 44px !important;
}

/* Date inputs are special in some browsers */
#view-payouts #payout-form.form-grid input[type="date"]{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Textarea should be taller, not forced to 44px */
#view-payouts #payout-form.form-grid textarea{
  height: auto !important;
  min-height: 120px !important;
}

/* If any existing rule is shrinking the left column controls */
#view-payouts #payout-form.form-grid .field *{
  min-width: 0 !important;
}

/* =========================================
   HOTFIX: Contractors tab form alignment
   Paste at VERY BOTTOM of styles.css
   ========================================= */

#view-contractors .two-column-layout{
  align-items: start !important;
}

/* Make the contractors form a predictable grid */
#view-contractors #add-contractor-form.form-grid{
  display:grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: start !important;
}

/* Each field stacks label + control cleanly */
#view-contractors #add-contractor-form.form-grid .field{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
}

/* Full-row fields span both columns */
#view-contractors #add-contractor-form.form-grid .field.full-row{
  grid-column: 1 / -1 !important;
}

/* Controls should fill the cell */
#view-contractors #add-contractor-form.form-grid .input-control,
#view-contractors #add-contractor-form.form-grid select,
#view-contractors #add-contractor-form.form-grid input,
#view-contractors #add-contractor-form.form-grid textarea{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Normalize input heights so NAME/ROLE line up */
#view-contractors #add-contractor-form.form-grid input,
#view-contractors #add-contractor-form.form-grid select{
  height: 44px !important;
  min-height: 44px !important;
}

/* If some old rule is forcing weird flex behavior inside fields */
#view-contractors #add-contractor-form.form-grid .field *{
  min-width:0 !important;
}

/* --- Chart polish --- */
.chart-canvas-wrap {
  position: relative;
  height: 260px;          /* consistent height */
  width: 100%;
}

.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Optional: improves perceived quality at 100% zoom */
.chart-card {
  overflow: hidden;
}

.chart-card-header p {
  opacity: 0.85;
}

.chart-canvas-wrap {
  height: 280px;        /* pick 260–320; stable number */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Wallet card container */
.wallet-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.01) 100%
  );
  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.wallet-card-header { margin-bottom: 12px; }
.wallet-card-title {
  margin: 0 0 6px 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
  font-weight: 650;
}
.wallet-card-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* List spacing */
.wallet-list { display: grid; gap: 10px; }

/* Row base */
.wallet-row {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 12px;
  background:
    radial-gradient(1200px 120px at 20% 0%,
      rgba(246,196,83,0.10),
      transparent 55%
    ),
    rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

/* Left side */
.wallet-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wallet-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  flex: 0 0 auto;
}

.wallet-icon {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

.wallet-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wallet-name {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-sub {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right-side CTA “chip” */
.wallet-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2px;

  color: rgba(0,0,0,0.85);
  background: linear-gradient(180deg, #f6c453 0%, #d8a73f 100%);
  box-shadow:
    0 8px 18px rgba(246,196,83,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);
  border: 1px solid rgba(246,196,83,0.25);

  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

/* Hover + focus = premium */
.wallet-row:hover {
  transform: translateY(-1px);
  border-color: rgba(246,196,83,0.28);
  background:
    radial-gradient(1200px 120px at 20% 0%,
      rgba(246,196,83,0.14),
      transparent 55%
    ),
    rgba(255,255,255,0.03);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.45),
    0 0 0 1px rgba(246,196,83,0.10) inset;
}

.wallet-row:hover .wallet-chip {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(246,196,83,0.22),
    inset 0 1px 0 rgba(255,255,255,0.4);
  filter: brightness(1.02);
}

.wallet-row:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(246,196,83,0.22),
    0 14px 34px rgba(0,0,0,0.45);
}

/* Disabled */
.wallet-row.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  border-color: rgba(255,255,255,0.06);
}

.wallet-chip.is-muted {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}

.wallet-row.is-connected {
  border-color: rgba(88, 214, 141, 0.28);
  background: rgba(88, 214, 141, 0.06);
}

.wallet-row.is-connected .wallet-chip {
  background: rgba(88, 214, 141, 0.16);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(88, 214, 141, 0.26);
  box-shadow: none;
}

select.input-control {
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px 44px 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrap { position: relative; }
.select-wrap::after{
  content:"▾";
  position:absolute;
  right:14px;
  top:50%;
  transform: translateY(-50%);
  opacity:.75;
  pointer-events:none;
  color: rgba(255,255,255,.8);
}

.dropdown { position: relative; }

.select-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: rgba(255,255,255,.92);
  box-shadow:
    0 12px 28px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  cursor:pointer;
  transition: transform .08s ease, border-color .18s ease, box-shadow .18s ease;
}

.select-btn:hover{
  border-color: rgba(255,200,80,.35);
  box-shadow:
    0 14px 34px rgba(0,0,0,.42),
    0 0 0 4px rgba(255,200,80,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.select-btn:active{ transform: translateY(1px); }

.select-btn:focus-visible{
  outline:none;
  border-color: rgba(255,200,80,.55);
  box-shadow:
    0 0 0 4px rgba(255,200,80,.16),
    0 14px 34px rgba(0,0,0,.42);
}

.select-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.select-icon{
  width:28px; height:28px;
  display:grid; place-items:center;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.select-text{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.select-caret{ opacity:.7; }

.select-menu{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 10px);
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  z-index: 50;
}

.select-option{
  width:100%;
  display:grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap:10px;
  row-gap:2px;
  text-align:left;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.92);
  cursor:pointer;
}

.select-option .opt-icon{
  grid-row:1 / span 2;
  width:30px; height:30px;
  display:grid; place-items:center;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.select-option .opt-label{ font-weight:650; }
.select-option .opt-sub{ font-size:12px; color: rgba(255,255,255,.62); }

.select-option:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,200,80,.22);
}

.select-option.is-selected{
  background: rgba(255,200,80,.10);
  border-color: rgba(255,200,80,.30);
}

.hidden{ display:none !important; }

/* ===============================
   Custom Select (Wallet Type)
   =============================== */

.select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  cursor: pointer;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

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

.select-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-icon,
.option-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: contain;

  /* THIS is what prevents the Ledger SVG from exploding */
  max-width: 22px;
  max-height: 22px;
}

.select-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.55);
  border-bottom: 2px solid rgba(255,255,255,0.55);
  transform: rotate(45deg);
  margin-left: 12px;
}

/* Dropdown menu */
.select-menu {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(12,14,20,0.98);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.select-menu.hidden { display: none; }

.select-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

.select-option:hover {
  background: rgba(255,255,255,0.06);
}

.select-option:active {
  background: rgba(255,255,255,0.10);
}

.option-label {
  font-weight: 600;
}

/* 1) Make the whole app use the screen */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr; /* sidebar + content */
  gap: 24px;
  padding: 24px;
}

/* 2) Sidebar sticks while scrolling */
.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  height: calc(100vh - 48px);
  overflow: auto;
}

/* 3) Main content should NOT be artificially narrow */
.main {
  min-width: 0; /* prevents overflow issues */
}

/* 4) Give the page a wider max width (or remove max entirely) */
.main-inner {
  max-width: 1280px;  /* try 1280–1440 */
  width: 100%;
}

/* 5) Make dashboard sections a 2-column grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 420px 1fr;  /* left rail + main rail */
  gap: 20px;
  align-items: start;
}

/* 6) Responsive: collapse to 1 column on smaller screens */
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Reuse Upgrade/Pricing CTA styling for "+ Add wallet" */
.upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 12px;

  background: linear-gradient(180deg, #f6c55b 0%, #e6a93a 100%);
  color: #0b0f1a;

  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.upgrade-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.upgrade-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.upgrade-btn:focus-visible {
  outline: 2px solid rgba(246, 197, 91, 0.55);
  outline-offset: 3px;
}

.wallet-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-radius:14px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  margin-top:10px;
}
.wallet-row-title{ font-weight:700; }
.wallet-row-sub{ opacity:.75; margin-top:2px; font-size:13px; }
.wallet-row-actions{ display:flex; gap:10px; }
.wallet-action-btn{
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  cursor:pointer;
}
.wallet-action-btn.danger{
  background:rgba(255,80,80,0.12);
  border-color:rgba(255,80,80,0.22);
}
.form-message.ok{ color:#7CFFB2; }
.form-message.err{ color:#FF8080; }
.form-message.info{ color:rgba(255,255,255,0.7); }

.modal-backdrop {
  background: rgba(5, 8, 20, 0.55); /* NOT opaque */
  backdrop-filter: blur(4px);
}

.modal-card {
  background: linear-gradient(
    180deg,
    rgba(18, 22, 40, 0.92),
    rgba(10, 14, 30, 0.88)
  );
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.modal-open .dashboard {
  filter: blur(2px) brightness(0.9);
}

/* ========= Micro-animations ========= */
@keyframes soltra-pop {
  0%   { transform: scale(.96); opacity: .0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes soltra-slide-up {
  0%   { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes soltra-glow {
  0%   { box-shadow: 0 0 0 rgba(246,196,83,0); }
  50%  { box-shadow: 0 0 0 4px rgba(246,196,83,.14); }
  100% { box-shadow: 0 0 0 rgba(246,196,83,0); }
}

.anim-pop {
  animation: soltra-pop 240ms ease-out both, soltra-glow 550ms ease-out both;
}

.anim-slide-row {
  animation: soltra-slide-up 260ms ease-out both;
}

.anim-shake {
  animation: soltra-shake 250ms ease-in-out;
}

@keyframes soltra-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Optional: toast “success” look */
.toast.toast-success {
  border: 1px solid rgba(246,196,83,.25);
}

/* the dark overlay */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

/* the actual card */
.modal-card {
  width: min(560px, 92vw);
  max-height: 80vh;      /* ✅ allow tall forms */
  overflow: auto;        /* ✅ scroll if needed */
  padding: 18px;
  border-radius: 16px;
}

/* make form stack correctly */
.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card input,
.modal-card select {
  display: block;
  width: 100%;
}

/* ===== WIDEN DASHBOARD / APP SHELL ===== */

/* Outer section */
.app-shell{
  width: 100%;
}

/* This is likely your main constraint currently */
.app-layout{
  width: min(96vw, 1680px);   /* 👈 big, but still capped on ultrawide monitors */
  margin: 0 auto;
  padding: 28px;             /* space from viewport edge */
  display: grid;
  grid-template-columns: 260px 1fr; /* sidebar + main */
  gap: 28px;
  align-items: start;
}

/* Sidebar stays fixed + doesn’t stretch */
.app-sidebar{
  width: 260px;
}

/* Main expands */
.app-main{
  min-width: 0; /* prevents tables/charts from forcing overflow */
}

/* Optional: let inner main use full width */
.app-main-inner{
  width: 100%;
}

/* If .shell is currently limiting width, remove it inside the app */
.app-main .shell{
  max-width: none !important;
  width: 100%;
}

.dashboard-shell{
  width: 100%;
}

/* Chart sizing polish */
.chart-canvas-wrap{
  height: 240px;     /* pick a number you like */
  width: 100%;
}

@media (max-width: 900px){
  .chart-canvas-wrap{ height: 220px; }
}

.chart-card-header--split{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.chart-titleblock h3{
  margin:0;
}

.chart-titleblock p{
  margin:6px 0 0;
  opacity:.75;
}

/* KPI pill */
.chart-kpi-pill{
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  text-align:right;
}

.chart-kpi-top{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
}

.chart-kpi-amount{
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}

.chart-kpi-bottom{
  margin-top: 6px;
  font-size: 12px;
  opacity: .65;
}

.chart-canvas-wrap {
  height: 260px; /* try 260–300 */
  position: relative;
}

/* ========== PIPE VISUAL ========== */
.pipe-visual {
  padding: 4.5rem 0 4rem;
}

.pipe-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.2rem;
  align-items: center;
}

@media (max-width: 980px) {
  .pipe-inner { grid-template-columns: 1fr; }
}

.pipe-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.6rem;
}

.pipe-title {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  line-height: 1.12;
}

.pipe-sub {
  margin: 0 0 1.2rem;
  color: rgba(255,255,255,0.70);
  max-width: 42ch;
}

.pipe-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pipe-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.72);
}

.pipe-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(246,196,83,0.12);
}

/* Card */
.pipe-card {
  position: relative;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.06), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0) 70%),
              linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  padding: 1.4rem 1.4rem 1.1rem;
  overflow: hidden;
}

.pipe-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 1.1rem;
  align-items: start;
  min-height: 240px;
}

@media (max-width: 980px) {
  .pipe-grid { grid-template-columns: 1fr; min-height: auto; }
  .pipe-lines { display: none; }
}

.pipe-col {
  display: grid;
  gap: 0.75rem;
}

.pipe-col--center {
  padding-top: 0.35rem;
}

.pipe-node {
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.pipe-node--muted {
  background: rgba(0,0,0,0.10);
}

.pipe-node--primary {
  border-color: rgba(246,196,83,0.35);
  background: radial-gradient(120% 120% at 20% 10%, rgba(246,196,83,0.14), rgba(0,0,0,0.18) 55%);
  box-shadow: 0 0 0 1px rgba(246,196,83,0.12) inset;
}

.pipe-node-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
}

.pipe-node-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.pipe-node-sub {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
}

.pipe-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pipe-mini--center {
  justify-content: center;
  gap: 0.85rem;
}

.pipe-mini--right {
  justify-content: flex-end;
}

.pipe-mini-pill {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.70);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.pipe-mini-stat {
  display: grid;
  gap: 0.12rem;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
  min-width: 120px;
  text-align: center;
}

.pipe-mini-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pipe-mini-value {
  font-weight: 700;
  color: rgba(255,255,255,0.88);
}

/* Lines overlay */
.pipe-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.pipe-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.10),
    rgba(246,196,83,0.55),
    rgba(255,255,255,0.10)
  );
  opacity: 0.9;
  border-radius: 99px;
  filter: drop-shadow(0 0 10px rgba(246,196,83,0.18));
}

/* Wallets -> Soltra */
.pipe-line--a {
  left: 32%;
  right: 38%;
  top: 70px;
}

/* Soltra -> Exports */
.pipe-line--b {
  left: 58%;
  right: 12%;
  top: 70px;
}

/* Traveling dot */
.pipe-dot-travel {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 0 6px rgba(246,196,83,0.10),
    0 0 18px rgba(246,196,83,0.35);
  animation: pipeTravel 2.2s linear infinite;
}

.pipe-line--b .pipe-dot-travel {
  animation-delay: 0.35s;
}

@keyframes pipeTravel {
  0%   { left: 0%; opacity: 0.0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0.0; }
}

/* Footer chips */
.pipe-foot {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pipe-foot-chip {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
}

/* Modal overlay */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
}

/* Panel */
.modal-panel {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 64px auto;

  display: flex;
  flex-direction: column;
  align-items: stretch;      /* ✅ key */
  justify-content: flex-start;

  max-height: calc(100vh - 128px);
  overflow: auto;            /* ✅ key: prevents clipping */
}

.wallet-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 16px 20px 20px;
}

.wallet-form {
  display: grid;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative; /* helps dropdown overlays */
}

.dropdown {
  position: relative;
}

/* Menu should overlay BELOW the button */
.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
}

/* Your existing .hidden class should do this */
.hidden {
  display: none !important;
}

/* Modal panel should be the positioning context */
.modal-panel {
  position: relative;
  border-radius: 18px;
  overflow: hidden; /* gives you a clean top edge */
}

/* Clean header bar */
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);

  /* matches your dark glass look */
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(12px);
}

/* Left stack */
.modal-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* prevents overflow */
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.1;
  margin: 0;
}

.modal-subtitle {
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 52ch; /* keeps it from looking like a paragraph */
}

/* Proper close button */
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  cursor: pointer;

  flex: 0 0 auto; /* prevents shrink */
  margin-top: 2px; /* aligns with title baseline */
}

.modal-close:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}

.modal-close:active {
  transform: translateY(1px);
}

.modal-panel {
  max-height: 86vh;
  overflow: auto;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
}

.wallets-table {
  width: 100%;
  border-collapse: collapse;
}

.wallets-table th,
.wallets-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

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

.wallet-address {
  opacity: 0.75;
  font-size: 12px;
  margin-top: 3px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.actions {
  text-align: right;
}

.wallet-address {
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.02em;
}














