/* ==============================================================================
   SEAN VANCE SHOP 99 - TACTICAL DARK CYBER STYLESHEET
   SOVEREIGN COUNTRY GATEWAY & CENTERED EXPANDED MODAL ARCHITECTURE
   NO NEON - PURE MATTE CHARCOAL, GUNMETAL ZINC & EMERALD ACCENTS
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-main: #07090e;
  --bg-surface: #0a0d14;
  --bg-card: #0c1017;
  --bg-card-hover: #121824;
  --bg-card-subtle: #0f131c;
  
  --border-subtle: #1e2638;
  --border-dim: #27272a;
  --border-focus: #3f3f46;
  --border-highlight: #52525b;
  
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dark: #52525b;
  
  --accent-emerald: #10b981;
  --accent-emerald-dark: #065f46;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  
  --accent-amber: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);

  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Tactical Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-focus);
}

/* ==============================================================================
   TOP ANONYMOUS GUEST VAULT STATUS BAR
   ============================================================================== */
.vault-banner {
  background: #05070a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vault-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.vault-token {
  color: var(--accent-emerald);
  font-weight: 700;
}

.vault-countdown {
  color: #ffffff;
  font-weight: 700;
  background: var(--bg-surface);
  padding: 2px 6px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
}

.vault-policy {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.failover-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.failover-btn,
.failover-btn-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.failover-btn:hover,
.failover-btn-sm:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  color: #ffffff;
}

.failover-btn.telegram:hover,
.failover-btn-sm.telegram:hover {
  border-color: #229ED9;
  color: #229ED9;
}

.failover-btn.x:hover,
.failover-btn-sm.x:hover {
  border-color: #ffffff;
}

.failover-logo {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==============================================================================
   CENTRAL HERO HEADER
   ============================================================================== */
.hero-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 24px 20px 24px;
  text-align: center;
}

.brand-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
  font-family: var(--font-mono);
}

.brand-sub-headline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.telemetry-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
}

.tele-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tele-badge.active span:first-child {
  color: var(--accent-emerald);
}

.tele-badge strong {
  color: #ffffff;
}

/* ==============================================================================
   UNIVERSAL REALTIME SEARCH BAR
   ============================================================================== */
.search-section {
  max-width: 980px;
  margin: 20px auto 0 auto;
  padding: 0 24px;
}

.search-box-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 16px 48px 16px 48px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.search-input:focus {
  border-color: var(--accent-emerald);
  background: #090d16;
  box-shadow: 0 0 0 1px var(--accent-emerald);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 15px;
}

.search-clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  display: none;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.search-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 0 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.result-counter {
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==============================================================================
   SOVEREIGN COUNTRY GATEWAY (BIG COUNTRY CARDS GRID)
   ============================================================================== */
.gateway-section {
  max-width: 1440px;
  margin: 36px auto 60px auto;
  padding: 0 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1280px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}

/* Big Country Card */
.country-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.country-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.country-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flag-wrapper {
  width: 48px;
  height: 32px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
}

.flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-title-area {
  flex: 1;
}

.country-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.country-iso-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
}

.country-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.metric-label {
  color: var(--text-muted);
}

.metric-value {
  color: #ffffff;
  font-weight: 700;
}

.metric-value.leads {
  color: var(--accent-emerald);
  font-size: 13px;
}

.btn-access-vault {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-access-vault:hover {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #07090e;
  font-weight: 800;
}

/* ==============================================================================
   CENTERED EXPANDED MODAL (85vw VIEWPORT WIDTH)
   ============================================================================== */
dialog.vault-drawer-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0;
  width: 85vw;
  max-width: 1360px;
  height: 88vh;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
  margin: auto;
  outline: none;
  overscroll-behavior: contain;
}

dialog.vault-drawer-modal::backdrop {
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(8px);
}

.drawer-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Drawer Header */
.drawer-header {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: #080c13;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-header-left .flag-wrapper {
  width: 52px;
  height: 35px;
}

.drawer-country-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-leads-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.drawer-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-filter-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  width: 260px;
  outline: none;
  transition: border-color 0.15s ease;
}

