/* =========================================
   RPC NODE — CYBERPUNK DARK THEME
   style.css
   ========================================= */

:root {
  --bg:          #050810;
  --bg-card:     #0a0f1e;
  --bg-card-h:   #0d1428;
  --neon:        #00f5c4;
  --neon-dim:    rgba(0, 245, 196, 0.15);
  --neon-glow:   rgba(0, 245, 196, 0.4);
  --red:         #ff3e5e;
  --red-dim:     rgba(255, 62, 94, 0.15);
  --gold:        #f0b429;
  --gold-dim:    rgba(240, 180, 41, 0.15);
  --border:      rgba(0, 245, 196, 0.12);
  --border-h:    rgba(0, 245, 196, 0.4);
  --text:        #c8d8f0;
  --text-dim:    #556080;
  --text-bright: #eaf4ff;
  --mono:        'Share Tech Mono', monospace;
  --head:        'Exo 2', sans-serif;
  --body:        'Rajdhani', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  width: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 52px;
}

/* ── BACKGROUND GRID ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,245,196,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,196,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 52px;
  z-index: 100;
  background: rgba(5, 8, 16, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.logo-bracket { color: var(--text-dim); }
.logo-text { color: var(--text-bright); font-weight: 700; }
.logo-accent { color: var(--neon); }
.logo-blink {
  color: var(--neon);
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
  letter-spacing: 0.06em;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--neon); }
  50% { box-shadow: 0 0 16px var(--neon), 0 0 30px var(--neon-glow); }
}
.status-label strong { color: var(--neon); }
.nav-divider { color: var(--border); }
.nav-chains { color: var(--text-dim); }

.btn-connect {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-connect:hover {
  background: var(--neon-dim);
  box-shadow: 0 0 16px var(--neon-glow);
}

/* ── CRYPTO TICKER ── */
.ticker-container {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid rgba(0, 245, 196, 0.2);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 245, 196, 0.08), inset 0 1px 0 rgba(0, 245, 196, 0.1);
}

.ticker-container.ticker-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding: 0.6rem 0;
  box-shadow: 0 8px 40px rgba(0, 245, 196, 0.12), inset 0 1px 0 rgba(0, 245, 196, 0.15);
}

.ticker-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.ticker-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

gecko-coin-price-marquee-widget {
  --gecko-color-text: #00f5c4 !important;
  --gecko-color-muted: rgba(0, 245, 196, 0.6) !important;
  --gecko-color-bg: transparent !important;
  --gecko-color-border: rgba(0, 245, 196, 0.15) !important;
  --gecko-color-positive: #00ff88 !important;
  --gecko-color-negative: #ff3e5e !important;
  --gecko-color-neutral: #f0b429 !important;
  --gecko-font-family: var(--body) !important;
  --gecko-font-size: 0.85rem !important;
  --gecko-font-weight: 600 !important;
  display: block;
  width: 100%;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: -200px; right: -200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.3;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.hero-title {
  font-family: var(--head);
  font-weight: 800;
  line-height: 0.88;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.line-one {
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.line-two {
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--neon);
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px var(--neon-glow), 0 0 80px rgba(0,245,196,0.15);
}
.hero-sub {
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.85rem 2rem;
  background: var(--neon);
  color: #050810;
  border: none;
  cursor: pointer;
  font-weight: 700;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--neon-glow), 0 0 60px rgba(0,245,196,0.2);
  transform: translateY(-1px);
}
.btn-full { width: 100%; }
.hero-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 0.3rem; }

/* TERMINAL */
.hero-terminal {
  background: #07090f;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,245,196,0.06), inset 0 0 60px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hero-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,196,0.02) 0%, transparent 60%);
  pointer-events: none;
}
.terminal-bar {
  background: #0d1120;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title { margin-left: 0.5rem; }
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2.1;
  min-height: 180px;
}
.t-line { opacity: 0; animation: fadeIn 0.3s forwards; }
.t-line:nth-child(1) { animation-delay: 0.2s; }
.t-line:nth-child(2) { animation-delay: 0.7s; }
.t-line:nth-child(3) { animation-delay: 1.3s; }
.t-line:nth-child(4) { animation-delay: 1.9s; }
.t-line:nth-child(5) { animation-delay: 2.5s; }
@keyframes fadeIn { to { opacity: 1; } }
.t-prompt { color: var(--neon); margin-right: 0.5rem; }
.t-ok { color: var(--neon); }
.t-green { color: var(--neon); font-weight: 700; }
.cursor { animation: blink 0.8s step-end infinite; }

/* ── MAIN CONTENT ── */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

/* CATEGORY SECTION */
.category-section {
  margin-bottom: 4rem;
}
.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--neon);
  background: var(--neon-dim);
  border: 1px solid rgba(0,245,196,0.25);
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.cat-title {
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.cat-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cards-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* CARD */
.card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.1rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--neon);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s;
}
.card:hover {
  background: var(--bg-card-h);
  box-shadow: inset 0 0 30px rgba(0,245,196,0.04);
}
.card:hover::before { transform: scaleY(1); }
.card:hover .card-arrow { color: var(--neon); transform: translateX(4px); }

.card-critical { }
.card-critical::before { background: var(--red); }
.card-critical:hover { box-shadow: inset 0 0 30px rgba(255,62,94,0.05); }

.card-advanced::before { background: var(--gold); }
.card-advanced:hover { box-shadow: inset 0 0 30px rgba(240,180,41,0.05); }

