/*
 * NYX Portal - Bitcoin Card Cyber V2: Cyberpunk Japanese Dark (Premium)
 * 100% scoped to .nyx-btc-card--cyber-v2
 * Overrides the gold v2 skin with a dark cyber aesthetic.
 * Does NOT touch JS, auth, payments, hrefs, IDs, or data-attributes.
 */

/* ============================================================
   0) CARD BASE — Narrow + premium dark cyber
   ============================================================ */
.nyx-btc-card--cyber-v2 {
  width: clamp(360px, 32vw, 480px) !important;
  max-width: 480px !important;
  height: auto !important;
  min-height: unset !important;
  box-sizing: border-box;
  border-radius: 22px;
  padding: 20px 20px 18px !important;

  position: relative;
  overflow: hidden;
  justify-self: center;
  align-self: start;
  flex: 0 0 auto;

  background:
    radial-gradient(120% 120% at 15% 0%, rgba(0,255,255,.10), transparent 52%),
    radial-gradient(120% 120% at 90% 10%, rgba(255,0,170,.08), transparent 55%),
    linear-gradient(180deg, rgba(10,10,16,.92), rgba(6,6,10,.96)) !important;

  border: 1px solid rgba(0,255,255,.10) !important;
  box-shadow:
    0 22px 70px rgba(0,0,0,.60),
    0 0 0 1px rgba(255,255,255,.04) inset !important;
}

/* Override grid parent stretching */
.wallpaper-grid > .nyx-btc-card--cyber-v2 {
  width: clamp(360px, 32vw, 480px) !important;
  max-width: 480px !important;
  min-height: unset !important;
  justify-self: center;
}
@media (max-width: 1100px) {
  .wallpaper-grid > .nyx-btc-card--cyber-v2 {
    width: min(92vw, 480px) !important;
    max-width: 480px !important;
  }
}

/* ============================================================
   1) TECH GRID TEXTURE — Ultra subtle overlay
   ============================================================ */
.nyx-btc-card--cyber-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 24px);
  opacity: .06;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* ============================================================
   2) KANJI WATERMARK — Very discreet
   ============================================================ */
.nyx-btc-card--cyber-v2::after {
  content: "\591C"; /* 夜 */
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 44px;
  letter-spacing: .08em;
  color: rgba(0,255,255,.9);
  opacity: .08;
  text-shadow: 0 0 16px rgba(0,255,255,.18);
  pointer-events: none;
  z-index: 0;
  /* Reset inset from v2 */
  inset: auto;
  border-radius: 0;
  background: none;
  transform: none;
  transition: none;
  width: auto;
  height: auto;
}

/* ============================================================
   3) CONTENT Z-INDEX — ALL content above decorative layers
   Guarantees clicks are never blocked.
   ============================================================ */
.nyx-btc-card--cyber-v2 > * {
  position: relative;
  z-index: 2;
}

/* Extra safety: every interactive element high z-index */
.nyx-btc-card--cyber-v2 a,
.nyx-btc-card--cyber-v2 button,
.nyx-btc-card--cyber-v2 [role="button"],
.nyx-btc-card--cyber-v2 .info-link,
.nyx-btc-card--cyber-v2 .step-item {
  position: relative;
  z-index: 3;
}

/* ============================================================
   4) HEADER — Compact cyber
   ============================================================ */
.nyx-btc-card--cyber-v2 .nyx-btc-v2__header {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.nyx-btc-card--cyber-v2 .lightning-header {
  margin-bottom: 0;
}

.nyx-btc-card--cyber-v2 .lightning-title {
  font-size: 1.12rem;
  letter-spacing: .14em;
  color: rgba(0,255,255,.92);
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 0 22px rgba(0,255,255,.18);
}

.nyx-btc-card--cyber-v2 .lightning-subtitle {
  font-size: .82rem;
  color: rgba(200,200,210,.78);
  text-shadow: 0 1px 2px rgba(0,0,0,.40);
}

/* ============================================================
   5) BODY — Consistent gaps
   ============================================================ */
.nyx-btc-card--cyber-v2 .nyx-btc-v2__body {
  display: grid;
  gap: 14px;
}

/* ============================================================
   6) LOGOS — BTC gold tech, Lightning cyan electric
   ============================================================ */
.nyx-btc-card--cyber-v2 .nyx-btc-v2__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 4px 0 6px;
}

.nyx-btc-card--cyber-v2 .nyx-btc-icon {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
}

.nyx-btc-card--cyber-v2 .nyx-btc-icon--btc {
  color: rgba(255,214,120,.92);
  filter: drop-shadow(0 0 12px rgba(255,214,120,.25)) drop-shadow(0 8px 16px rgba(0,0,0,.40));
}

.nyx-btc-card--cyber-v2 .nyx-btc-icon--ln {
  color: rgba(120,240,255,.95);
  filter: drop-shadow(0 0 12px rgba(0,255,255,.25)) drop-shadow(0 8px 16px rgba(0,0,0,.40));
}

/* ============================================================
   7) PILLS / CHIPS — Elegant cyber, not childish
   ============================================================ */
.nyx-btc-card--cyber-v2 .lightning-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nyx-btc-card--cyber-v2 .lightning-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
  transition: border-color 180ms ease, color 180ms ease;
}

.nyx-btc-card--cyber-v2 .lightning-chip::before {
  display: none;
}

.nyx-btc-card--cyber-v2 .lightning-chip:hover {
  transform: none;
  border-color: rgba(0,255,255,.38);
  color: rgba(255,255,255,.95);
}

/* ============================================================
   8) STEPPER — Dark cyber container
   ============================================================ */
