/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(90deg, #2d1f00 0%, #1a1200 50%, #2d1f00 100%);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  position: relative;
}

.announcement-bar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-bar__badge {
  background: var(--accent);
  color: #181a20;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}

.announcement-bar a { color: var(--accent); font-weight: 500; }

.announcement-bar__close {
  position: absolute;
  right: 12px;
  color: var(--text-third);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 60px 24px 50px;
  background: var(--bg-secondary);
  overflow: hidden;
  background-image:
    linear-gradient(rgba(240,185,11,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,185,11,0.06) 1px, transparent 1px),
    linear-gradient(rgba(240,185,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,185,11,0.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
  animation: gridMove 20s linear infinite;
}

/* Grid fade mask — fades grid towards edges */
.hero > .hero__grid-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, var(--bg-secondary) 80%);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -30px;
  width: 700px;
  height: 600px;
  background:
    radial-gradient(circle at 25% 35%, rgba(240,185,11,0.18) 0%, transparent 50%),
    radial-gradient(circle at 65% 55%, rgba(14,203,129,0.1) 0%, transparent 45%);
  filter: blur(25px);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 600px;
  height: 500px;
  background:
    radial-gradient(circle at 50% 40%, rgba(246,70,93,0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(240,185,11,0.12) 0%, transparent 45%);
  filter: blur(20px);
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 80px 80px, 80px 80px, 20px 20px, 20px 20px; }
}

@keyframes heroPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__text { flex: 1; position: relative; z-index: 1; }

.hero__text h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__text h1 span { color: var(--accent); }

.hero__text > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero__cta input { flex: 1; padding: 14px 16px; border-radius: 6px; }
.hero__cta .btn-primary { padding: 14px 28px; white-space: nowrap; border-radius: 6px; }

/* Auth CTA — Deposit & Trade buttons */
.hero__cta-auth {
  display: flex;
  gap: 16px;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero__btn-deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(240,185,11,0.08);
  border: 2px solid var(--accent);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero__btn-deposit::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), rgba(248,209,47,0.3), var(--accent), rgba(248,209,47,0.6), var(--accent));
  background-size: 300% 300%;
  animation: borderGlow 3s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__btn-deposit:hover {
  color: var(--accent);
  background: rgba(240,185,11,0.15);
  box-shadow: 0 0 24px rgba(240,185,11,0.25), inset 0 0 12px rgba(240,185,11,0.06);
  transform: translateY(-2px);
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__btn-trade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  color: #181a20;
  background: var(--accent);
  border: 2px solid var(--accent);
  transition: all 0.25s ease;
}

.hero__btn-trade:hover {
  color: #181a20;
  background: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(240,185,11,0.35);
  transform: translateY(-2px);
}

.hero__badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Hero price cards */
.hero__visual { flex: 0 0 360px; position: relative; z-index: 1; }

.hero__price-cards { display: flex; flex-direction: column; gap: 12px; }

.hero__price-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero__price-card:hover {
  border-color: var(--accent);
  transform: translateX(-4px);
  box-shadow: 4px 4px 20px rgba(0,0,0,0.3);
}

.hero__price-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero__price-card-head img { border-radius: 50%; }

.hero__price-card-price {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.hero__price-card-change {
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.stats-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; }

.stat-item__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-item__label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== TICKER TAPE — decorative, non-interactive ===== */
.ticker-tape {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  contain: content;
}

/* Marquee is driven by JS (see home.js startTickerMarquee) —
   CSS only provides layout; transform is set frame-by-frame via requestAnimationFrame.
   That avoids fragile `translateX(-50%)` math that breaks when lazy-loaded images
   shift the container width after animation has already started. */
.ticker-tape__inner {
  display: inline-flex;
  gap: 28px;
  padding: 0 24px;
  min-width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: default;
}

.ticker-item__symbol { font-weight: 600; }
.ticker-item__price { font-family: var(--font-mono); }
.ticker-item__change {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}
.ticker-item__change.up { color: var(--green); background: var(--green-bg); }
.ticker-item__change.down { color: var(--red); background: var(--red-bg); }

/* ===== MARKETS TABLE ===== */
.markets-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.markets-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.markets-section__header h2 { font-size: 24px; font-weight: 700; }

.markets-section__viewall {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.markets-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.markets-tabs button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.markets-tabs button:hover { color: var(--text-primary); }
.markets-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

.markets-table-wrap {
  overflow-x: auto;
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.markets-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-third);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.markets-table th:last-child { text-align: center; }

.markets-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}

.markets-table td:first-child { font-family: var(--font); }
.markets-table td:last-child { text-align: center; }

.markets-table tr { cursor: pointer; transition: background 0.15s; }
.markets-table tr:hover { background: rgba(240,185,11,0.02); }

.markets-table .coin-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.markets-table .coin-name .token-logo { border-radius: 50%; }

.markets-table .coin-name .token-logo-fallback {
  border-radius: 50%;
  background: var(--bg-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.markets-table .pair-base { color: var(--text-primary); font-weight: 600; }
.markets-table .pair-quote { color: var(--text-third); font-weight: 400; font-size: 12px; }
.markets-table .coin-fullname { font-size: 11px; color: var(--text-third); font-family: var(--font); }

.markets-table .trade-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: #181a20;
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  transition: background 0.15s;
}

.markets-table .trade-btn:hover { background: var(--accent-hover); }

/* Skeleton loading */
.skeleton-row td { padding: 20px 16px; }
.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-input) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

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

/* ===== HOW IT WORKS ===== */
.how-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.how-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 48px; }

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-step {
  flex: 0 0 260px;
  text-align: center;
  position: relative;
}

.how-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #181a20;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-step__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(240,185,11,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding: 0 12px; }