.card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: grayscale(0.2);
}
.card-content { flex: 1; min-width: 0; }
.card-title {
  font-family: var(--head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
  background: var(--neon-dim);
  color: var(--neon);
  border: 1px solid rgba(0,245,196,0.2);
}
.tag-critical {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255,62,94,0.2);
}
.tag-advanced {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(240,180,41,0.2);
}
.card-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: color 0.2s, transform 0.2s;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-bright);
  letter-spacing: 0.1em;
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.08em;
}
.footer-divider { color: var(--neon); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  max-width: 440px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 0 60px rgba(0,245,196,0.1), 0 0 120px rgba(0,245,196,0.04);
  transform: translateY(10px);
  transition: transform 0.25s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.modal-header {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.modal-issue {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  min-height: 1.2em;
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.modal-secure {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.8rem;
  background: var(--neon-dim);
  border: 1px solid rgba(0,245,196,0.2);
}
.secure-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex-shrink: 0;
}
.modal-note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2.5rem;
    width: 100%;
  }
  .hero-terminal { 
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .nav-status { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
    gap: 2rem;
  }
  .hero-terminal {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .terminal-body {
    padding: 1rem 1.2rem;
    font-size: 0.7rem;
    min-height: 160px;
  }
  .btn-connect {
    display: none;
  }
}

@media (max-width: 600px) {
  .main-content { padding: 0 1rem 3rem; }
  .cards-grid, .cards-grid--4 { grid-template-columns: 1fr; }
  .cat-title { font-size: 0.85rem; }
  .cat-sub { display: none; }
  
  .hero {
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem;
    overflow: visible;
  }
  .hero-terminal {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .terminal-body {
    padding: 0.9rem 1rem;
    font-size: 0.65rem;
    min-height: 140px;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 0.8rem 1rem;
    gap: 1.2rem;
  }
  .hero-terminal {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
  }
  .terminal-body {
    padding: 0.8rem 0.9rem;
    font-size: 0.6rem;
    min-height: 120px;
    line-height: 1.8;
  }
  .t-line { font-size: 0.6rem; }
}

/* ══════════════════════════════════════════════
   WALLET PICKER — PREMIUM CYBERPUNK REDESIGN
   ══════════════════════════════════════════════ */

/* Widen modal for picker step */
.modal-wide {
  max-width: 520px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

/* ── STEP PICKER LAYOUT ── */
#stepPicker {
  display: flex;
  flex-direction: column;
}

.wp-header {
  padding: 28px 28px 0;
  position: relative;
}
.wp-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--neon) 0%, rgba(0,245,196,0.1) 60%, transparent 100%);
  margin-top: 20px;
}

.wp-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wp-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.4); }
}

.wp-title {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  line-height: 1;
}
.wp-issue-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.14em;
  margin-top: 6px;
  min-height: 14px;
}
.wp-count {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.wp-count span {
  color: var(--neon);
}

/* ── SEARCH BAR ── */
.wp-search-wrap {
  padding: 16px 28px 0;
  position: relative;
}
.wp-search-wrap::before {
  content: 'SEARCH_';
  position: absolute;
  left: 44px;
  top: 27px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0,245,196,0.35);
  letter-spacing: 0.12em;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
.wp-search-wrap.has-value::before { opacity: 0; }

.wp-search {
  width: 100%;
  background: rgba(0,245,196,0.03);
  border: 1px solid rgba(0,245,196,0.15);
  border-left: 3px solid var(--neon);
  padding: 11px 40px 11px 100px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-bright);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.wp-search::placeholder { color: transparent; }
.wp-search:focus {
  border-color: var(--neon);
  border-left-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(0,245,196,0.12), inset 0 0 20px rgba(0,245,196,0.03);
}
.wp-search-clear {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
  display: none;
}
.wp-search-clear:hover { color: var(--neon); }
.wp-search-wrap.has-value .wp-search-clear { display: block; }

/* ── FILTER TABS ── */
.wp-filters {
  display: flex;
  gap: 6px;
  padding: 14px 28px 0;
  flex-wrap: wrap;
}
.wp-filter {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(0,245,196,0.12);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.18s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.wp-filter:hover {
  border-color: rgba(0,245,196,0.4);
  color: var(--neon);
  background: rgba(0,245,196,0.06);
}
.wp-filter.active {
  background: rgba(0,245,196,0.12);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 10px rgba(0,245,196,0.12);
}

/* ── WALLET GRID ── */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding: 16px 28px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,196,0.2) transparent;
}
.wp-grid::-webkit-scrollbar { width: 3px; }
.wp-grid::-webkit-scrollbar-track { background: transparent; }
.wp-grid::-webkit-scrollbar-thumb { background: rgba(0,245,196,0.25); border-radius: 2px; }

.wp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  background: rgba(0,245,196,0.02);
  border: 1px solid rgba(0,245,196,0.08);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.wp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.wp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,245,196,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.22s;
}
.wp-card:hover {
  background: rgba(0,245,196,0.06);
  border-color: rgba(0,245,196,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(0,245,196,0.1);
}
.wp-card:hover::before, .wp-card:hover::after { opacity: 1; }

.wp-card-img-wrap {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.wp-card-img-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--neon) 0deg, transparent 120deg, transparent 240deg, var(--neon) 360deg);
  opacity: 0;
  transition: opacity 0.22s;
  animation: spin-ring 3s linear infinite;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}
.wp-card:hover .wp-card-img-wrap::before { opacity: 0.4; }
.wp-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--bg-card);
}

.wp-card img {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0,245,196,0.12);
  transition: border-color 0.22s;
  display: block;
}
.wp-card:hover img {
  border-color: rgba(0,245,196,0.5);
  box-shadow: 0 0 12px rgba(0,245,196,0.25);
}

