/* ============================================================
   stackd-home.css  v12 — real cover image + flipping money inside band
   ============================================================ */

:root {
  --bg: #000;
  --line: rgba(255,255,255,0.10);
  --gold: #FFD24A;
  --gold-2: #ffb800;
  --text: #e7e9ea;
  --muted: #8a909a;
}

html, body { background: #000 !important; }

/* nuke any default home banner from Sponzy */
.home-hero, .home-banner, .home-section-cover, .home-cover { display: none !important; }

/* ===== Page split (x.com style) ===== */
.xh-page {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #000;
  color: var(--text);
  overflow: hidden;
}
@media (max-width: 991px) {
  .xh-page { grid-template-columns: 1fr; min-height: auto; }
}

/* LEFT cash side */
.xh-left {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  overflow: hidden;
}
@media (max-width: 991px) {
  .xh-left { padding: 3rem 1.25rem 1rem; min-height: 320px; }
}

/* The cash stage = wraps the cover image; everything else positions
   absolutely against it using % so they stay aligned with the image. */
.cash-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  animation: cashDrop 1.1s cubic-bezier(.22,.9,.32,1) 0.15s 1 backwards,
             cashFloat 5s ease-in-out 1.3s infinite;
  will-change: transform, opacity;
}
@keyframes cashDrop {
  0%   { transform: translateY(-220px) rotate(-5deg) scale(.94); opacity: 0; }
  60%  { opacity: 1; }
  85%  { transform: translateY(8px) rotate(1deg) scale(1.02); }
  100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}
@keyframes cashFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-6px) rotate(-0.5deg); }
  50%      { transform: translateY(0) rotate(0); }
  75%      { transform: translateY(-4px) rotate(0.4deg); }
}

.cash-img {
  display: block;
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  /* drop the black background of the cover image so it blends with the page */
  mix-blend-mode: lighten;
}
@media (max-width: 991px) { .cash-img { max-height: 320px; } }

/* glowing aura behind */
.cash-aura { display: none; }

/* shadow under the stage */
.cash-shadow { display: none; }

/* ============================================================
   COUNTER WINDOW — overlaid on the cover image, positioned
   exactly over the bundle of bills (left side of image), so
   the bills look like they're being flicked through a counter.
   Position values are % of .cash-stage which sizes to the image.
   ============================================================ */
.counter-window {
  position: absolute;
  left: 5%;
  top: 33%;
  width: 38%;
  height: 32%;
  z-index: 3;
  overflow: hidden;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg,
      #1f6f3a 0 3px,
      #144d28 3px 4px,
      #1f6f3a 4px 7px,
      #0c3d20 7px 8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 -1px 0 rgba(0,0,0,0.30) inset,
    0 4px 10px rgba(0,0,0,0.55);
  perspective: 700px;
  pointer-events: none;
}

