/* ============================================================
   BidKing — Section variants
   ============================================================ */

/* ############ Shared hero bits: floating deal cards + phone auction UI ############ */
.mini-deal {
  position: absolute;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  border: 3px solid #EAF0FB;
  box-shadow: 0 14px 30px rgba(10, 46, 102, .25);
  padding: 10px 14px 10px 10px;
  z-index: 3;
}
.mini-deal img.md-img { width: 52px; height: 52px; background: var(--cream); border-radius: 10px; padding: 5px; }
.mini-deal .md-body { display: flex; flex-direction: column; gap: 3px; }
.mini-deal .md-row { display: flex; align-items: center; gap: 7px; }
.mini-deal .md-name { font-weight: 900; font-size: .82rem; line-height: 1.15; color: var(--ink); }
.mini-deal .md-price { font-family: var(--font-display); color: var(--green-600); font-size: 1.05rem; line-height: 1.1; }
.mini-deal .md-was { color: var(--ink-faint); text-decoration: line-through; font-weight: 800; font-size: .78rem; }
.mini-deal .md-off {
  font-family: var(--font-display);
  font-size: .72rem;
  color: #fff;
  background: linear-gradient(180deg, #8CD53F, #57A82A);
  border-radius: 8px;
  padding: .18em .5em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.mini-auction {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 14px 16px;
  gap: 10px;
}
.mini-auction .ma-title {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--royal-700);
  text-transform: uppercase;
  text-align: center;
}
.mini-auction .ma-product {
  background: #fff;
  border-radius: 18px;
  border: 2.5px solid #EAF0FB;
  padding: 12px;
  display: grid;
  place-items: center;
}
.mini-auction .ma-product img { width: 84px; height: 84px; }
.mini-auction .ma-price-row { display: flex; align-items: center; justify-content: space-between; }
.mini-auction .ma-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-600);
}
.mini-auction .ma-feed {
  font-size: .72rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  min-height: 30px;
}
.mini-auction .ma-bid {
  margin-top: auto;
  font-size: 1.05rem;
  width: 100%;
}
@keyframes fake-press {
  0%, 78%, 100% { transform: translateY(0); }
  84%, 92% { transform: translateY(4px); }
}
.mini-auction .ma-bid { animation: fake-press 3.4s ease-in-out infinite; }