.wp-card-name {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(200,216,240,0.75);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.35;
  word-break: break-word;
  position: relative;
  z-index: 1;
}
.wp-card:hover .wp-card-name { color: var(--text-bright); }

.wp-card-status {
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

/* ── FOOTER BAR ── */
.wp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(0,245,196,0.07);
}
.wp-footer-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.wp-footer-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  flex-shrink: 0;
}
.wp-footer-note {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(85,96,128,0.7);
  letter-spacing: 0.06em;
}

.wp-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.wp-no-results span {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
  opacity: 0.3;
}

/* ══════════════════════════════════════════════
   STEP 2 — CONNECT SCREEN (PREMIUM)
   ══════════════════════════════════════════════ */

#stepConnect {
  padding: 0;
}

.wc-header {
  padding: 20px 20px 16px;
  position: relative;
}
.wc-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--neon) 0%, rgba(0,245,196,0.08) 70%, transparent 100%);
  margin-top: 20px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0,245,196,0.15);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 5px 12px;
  margin-bottom: 18px;
  transition: all 0.2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-back::before { content: '←'; }
.btn-back:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0,245,196,0.05);
}

/* Selected wallet panel */
.wc-wallet-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,245,196,0.06) 0%, rgba(0,245,196,0.02) 100%);
  border: 1px solid rgba(0,245,196,0.2);
  border-left: 3px solid var(--neon);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.wc-wallet-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 100%;
  background: radial-gradient(circle at right center, rgba(0,245,196,0.08), transparent 70%);
  pointer-events: none;
}
.wc-wallet-panel-img {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.wc-wallet-panel-img::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,245,196,0.3);
  animation: spin-ring 4s linear infinite;
}
.wc-wallet-panel-img img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,245,196,0.25);
  display: block;
  position: relative;
  z-index: 1;
}
.wc-wallet-panel-info {
  flex: 1;
  min-width: 0;
}
.wc-wallet-panel-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.wc-wallet-panel-name {
  font-family: var(--head);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wc-wallet-panel-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--neon);
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border: 1px solid rgba(0,245,196,0.25);
  background: rgba(0,245,196,0.08);
  white-space: nowrap;
  clip-path: polygon(4px 0%,100% 0%,calc(100% - 4px) 100%,0% 100%);
}

.wc-body {
  padding: 16px 20px 0;
  
  /* ── STAGGERED ANIMATIONS ── */
  & [data-animate] {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  
  /* Stage 1: Title & Description (0ms delay) */
  & [data-animate="1"] {
    animation-delay: 0ms;
  }
  
  /* Stage 2: Info Rows (200ms delay) */
  & [data-animate="2"] {
    animation-delay: 200ms;
  }
  
  /* Stage 3: Status Bar (400ms delay) */
  & [data-animate="3"] {
    animation-delay: 400ms;
  }
  
  /* Stage 4: Outdated Warning (600ms delay) - Will be added by React */
  & [data-animate="4"] {
    animation-delay: 600ms;
  }
  
  /* Stage 5: Action Buttons (800ms delay) */
  & [data-animate="5"] {
    animation-delay: 800ms;
  }
  
  /* Stage 6: Footer (1000ms delay) */
  & [data-animate="6"] {
    animation-delay: 1000ms;
  }
}

/* ── STAGGERED SLIDE UP ANIMATION ── */
@keyframes slideUpIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wc-issue-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--neon);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  min-height: 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-issue-label::before {
  content: '◆';
  font-size: 0.65rem;
  color: var(--neon);
  opacity: 0.8;
}

.wc-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,245,196,0.2);
}

.wc-desc {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  background: rgba(0,245,196,0.02);
  border-left: 2px solid var(--neon);
  padding: 10px 12px;
  letter-spacing: 0.02em;
}

/* Secure badge - premium */
.wc-secure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(0,245,196,0.04);
  border: 1px solid rgba(0,245,196,0.18);
  border-left: 2px solid var(--neon);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.wc-secure::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,245,196,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.wc-secure-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.wc-secure-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Diagnostic info rows */
.wc-info-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(0,245,196,0.02);
  border: 1px solid rgba(0,245,196,0.15);
}

.wc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(0,245,196,0.12);
  border-left: 2px solid var(--neon);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
}