.nyx-btc-card--cyber-v2 .lightning-stepper {
  border: 1px solid rgba(0,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}

.nyx-btc-card--cyber-v2 .step-item {
  background: rgba(10,10,16,.85);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  font-size: .74rem;
  color: rgba(255,255,255,.50);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nyx-btc-card--cyber-v2 .step-item.active {
  background: rgba(0,255,255,.08);
  border-color: rgba(0,255,255,.40);
  color: #fff;
  box-shadow: 0 0 12px rgba(0,255,255,.16);
}

.nyx-btc-card--cyber-v2 .step-helper-text {
  color: rgba(200,200,210,.72);
  font-size: .80rem;
}

/* ============================================================
   9) HOW IT WORKS — Explanation paragraph
   ============================================================ */
.nyx-btc-card--cyber-v2 .nyx-btc-how {
  margin-top: 2px;
  text-align: center;
  color: rgba(200,200,210,.68);
  font-size: .78rem;
  line-height: 1.4;
  padding: 0 4px;
}

/* ============================================================
   10) CTA PRIMARY — Cyber neon accent
   ============================================================ */
.nyx-btc-card--cyber-v2 .btn-lightning-primary {
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,.22) !important;
  background: linear-gradient(180deg, rgba(0,255,255,.14), rgba(0,120,140,.14)) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.40);
  color: rgba(255,255,255,.94);
  font-size: .92rem;
  letter-spacing: .08em;
  padding: 14px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nyx-btc-card--cyber-v2 .btn-lightning-primary::before,
.nyx-btc-card--cyber-v2 .btn-lightning-primary::after {
  display: none !important;
}

.nyx-btc-card--cyber-v2 .btn-lightning-primary:hover,
.nyx-btc-card--cyber-v2 .btn-lightning-primary:focus-visible {
  background: linear-gradient(180deg, rgba(0,255,255,.24), rgba(0,120,140,.22)) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.50), 0 0 16px rgba(0,255,255,.12);
  transform: translateY(-2px);
  outline: none;
}

/* ============================================================
   11) SECONDARY ACTIONS — Grid 2-col desktop, 1-col mobile
   ============================================================ */
.nyx-btc-card--cyber-v2 .lightning-secondary-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .nyx-btc-card--cyber-v2 .lightning-secondary-group {
    grid-template-columns: 1fr;
  }
}

.nyx-btc-card--cyber-v2 .btn-lightning-secondary {
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(200,200,210,.70);
  font-size: .76rem;
  padding: 10px 8px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nyx-btc-card--cyber-v2 .btn-lightning-secondary:hover {
  background: rgba(0,255,255,.06);
  border-color: rgba(0,255,255,.26);
  color: rgba(255,255,255,.90);
  transform: none;
}

/* ============================================================
   12) HELP LINK
   ============================================================ */
.nyx-btc-card--cyber-v2 .lightning-info-link {
  text-align: center;
  margin-top: 4px;
}

.nyx-btc-card--cyber-v2 .info-link {
  font-size: .74rem;
  color: rgba(200,200,210,.48);
  opacity: 1;
  transition: color 180ms ease;
}

.nyx-btc-card--cyber-v2 .info-link:hover {
  color: rgba(0,255,255,.80);
}

/* ============================================================
   13) ACTIONS CONTAINER — Reset old auto-margin
   ============================================================ */
.nyx-btc-card--cyber-v2 .lightning-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  padding-bottom: 0;
}

/* ============================================================
   14) HOVER PREMIUM — Lift + subtle rotate, NO infinite
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .nyx-btc-card--cyber-v2 {
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  }

  .nyx-btc-card--cyber-v2:hover {
    transform: translateY(-3px) rotateZ(-0.25deg);
    box-shadow:
      0 28px 90px rgba(0,0,0,.65),
      0 0 0 1px rgba(0,255,255,.08) inset !important;
    filter: saturate(1.03);
    animation: none !important;
  }

  /* Kill the old sheen shift on hover */
  .nyx-btc-card--cyber-v2:hover::after {
    transform: none;
    opacity: .08;
  }
}

/* Kill old bolt pulse on card hover */
.nyx-btc-card--cyber-v2:hover .lightning-svg.bolt {
  animation: none;
}

/* ============================================================
   15) REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .nyx-btc-card--cyber-v2,
  .nyx-btc-card--cyber-v2::after {
    transition: none !important;
  }

  .nyx-btc-card--cyber-v2:hover {
    transform: none !important;
    animation: none !important;
  }

  .nyx-btc-card--cyber-v2 .lightning-chip {
    transition: none !important;
  }

  .nyx-btc-card--cyber-v2 .btn-lightning-primary {
    transition: none !important;
  }

  .nyx-btc-card--cyber-v2 .btn-lightning-primary:hover {
    transform: none !important;
  }
}

/* ============================================================
   16) MOBILE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
  .nyx-btc-card--cyber-v2 {
    padding: 18px 16px 16px !important;
  }

  .nyx-btc-card--cyber-v2 .lightning-title {
    font-size: 1rem;
    letter-spacing: .10em;
  }

  .nyx-btc-card--cyber-v2 .nyx-btc-icon {
    width: 28px;
    height: 28px;
  }

  .nyx-btc-card--cyber-v2 .lightning-chip {
    font-size: .66rem;
    padding: 5px 10px;
  }

  .nyx-btc-card--cyber-v2 .step-item {
    font-size: .68rem;
    padding: 4px 8px;
  }

  .nyx-btc-card--cyber-v2 .btn-lightning-primary {
    font-size: .85rem;
    padding: 12px;
  }
}

/* Kill any old low-viewport min-height forced by other CSS */
@media (max-height: 800px) {
  .nyx-btc-card--cyber-v2 { min-height: unset !important; }
}
@media (max-height: 700px) {
  .nyx-btc-card--cyber-v2 { min-height: unset !important; }
}