.how-step__line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--border);
  margin-top: 72px;
}

/* ===== PRODUCTS ===== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.products-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.product-card:hover::before { background: var(--accent); }

.product-card--spot { border-color: rgba(240,185,11,0.2); }
.product-card--spot::before { background: var(--accent); }

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(240,185,11,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.product-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.product-card a { color: var(--accent); font-weight: 500; font-size: 14px; }
.product-card a:hover { text-decoration: underline; }

/* ===== SECURITY ===== */
.security-section {
  background: var(--bg-secondary);
  padding: 64px 24px;
}

.security-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.security-section__text { flex: 1; }
.security-section__text h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.security-section__text > p { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; }

.security-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.security-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.security-feat strong { font-size: 14px; }
.security-feat .text-muted { font-size: 12px; }

.security-section__visual { flex: 0 0 240px; text-align: center; }

/* ============================================
   3D animated shield logo (security section)
   ============================================ */
.shield-3d {
  position: relative;
  width: 240px;
  height: 280px;
  margin: 0 auto;
  perspective: 1000px;
  perspective-origin: 50% 40%;
}

/* Dark radiating halo behind the shield */
.shield-3d__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(240,185,11,0.14) 0%,
    rgba(240,185,11,0.04) 30%,
    rgba(0,0,0,0.5) 55%,
    transparent 75%
  );
  filter: blur(18px);
  animation: shieldHalo 6s ease-in-out infinite;
  pointer-events: none;
}

/* 3D stage — container that rotates */
.shield-3d__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: shieldTilt 7s ease-in-out infinite;
}

.shield-3d__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.65))
          drop-shadow(0 4px 10px rgba(240,185,11,0.08));
}

/* Depth / back face — sits slightly below + behind */
.shield-3d__back {
  transform: translateZ(-14px);
  transform-origin: 100px 120px;
}

.shield-3d__front {
  transform: translateZ(0);
  transform-origin: 100px 120px;
}

/* Checkmark draw-on animation */
.shield-3d__check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: shieldCheckDraw 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(14,203,129,0.55));
}

/* Moving shimmer sweep across the shield face */
.shield-3d__shimmer {
  animation: shieldShimmer 4.5s ease-in-out infinite;
}

/* Orbiting particles — small, dim, restrained */
.shield-3d__spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #F0B90B 0%, #8A5A1C 60%, transparent 100%);
  box-shadow: 0 0 6px rgba(240,185,11,0.5);
  left: 50%; top: 50%;
  margin: -2px 0 0 -2px;
  pointer-events: none;
  opacity: 0.65;
}
.shield-3d__spark--1 { animation: shieldSpark 6s linear infinite; }
.shield-3d__spark--2 { animation: shieldSpark 8s linear infinite reverse; animation-delay: -3s; opacity: 0.5; }
.shield-3d__spark--3 { animation: shieldSpark 10s linear infinite; animation-delay: -5s; opacity: 0.35; }

@keyframes shieldTilt {
  0%, 100% { transform: rotateX(0deg)  rotateY(-6deg) translateY(0); }
  25%      { transform: rotateX(3deg)  rotateY(4deg)  translateY(-5px); }
  50%      { transform: rotateX(0deg)  rotateY(8deg)  translateY(-9px); }
  75%      { transform: rotateX(-3deg) rotateY(4deg)  translateY(-5px); }
}