.wc-info-row-key {
  color: var(--neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

.wc-info-row-val {
  color: var(--text-bright);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.wc-info-row-val.green { 
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0,245,196,0.4);
}

/* Connect button - premium */
.btn-connect-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, rgba(0,245,196,0.15) 0%, rgba(0,245,196,0.08) 100%);
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-connect-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,196,0.22) 0%, rgba(0,245,196,0.08) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-connect-main:hover {
  box-shadow: 0 0 30px rgba(0,245,196,0.3), 0 0 60px rgba(0,245,196,0.1);
  transform: translateY(-1px);
}
.btn-connect-main:hover::before { opacity: 1; }
.btn-connect-main-icon {
  width: 18px; height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.wc-footer-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding: 14px 28px 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .modal-wide { width: 100%; clip-path: none; border-radius: 0; }
  .wp-grid { grid-template-columns: repeat(3, 1fr); max-height: 240px; padding: 12px 14px 0; }
  .wp-header, .wp-search-wrap, .wp-filters, .wp-footer { padding-left: 14px; padding-right: 14px; }
  .wc-header, .wc-body { padding-left: 14px; padding-right: 14px; }
  .wc-footer-note { padding-left: 14px; padding-right: 14px; }
  .wc-title { font-size: 1rem; margin-bottom: 10px; }
  .wc-desc { font-size: 0.8rem; padding: 8px 10px; margin-bottom: 12px; }
  .wc-info-rows { margin-bottom: 12px; padding: 8px; }
  .wc-wallet-panel { padding: 10px 12px; }
}
@media (max-width: 380px) {
  .wp-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .wp-card { padding: 10px 5px; }
  .wp-card img { width: 36px; height: 36px; }
  .wp-card-img-wrap { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════
   MANUAL CONNECT — Two-button row
   ═══════════════════════════════════════════ */
.wc-action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.wc-action-row .btn-connect-main {
  margin-top: 0;
  flex: 1;
}
.btn-manual-connect {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: rgba(0, 255, 136, 0.85);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-manual-connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 136, 0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-manual-connect:hover {
  border-color: rgba(0, 255, 136, 0.7);
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.18), inset 0 0 16px rgba(0, 255, 136, 0.04);
}
.btn-manual-connect:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════
   MANUAL CONNECT — Form overlay
   ═══════════════════════════════════════════ */
.manual-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.manual-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.manual-modal {
  background: #080d12;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.08), 0 30px 80px rgba(0,0,0,0.8);
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,0.2) transparent;
}
.manual-overlay.active .manual-modal {
  transform: translateY(0);
}
.manual-modal::-webkit-scrollbar { width: 4px; }
.manual-modal::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.2); border-radius: 4px; }

.manual-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.manual-close:hover { border-color: rgba(255,80,80,0.5); color: #ff5050; }

/* header */
.manual-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(0, 255, 136, 0.6);
  margin-bottom: 8px;
}
.manual-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: blink 1.4s ease-in-out infinite;
}
.manual-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 10px;
}
.manual-wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 5px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,255,136,0.8);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
#manualWalletIcon img {
  width: 18px; height: 18px;
  border-radius: 4px;
  vertical-align: middle;
}

/* tabs */
.manual-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
  gap: 2px;
}
.manual-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.35);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: -1px;
}
.manual-tab:hover { color: rgba(255,255,255,0.7); }
.manual-tab.active {
  color: #00ff88;
  border-bottom-color: #00ff88;
}

/* tab body */
.manual-tab-body { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: none; } }

.manual-field-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  margin-top: 4px;
}
.manual-field-note {
  color: rgba(0,255,136,0.45);
}

/* phrase length buttons */
.phrase-length-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.phrase-len-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.phrase-len-btn:hover { border-color: rgba(0,255,136,0.4); color: rgba(0,255,136,0.8); }
.phrase-len-btn.active { border-color: #00ff88; color: #00ff88; background: rgba(0,255,136,0.06); }

/* phrase grid */
.phrase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.phrase-word-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.15s;
}
.phrase-word-wrap:focus-within { border-color: rgba(0,255,136,0.45); }
.phrase-word-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(0,255,136,0.4);
  padding: 0 5px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.phrase-word-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 8px 4px 8px 0;
  width: 100%;
  min-width: 0;
}
.phrase-word-input::placeholder { color: rgba(255,255,255,0.15); font-size: 11px; }

/* inputs */
.manual-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.manual-input:focus { border-color: rgba(0,255,136,0.5); box-shadow: 0 0 0 1px rgba(0,255,136,0.12); }
.manual-input--mono { letter-spacing: 0.08em; }
.manual-input::placeholder { color: rgba(255,255,255,0.2); font-size: 11px; }

.manual-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 11px 14px;
  outline: none;
  min-height: 110px;
  resize: vertical;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.manual-textarea:focus { border-color: rgba(0,255,136,0.5); }
.manual-textarea::placeholder { color: rgba(255,255,255,0.18); }

/* private key note */
.manual-pk-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}
.manual-pk-note-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,255,136,0.5);
  flex-shrink: 0;
  margin-top: 3px;
}

/* secure row */
.manual-secure-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(0,255,136,0.5);
}
.manual-secure-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  flex-shrink: 0;
}

/* submit button */
.btn-manual-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(0,255,136,0.15) 0%, rgba(0,255,136,0.06) 100%);
  border: 1px solid rgba(0,255,136,0.4);
  color: #00ff88;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-manual-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,136,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-manual-submit:hover {
  border-color: rgba(0,255,136,0.7);
  box-shadow: 0 0 24px rgba(0,255,136,0.2);
  color: #fff;
}
.btn-manual-submit:hover::after { opacity: 1; }
.btn-manual-submit-icon { font-size: 16px; }

.manual-footer-note {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .phrase-grid { grid-template-columns: repeat(3, 1fr); }
  .wc-action-row { flex-direction: column; }
  .manual-modal { padding: 24px 16px 20px; }
}

/* ═══════════════════════════════════════════
   PASSWORD EYE TOGGLE
   ═══════════════════════════════════════════ */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap .manual-input {
  padding-right: 42px;
  width: 100%;
}
.pw-eye {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s;
  padding: 0;
  outline: none;
}
.pw-eye:hover { color: rgba(0,255,136,0.75); }
.pw-eye.revealed { color: rgba(0,255,136,0.9); }
.eye-icon {
  width: 16px;
  height: 16px;
  pointer-events: none;
  flex-shrink: 0;
}

/* ── field label row with eye ── */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field-label-row .pw-eye {
  position: static;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: rgba(255,255,255,0.3);
  transition: all 0.15s;
}
.field-label-row .pw-eye:hover {
  border-color: rgba(0,255,136,0.45);
  color: rgba(0,255,136,0.8);
}
.field-label-row .pw-eye.revealed {
  border-color: rgba(0,255,136,0.6);
  color: #00ff88;
}