/* ############ HERO E — Castle Kingdom ############ */
.hero-e {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 0;
  text-align: center;
  background-color: #10265C;
  overflow: hidden;
}
.hero-e .container { margin-top: 4.5vh; }
/* backdrop image layer — subtly blurred castle scene */
.hero-e::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: url('../assets/ui/background.png');
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.05);
  z-index: 0;
}
/* dark royal overlay */
.hero-e::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 54, .86) 0%, rgba(11, 34, 74, .68) 42%, rgba(7, 18, 40, .77) 74%, rgba(4, 10, 24, .94) 100%);
  z-index: 1;
}
.hero-e .container { position: relative; z-index: 2; }
.hero-e h1 {
  max-width: 14ch;
  margin: 22px auto 18px;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
}
.hero-e .sub {
  margin-inline: auto;
  max-width: 475px;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 2px 14px rgba(8, 20, 44, .6);
  font-weight: 700;
}
.hero-e .sub strong { color: #fff; }
.hero-e .cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero-e .eyebrow--light {
  background: rgba(11, 23, 48, .38);
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-e .txt-gold {
  /* match the nav "Get $50 Free" button face — bright luminous yellow */
  background: linear-gradient(180deg, #FFF7B8 0%, #FFE14D 45%, #FFD023 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(8, 20, 44, .35)) drop-shadow(0 0 22px rgba(255, 215, 60, .5));
}

/* --- bottom phone stage --- */
.hero-e-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-e-phone {
  width: 312px;
  margin-bottom: -228px;
  filter: drop-shadow(0 -14px 44px rgba(2, 8, 20, .65));
}
/* king pointing up at the CTA, perched on the phone's top edge */
.hero-e-king {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% - 28px);
  width: 104px;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(2, 8, 20, .45));
}
/* keep the BID button visible above the flat cut */
.hero-e .mini-auction { padding-top: 60px; }
.hero-e .mini-auction .ma-bid { margin-top: 10px; animation: fake-press 3.4s ease-in-out infinite; }
.hero-e .mini-auction .ma-product img { width: 108px; height: 108px; }
.hero-e-stage .mini-deal { position: absolute; z-index: 3; }
.hero-e-stage .he-card-1 { left: calc(50% - 338px); bottom: 216px; --tilt: -4deg; }
.hero-e-stage .he-card-2 { right: calc(50% - 356px); bottom: 138px; --tilt: 4deg; animation-delay: -2.2s; }
@media (max-width: 980px) {
  .hero-e-stage .mini-deal { display: none; }
}
@media (max-width: 800px) {
  .hero-e-phone { width: 272px; margin-bottom: -200px; }
  .hero-e-king { width: 90px; }
}

/* ############ HOW C — Live Demo ############ */
.how-c { background: linear-gradient(180deg, #E9F3FF 0%, #F8FBFF 100%); }
.how-c .sec-head .eyebrow { margin-top: 22px; margin-bottom: 0; }
.how-c-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.how-c .phone { margin-inline: auto; }
.demo-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .45s ease, transform .45s var(--ease-spring);
  padding: 42px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-screen.active { opacity: 1; transform: none; z-index: 2; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-tile {
  background: #fff;
  border-radius: 14px;
  border: 2px solid #EAF0FB;
  padding: 10px 8px 8px;
  text-align: center;
}
.demo-tile img { width: 56px; height: 56px; margin: 0 auto 4px; }
.demo-tile .dt-price { font-family: var(--font-display); font-size: .92rem; color: var(--green-600); }
.demo-tile .dt-off { font-size: .62rem; font-weight: 900; color: var(--red-600); }
.demo-screen .ds-label {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--royal-700);
  text-align: center;
}
.demo-mag {
  position: absolute;
  bottom: 18%;
  right: 14%;
  width: 64px;
  animation: mag-search 3s ease-in-out infinite;
}
@keyframes mag-search {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  30% { transform: translate(-60px, -50px) rotate(6deg); }
  62% { transform: translate(-14px, -90px) rotate(-4deg); }
}
.demo-win {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.demo-win img.dw-trophy { width: 92px; }
.demo-win .dw-big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.15;
}
.demo-win .dw-big span { color: var(--green-600); }
.demo-conf {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  animation: conf-fall 2.6s linear infinite;
  top: -14px;
}
@keyframes conf-fall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(560px) rotate(540deg); opacity: .6; }
}
.how-steps { display: flex; flex-direction: column; gap: 18px; }
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 3px solid transparent;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.how-step.active {
  background: #fff;
  border-color: var(--gold-400);
  box-shadow: var(--shadow-card);
  transform: translateX(6px);
}
.how-step .hs-num {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 0 rgba(10, 46, 102, .3);
  background: linear-gradient(180deg, #B9C6DB, #8FA2C2);
  box-shadow: 0 5px 0 #6B7F9F;
  transition: background .3s ease;
}
.how-step.active .hs-num { background: linear-gradient(180deg, #FFD84D, #F59B00); box-shadow: 0 5px 0 #B36B00; }
.how-step h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); }
.how-step p { color: var(--ink-soft); font-weight: 600; font-size: .96rem; margin-top: 4px; }
.how-step .hs-bar {
  height: 6px;
  border-radius: 999px;
  background: #E3EBF8;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}
.how-step .hs-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFD84D, #F59B00);
  transform: scaleX(0);
  transform-origin: left;
}
.how-step.active .hs-bar::after { animation: hs-progress var(--demo-ms, 3200ms) linear forwards; }
@keyframes hs-progress { to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .how-c-grid { grid-template-columns: 1fr; }
  .how-c .phone { width: 270px; }
}

/* ############ DEALS A — Arena Grid ############ */
.deals-a { background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%); }
.deals-a .sec-head .live-dot { justify-content: center; margin-bottom: 10px; }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: visible;
}
.deal-img {
  background: linear-gradient(180deg, #FFFDF6, #FFF1CE);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.deal-img img { width: 110px; height: 110px; transition: transform .3s var(--ease-spring); }
.deal-card:hover .deal-img img { transform: scale(1.1) rotate(-3deg); }
.deal-card h3 { font-size: 1rem; font-weight: 900; color: var(--ink); line-height: 1.25; }
.deal-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.deal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.deal-meta .bidders {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 900;
  color: var(--ink-soft);
}
.deal-card .btn { width: 100%; }
.deal-card--mystery .deal-img { background: linear-gradient(180deg, #EFE9FF, #D9CCFF); }
.deal-card--mystery .deal-img .q {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--purple-500);
  text-shadow: 0 4px 0 rgba(85, 55, 201, .3);
}
.deals-a .deals-foot { text-align: center; margin-top: 44px; }
.deals-a .deals-foot p { font-weight: 800; color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 1060px) { .deals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .deals-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* ############ DOWNLOAD B — Dual Phones ############ */
.dl-b { background: linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 100%); }
.dl-panel {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 90% at 85% 10%, rgba(90, 162, 255, .35) 0%, transparent 60%),
    linear-gradient(180deg, #1560D6 0%, #0B3585 100%);
  color: #fff;
  padding: clamp(36px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.dl-panel h2 { color: #fff; text-shadow: 0 3px 0 rgba(10, 23, 48, .35); }
.dl-panel .sub { color: rgba(255, 255, 255, .85); }
.dl-panel .rating-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.dl-panel .stars { display: flex; gap: 3px; }
.dl-panel .stars img { width: 22px; height: 22px; }
.dl-panel .rating-txt { font-weight: 800; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.dl-panel .count-line { margin-top: 18px; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-300); }
.dl-panel .count-line small { display: block; font-family: var(--font-body); font-weight: 800; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.dl-panel .dl-actions { display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.dl-panel .qr-panel { border-color: rgba(255, 255, 255, .5); }
.phones-duo { position: relative; height: 480px; }
.phones-duo .phone { position: absolute; width: 240px; }
.phones-duo .ph-1 { left: 4%; top: 30px; transform: rotate(-7deg); z-index: 2; }
.phones-duo .ph-2 { right: 4%; top: 90px; transform: rotate(7deg); }
.phones-duo .duo-coin { position: absolute; width: 40px; z-index: 3; }
.phones-duo .dc-1 { top: 0; right: 24%; animation-delay: -1.4s; }
.phones-duo .dc-2 { bottom: 6%; left: 10%; width: 30px; animation-delay: -3s; }
.mini-list { padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-list .ml-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 7px 9px;
  border: 2px solid #EAF0FB;
}
.mini-list .ml-row img { width: 34px; height: 34px; }
.mini-list .ml-name { font-size: .64rem; font-weight: 900; color: var(--ink); line-height: 1.15; }
.mini-list .ml-price { margin-left: auto; font-family: var(--font-display); font-size: .82rem; color: var(--green-600); }
.mini-win {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 14px 14px;
}
.mini-win img { width: 74px; }
.mini-win .mw-txt { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); line-height: 1.2; }
.mini-win .mw-txt span { color: var(--green-600); }
@media (max-width: 940px) {
  .dl-panel { grid-template-columns: 1fr; }
  .phones-duo { height: 420px; max-width: 440px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .phones-duo .phone { width: 190px; }
  .phones-duo { height: 360px; }
}

/* ############ SUPPORT B — Clean Hub ############ */
.sup-b { background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%); }
.sup-b-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.sup-b .faq-item { border-bottom: 2px solid #EAF0FB; }
.sup-b .faq-q { padding: 22px 8px; }
.sup-b .faq-a p { padding: 0 8px 22px; }
.help-tiles { display: flex; flex-direction: column; gap: 16px; }
.help-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform .2s var(--ease-spring), box-shadow .2s ease;
}
.help-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.help-tile .ht-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.help-tile .ht-ico img { width: 30px; height: 30px; }
.help-tile:nth-child(1) .ht-ico { background: #E7F0FF; }
.help-tile:nth-child(2) .ht-ico { background: #FFF3D6; }
.help-tile:nth-child(3) .ht-ico { background: #E9FBEF; }
.help-tile h3 { font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.help-tile p { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 860px) { .sup-b-grid { grid-template-columns: 1fr; } }

/* ############ FOOTER A — Castle Skyline ############ */
.foot-a { padding: 0; }
.foot-a .scene {
  position: relative;
  height: 240px;
  background:
    radial-gradient(100% 90% at 50% 110%, rgba(122, 92, 240, .4) 0%, transparent 60%),
    linear-gradient(180deg, #10245C 0%, #1A3170 70%, #253E85 100%);
  overflow: hidden;
}
.foot-a .scene img.castle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 96%);
  opacity: .95;
}
.foot-a .foot-body { background: #0A2450; color: #fff; padding: 56px 0 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand img { width: 62px; margin-bottom: 14px; }
.foot-brand .fb-name { font-family: var(--font-display); font-size: 1.6rem; }
.foot-brand .fb-tag { color: #9FB4DC; font-weight: 700; font-size: .92rem; margin-top: 8px; max-width: 30ch; }
.foot-brand .store-badges { margin-top: 20px; }
.foot-col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .05em;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: #C6D4EE;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 6px 0;
  transition: color .18s ease, transform .18s ease;
}
.foot-col a:hover { color: var(--gold-300); transform: translateX(3px); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1.5px solid rgba(255, 255, 255, .12);
  margin-top: 44px;
  padding-top: 24px;
  font-size: .85rem;
  font-weight: 700;
  color: #8CA0C6;
}
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  transition: background .2s ease, transform .2s var(--ease-spring);
}
.foot-bottom .socials a:hover { background: rgba(255, 210, 63, .25); transform: translateY(-3px); }
.foot-bottom .socials svg { width: 18px; height: 18px; fill: #C6D4EE; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Misc helpers
   ============================================================ */
.press-loop { animation: fake-press 3.4s ease-in-out infinite; }
.btn-wrap { position: relative; display: inline-flex; }
.deal-meta .avatar { width: 24px; height: 24px; font-size: .6rem; border-width: 2px; }
.star-tw { width: 14px; height: 14px; }

/* ============================================================
   Twinkling stars helper positions (arena + footer)
   ============================================================ */
.tw-1 { top: 12%; left: 8%; }
.tw-2 { top: 22%; right: 12%; animation-delay: -.9s; }
.tw-3 { top: 8%; left: 46%; animation-delay: -1.7s; }
.tw-4 { top: 38%; left: 20%; animation-delay: -2.2s; }
.tw-5 { top: 30%; right: 30%; animation-delay: -.4s; }