.drawer-filter-input:focus {
  border-color: var(--accent-emerald);
}

.btn-close-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-close-drawer:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-highlight);
}

/* Drawer Body (Scrollable) */
.drawer-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* VIP Hero Card (Pinned at top of drawer) */
.vip-hero-banner {
  background: linear-gradient(135deg, #111726 0%, #0c1017 100%);
  border: 1px solid #2d3748;
  border-left: 5px solid var(--accent-emerald);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.vip-hero-info {
  flex: 1;
  min-width: 320px;
}

.vip-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-amber);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: inline-block;
}

.vip-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.vip-hero-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.vip-hero-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vip-price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.btn-unlock-vip {
  background: var(--accent-emerald);
  color: #07090e;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-unlock-vip:hover {
  background: #34d399;
  transform: translateY(-1px);
}

/* Category Tabs */
.drawer-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

.tab-count {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  color: var(--text-secondary);
}

/* Tab Content Areas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Horizontal Niche Cards Grid (2 Columns) */
.niche-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .niche-cards-grid {
    grid-template-columns: 1fr;
  }
}

.niche-horizontal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.15s ease;
}

.niche-horizontal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.niche-icon-area {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.niche-detail {
  flex: 1;
}

.niche-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.niche-meta-text {
  font-size: 11px;
  color: var(--text-muted);
}

.niche-meta-text strong {
  color: var(--text-secondary);
}

.niche-buy-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.niche-price-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.btn-niche-buy {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-niche-buy:hover {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #07090e;
  font-weight: 800;
}

/* Regional State Grid (3 Columns) */
.regional-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  .regional-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .regional-cards-grid {
    grid-template-columns: 1fr;
  }
}

.regional-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}

.regional-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.regional-territory {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.regional-records {
  font-size: 11px;
  color: var(--text-muted);
}

.regional-records strong {
  color: var(--text-secondary);
}

.btn-regional-buy {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-regional-buy:hover {
  background: var(--accent-emerald);
  color: #07090e;
}

/* ==============================================================================
   CHECKOUT MODAL (NATIVE <dialog>)
   ============================================================================== */
dialog.checkout-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0;
  max-width: 520px;
  width: 90vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  margin: auto;
  outline: none;
  overscroll-behavior: contain;
}

dialog.checkout-dialog::backdrop {
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(6px);
}

.dialog-content {
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090d15;
}

.dialog-header h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-dialog {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.btn-close-dialog:hover {
  color: #ffffff;
}

.dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Step 1: Input Form */
.order-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.summary-pkg-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.summary-pkg-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.summary-price {
  color: var(--accent-emerald);
  font-weight: 700;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-emerald);
}

.form-help {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.crypto-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crypto-radio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 11px;
}

.crypto-radio-card:hover {
  background: var(--bg-card-hover);
}

.crypto-radio-card.selected {
  border-color: var(--accent-emerald);
  background: #0d161f;
}

.btn-generate-invoice {
  background: var(--accent-emerald);
  color: #07090e;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.btn-generate-invoice:hover {
  background: #34d399;
}

.btn-generate-invoice:disabled {
  background: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Step 2: Invoice Payment Display */
.invoice-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  min-width: 180px;
}

.crypto-amount-badge {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.wallet-box {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallet-address-text {
  font-size: 11px;
  color: #ffffff;
  word-break: break-all;
  text-align: left;
}

.btn-copy {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--border-focus);
}

.polling-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--accent-amber);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Step 3: Success State */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 10px 0;
}

.success-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-emerald-subtle);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.btn-download-master {
  background: var(--accent-emerald);
  color: #07090e;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: all 0.15s ease;
}

.btn-download-master:hover {
  background: #34d399;
}

.dialog-failover {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  background: #090d15;
  font-size: 11px;
  color: var(--text-muted);
}

.dialog-failover .failover-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ==============================================================================
   FOOTER (LEGAL & ZERO-LIABILITY DISCLAIMER)
   ============================================================================== */
.terminal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: 36px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-disclaimer-box h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-brand {
  color: var(--text-secondary);
  font-weight: 700;
}