/* ── Seed phrase words hidden state ── */
.phrase-grid.words-hidden .phrase-word-input {
  -webkit-text-security: disc;
  text-security: disc;
  letter-spacing: 0.18em;
}

/* ── Keystore textarea masked ── */
.manual-textarea--hidden {
  -webkit-text-security: disc;
  text-security: disc;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.manual-textarea--hidden.revealed {
  -webkit-text-security: none;
  text-security: none;
  letter-spacing: normal;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════════
   WC2 — CYBERPUNK WALLET CONNECT POPUP (Step 1)
   Matches site theme: neon #00f5c4, bg #050810, mono fonts
   ═══════════════════════════════════════════════════════════ */

/* Reset modal-wide to match site clip-path aesthetic */
.modal-wide {
  max-width: 480px !important;
  width: 94% !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-h) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)) !important;
  box-shadow: 0 0 60px rgba(0,245,196,0.12), 0 0 120px rgba(0,245,196,0.05) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ── PICKER LAYOUT ── */
#stepPicker {
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.wc2-header {
  padding: 26px 28px 0;
  position: relative;
}

/* Neon divider line after header */
.wc2-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--neon) 0%, rgba(0,245,196,0.1) 60%, transparent 100%);
  margin-top: 18px;
}

/* Network badge — top pill */
.wc2-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--neon);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(0,245,196,0.2);
  background: rgba(0,245,196,0.04);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.wc2-net-icon {
  color: var(--neon);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px var(--neon));
}
.wc2-net-pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.wc2-title {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.wc2-subtitle {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ── SEARCH ── */
.wc2-search-wrap {
  padding: 16px 28px 0;
  position: relative;
}
.wc2-search-wrap::before {
  content: 'SEARCH_';
  position: absolute;
  left: 44px;
  top: 27px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(0,245,196,0.35);
  letter-spacing: 0.12em;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
.wc2-search-wrap.has-value::before { opacity: 0; }

.wc2-search {
  width: 100%;
  background: rgba(0,245,196,0.03);
  border: 1px solid rgba(0,245,196,0.15);
  border-left: 3px solid var(--neon);
  padding: 10px 36px 10px 96px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-bright);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.wc2-search::placeholder { color: transparent; }
.wc2-search:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(0,245,196,0.12), inset 0 0 16px rgba(0,245,196,0.03);
}
.wc2-search-icon { display: none; } /* use ::before instead */

.wc2-search-clear {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 3px 6px;
  border: 1px solid rgba(0,245,196,0.1);
  transition: color 0.2s, border-color 0.2s;
  display: none;
  background: transparent;
  line-height: 1;
}
.wc2-search-clear:hover { color: var(--neon); border-color: var(--neon); }
.wc2-search-wrap.has-value .wc2-search-clear { display: block; }

/* ── BODY SCROLL AREA ── */
.wc2-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,196,0.2) transparent;
}
.wc2-body::-webkit-scrollbar { width: 3px; }
.wc2-body::-webkit-scrollbar-track { background: transparent; }
.wc2-body::-webkit-scrollbar-thumb { background: rgba(0,245,196,0.25); border-radius: 2px; }

/* ── SECTION HEADERS ── */
.wc2-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wc2-section-count {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--neon);
  border: 1px solid rgba(0,245,196,0.2);
  padding: 1px 7px;
  letter-spacing: 0.06em;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* ── WALLET LIST ── */
.wc2-list { padding: 0 16px; }