@keyframes shieldHalo {
  0%, 100% { opacity: 0.7; transform: scale(0.92); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

@keyframes shieldCheckDraw {
  0%, 10%  { stroke-dashoffset: 100; opacity: 0; }
  25%      { opacity: 1; }
  45%      { stroke-dashoffset: 0; opacity: 1; }
  85%      { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes shieldShimmer {
  0%   { transform: translateX(0); }
  100% { transform: translateX(270px); }
}

@keyframes shieldSpark {
  0%   { transform: rotate(0deg)   translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}

/* Mobile — smaller but still animated */
@media (max-width: 768px) {
  .shield-3d { width: 180px; height: 210px; }
  .shield-3d__spark { width: 5px; height: 5px; }
  @keyframes shieldSpark {
    0%   { transform: rotate(0deg)   translateX(85px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(85px) rotate(-360deg); }
  }
}

/* ===== APP DOWNLOAD ===== */
.app-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.app-section__inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.app-section__text { flex: 1; }
.app-section__text h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.app-section__text p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }

/* h2 with embedded Buterich wordmark logo */
.app-section__heading {
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.app-section__heading-logo {
  display: inline-block;
  height: 0.9em;
  width: auto;
  vertical-align: baseline;
  margin-right: 0.1em;
  transform: translateY(0.08em);
}

.app-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240,185,11,0.08);
  border: 1px solid rgba(240,185,11,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.app-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.app-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  min-height: 62px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 100%),
    linear-gradient(135deg, #14161B 0%, #0B0D11 100%);
  border: 1px solid rgba(240,185,11,0.18);
  border-radius: 14px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 18px rgba(0,0,0,0.25);
}

/* Subtle gold glow panel that lights up on hover */
.app-btn__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    130% 90% at 0% 0%,
    rgba(240,185,11,0.22) 0%,
    rgba(240,185,11,0.08) 30%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.app-btn > *:not(.app-btn__glow) {
  position: relative;
  z-index: 1;
}

.app-btn:hover {
  border-color: rgba(240,185,11,0.55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 26px rgba(0,0,0,0.35),
    0 0 0 1px rgba(240,185,11,0.15);
}

.app-btn:hover .app-btn__glow { opacity: 1; }

.app-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1C1F25 0%, #0A0B0E 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.app-btn--apple .app-btn__icon {
  background: linear-gradient(145deg, #1E1E22 0%, #000000 100%);
}

.app-btn--google .app-btn__icon {
  background: linear-gradient(145deg, #ffffff 0%, #E8EAED 100%);
  border-color: rgba(0,0,0,0.08);
}

.app-btn__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.app-btn__eyebrow {
  font-size: 10px;
  color: var(--text-third);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1.2;
}

.app-btn__title {
  font-size: 17px;
  font-weight: 700;
  color: #F5F7FA;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-btn__status {
  flex-shrink: 0;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240,185,11,0.1);
  border: 1px solid rgba(240,185,11,0.28);
  border-radius: 999px;
  align-self: center;
}

.app-note {
  color: var(--text-third);
  font-size: 13px;
  line-height: 1.6;
  max-width: 520px;
}

.app-section__mockup { flex: 0 0 280px; display: flex; justify-content: center; }

/* ==========================================================
   iPhone 17 live mockup
   ========================================================== */
.iphone17 {
  position: relative;
  width: 260px;
  height: 540px;
  background: linear-gradient(145deg, #1d1f23 0%, #0a0b0e 50%, #1d1f23 100%);
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.55),
    0 8px 20px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 1px rgba(255,255,255,0.08);
}
.iphone17__edge {
  position: absolute;
  inset: 4px;
  border-radius: 44px;
  background: linear-gradient(145deg,#2a2d33,#0b0c0f);
  pointer-events: none;
}
/* Side buttons */
.iphone17__btn {
  position: absolute;
  background: #15171a;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.4);
}
.iphone17__btn--silence { left: -2px; top: 90px;  width: 4px; height: 30px; border-radius: 2px 0 0 2px; }
.iphone17__btn--vol-up  { left: -2px; top: 130px; width: 4px; height: 50px; border-radius: 2px 0 0 2px; }
.iphone17__btn--vol-down{ left: -2px; top: 190px; width: 4px; height: 50px; border-radius: 2px 0 0 2px; }
.iphone17__btn--power   { right: -2px; top: 140px; width: 4px; height: 70px; border-radius: 0 2px 2px 0; }

.iphone17__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
}

/* Dynamic Island */
.iphone17__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

/* iOS status bar */
.iphone17__status {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 15;
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
}
.iphone17__time { letter-spacing: -0.2px; }
.iphone17__status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.iphone17__battery {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 2.5px;
  padding: 1px;
}
.iphone17__battery::after {
  content: '';
  position: absolute;
  right: -3px; top: 3px;
  width: 1.5px; height: 4px;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
}
.iphone17__battery-fill {
  display: block;
  height: 100%;
  width: 78%;
  background: #fff;
  border-radius: 1px;
}

/* Intro splash */
.iphone17__intro {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #0F1418 0%, #000 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.iphone17__intro.hide { opacity: 0; pointer-events: none; }
.iphone17__intro-mark {
  width: 82px;
  height: 96px;
  filter: drop-shadow(0 0 18px rgba(240,185,11,0.35));
}
img.iphone17__intro-mark {
  object-fit: contain;
  opacity: 0;
  transform: scale(0.78);
}
/* Intro draw animations — play ONCE per cycle, triggered by .run */
.iphone17__intro-arc  { stroke-dashoffset: 100; will-change: stroke-dashoffset; }
.iphone17__intro-bar  { transform-origin: 0 50%; transform: scaleY(0); will-change: transform; }
.iphone17__intro-mid  { transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.iphone17__intro-dot  { transform-origin: center; transform: scale(0); opacity: 0; will-change: transform, opacity; }

.iphone17__intro.run .iphone17__intro-arc { animation: iphDraw 1.2s ease-out forwards; }
.iphone17__intro.run .iphone17__intro-bar { animation: iphGrow 0.9s ease-out forwards; }
.iphone17__intro.run .iphone17__intro-mid { animation: iphGrowX 0.7s 0.35s ease-out forwards; }
.iphone17__intro.run .iphone17__intro-dot { animation: iphPulse 0.6s 0.8s ease-out forwards; }
.iphone17__intro.run .iphone17__intro-text { animation: iphTextIn 1s 0.7s ease-out forwards; }
.iphone17__intro.run img.iphone17__intro-mark { animation: iphMarkIn 1s ease-out forwards; }
@keyframes iphMarkIn {
  0%   { opacity: 0; transform: scale(0.72); }
  55%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.iphone17__intro-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 8px;
  color: #F5F7FA;
  opacity: 0;
}
@keyframes iphDraw { to { stroke-dashoffset: 0; } }
@keyframes iphGrow { to { transform: scaleY(1); } }
@keyframes iphGrowX { to { transform: scaleX(1); } }
@keyframes iphPulse {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes iphTextIn {
  0%   { opacity: 0; letter-spacing: 14px; }
  100% { opacity: 1; letter-spacing: 8px; }
}

/* App UI — container for multiple scenes */
.iphone17__app {
  position: absolute;
  inset: 0;
  padding: 46px 12px 12px;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #EAECEF;
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.iphone17__app.show { opacity: 1; }

/* Scenes (spot / staking) — positioned over each other */
.iphone17__scene {
  position: absolute;
  inset: 46px 12px 12px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.iphone17__scene.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.iphone17__scene.out {
  opacity: 0;
  transform: translateX(-20px);
}

.iphone17__app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 12px;
}
.iphone17__app-logo { width: 18px; height: 20px; }
img.iphone17__app-logo { object-fit: contain; }
.iphone17__app-title {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 3px;
  color: #F5F7FA;
  flex: 1;
}
.iphone17__app-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #F6465D;
  letter-spacing: 1px;
}
.iphone17__app-dot {
  width: 6px; height: 6px;
  background: #F6465D;
  border-radius: 50%;
  animation: iphLiveDot 1.2s ease-in-out infinite;
}
@keyframes iphLiveDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.iphone17__pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #0E1116;
  border-radius: 12px;
  margin-bottom: 8px;
}
.iphone17__pair-left { display: flex; align-items: center; gap: 8px; }
.iphone17__pair-name { font-size: 12px; font-weight: 700; }
.iphone17__pair-sub  { font-size: 9px; color: #848E9C; }
.iphone17__pair-chg {
  font-size: 11px;
  font-weight: 700;
  color: #0ECB81;
  background: rgba(14,203,129,0.14);
  padding: 3px 8px;
  border-radius: 999px;
}
.iphone17__pair-chg.down { color: #F6465D; background: rgba(246,70,93,0.14); }

.iphone17__price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0ECB81;
  margin: 2px 2px 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}
.iphone17__price.down { color: #F6465D; }
.iphone17__price-delta {
  font-size: 10px;
  color: #848E9C;
  margin: 0 2px 8px;
  font-variant-numeric: tabular-nums;
}

.iphone17__chart { width: 100%; height: 72px; margin-bottom: 4px; }
.iphone17__chart-dot {
  filter: drop-shadow(0 0 6px rgba(14,203,129,0.8));
}

.iphone17__timeframes {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #5E6673;
  padding: 4px 4px 8px;
}
.iphone17__timeframes span {
  padding: 3px 8px;
  border-radius: 6px;
}
.iphone17__timeframes .active {
  color: #F0B90B;
  background: rgba(240,185,11,0.1);
  font-weight: 600;
}

.iphone17__book {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  background: #0E1116;
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.iphone17__book-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  position: relative;
}
.iphone17__book-row--ask { color: #F6465D; }
.iphone17__book-row--bid { color: #0ECB81; }
.iphone17__book-amt { color: #848E9C; }
.iphone17__book-mid {
  text-align: center;
  color: #F0B90B;
  font-weight: 700;
  font-size: 10px;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin: 2px 0;
}

.iphone17__cta {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.iphone17__buy, .iphone17__sell {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s;
}
.iphone17__buy {
  background: #0ECB81;
  color: #fff;
  box-shadow: 0 6px 14px rgba(14,203,129,0.3);
}
.iphone17__buy.pressed { transform: scale(0.96); }
.iphone17__sell {
  background: rgba(246,70,93,0.14);
  color: #F6465D;
}

.iphone17__tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.iphone17__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: #5E6673;
}
.iphone17__tab.active { color: #F0B90B; }

/* Toast (order confirmation) */
.iphone17__toast {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14,203,129,0.15);
  border: 1px solid rgba(14,203,129,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0ECB81;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  opacity: 0;
  z-index: 30;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.iphone17__toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .iphone17 { width: 220px; height: 460px; border-radius: 42px; }
  .iphone17__screen { border-radius: 34px; }
}

/* ========== Staking scene ========== */
.iphone17__stake-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 10px;
}
.iphone17__stake-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  color: #F0B90B;
}
.iphone17__stake-title {
  font-size: 13px;
  font-weight: 600;
  color: #F5F7FA;
  flex: 1;
}
.iphone17__stake-live {
  font-size: 9px;
  font-weight: 700;
  color: #0ECB81;
  background: rgba(14,203,129,0.14);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* Hero banner: ETH 12% APY */
.iphone17__stake-hero {
  position: relative;
  border-radius: 14px;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(98,126,234,0.35) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(14,203,129,0.22) 0%, transparent 55%),
    linear-gradient(135deg, #12151C 0%, #090B10 100%);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  overflow: hidden;
}
.iphone17__stake-hero::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(240,185,11,0.18), transparent 70%);
  filter: blur(8px);
}
.iphone17__stake-hero-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.iphone17__stake-coin {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #627EEA, #3C5AD6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(98,126,234,0.4);
}
.iphone17__stake-coin svg { width: 18px; height: 18px; }
.iphone17__stake-coin-info { flex: 1; }
.iphone17__stake-coin-sym {
  font-size: 13px;
  font-weight: 700;
  color: #F5F7FA;
}
.iphone17__stake-coin-name {
  font-size: 9.5px;
  color: #848E9C;
}
.iphone17__stake-hot {
  font-size: 8px;
  font-weight: 800;
  color: #F6465D;
  background: rgba(246,70,93,0.14);
  padding: 3px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.iphone17__stake-apy-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.iphone17__stake-apy-label {
  font-size: 9px;
  color: #848E9C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.iphone17__stake-apy-num {
  font-size: 34px;
  font-weight: 800;
  color: #0ECB81;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(14,203,129,0.35);
}
.iphone17__stake-apy-pct {
  font-size: 16px;
  font-weight: 700;
  color: #0ECB81;
  margin-left: -3px;
}
.iphone17__stake-apy-sub {
  font-size: 9px;
  color: #848E9C;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Amount / earn card */
.iphone17__stake-card {
  background: #0E1116;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.iphone17__stake-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 10px;
  color: #848E9C;
}
.iphone17__stake-row strong {
  color: #F5F7FA;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.iphone17__stake-row--hl strong { color: #F0B90B; }
.iphone17__stake-row--earn strong { color: #0ECB81; font-size: 11.5px; }
.iphone17__stake-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 4px 0;
}

/* Slider */
.iphone17__stake-slider {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 10px 0 6px;
}
.iphone17__stake-slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 20%;
  background: linear-gradient(90deg, #F0B90B, #FFD76B);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.iphone17__stake-slider-knob {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 12px; height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(240,185,11,0.5);
  transition: left 0.6s ease;
}

/* Duration pills */
.iphone17__stake-pills {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}
.iphone17__stake-pill {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 9px;
  color: #848E9C;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.iphone17__stake-pill.active {
  color: #F0B90B;
  background: rgba(240,185,11,0.1);
  border-color: rgba(240,185,11,0.3);
  font-weight: 600;
}

/* Stake CTA button */
.iphone17__stake-btn {
  margin-top: auto;
  margin-bottom: 10px;
  width: 96%;
  align-self: center;
  padding: 11px 0;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0ECB81 0%, #0AAE6D 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(14,203,129,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.iphone17__stake-btn.pressed { transform: scale(0.96); }

/* Tab swipe indicator — glow on Staking tab when transitioning */
.iphone17__tab.highlight {
  animation: iphTabHi 0.5s ease-out;
}
@keyframes iphTabHi {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-3px); color: #F0B90B; }
  100% { transform: translateY(0); }
}

/* ========== Claim Rewards scene ========== */
.iphone17__claim-card {
  background: #0E1116;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.iphone17__claim-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.iphone17__claim-info { flex: 1; min-width: 0; }
.iphone17__claim-name {
  font-size: 12px;
  font-weight: 700;
  color: #F5F7FA;
}
.iphone17__claim-sub {
  font-size: 9.5px;
  color: #848E9C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iphone17__claim-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #0ECB81;
  background: rgba(14,203,129,0.14);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.iphone17__claim-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0ECB81;
  box-shadow: 0 0 6px #0ECB81;
  animation: iphLiveDot 1.2s ease-in-out infinite;
}

/* Rewards hero */
.iphone17__claim-hero {
  position: relative;
  border-radius: 14px;
  padding: 16px 14px 14px;
  background:
    radial-gradient(circle at 80% 10%, rgba(14,203,129,0.3) 0%, transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(240,185,11,0.15) 0%, transparent 55%),
    linear-gradient(135deg, #0E1611 0%, #090B10 100%);
  border: 1px solid rgba(14,203,129,0.18);
  margin-bottom: 10px;
  overflow: hidden;
}
.iphone17__claim-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(14,203,129,0.08), transparent 70%);
  animation: iphRewardGlow 2.6s ease-in-out infinite;
}
@keyframes iphRewardGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.iphone17__claim-reward-label {
  font-size: 9px;
  color: #848E9C;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.iphone17__claim-reward-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.iphone17__claim-reward-num {
  font-size: 30px;
  font-weight: 800;
  color: #0ECB81;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(14,203,129,0.45);
}
.iphone17__claim-reward-unit {
  font-size: 14px;
  font-weight: 700;
  color: #0ECB81;
}
.iphone17__claim-reward-usd {
  font-size: 10px;
  color: #848E9C;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.iphone17__claim-live-tick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #0ECB81;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}
.iphone17__claim-tick-dot {
  width: 4px; height: 4px;
  background: #0ECB81;
  border-radius: 50%;
  animation: iphClaimTick 0.9s ease-in-out infinite;
}
@keyframes iphClaimTick {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.8); opacity: 1; }
}

/* Claim button with success state */
.iphone17__claim-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.4s, transform 0.15s;
}
.iphone17__claim-btn-check {
  width: 0;
  opacity: 0;
  transition: width 0.3s, opacity 0.3s;
}
.iphone17__claim-btn.success {
  background: linear-gradient(135deg, #0ECB81 0%, #09A968 100%);
  box-shadow: 0 0 24px rgba(14,203,129,0.55);
}
.iphone17__claim-btn.success .iphone17__claim-btn-check {
  width: 16px;
  opacity: 1;
}

/* Confetti / sparkle on successful claim */
.iphone17__claim-sparkle {
  position: absolute;
  left: 50%; top: 50%;
  pointer-events: none;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #0ECB81;
  box-shadow: 0 0 8px rgba(14,203,129,0.8);
  --dx: 0px;
  --dy: 0px;
  animation: iphSparkle 0.85s ease-out forwards;
}
@keyframes iphSparkle {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ========== Swap USDT → ETH scene (trading hero) ========== */
.iphone17__swap-card {
  background: #0E1116;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  position: relative;
}
.iphone17__swap-card--receive {
  border-color: rgba(240,185,11,0.18);
  background:
    radial-gradient(circle at 85% 10%, rgba(240,185,11,0.10) 0%, transparent 55%),
    #0E1116;
}
.iphone17__swap-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #848E9C;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.iphone17__swap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.iphone17__swap-amount-wrap {
  flex: 1;
  min-width: 0;
}
.iphone17__swap-amount {
  font-size: 18px;
  font-weight: 700;
  color: #F5F7FA;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iphone17__swap-asset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 4px;
  background: #1E2026;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #F5F7FA;
  flex-shrink: 0;
}
.iphone17__swap-asset img { border-radius: 50%; }
.iphone17__swap-asset--eth {
  background: linear-gradient(135deg, #3C3F49 0%, #1E2026 100%);
}
.iphone17__swap-asset--eth svg {
  background: #5A606E;
  border-radius: 50%;
  padding: 3px;
}
.iphone17__swap-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 10px;
  color: #848E9C;
}
.iphone17__swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2px auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0E1116;
  border: 1px solid rgba(240,185,11,0.35);
  box-shadow: 0 4px 14px rgba(240,185,11,0.12);
  position: relative;
  z-index: 1;
}
.iphone17__swap-info {
  margin-top: 10px;
  background: rgba(30,32,38,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 8px 12px;
}
.iphone17__swap-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  padding: 3px 0;
  color: #848E9C;
}
.iphone17__swap-info-row strong {
  color: #F5F7FA;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.iphone17__swap-btn {
  background: linear-gradient(135deg, #F0B90B 0%, #B07A17 100%);
  color: #1E2026 !important;
  box-shadow: 0 8px 22px rgba(240,185,11,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  width: 88%;
  padding: 7px 0;
  font-size: 10px;
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(240,185,11,0.2);
}
.iphone17__swap-btn-check {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s, transform 0.3s;
}
.iphone17__swap-btn-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.iphone17__swap-btn.success {
  background: linear-gradient(135deg, #0ECB81 0%, #0AAE6D 100%);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(14,203,129,0.35);
}
.iphone17__swap-btn.success .iphone17__swap-btn-check {
  opacity: 1;
  transform: scale(1);
  stroke: #fff;
}

/* Legacy phone-mockup (kept for compatibility) */
.phone-mockup {
  width: 200px;
  height: 380px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 12px 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
}
.phone-mockup__header {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

/* ===== PARTNERS ===== */
.partners-section {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.partners-section__inner { max-width: 1200px; margin: 0 auto; }

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
  row-gap: 36px;
}

/* Base size = 73px (56px × 1.3 = 30% larger) */
.partner-logo {
  color: #5E6673;
  opacity: 0.78;
  transition: opacity 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 73px;
  min-width: 73px;
}
.partner-logo:hover { opacity: 1; color: #A3ADBA; }
.partner-logo svg {
  display: block;
  height: 73px;
  width: auto;
  max-width: 100%;
}
/* Narrow mark (Ethereum) */
.partner-logo--narrow svg { height: 73px; width: 48px; }
/* Wide mark (Solana — horizontal stripes) */
.partner-logo--wide svg   { height: 58px; width: auto; }
/* Wordmarks (Bybit, Kraken, Forbes) — keep font at natural aspect */
.partner-logo--word       { height: 58px; }
.partner-logo--word svg   { height: 58px; width: auto; }

/* Mobile optimization — scale logos down gracefully */
@media (max-width: 900px) {
  .partners-logos { gap: 44px; row-gap: 28px; }
  .partner-logo        { height: 58px; min-width: 58px; }
  .partner-logo svg    { height: 58px; }
  .partner-logo--narrow svg { height: 58px; width: 38px; }
  .partner-logo--wide svg   { height: 46px; }
  .partner-logo--word, .partner-logo--word svg { height: 46px; }
}
@media (max-width: 600px) {
  .partners-logos { gap: 30px; row-gap: 22px; }
  .partner-logo        { height: 46px; min-width: 46px; }
  .partner-logo svg    { height: 46px; }
  .partner-logo--narrow svg { height: 46px; width: 30px; }
  .partner-logo--wide svg   { height: 36px; }
  .partner-logo--word, .partner-logo--word svg { height: 36px; }
}
@media (max-width: 400px) {
  .partners-logos { gap: 22px; row-gap: 18px; }
  .partner-logo        { height: 38px; min-width: 38px; }
  .partner-logo svg    { height: 38px; }
  .partner-logo--narrow svg { height: 38px; width: 24px; }
  .partner-logo--wide svg   { height: 28px; }
  .partner-logo--word, .partner-logo--word svg { height: 28px; }
}

/* Ambassador */
.ambassador-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.ambassador-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 28px;
}
.ambassador-photo img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.ambassador-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
.ambassador-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.ambassador-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer__logo .brand-mark {
  width: 28px;
  height: 28px;
}

.footer__logo .brand-mark--word {
  width: 168px;
  height: auto;
}

.footer__socials { display: flex; gap: 12px; margin-top: 16px; }
.footer__socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.15s;
}
.footer__socials a:hover { background: var(--accent); color: #181a20; }

.footer__col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 13px; color: var(--text-secondary); padding: 3px 0; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-third);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom-links { display: flex; gap: 16px; }
.footer__bottom-links a { color: var(--text-third); }
.footer__bottom-links a:hover { color: var(--text-secondary); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 24px; font-size: 14px;
  color: var(--text-primary); box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 9999; display: none;
}
.toast.show { display: block; animation: slideUp 0.3s ease; }

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ticker-tape { padding: 5px 0; }
  .ticker-tape__inner { gap: 16px; padding: 0 12px; }
  .ticker-item { font-size: 11px; gap: 4px; padding: 2px 0; }
  .ticker-item .token-logo { width: 14px !important; height: 14px !important; }
  .ticker-item__symbol { font-size: 11px; }
  .ticker-item__price { font-size: 11px; }
  .ticker-item__change { font-size: 10px; }

  .announcement-bar { font-size: 11px; padding: 6px 12px; }
  .announcement-bar__close { right: 4px; }

  .hero {
    padding: 32px 16px;
    animation-duration: 30s;
  }
  .hero::before,
  .hero::after {
    animation-duration: 13s;
    filter: blur(18px);
  }
  .hero__text { text-align: center; }
  .hero__text h1 { font-size: 28px; }
  .hero__text > p { font-size: 14px; margin-left: auto; margin-right: auto; }
  .hero__cta { flex-direction: row; margin-left: auto; margin-right: auto; max-width: 100%; gap: 8px; }
  .hero__cta input { flex: 2; min-width: 0; padding: 12px 14px; font-size: 14px; }
  .hero__cta .btn-primary { flex: 1; padding: 12px 16px; font-size: 13px; white-space: nowrap; }
  .hero__cta-auth { gap: 10px; max-width: 100%; justify-content: center; }
  .hero__btn-deposit { padding: 12px 24px; font-size: 14px; border-radius: 10px; gap: 8px; }
  .hero__btn-deposit::before { animation-duration: 5.5s; }
  .hero__btn-deposit svg { width: 16px; height: 16px; }
  .hero__btn-trade { padding: 12px 24px; font-size: 14px; border-radius: 10px; gap: 8px; }
  .hero__btn-trade svg { width: 16px; height: 16px; }
  .hero__badges { gap: 12px; justify-content: center; }

  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item__value { font-size: 20px; }

  .markets-section { padding: 24px 12px; }
  .markets-tabs { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .markets-tabs::-webkit-scrollbar { display: none; }
  .markets-tabs button { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .markets-table th, .markets-table td { padding: 12px 8px; font-size: 12px; }

  .how-steps { flex-direction: column; align-items: center; gap: 24px; }
  .how-step { flex: none; }
  .how-step__line { width: 1px; height: 24px; margin: 0; }

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

  .security-section { padding: 40px 16px; }
  .security-features { grid-template-columns: 1fr; }

  .app-section { padding: 40px 16px; }
  .app-section__inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    align-items: center;
  }
  .app-section__text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .app-section__text h2 { font-size: 24px; }
  .app-section__text p { margin-left: auto; margin-right: auto; max-width: 460px; }
  .app-note { margin-left: auto; margin-right: auto; text-align: center; }
  .app-section__mockup {
    flex: 0 0 auto;
    order: -1;
    width: 100%;
    justify-content: center;
  }
  .app-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .app-btn { padding: 10px 12px; min-height: 58px; gap: 10px; }
  .app-btn__icon { width: 38px; height: 38px; border-radius: 10px; }
  .app-btn__icon svg { width: 22px; height: 22px; }
  .app-btn__eyebrow { font-size: 9px; letter-spacing: 0.1em; }
  .app-btn__title { font-size: 14px; }
  .app-btn__status { padding: 2px 7px; font-size: 9px; }
}

@media (max-width: 420px) {
  .app-btn { padding: 9px 10px; gap: 8px; min-height: 54px; }
  .app-btn__icon { width: 34px; height: 34px; }
  .app-btn__icon svg { width: 20px; height: 20px; }
  .app-btn__eyebrow { display: none; }
  .app-btn__title { font-size: 13px; }
  .app-btn__status { display: none; }
}

@media (max-width: 768px) {
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 24px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ===== HERO: STAKING PROMO ===== */
/* Same base as classic — grid bg, glow, same layout */
.hero--staking__label {
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,185,11,.08); padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(240,185,11,.15);
}
.hero--staking__apy {
  font-size: 52px; font-weight: 700; line-height: 1.15; margin-bottom: 16px;
}
.hero--staking__apy span { color: var(--accent); }
.hero--staking__tokens {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.hero--staking__token {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; text-align: center; min-width: 110px;
  transition: all .2s;
}
.hero--staking__token:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero--staking__token img { border-radius: 50%; margin-bottom: 6px; }
.hero--staking__token-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.hero--staking__token-apy { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 4px; }
.hero--staking__cta { display: flex; gap: 12px; margin-bottom: 24px; }
.hero--staking__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #181a20;
  border-radius: 10px; text-decoration: none; transition: all .15s;
}
.hero--staking__btn:hover { background: var(--accent-hover); }
.hero--staking__btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; font-size: 16px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 10px; text-decoration: none; transition: all .15s; background: transparent;
}
.hero--staking__btn-outline:hover { border-color: var(--accent); color: var(--accent); }

@media(max-width:768px) {
  .hero--staking__apy { font-size: 36px; }
  .hero--staking__tokens { gap: 8px; }
  .hero--staking__token { min-width: 80px; padding: 10px 12px; }
  /* Keep Staking-hero CTAs on ONE row on mobile (guest and authed variants) */
  .hero--staking__cta {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }
  .hero--staking__cta .hero--staking__btn,
  .hero--staking__cta .hero--staking__btn-outline {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
    justify-content: center;
  }
  .hero--staking__cta .hero--staking__btn svg,
  .hero--staking__cta .hero--staking__btn-outline svg {
    width: 16px; height: 16px;
  }
  /* Guest form row — also stays on one line */
  .hero--staking__cta.hero__cta input { flex: 2; min-width: 0; }
  .hero--staking__cta.hero__cta .btn-primary { flex: 1; padding: 12px 14px; font-size: 13px; white-space: nowrap; }
}

/* Hide the bottom app-section phone mockup when the staking hero design is active
   (the same phone is already displayed as the hero visual at the top) */
body.design-staking .app-section__mockup {
  display: none !important;
}
body.design-staking .app-section__inner {
  justify-content: center;
}
body.design-staking .app-section__text {
  max-width: 640px;
  text-align: center;
}
body.design-staking .app-section__text p,
body.design-staking .app-section__text .app-note {
  margin-left: auto;
  margin-right: auto;
}
body.design-staking .app-buttons {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

/* Classic/trading hero also already shows the phone in the hero itself,
   so the lower app-section stays text-only there as well. */
body.design-trading .app-section__mockup {
  display: none !important;
}
body.design-trading .app-section__inner {
  justify-content: center;
}
body.design-trading .app-section__text {
  max-width: 640px;
  text-align: center;
}
body.design-trading .app-section__text p,
body.design-trading .app-section__text .app-note {
  margin-left: auto;
  margin-right: auto;
}
body.design-trading .app-buttons {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

/* =========================================================
   Staking hero visual — orbit of floating tokens + phone
   ========================================================= */
.hero__visual--staking {
  position: relative;
  flex: 0 0 560px;
  width: 560px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero__orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__orbit-token {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-size, 64px);
  height: var(--orbit-size, 64px);
  margin-left: calc(var(--orbit-size, 64px) / -2);
  margin-top: calc(var(--orbit-size, 64px) / -2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(240,185,11,0.22) 0%,
    rgba(240,185,11,0.10) 45%,
    rgba(11,13,17,0.55) 100%
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(240,185,11,0.25);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 28px rgba(240,185,11,0.12);
  opacity: 0.9;
  transform: translate(var(--orbit-x, 0), var(--orbit-y, 0));
  animation: heroOrbitFloat var(--orbit-dur, 14s) ease-in-out infinite;
  animation-delay: var(--orbit-delay, 0s);
  transition: opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  /* Reset anchor styles — tokens are clickable links to /staking.html */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.hero__orbit-token:hover {
  opacity: 1;
  border-color: rgba(240,185,11,0.55);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 40px rgba(240,185,11,0.35);
}

/* Featured ETH token — 15% larger and a touch brighter */
.hero__orbit-token--featured {
  border-color: rgba(240,185,11,0.45);
  box-shadow:
    0 12px 42px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 38px rgba(240,185,11,0.28);
  opacity: 1;
}

.hero__orbit-token--featured .hero__orbit-apy {
  color: #FFF3C6;
  font-size: 13px;
}

.hero__orbit-token img {
  width: 55%;
  height: 55%;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  opacity: 0.95;
}

.hero__orbit-apy {
  font-size: 11px;
  font-weight: 700;
  color: #FFE7A8;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero__orbit-apy.hero__orbit-apy--empty {
  color: rgba(255,231,168,0.45);
  font-weight: 500;
}

@keyframes heroOrbitFloat {
  0%, 100% {
    transform: translate(var(--orbit-x, 0), var(--orbit-y, 0));
  }
  50% {
    transform: translate(
      calc(var(--orbit-x, 0) + var(--orbit-drift-x, 12px)),
      calc(var(--orbit-y, 0) + var(--orbit-drift-y, -12px))
    );
  }
}

/* Phone mount — centered inside the orbit, above tokens */
.hero__phone-mount {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tokens behind the phone should fade slightly for depth */
.hero__orbit-token[data-asset="USDT"],
.hero__orbit-token[data-asset="ADA"] {
  opacity: 0.78;
}

/* Responsive — tablet */
@media (max-width: 1100px) {
  .hero__visual--staking {
    flex: 0 0 440px;
    width: 440px;
    height: 460px;
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* =========================================================
   Trading hero visual — same orbit + phone layout as staking
   but circles show LIVE USD prices and the phone runs a Swap.
   ========================================================= */
.hero__visual--trading {
  position: relative;
  flex: 0 0 560px;
  width: 560px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Token price label inside orbit circles (replaces APY) */
.hero__orbit-price {
  font-size: 11px;
  font-weight: 700;
  color: #FFE7A8;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.hero__orbit-token--featured .hero__orbit-price {
  color: #FFF3C6;
  font-size: 12px;
}
.hero__orbit-price--up   { color: #BFF4D9; }
.hero__orbit-price--down { color: #FFB8B8; }
.hero__orbit-price.hero__orbit-apy--empty {
  color: rgba(255,231,168,0.45);
  font-weight: 500;
}

/* Responsive — tablet */
@media (max-width: 1100px) {
  .hero__visual--trading {
    flex: 0 0 440px;
    width: 440px;
    height: 460px;
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  #heroStaking .hero__content {
    flex-direction: column;
    gap: 24px;
  }
  .hero__visual--staking,
  .hero__visual--trading {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: 420px;
    margin: 0 auto;
    transform: none;
  }
  /* Scale down the entire orbit (tokens + phone) uniformly */
  .hero__visual--staking .hero__orbit,
  .hero__visual--trading .hero__orbit {
    transform: scale(0.6);
    transform-origin: center;
  }
  .hero__visual--staking .hero__phone-mount,
  .hero__visual--trading .hero__phone-mount {
    transform: scale(0.78);
    transform-origin: center;
  }
  .hero__orbit-token { opacity: 0.88; }
  .shield-3d__halo { animation-duration: 7.5s; }
  .shield-3d__stage { animation-duration: 8.5s; }
  .shield-3d__check,
  .shield-3d__shimmer { animation-duration: 5.5s; }
  .shield-3d__spark--1 { animation-duration: 7.5s; }
  .shield-3d__spark--2 { animation-duration: 9.5s; }
  .shield-3d__spark--3 { animation-duration: 11.5s; }
  /* Stack trading hero vertically on mobile */
  .hero .hero__content {
    flex-direction: column;
    gap: 24px;
  }

  .iphone17__intro.run .iphone17__intro-arc { animation-duration: 1.05s; }
  .iphone17__intro.run .iphone17__intro-bar { animation-duration: 0.8s; }
  .iphone17__intro.run .iphone17__intro-mid { animation-duration: 0.65s; }
  .iphone17__intro.run .iphone17__intro-dot { animation-duration: 0.55s; }
  .iphone17__intro.run .iphone17__intro-text,
  .iphone17__intro.run img.iphone17__intro-mark { animation-duration: 0.9s; }
}

@media (max-width: 480px) {
  .hero__visual--staking,
  .hero__visual--trading {
    height: 380px;
  }
  .hero__visual--staking .hero__orbit,
  .hero__visual--trading .hero__orbit {
    transform: scale(0.5);
  }
  .hero__visual--staking .hero__phone-mount,
  .hero__visual--trading .hero__phone-mount {
    transform: scale(0.72);
  }
}

html[dir="rtl"] .hero__content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero__text,
html[dir="rtl"] .hero--staking__label,
html[dir="rtl"] .hero--staking__apy {
  text-align: right;
}

html[dir="rtl"] .hero__text > p {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .hero__cta,
html[dir="rtl"] .hero__cta-auth,
html[dir="rtl"] .hero__badges,
html[dir="rtl"] .hero--staking__tokens,
html[dir="rtl"] .hero--staking__cta {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero__btn-deposit,
html[dir="rtl"] .hero__btn-trade,
html[dir="rtl"] .hero--staking__btn,
html[dir="rtl"] .hero--staking__btn-outline {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  html[dir="rtl"] .hero__content,
  html[dir="rtl"] #heroStaking .hero__content,
  html[dir="rtl"] .hero .hero__content {
    flex-direction: column;
  }
}