/* mini $100 bill rendered inside the counter */
.cbill {
  position: absolute;
  left: 3%; right: 3%;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12%;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 55%),
    repeating-linear-gradient(46deg,  rgba(255,255,255,0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-46deg, rgba(0,0,0,0.10) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #2a8a4a 0%, #1d6e36 50%, #145528 100%);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.45);
  font-family: "Georgia", serif;
  font-weight: 800;
  color: #ffd24a;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0,0,0,.7), 0 0 8px rgba(255,210,74,0.35);
  box-shadow: 0 4px 8px rgba(0,0,0,0.45);
  animation: countSlide 2.0s linear infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
@media (max-width: 991px) { .cbill { font-size: 0.9rem; padding: 0 12%; } }
.cbill::before {
  content: "";
  position: absolute; left: 6%; right: 6%; top: 12%; bottom: 12%;
  border: 1px dashed rgba(255,210,74,0.55);
  border-radius: 3px;
  pointer-events: none;
}
.cbill .cb-portrait {
  width: 38px; height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.32) 0%, transparent 50%),
    radial-gradient(circle at center, #34a35e 0%, #114a23 70%);
  border: 2px solid rgba(255,210,74,0.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 0 0 6px rgba(255,210,74,0.35);
  flex-shrink: 0;
}
@media (max-width: 991px) { .cbill .cb-portrait { width: 26px; height: 26px; } }
.cbill .cb-100 { z-index: 1; }

.cb1 { animation-delay: 0s;     }
.cb2 { animation-delay: -0.33s; }
.cb3 { animation-delay: -0.66s; }
.cb4 { animation-delay: -1.00s; }
.cb5 { animation-delay: -1.33s; }
.cb6 { animation-delay: -1.66s; }

@keyframes countSlide {
  0%   { transform: translateY(110%) rotateX(75deg); opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: translateY(20%)  rotateX(20deg); opacity: 1; }
  50%  { transform: translateY(0)    rotateX(0deg);  opacity: 1; }
  70%  { transform: translateY(-20%) rotateX(-20deg); opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-110%) rotateX(-75deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cbill { animation: none !important; } }

/* gold band painted ON TOP of the counter window so the flipping bills
   look like they sit inside the existing band */
.counter-band {
  position: absolute;
  left: 4%;
  width: 55%;
  top: 45%;
  height: 7%;
  z-index: 4;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 5px, transparent 5px 10px),
    linear-gradient(180deg, #ffe79e 0%, #ffd24a 35%, #f3b400 75%, #c98f00 100%);
  border-top: 1px solid rgba(0,0,0,0.20);
  border-bottom: 1px solid rgba(0,0,0,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.40) inset,
    0 -1px 0 rgba(0,0,0,0.30) inset,
    0 3px 7px rgba(0,0,0,0.45);
  pointer-events: none;
}

/* ----- sparkles ----- */
.cash-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.cash-sparkles .spark {
  position: absolute;
  color: var(--gold);
  font-family: "Georgia", serif;
  font-weight: 800;
  font-size: 1.4rem;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255,210,74,0.7);
  animation: floatUp 4.5s ease-in-out infinite;
}
.cash-sparkles .s1 { left: 14%; bottom: 22%; animation-delay: 0.4s; }
.cash-sparkles .s2 { left: 82%; bottom: 30%; animation-delay: 1.5s; }
.cash-sparkles .s3 { left: 28%; bottom: 12%; animation-delay: 2.7s; font-size: 1rem; }
.cash-sparkles .s4 { left: 70%; bottom: 16%; animation-delay: 3.6s; font-size: 1.7rem; }
.cash-sparkles .s5 { left: 48%; top: 8%;     animation-delay: 1.0s; font-size: 1.15rem; }
@keyframes floatUp {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-160px) scale(1.2) rotate(15deg); opacity: 0; }
}

/* ===== RIGHT: x.com-style join panel ===== */
.xh-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.25rem 4rem;
  background: #000;
}
@media (max-width: 1199px) { .xh-right { padding: 2.25rem 2rem; } }
@media (max-width: 991px)  { .xh-right { padding: 1.5rem 1.25rem 3rem; justify-content: center; } }

.xh-panel { width: 100%; max-width: 440px; display: flex; flex-direction: column; }
.xh-logo { width: 44px; height: auto; margin-bottom: 1rem; }