.wc2-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.18s;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.wc2-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
  opacity: 0;
  transition: opacity 0.18s;
}
.wc2-row:hover {
  background: rgba(0,245,196,0.04);
  border-color: rgba(0,245,196,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 12px rgba(0,245,196,0.06);
}
.wc2-row:hover::before { opacity: 1; }

/* Logo */
.wc2-row-logo {
  width: 42px; height: 42px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0,245,196,0.04);
  flex-shrink: 0;
  border: 1px solid rgba(0,245,196,0.1);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc2-row:hover .wc2-row-logo {
  border-color: rgba(0,245,196,0.4);
  box-shadow: 0 0 10px rgba(0,245,196,0.15);
}
.wc2-row-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Info text */
.wc2-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wc2-row-name {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc2-row:hover .wc2-row-name { color: #fff; }
.wc2-row-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Badges */
.wc2-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.wc2-badge-detected {
  background: rgba(0,245,196,0.08);
  border: 1px solid rgba(0,245,196,0.3);
  color: var(--neon);
}
.wc2-badge-qr {
  background: rgba(240,180,41,0.08);
  border: 1px solid rgba(240,180,41,0.3);
  color: var(--gold);
}
.wc2-badge-install {
  background: rgba(200,216,240,0.04);
  border: 1px solid rgba(200,216,240,0.12);
  color: var(--text-dim);
}

/* ── ALL WALLETS ROW ── */
.wc2-all-wallets {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: rgba(0,245,196,0.02);
  border-top: 1px solid rgba(0,245,196,0.08);
  border-bottom: 1px solid rgba(0,245,196,0.08);
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
  margin: 6px 0 0;
}
.wc2-all-wallets::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
.wc2-all-wallets:hover { background: rgba(0,245,196,0.05); }

.wc2-all-logos {
  display: flex;
  align-items: center;
}
.wc2-all-logos img {
  width: 28px; height: 28px;
  object-fit: cover;
  border: 1px solid rgba(0,245,196,0.15);
  margin-left: -7px;
  background: var(--bg-card);
}
.wc2-all-logos img:first-child { margin-left: 0; }

.wc2-all-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wc2-all-title {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
}
.wc2-all-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wc2-all-arrow {
  font-family: var(--mono);
  color: var(--neon);
  font-size: 1.2rem;
  filter: drop-shadow(0 0 4px var(--neon));
  transition: transform 0.18s;
}
.wc2-all-wallets:hover .wc2-all-arrow { transform: translateX(3px); }

/* ── FOOTER ── */
.wc2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px 20px;
  border-top: 1px solid rgba(0,245,196,0.07);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wc2-footer-lock {
  color: var(--neon);
  font-size: 0.75rem;
  margin-right: 5px;
  filter: drop-shadow(0 0 3px var(--neon));
}
.wc2-footer-text { flex: 1; }
.wc2-footer-help {
  cursor: pointer;
  color: rgba(0,245,196,0.3);
  transition: color 0.15s;
  letter-spacing: 0.08em;
}
.wc2-footer-help:hover { color: var(--neon); }

/* ── NO RESULTS ── */
.wc2-no-results {
  padding: 32px 28px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   STEP 2 — CONNECT SCREEN POLISH + BUTTON STATES
   ═══════════════════════════════════════════════════════════ */

/* Wallet panel badge pulsing dot */
.wc-badge-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse-dot 1.8s ease-in-out infinite;
  margin-right: 5px;
  vertical-align: middle;
}

/* ── OUTDATED WALLET WARNING ── */
.wc-outdated-warning {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  border-left: 4px solid #d4af37;
  margin: 16px 0 20px;
  font-family: var(--mono);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

/* Staggered loading - elements appear one by one */
.wc-outdated-warning.is-loading .outdated-icon-container,
.wc-outdated-warning.is-loading .outdated-title-container,
.wc-outdated-warning.is-loading .outdated-desc-container,
.wc-outdated-warning.is-loading .btn-update-container {
  animation: slideInFromTop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-15px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.outdated-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.outdated-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.outdated-icon {
  font-size: 28px;
  flex-shrink: 0;
  color: #d4af37;
  margin-top: 2px;
  font-weight: 700;
}

.outdated-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outdated-title-container {
  display: flex;
  align-items: center;
}

.outdated-title {
  font-family: var(--body);
  font-weight: 700;
  font-size: 18px;
  color: #d4af37;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.outdated-desc-container {
  display: flex;
  align-items: center;
}

.outdated-desc {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(212,175,55,0.7);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.btn-update-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: #d4af37;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  min-width: 100%;
}

.btn-update-container {
  /* Inherits animation from parent */
}

.btn-update-wallet:hover:not(:disabled) {
  background: rgba(212,175,55,0.18);
  box-shadow: 0 0 12px rgba(212,175,55,0.25);
  transform: translateY(-2px);
}

.btn-update-wallet:active:not(:disabled) {
  transform: translateY(0);
}

.btn-update-wallet:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  display: inline-block;
  transition: transform 0.3s;
  font-weight: 600;
}

.btn-update-wallet:hover:not(:disabled) .btn-icon {
  animation: rotate-icon 1s linear infinite;
}

@keyframes rotate-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile Responsive - Outdated Warning */
@media (max-width: 600px) {
  .wc-outdated-warning {
    gap: 12px;
    padding: 16px 14px;
    margin: 12px 0 16px;
  }

  .outdated-icon {
    font-size: 24px;
  }

  .outdated-title {
    font-size: 16px;
  }

  .outdated-desc {
    font-size: 12px;
  }

  .btn-update-wallet {
    padding: 12px 16px;
    font-size: 12px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .wc-outdated-warning {
    gap: 10px;
    padding: 12px 12px;
    margin: 10px 0 12px;
  }

  .outdated-content {
    gap: 10px;
  }

  .outdated-icon {
    font-size: 20px;
    margin-top: 1px;
  }

  .outdated-title {
    font-size: 14px;
  }

  .outdated-desc {
    font-size: 11px;
    line-height: 1.4;
  }

  .btn-update-wallet {
    padding: 10px 14px;
    font-size: 11px;
    gap: 5px;
  }

  .btn-icon {
    font-size: 13px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Provider detection status bar */
.wc-connect-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(0,245,196,0.03);
  border: 1px solid rgba(0,245,196,0.1);
  border-left: 3px solid var(--neon);
  margin: 14px 0 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: all 0.3s;
}

.wc-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wc-status-dot--scanning {
  background: var(--text-dim);
  animation: pulse-dot 1s ease-in-out infinite;
}
.wc-status-dot--green {
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: pulse-dot 2s ease-in-out infinite;
}
.wc-status-dot--amber {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* Main connect button states */
.btn-connect-main {
  transition: all 0.2s;
}
.btn-connect-main--success {
  background: rgba(0,245,196,0.15) !important;
  border-color: var(--neon) !important;
  color: var(--neon) !important;
  box-shadow: 0 0 20px rgba(0,245,196,0.2) !important;
}
.btn-connect-main--error {
  background: rgba(255,62,94,0.12) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
}
.btn-connect-main--warn {
  background: rgba(240,180,41,0.1) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* Spinning icon animation */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-spin {
  display: inline-block;
  animation: btn-spin 0.8s linear infinite;
}

/* Success flash banner */
.wc-success-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,245,196,0.08);
  border: 1px solid var(--neon);
  border-left: 3px solid var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0,245,196,0.15);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  animation: flash-in 0.3s ease;
}
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.wc-success-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 4px var(--neon));
}

/* Footer lock icon */
.wc-footer-lock {
  color: var(--neon);
  margin-right: 6px;
  filter: drop-shadow(0 0 3px var(--neon));
}

/* Back button improvement */
.btn-back {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────── */
/* WALLET RECTIFICATION LOADING MODAL     */
/* ─────────────────────────────────────── */

.loading-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-container {
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  padding: 40px;
  box-shadow: 0 0 60px rgba(0,245,196,0.1), 0 0 120px rgba(0,245,196,0.04);
  animation: slideUp 0.35s ease-out;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-h);
  padding-bottom: 20px;
}

.loading-header h2 {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.loading-issue {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* Progress Bar */
.loading-progress {
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 245, 196, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-h);
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), #00d9a3);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 245, 196, 0.6);
}

.progress-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Loading Steps */
.loading-steps {
  background: var(--neon-dim);
  border: 1px solid var(--border-h);
  padding: 20px;
  margin-bottom: 30px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.3s ease;
  opacity: 0.6;
}

.step-item.active {
  color: var(--neon);
  opacity: 1;
}

.step-item.completed {
  color: var(--neon);
  opacity: 0.7;
}

.step-icon {
  font-size: 16px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulse-icon 0.6s ease infinite;
}

.step-item.completed .step-icon {
  animation: none;
}

.step-item:not(.active):not(.completed) .step-icon {
  animation: none;
  opacity: 0.4;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.step-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Premium Features Section */
.loading-premium {
  background: rgba(240, 180, 41, 0.05);
  border: 1px solid rgba(240, 180, 41, 0.2);
  padding: 20px;
  margin-bottom: 25px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.premium-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  display: block;
}

.premium-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  clip-path: polygon(2px 0%, 100% 0%, calc(100% - 2px) 100%, 0% 100%);
}

.premium-checkbox:hover {
  background: rgba(240, 180, 41, 0.08);
  border-color: rgba(240, 180, 41, 0.3);
}

.premium-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  clip-path: polygon(2px 0%, 100% 0%, calc(100% - 2px) 100%, 0% 100%);
}

.premium-checkbox input:checked + .checkbox-custom {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.5);
}

.premium-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  color: #050810;
  font-size: 10px;
  font-weight: bold;
  position: absolute;
}

