/* ==========================================================================
   Veridex — Cybermorphic HUD Design System
   Inspired by Deep Obsidian Black & Neon Cyber Emerald HUD Aesthetic
   ========================================================================== */

:root {
  /* Core Cyber Color Palette */
  --bg-dark: #020402;
  --bg-deep: #050805;
  --bg-card: rgba(6, 10, 8, 0.88);
  --bg-card-hover: rgba(10, 16, 12, 0.95);
  --bg-input: #030503;
  --bg-input-focus: #060a06;
  
  /* Cyber Neon Accents */
  --neon-green: #00FF66;
  --neon-green-dim: #00CC52;
  --neon-green-glow: rgba(0, 255, 102, 0.35);
  --neon-green-soft: rgba(0, 255, 102, 0.08);
  --accent-celo: #00FF66;
  --accent-celo-glow: rgba(0, 255, 102, 0.35);

  /* Cyber Borders */
  --border-cyber: rgba(0, 255, 102, 0.22);
  --border-cyber-subtle: rgba(255, 255, 255, 0.08);
  --border-cyber-bright: #00FF66;
  --border-subtle: rgba(0, 255, 102, 0.18);
  --border-focus: #00FF66;
  --border-card: rgba(0, 255, 102, 0.2);

  /* Alert States */
  --danger: #FF3344;
  --danger-bg: rgba(255, 51, 68, 0.1);
  --danger-border: rgba(255, 51, 68, 0.45);
  --danger-glow: rgba(255, 51, 68, 0.3);

  --warning: #FFB800;
  --warning-bg: rgba(255, 184, 0, 0.1);
  --warning-border: rgba(255, 184, 0, 0.45);

  --success: #00FF66;
  --success-bg: rgba(0, 255, 102, 0.1);
  --success-border: rgba(0, 255, 102, 0.45);

  /* Typography Colors */
  --text-primary: #F0FFF4;
  --text-secondary: #8E9C93;
  --text-muted: #526057;
  --text-neon: #00FF66;

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Shadows */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-card: 0 0 30px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(0, 255, 102, 0.02);
  --shadow-neon: 0 0 18px rgba(0, 255, 102, 0.45);
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(0, 255, 102, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Ambient Lights */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00FF66 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
}

/* Topbar Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2.5rem;
  background: rgba(2, 4, 2, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyber);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-container:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(0, 255, 102, 0.7));
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Network Badges & Topbar Controls */
.network-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.network-dropdown {
  background: #060907;
  color: #FFFFFF;
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.network-dropdown:focus, .network-dropdown:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(6, 10, 8, 0.9);
  border: 1px solid var(--border-cyber-subtle);
  color: var(--text-secondary);
}

.badge-identity {
  border-color: rgba(0, 255, 102, 0.3);
  color: #D1FAE5;
}

.badge-identity strong {
  color: var(--neon-green);
}

.badge-tag code {
  color: var(--neon-green);
  font-weight: 600;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

/* Wallet Connect Button */
.wallet-connect-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-connect {
  background: rgba(0, 255, 102, 0.08);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-connect:hover {
  background: var(--neon-green);
  color: #000000;
  box-shadow: var(--shadow-neon);
}

.btn-connected {
  background: rgba(0, 255, 102, 0.12);
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.wallet-balance-pill {
  background: #060907;
  border: 1px solid var(--border-cyber);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Container & Layout */
.container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Hero Intro */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 25px rgba(0, 255, 102, 0.15);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Cyber HUD Cards with Corner Brackets */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Top-Left & Bottom-Right Cyber HUD Corner Brackets */
.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--neon-green);
  border-left: 2px solid var(--neon-green);
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--neon-green);
  border-right: 2px solid var(--neon-green);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 255, 102, 0.04);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.12);
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Preset Template Chips (Cyber Tab Buttons) */
.presets-section {
  margin-bottom: 1.4rem;
}

.presets-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.preset-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.preset-chip {
  background: #040705;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: var(--neon-green);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
  transform: translateY(-1px);
}

.preset-chip.chip-danger:hover {
  background: rgba(255, 51, 68, 0.08);
  border-color: var(--danger);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-textarea, .form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input.font-mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.form-textarea:focus, .form-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--neon-green);
  color: #000000;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover:not(:disabled) {
  background: #33FF85;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #060907;
  color: var(--text-secondary);
  border: 1px solid var(--border-cyber-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Verdict Status Pills */
.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-idle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  box-shadow: 0 0 12px var(--danger-glow);
}

.pill-success {
  background: var(--success-bg);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green-glow);
}

