/* Robinhood ecosystem theme overlay — keeps Framer layout/motion intact */

:root {
  --rh-green: #00c805;
  --rh-green-bright: #00ff87;
  --rh-green-dim: #0a7a0e;
  --rh-black: #0b0e0c;
  --rh-charcoal: #121612;
  --rh-ink: #061408;
  --rh-cream: #e8ffe9;
  --rh-muted: #3a4a3c;
}

/* Page base — dark with green radial wash */
html body {
  background: radial-gradient(
      50% 50% at 50% 50%,
      rgb(8, 40, 12) 0%,
      rgb(8, 12, 9) 100%
    ) !important;
}

/* Soft green glow accents on interactive surfaces */
a:hover,
button:hover {
  filter: saturate(1.05);
}

/* Launch / primary-looking gold buttons → RH green cast */
[style*="rgb(0, 200, 5)"],
[style*="rgb(0, 200, 5)"],
[style*="#00c805"],
[style*="#00c805"],
[style*="#00c805"] {
  /* can't override inline easily; handled via brand.js recolor where needed */
}

/* CA dock — floating pill ABOVE launch FAB so nothing is clipped */
.rh-ca-bar {
  position: fixed;
  left: 50%;
  bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 100px));
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  width: max-content;
  max-width: min(640px, calc(100vw - 24px));
  padding: 0.5rem 0.65rem 0.5rem 0.9rem;
  background: rgba(6, 14, 8, 0.92);
  border: 2px solid var(--rh-green);
  border-radius: 999px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 200, 5, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--rh-cream);
  font-family: "MS Sans Serif Bold Regular", Tahoma, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  line-height: 1.2;
}

.rh-ca-bar .rh-brand {
  white-space: nowrap;
  opacity: 0.95;
}

.rh-ca-bar strong {
  color: var(--rh-green-bright);
  font-weight: 700;
}

.rh-ca-bar .rh-sep {
  width: 1px;
  height: 1rem;
  background: rgba(0, 200, 5, 0.35);
  flex-shrink: 0;
}

.rh-ca-bar .rh-ca-value {
  color: #b8ffc4;
  border: 1px solid rgba(0, 200, 5, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(0, 200, 5, 0.1);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rh-ca-bar a.rh-cta {
  background: var(--rh-green);
  color: #041006;
  text-decoration: none;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 2px solid #041006;
  box-shadow: 2px 2px 0 #041006;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.rh-ca-bar a.rh-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.rh-ca-bar button.rh-copy {
  display: none; /* hide until real CA — keeps dock clean */
}

.rh-ca-bar button.rh-copy.is-live {
  display: inline-flex;
  background: transparent;
  color: var(--rh-cream);
  border: 1px solid var(--rh-muted);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
}

.rh-ca-bar button.rh-copy.is-live:hover {
  border-color: var(--rh-green);
  color: var(--rh-green-bright);
}

/* Social buttons disabled state */
a.rh-disabled,
a[data-rh-disabled="1"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Green wash on sun / glow-ish images */
.framer-bqePo img[src*="oHQkubo9Vwyd2py5kwKiJFIYpVA"] {
  filter: hue-rotate(75deg) saturate(1.35) brightness(1.05);
}

/* Partner / token tiles — real coin logos; no color distortion */
[data-framer-name="partnership"] a,
[data-framer-name="partnership"] img,
[data-framer-name="listed-token-container"] img {
  filter: none;
  pointer-events: none;
}

[data-framer-name="partnership"] a {
  cursor: default;
}

/* Leave room for launch FAB + floating CA dock — do NOT cover footer character */
body {
  padding-bottom: 0 !important;
}

@media (max-width: 720px) {
  .rh-ca-bar {
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 88px));
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px;
    max-width: calc(100vw - 16px);
    padding: 0.55rem 0.7rem;
    gap: 0.4rem 0.55rem;
    font-size: 0.65rem;
  }

  .rh-ca-bar .rh-brand {
    width: 100%;
    text-align: center;
    font-size: 0.62rem;
  }

  .rh-ca-bar .rh-sep {
    display: none;
  }
}