.premium-text {
  font-size: 12px;
  color: var(--text);
  font-family: var(--body);
  flex: 1;
}

/* Loading Footer */
.loading-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn-skip-premium,
.btn-proceed-with-premium {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  background: rgba(0, 245, 196, 0.05);
  color: var(--text-dim);
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

.btn-skip-premium:hover {
  background: rgba(0, 245, 196, 0.1);
  border-color: var(--border-h);
  color: var(--text);
}

.btn-proceed-with-premium {
  background: linear-gradient(135deg, rgba(0, 245, 196, 0.15), rgba(0, 245, 196, 0.08));
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 245, 196, 0.15);
}

.btn-proceed-with-premium:hover {
  background: linear-gradient(135deg, rgba(0, 245, 196, 0.2), rgba(0, 245, 196, 0.12));
  box-shadow: 0 0 30px rgba(0, 245, 196, 0.3);
}

.btn-skip-premium:active,
.btn-proceed-with-premium:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 600px) {
  .loading-container {
    width: 95%;
    padding: 25px;
  }
  
  .loading-header h2 {
    font-size: 18px;
  }
  
  .loading-footer {
    flex-direction: column;
  }
  
  .step-item {
    font-size: 12px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   TECHNICAL INIT SCREEN — Auto-Dismiss
   ──────────────────────────────────────────────────────────────────────── */

.tech-init-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.tech-init-overlay.active {
  display: flex;
  animation: initFadeIn 0.3s ease;
}

.tech-init-overlay.closing {
  animation: initFadeOut 0.25s ease forwards;
}

@keyframes initFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes initFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.tech-init-modal {
  width: 90%;
  max-width: 440px;
  border: 1px solid var(--border-h);
  background: var(--bg-card);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(0,245,196,0.1), 0 0 120px rgba(0,245,196,0.04);
  animation: initSlide 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@keyframes initSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-init-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tech-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-pulse {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: techPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon);
}

@keyframes techPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.tech-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon);
  text-transform: uppercase;
}

.tech-logs {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
}

.tech-log {
  display: flex;
  gap: 6px;
  animation: logSlide 0.35s ease-out forwards;
  opacity: 0;
}

@keyframes logSlide {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tech-log:nth-child(1) { animation-delay: 0.1s; }
.tech-log:nth-child(2) { animation-delay: 0.25s; }
.tech-log:nth-child(3) { animation-delay: 0.4s; }
.tech-log:nth-child(4) { animation-delay: 0.55s; }

.tech-arrow {
  color: var(--neon);
  flex-shrink: 0;
  font-weight: bold;
}

.tech-progress {
  width: 100%;
  height: 2px;
  background: rgba(0, 245, 196, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.tech-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), rgba(0, 245, 196, 0.2));
  border-radius: 1px;
  animation: barFill 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 10px var(--neon);
}

@keyframes barFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (max-width: 600px) {
  .tech-init-modal {
    width: 90%;
    padding: 1.5rem;
    max-width: 95%;
  }

  .wallet-init-modal {
    width: 90%;
    padding: 1.5rem;
    max-width: 95%;
  }

  .tech-label {
    font-size: 9px;
  }

  .tech-logs {
    font-size: 10px;
  }

  .init-logo-wrapper {
    width: 100px;
    height: 100px;
  }

  .init-wallet-logo-minimal {
    width: 80px;
    height: 80px;
  }

  .init-status-text {
    font-size: 1rem;
  }
}