/* Results State Views */
.result-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.state-idle {
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.idle-icon-wrap {
  margin-bottom: 1rem;
  opacity: 0.4;
}

.idle-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-width: 280px;
}

.state-loading {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.pulse-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 255, 102, 0.2);
  border-top-color: var(--neon-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.2rem;
}

.loading-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-green);
}

/* Alert Banners */
.alert-banner {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  box-shadow: 0 0 20px var(--danger-glow);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.alert-icon-box {
  font-size: 1.8rem;
  line-height: 1;
}

.alert-content {
  flex: 1;
}

.alert-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.alert-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.alert-danger .alert-title { color: #FFA3A8; }
.alert-success .alert-title { color: #FFFFFF; }

.alert-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.risk-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.badge-high {
  background: rgba(255, 51, 68, 0.2);
  color: #FFA3A8;
  border: 1px solid var(--danger);
}

.badge-low {
  background: rgba(0, 255, 102, 0.2);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

/* Voice Security Notice Box */
.audio-notice-box {
  background: #040705;
  border: 1px solid var(--danger-border);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
  box-shadow: 0 0 15px rgba(255, 51, 68, 0.15);
}

.audio-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.audio-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFA3A8;
}

.audio-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
}

.wave-bar {
  width: 3px;
  height: 12px;
  background: var(--danger);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.audio-text {
  font-size: 0.88rem;
  font-style: italic;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.audio-controls {
  display: flex;
  gap: 0.6rem;
}

.btn-audio {
  background: rgba(255, 51, 68, 0.15);
  color: #FFA3A8;
  border: 1px solid var(--danger-border);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio:hover {
  background: var(--danger);
  color: #000000;
}

.btn-audio-stop {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-audio-stop:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Findings & Threat Lists */
.threat-findings, .scan-details-box {
  background: #040705;
  border: 1px solid var(--border-cyber-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
}

.findings-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.threat-list {
  list-style: none;
}

.threat-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.threat-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

.list-success li::before {
  color: var(--neon-green);
}

/* Transfer Confirmation Box */
.transfer-confirm-box {
  background: #040705;
  border: 1px solid var(--border-cyber);
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: inset 0 0 15px rgba(0, 255, 102, 0.03);
}

.confirm-box-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
}

.transfer-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.summary-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
}

.summary-val.font-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.text-accent {
  color: var(--neon-green);
}

.attribution-note {
  background: rgba(0, 255, 102, 0.05);
  border: 1px dashed rgba(0, 255, 102, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-green);
  margin-bottom: 1.2rem;
}

.btn-confirm {
  width: 100%;
  background: var(--neon-green);
  color: #000000;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-neon);
}

.btn-confirm:hover:not(:disabled) {
  background: #33FF85;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.7);
  transform: translateY(-1px);
}

/* Receipt Box */
.receipt-box {
  background: #030604;
  border: 1px solid var(--neon-green);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.2);
}

.receipt-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.receipt-icon {
  font-size: 2rem;
}

.receipt-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.receipt-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.receipt-link {
  color: var(--neon-green);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.receipt-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px var(--neon-green);
}

.badge-tag-inline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.btn-explorer {
  display: block;
  text-align: center;
  background: #060907;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-explorer:hover {
  background: var(--neon-green);
  color: #000000;
  box-shadow: var(--shadow-neon);
}

/* Footer / Module HUD Cards */
.footer {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-cyber);
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .topbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .network-badges {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .container {
    padding: 1.25rem 0.85rem;
  }

  .hero-section {
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }

  .result-card {
    scroll-margin-top: 1.25rem;
  }

  .preset-buttons {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

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

.footer-col {
  position: relative;
  background: #040705;
  border: 1px solid var(--border-cyber-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}

.footer-col::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--neon-green);
  border-left: 2px solid var(--neon-green);
}

.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.footer-col p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mobile MetaMask Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  position: relative;
  background: #060A08;
  border: 1px solid var(--neon-green);
  border-radius: var(--radius-sm);
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 0 35px rgba(0, 255, 102, 0.25), 0 10px 40px rgba(0, 0, 0, 0.9);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--neon-green);
  border-left: 2px solid var(--neon-green);
}

.modal-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--neon-green);
  border-right: 2px solid var(--neon-green);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 102, 0.15);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-icon {
  font-size: 1.4rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--neon-green);
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn-block {
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.modal-guide {
  background: rgba(0, 255, 102, 0.04);
  border: 1px solid rgba(0, 255, 102, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.modal-guide h6 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-steps-list {
  padding-left: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-steps-list li {
  margin-bottom: 0.35rem;
}

.hidden {
  display: none !important;
}