.xh-top-link { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.xh-top-link a { color: var(--gold); font-weight: 700; text-decoration: none; margin-left: .25rem; }
.xh-top-link a:hover { text-decoration: underline; }

.xh-h1 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .55rem;
  letter-spacing: -0.5px;
}
.xh-h2 {
  color: var(--gold);
  font-size: clamp(.9rem, 1.1vw, 1rem);
  font-style: italic;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

/* OAuth and helpers */
.xh-oauth { display: flex; flex-direction: column; gap: .55rem; max-width: 340px; }
.xh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease, border-color .12s ease, box-shadow .12s ease, color .12s ease;
  line-height: 1.1;
}
.xh-btn-light  { background: #fff; color: #0f1419 !important; border-color: #fff; }
.xh-btn-light:hover { background: #e7e7e7; }

/* CREATE FREE ACCOUNT button: gold bg + black lettering */
.xh-btn-primary {
  background: var(--gold);
  color: #000000 !important;
  text-shadow: none;
  max-width: 340px;
  padding: .85rem 1rem;
  font-size: 1rem;
  box-shadow: 0 10px 24px -10px rgba(255,210,74,0.55);
}
.xh-btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); color: #000 !important; }

.xh-btn-outline {
  background: transparent;
  color: var(--gold) !important;
  border: 2px solid var(--gold);
  max-width: 340px;
}
.xh-btn-outline:hover { background: rgba(255,210,74,0.1); border-color: var(--gold); }

.xh-or {
  display: flex; align-items: center; gap: .65rem;
  max-width: 340px;
  color: var(--muted);
  font-size: .9rem;
  margin: 1rem 0;
}
.xh-or::before, .xh-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ----- form: dark inside, gold pill border ----- */
.xh-form { max-width: 340px; }
.xh-form .form-group { margin-bottom: .55rem; }
.xh-form input.form-control,
.xh-form .form-control {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid var(--gold) !important;
  border-radius: 999px !important;
  padding: .85rem 1.15rem !important;
  font-size: .95rem !important;
  width: 100%;
  height: auto !important;
  box-shadow: none !important;
  transition: box-shadow .15s ease, background .15s ease;
}
.xh-form input.form-control::placeholder,
.xh-form .form-control::placeholder { color: rgba(255,210,74,0.6) !important; }
.xh-form input.form-control:focus,
.xh-form .form-control:focus {
  outline: none;
  border-color: var(--gold) !important;
  background: rgba(255,210,74,0.06) !important;
  box-shadow: 0 0 0 3px rgba(255,210,74,0.25) !important;
}
.xh-form .password-input { position: relative; }
.xh-form .btnViewPassword {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  color: #888; cursor: pointer;
}
.xh-form button.xh-btn-outline { margin-top: .6rem; width: 100%; }

.xh-forgot {
  display: block;
  color: var(--gold);
  font-size: .85rem;
  text-align: center;
  margin-top: .6rem;
  text-decoration: none;
}
.xh-forgot:hover { text-decoration: underline; color: var(--gold); }

/* bottom CTA */
.xh-bottom-cta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 340px;
}
.xh-terms { color: var(--muted); font-size: .72rem; line-height: 1.4; margin: .8rem 0 0; }
.xh-terms a { color: var(--gold); text-decoration: none; }
.xh-terms a:hover { text-decoration: underline; }

.xh-panel .alert { border-radius: 8px; font-size: .85rem; padding: .55rem .75rem; margin-bottom: .8rem; }
.cookie-banner { z-index: 50; }

/* ===== Home page search bar + tag chips ===== */
.xh-home-search {
  display: flex;
  align-items: center;
  background: #000;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  max-width: 340px;
  margin: 0 0 .85rem 0;
  position: relative;
}
.xh-home-search .xh-search-icon { color: var(--gold); margin-right: .5rem; font-size: .9rem; }
.xh-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: .9rem;
  padding: .55rem 0;
  min-width: 0;
}
.xh-search-input::placeholder { color: rgba(255,210,74,0.55); }
.xh-search-btn {
  background: var(--gold);
  color: #000;
  border: 0;
  border-radius: 999px;
  padding: .45rem .95rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s ease;
}
.xh-search-btn:hover { background: var(--gold-2); }

.xh-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 380px;
  margin-bottom: 1.5rem;
}
.xh-tag-chip {
  background: rgba(255,210,74,0.08);
  border: 1px solid rgba(255,210,74,0.30);
  color: var(--gold);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  text-decoration: none !important;
  transition: background .12s, border-color .12s;
}
.xh-tag-chip:hover { background: rgba(255,210,74,0.18); border-color: var(--gold); color: var(--gold); }

/* Stackd: cap post media height on profile + feed pages so tall images
   don't blow past viewport. Applied to img + video inside a post card. */
.post-img-grid,
.card-body img.lazyload,
.card-body video,
a.glightbox img,
.video-js,
.cstm-video-js,
.player-list-video-js {
  max-height: 70vh !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
  background: #000;
}

/* media-post wrapper so portrait images center cleanly */
.media-update-image,
.cardpost {
  display: flex;
  justify-content: center;
  align-items: center;
}