/* ── WALLET INITIALIZATION MODAL ── */
/* ── UNIFIED DESIGN SYSTEM ── */
.wallet-init-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.wallet-init-modal {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(0,245,196,0.1), 0 0 120px rgba(0,245,196,0.04);
  transform: translateY(10px);
  animation: modalSlideIn 0.25s ease-out forwards;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.init-content-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

/* Logo Wrapper */
.init-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFadeIn 0.35s ease-out 0.1s both;
}

.init-wallet-logo-minimal {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-dim);
  border: 1px solid var(--border-h);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,245,196,0.15);
  z-index: 2;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.init-wallet-logo-minimal img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.init-pulse-ring-minimal {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--border-h);
  animation: softGlow 2s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(0, 245, 196, 0.2);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 245, 196, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 245, 196, 0.35); }
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional Modal Header for Init Screens */
.init-modal-header {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
}

.init-modal-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  text-align: center;
  text-transform: uppercase;
}

/* Initializing Text */
.init-text-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.4s ease-out 0.2s both;
}

.init-status-container {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-width: 280px;
}

.init-status-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--neon);
  text-transform: uppercase;
  white-space: normal;
  word-wrap: break-word;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease-in-out;
  line-height: 1.4;
  max-width: 100%;
}

.init-status-text.fade-out {
  opacity: 0.4;
}

.init-status-text.fade-in {
  opacity: 1;
}

/* Animated Dots */
.init-dots-animation {
  display: flex;
  gap: 8px;
  height: 8px;
}

.init-dots-animation span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  animation: dotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 245, 196, 0.6);
}

.init-dots-animation span:nth-child(2) {
  animation-delay: 0.2s;
}

.init-dots-animation span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

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

@keyframes pulseBorder {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 600px) {
  .wallet-init-modal {
    width: 92%;
    padding: 32px 20px;
    max-width: 100%;
    border-radius: 8px;
  }

  .init-content-minimal {
    gap: 16px;
  }

  .init-logo-wrapper {
    width: 100px;
    height: 100px;
    animation: logoFadeIn 0.35s ease-out 0.1s both;
  }

  .init-wallet-logo-minimal {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,245,196,0.12);
  }

  .init-wallet-logo-minimal img {
    width: 65%;
    height: 65%;
  }

  .init-pulse-ring-minimal {
    inset: -6px;
    box-shadow: 0 0 12px rgba(0, 245, 196, 0.15);
  }

  .init-text-minimal {
    gap: 6px;
  }

  .init-status-container {
    min-width: 100%;
    height: 22px;
  }

  .init-status-text {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    padding: 0 8px;
  }

  .init-dots-animation {
    gap: 6px;
    height: 6px;
  }

  .init-dots-animation span {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .wallet-init-modal {
    width: 94%;
    padding: 28px 16px;
  }

  .init-logo-wrapper {
    width: 90px;
    height: 90px;
  }

  .init-wallet-logo-minimal {
    width: 75px;
    height: 75px;
  }

  .init-wallet-logo-minimal img {
    width: 60%;
    height: 60%;
  }

  .init-pulse-ring-minimal {
    inset: -5px;
  }

  .init-status-text {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    padding: 0 6px;
  }

  .init-dots-animation {
    gap: 5px;
  }

  .init-dots-animation span {
    width: 4px;
    height: 4px;
  }
}

/* ── LINK PREVIEW SECTION ── */
.link-preview-section {
  margin: 0 0 2rem;
  padding: 0;
}

.link-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.link-preview-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0,245,196,0.03);
  border: 1px solid rgba(0,245,196,0.15);
  border-left: 3px solid var(--neon);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.3s ease;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
}

.link-preview-input:focus {
  background: rgba(0,245,196,0.06);
  border-color: rgba(0,245,196,0.3);
  box-shadow: 0 0 12px rgba(0,245,196,0.1);
}

.link-preview-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.link-preview-container {
  display: none;
  min-height: auto;
}

.link-preview-container.active {
  display: block;
}

/* Link Preview Card */
.link-preview-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #d4315f;
  background: rgba(212,49,95,0.04);
  padding: 16px;
  border-radius: 4px;
  overflow: hidden;
  animation: slideInFromTop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.link-preview-url {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(212,49,95,0.8);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  word-break: break-all;
}

.link-preview-title {
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  color: #d4315f;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.3;
}

.link-preview-desc {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(212,49,95,0.75);
  line-height: 1.5;
  margin-bottom: 12px;
}

.link-preview-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(212,49,95,0.2);
  margin-top: 8px;
  border-radius: 2px;
}

.link-preview-loading {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(0,245,196,0.6);
  padding: 12px;
  border: 1px solid rgba(0,245,196,0.1);
  background: rgba(0,245,196,0.03);
  border-radius: 4px;
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.link-preview-error {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,59,48,0.8);
  padding: 12px;
  border: 1px solid rgba(255,59,48,0.2);
  background: rgba(255,59,48,0.03);
  border-radius: 4px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .link-preview-section {
    margin: 0 0 1.5rem;
  }

  .link-preview-input {
    padding: 10px 12px;
    font-size: 12px;
  }

  .link-preview-card {
    padding: 12px;
  }

  .link-preview-url {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .link-preview-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .link-preview-desc {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .link-preview-image {
    max-height: 140px;
  }
}

@media (max-width: 480px) {
  .link-preview-input {
    padding: 9px 10px;
    font-size: 11px;
  }

  .link-preview-card {
    padding: 10px;
  }

  .link-preview-url {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .link-preview-title {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .link-preview-desc {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .link-preview-image {
    max-height: 100px;
  }
}
