/* ==========================================================================
   NEOPAY CRYPTO WALLET & WEB3 VAULT - Design System & UI Stylesheet
   Theme: Obsidian Cyber-Glass & Holographic Emerald/Cyan Neon
   ========================================================================== */

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

:root {
  /* Core Backgrounds */
  --bg-deep: #05070d;
  --bg-main: #090d16;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #141d33;
  --bg-card: rgba(14, 21, 38, 0.72);
  --bg-card-hover: rgba(20, 30, 53, 0.85);
  --bg-glass: rgba(16, 25, 46, 0.6);
  --bg-glass-heavy: rgba(10, 15, 28, 0.92);

  /* Brand Accents */
  --neon-emerald: #00ff9d;
  --neon-emerald-glow: 0 0 24px rgba(0, 255, 157, 0.45);
  --neon-emerald-dim: rgba(0, 255, 157, 0.14);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: 0 0 24px rgba(0, 240, 255, 0.45);
  --neon-cyan-dim: rgba(0, 240, 255, 0.14);

  --neon-gold: #ffb703;
  --neon-gold-dim: rgba(255, 183, 3, 0.15);
  
  --neon-purple: #9d4edd;
  --neon-pink: #f72585;
  --neon-danger: #ff3366;
  --neon-danger-dim: rgba(255, 51, 102, 0.15);

  --brand-gradient: linear-gradient(135deg, #00ff9d 0%, #00f0ff 50%, #7b2cbf 100%);
  --brand-gradient-card: linear-gradient(135deg, rgba(0, 255, 157, 0.15) 0%, rgba(0, 240, 255, 0.12) 50%, rgba(157, 78, 221, 0.15) 100%);
  --gold-gradient: linear-gradient(135deg, #ffd166 0%, #ffb703 100%);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --text-emerald: #00ff9d;
  --text-cyan: #00f0ff;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow-emerald: rgba(0, 255, 157, 0.35);
  --border-glow-cyan: rgba(0, 240, 255, 0.35);

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-card-hover: 0 20px 48px -10px rgba(0, 255, 157, 0.15), 0 0 0 1px rgba(0, 255, 157, 0.3);
  --shadow-modal: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 240, 255, 0.25);

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

  /* Layout dimensions */
  --nav-height: 74px;
  --mobile-width: 410px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 25%, rgba(0, 255, 157, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(157, 78, 221, 0.06) 0%, transparent 60%),
              var(--bg-deep);
  background-attachment: fixed;
}

/* Cyber Matrix Grid Backdrop */
.bg-cyber-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulseOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: 10%;
  background: var(--neon-cyan);
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  right: -100px;
  background: var(--neon-emerald);
  animation-delay: -6s;
}

@keyframes pulseOrb {
  0% { transform: scale(1) translateY(0); opacity: 0.25; }
  100% { transform: scale(1.15) translateY(40px); opacity: 0.4; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-emerald);
}

/* Common Utilities */
.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

.heading-font {
  font-family: var(--font-heading);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-glow {
  width: 44px;
  height: 50px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45)) drop-shadow(0 0 16px rgba(0, 255, 157, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 24px rgba(0, 255, 157, 0.5));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Nav Center Controls */
.nav-center-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-pill-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.network-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3ba2f; /* BSC Gold */
  box-shadow: 0 0 8px #f3ba2f;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.account-selector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--neon-emerald);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.account-selector-btn:hover {
  background: rgba(0, 255, 157, 0.16);
  border-color: var(--neon-emerald);
  box-shadow: var(--neon-emerald-glow);
}

.account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #000;
}

/* Nav Right Quick Tools */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.icon-action-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-white);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.icon-action-btn.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: var(--neon-cyan-dim);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--neon-emerald);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  min-width: 16px;
  text-align: center;
}

/* View Mode Switcher Pill (Desktop Dashboard vs Mobile Extension) */
.view-mode-toggle {
  display: flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin-left: 6px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--neon-emerald), var(--neon-cyan));
  color: #05070d;
  box-shadow: 0 2px 10px rgba(0, 255, 157, 0.3);
}

/* ==========================================================================
   Main Wallet Layout Grid
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 28px 0 60px;
}

.wallet-dashboard-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

/* ==========================================================================
   Left Column: Hero Card & Quick Actions
   ========================================================================== */
.sidebar-portfolio-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 3D Holographic Vault Card */
.crypto-vault-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px;
  background: #0f172a;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 255, 157, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crypto-vault-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -10px rgba(0, 255, 157, 0.3), 0 0 0 1px rgba(0, 255, 157, 0.5);
}

.vault-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.vault-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 7, 13, 0.88) 0%, rgba(14, 21, 38, 0.7) 100%);
  pointer-events: none;
}

.vault-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.whitelist-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 157, 0.14);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-emerald);
}

.balance-meta-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.2s;
}

.privacy-toggle-btn:hover {
  color: var(--text-white);
}

.portfolio-balance-val {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.balance-pnl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.pnl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.pnl-badge.positive {
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.pnl-badge.negative {
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.pnl-period {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.address-chip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.address-copy-btn {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.address-copy-btn:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Quick Action Circle Buttons Grid */
.quick-action-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-act-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  text-decoration: none;
}

.quick-act-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-emerald);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 255, 157, 0.25);
}

.act-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.25s;
}

.icon-send {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.05));
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.icon-receive {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(0, 255, 157, 0.05));
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.icon-swap {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(157, 78, 221, 0.05));
  color: #c77dff;
  border: 1px solid rgba(157, 78, 221, 0.35);
}

.icon-claim {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(255, 183, 3, 0.05));
  color: var(--neon-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.25);
  position: relative;
}

.icon-claim::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-emerald);
}

.quick-act-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Secondary Action Pills (Buy / Staking / Scanner) */
.quick-auxiliary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aux-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aux-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Principal Claim Spotlight Banner in Sidebar */
.principal-banner-card {
  background: linear-gradient(135deg, rgba(14, 25, 45, 0.85) 0%, rgba(20, 16, 40, 0.85) 100%);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.principal-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

.banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-badge {
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-emerald);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.banner-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.banner-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
}

.btn-claim-banner {
  width: 100%;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #000;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3);
  transition: all 0.2s;
}

.btn-claim-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.45);
}

/* Gas & Network Status Widget */
.network-status-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gas-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gas-icon {
  color: var(--neon-cyan);
}

.gas-info {
  display: flex;
  flex-direction: column;
}

.gas-title {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.gas-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.block-height-col {
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.block-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Right Column: Main Portal Tabs & Full Workspaces
   ========================================================================== */
.main-portal-tabs-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

/* Tab Navigation Header */
.portal-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.portal-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-tab-btn:hover {
  color: var(--text-white);
  background: var(--bg-surface);
}

.portal-tab-btn.active {
  color: #000;
  background: linear-gradient(135deg, var(--neon-emerald), var(--neon-cyan));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 255, 157, 0.3);
}

.tab-badge {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Tab Content Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* ==========================================================================
   TAB 1: TOKENS / ASSETS LIST
   ========================================================================== */
.pane-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.search-tokens-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 260px;
}

.search-tokens-input input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.search-tokens-input input::placeholder {
  color: var(--text-muted);
}

.btn-import-token {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-import-token:hover {
  background: var(--neon-cyan-dim);
  border-color: var(--neon-cyan);
}

/* Token Rows Table / List */
.token-list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.token-list-header-row {
  display: grid;
  grid-template-columns: minmax(170px, 2.2fr) minmax(90px, 1.2fr) minmax(110px, 1.4fr) minmax(120px, 1.2fr);
  align-items: center;
  padding: 6px 18px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.token-list-header-row .th-holdings {
  text-align: right;
}
.token-list-header-row .th-actions {
  text-align: right;
}

.token-row-item {
  display: grid;
  grid-template-columns: minmax(170px, 2.2fr) minmax(90px, 1.2fr) minmax(110px, 1.4fr) minmax(120px, 1.2fr);
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.token-row-item:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(0, 255, 157, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.token-row-item.featured {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.08) 0%, rgba(14, 20, 36, 0.8) 100%);
  border: 1px solid rgba(0, 255, 157, 0.35);
}

.token-identity-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.token-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.token-icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.token-name-group {
  display: flex;
  flex-direction: column;
}

.token-symbol {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-badge-special {
  background: var(--neon-emerald);
  color: #000;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
}

.bscscan-badge-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: var(--neon-emerald);
  color: #000;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-surface);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.6);
}

.bscscan-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bscscan-link-chip:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.contract-short {
  color: var(--neon-cyan);
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}

.contract-short:hover {
  opacity: 1;
  color: var(--neon-emerald);
}

.token-fullname {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.token-price-col {
  display: flex;
  flex-direction: column;
}

.token-live-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.token-24h-change {
  font-size: 0.75rem;
  font-weight: 600;
}

.token-24h-change.up {
  color: var(--neon-emerald);
}

.token-24h-change.down {
  color: var(--neon-danger);
}

.token-holdings-col {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.token-balance-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.token-fiat-val {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.token-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.token-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.token-mini-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

.token-remove-btn:hover {
  background: var(--neon-coral) !important;
  color: #fff !important;
  border-color: var(--neon-coral) !important;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

/* ==========================================================================
   TAB 2: PRINCIPAL CLAIM & SMART CONTRACT (Neo Marclife Engine)
   ========================================================================== */
.contract-portal-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contract-header-hero {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12) 0%, rgba(0, 255, 157, 0.08) 100%);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contract-hero-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--neon-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contract-hero-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

.contract-status-pill {
  background: rgba(0, 255, 157, 0.18);
  border: 1px solid var(--neon-emerald);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-emerald);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.2);
  white-space: nowrap;
}

/* 4-Stat Cards Grid for Contract */
.contract-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.c-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.c-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.c-stat-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-white);
}

.c-stat-sub {
  font-size: 0.72rem;
  color: var(--neon-cyan);
}

/* Claim & Fee Interactive Panel */
.claim-workbench-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.claim-form-card, .claim-rules-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 22px;
}

.section-subheading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-white);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--neon-emerald);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.25);
}

.input-suffix-tag {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-emerald);
}

.quick-pct-selector {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.pct-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.pct-pill:hover, .pct-pill.active {
  background: var(--neon-emerald-dim);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
}

/* BNB Fee Calculation Box */
.bnb-fee-calc-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fee-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.fee-calc-row.highlight {
  color: var(--neon-gold);
  font-weight: 700;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.btn-execute-claim {
  width: 100%;
  background: linear-gradient(135deg, var(--neon-gold), #ff9e00);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #000;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 183, 3, 0.35);
  transition: all 0.25s;
}

.btn-execute-claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 183, 3, 0.5);
}

/* Rules / Instructions List */
.contract-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.rule-icon {
  color: var(--neon-emerald);
  font-size: 1rem;
  margin-top: 1px;
}

/* ==========================================================================
   TAB 3: INSTANT DEX SWAP
   ========================================================================== */
.swap-widget-container {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.swap-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.swap-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.swap-settings-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.swap-settings-btn:hover {
  color: var(--text-white);
}

.swap-card-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.swap-card-box:focus-within {
  border-color: var(--neon-cyan);
}

.swap-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.swap-box-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.swap-amount-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  width: 100%;
}

.swap-token-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-white);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.swap-token-picker:hover {
  border-color: var(--neon-emerald);
}

.token-picker-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.swap-box-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Swap Invert Button */
.swap-invert-wrapper {
  display: flex;
  justify-content: center;
  margin: -14px 0;
  position: relative;
  z-index: 5;
}

.swap-invert-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-main);
  color: var(--neon-emerald);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.swap-invert-btn:hover {
  transform: rotate(180deg) scale(1.1);
  color: var(--neon-cyan);
  border-color: var(--neon-emerald);
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 255, 157, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

#swapPoolPulseDot {
  animation: pulseDot 2s infinite;
}

/* Slippage & Routing Info */
.swap-meta-details {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swap-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.swap-detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.btn-submit-swap {
  width: 100%;
  background: linear-gradient(135deg, var(--neon-emerald), var(--neon-cyan));
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #05070d;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.35);
  transition: all 0.25s;
}

.btn-submit-swap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 255, 157, 0.5);
}

/* Slippage & Trade Settings */
.slippage-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.slippage-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--text-white);
  background: rgba(0, 240, 255, 0.08);
}

.slippage-chip.active {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

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

.spinner-mini {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   TAB 4: NFTS & COLLECTIBLES
   ========================================================================== */
.nfts-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.nft-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.nft-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--neon-emerald);
  box-shadow: var(--shadow-card-hover);
}

.nft-preview-box {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.nft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nft-card-item:hover .nft-img {
  transform: scale(1.06);
}

.nft-rarity-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--neon-emerald);
  color: var(--neon-emerald);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.nft-info-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nft-title-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.nft-collection-name {
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.nft-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.nft-price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nft-price-val {
  font-weight: 700;
  color: var(--neon-emerald);
  font-size: 0.95rem;
}

.btn-nft-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nft-action:hover {
  background: var(--neon-emerald);
  color: #000;
  border-color: var(--neon-emerald);
}

/* ==========================================================================
   TAB 5: TRANSACTION HISTORY
   ========================================================================== */
.tx-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tx-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tx-filter-btn.active, .tx-filter-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-white);
  border-color: var(--neon-cyan);
}

.tx-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-list-header-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 2fr) minmax(110px, 1.2fr) 100px;
  align-items: center;
  gap: 14px;
  padding: 6px 18px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.tx-list-header-row .th-tx-amount {
  text-align: right;
}
.tx-list-header-row .th-tx-status {
  text-align: right;
}

.tx-row-item {
  display: grid;
  grid-template-columns: 44px minmax(180px, 2fr) minmax(110px, 1.2fr) 100px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.tx-row-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
}

.tx-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tx-status-icon.in {
  background: rgba(0, 255, 157, 0.14);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.tx-status-icon.out {
  background: rgba(255, 51, 102, 0.14);
  color: var(--neon-danger);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.tx-status-icon.claim {
  background: rgba(255, 183, 3, 0.14);
  color: var(--neon-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.tx-status-icon.swap {
  background: rgba(0, 240, 255, 0.14);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.tx-main-desc {
  display: flex;
  flex-direction: column;
}

.tx-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-white);
}

.tx-time-hash {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-hash-link {
  color: var(--neon-cyan);
  text-decoration: none;
}

.tx-hash-link:hover {
  text-decoration: underline;
}

.tx-amount-col {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.tx-amount-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.tx-amount-val.positive {
  color: var(--neon-emerald);
}

.tx-amount-val.negative {
  color: var(--text-primary);
}

.tx-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tx-status-tag.success {
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-emerald);
}

/* ==========================================================================
   TAB 6: DAPP BROWSER
   ========================================================================== */
.dapp-search-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.dapp-url-input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: var(--text-white);
  font-size: 0.88rem;
  outline: none;
}

.dapp-url-input:focus {
  border-color: var(--neon-cyan);
}

.btn-open-dapp {
  background: var(--neon-cyan);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

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

.dapp-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.dapp-card-item:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-emerald);
  transform: translateY(-2px);
}

.dapp-card-item.pinned-dapp {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.09) 0%, rgba(0, 240, 255, 0.05) 50%, var(--bg-surface) 100%);
  border: 1.5px solid rgba(0, 255, 157, 0.45);
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.12);
  position: relative;
}

.dapp-card-item.pinned-dapp:hover {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.14) 0%, rgba(0, 240, 255, 0.08) 50%, var(--bg-surface-elevated) 100%);
  border-color: var(--neon-emerald);
  box-shadow: 0 6px 28px rgba(0, 255, 157, 0.25);
  transform: translateY(-2px);
}

.dapp-pinned-chip:hover {
  background: rgba(0, 255, 157, 0.22) !important;
  border-color: var(--neon-emerald) !important;
  transform: translateY(-1px);
}

.dapp-icon-wrap {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  flex-shrink: 0 !important;
  border-radius: 14px;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.dapp-icon-wrap img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover;
  flex-shrink: 0 !important;
  display: block;
}

.dapp-details {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.dapp-details h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}

.dapp-details p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* ==========================================================================
   TAB 7: SECURITY & SEED VAULT
   ========================================================================== */
.security-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  gap: 20px;
  align-items: stretch;
}

.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
}

.seed-phrase-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--bg-deep);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

@media print {
  .seed-phrase-box, .seed-words-grid, .seed-blur-overlay, #newWalletSeedWordsBox, #recoveredSeedWordsBox {
    display: none !important;
    visibility: hidden !important;
  }
}

.seed-word-item, .seed-word-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.seed-idx {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.seed-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 13, 22, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s;
}

.seed-blur-overlay.unlocked {
  display: none;
}

.btn-reveal-seed {
  background: var(--neon-cyan);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ==========================================================================
   Interactive Modals System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease forwards;
}

.modal-backdrop.open {
  display: flex;
}

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

.modal-dialog {
  background: rgba(10, 16, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.08);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: rgba(255, 51, 102, 0.4);
  color: #fff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Multi-Wallet & Account Menu Tabs */
.menu-segmented-tabs {
  display: flex;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 6px;
  margin-bottom: 8px;
}

.menu-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.menu-tab-btn.active {
  background: rgba(0, 245, 255, 0.12);
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
}

.btn-icon-rename {
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-icon-rename:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

/* Reset Credentials Modal Tabs */
.reset-tab-nav {
  display: flex;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
}

.reset-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reset-tab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.reset-tab-btn.active {
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.2);
}

/* QR Code Display in Modal */
.qr-modal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.qr-code-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 240, 255, 0.4);
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  max-width: 220px;
  max-height: 220px;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box;
  margin: 0 auto;
  flex-shrink: 0;
}

#receiveQrContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 188px;
  min-width: 188px;
  min-height: 188px;
  max-width: 188px;
  max-height: 188px;
  aspect-ratio: 1 / 1 !important;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

#receiveQrContainer canvas,
#receiveQrContainer img {
  display: block !important;
  width: 188px !important;
  height: 188px !important;
  max-width: 188px !important;
  max-height: 188px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 360px) {
  .qr-code-frame {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    padding: 12px !important;
  }
  #receiveQrContainer,
  #receiveQrContainer canvas,
  #receiveQrContainer img {
    width: 176px !important;
    height: 176px !important;
    min-width: 176px !important;
    min-height: 176px !important;
    max-width: 176px !important;
    max-height: 176px !important;
  }
}

.address-full-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--neon-cyan);
  width: 100%;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--neon-emerald);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--neon-emerald-glow);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.6);
  padding: 24px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon-emerald);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Docked at bottom in mobile view)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 2px 4px;
}

.mobile-nav-container::-webkit-scrollbar {
  display: none;
}

.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.mobile-nav-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-btn.active {
  color: #05070d;
  background: linear-gradient(135deg, var(--neon-emerald) 0%, var(--neon-cyan) 100%);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 255, 157, 0.45);
  font-weight: 700;
}

.mobile-nav-btn.active svg {
  stroke: #05070d;
}

.mobile-nav-text {
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.mobile-nav-badge {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ==========================================================================
   DESKTOP VIEWPORT SPECIFIC STYLES (min-width: 769px)
   Desktop view ONLY shows on desktop/laptop screens
   ========================================================================== */
@media (min-width: 769px) {
  body {
    padding-bottom: 0 !important;
  }

  /* Bottom navigation bar is STRICTLY HIDDEN on desktop */
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Top workstation navigation tabs are ALWAYS VISIBLE on desktop */
  .portal-tabs-nav {
    display: flex !important;
  }

  /* Full 2-column workstation grid layout on desktop */
  .wallet-dashboard-grid {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 28px !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .sidebar-portfolio-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .crypto-vault-card {
    display: flex !important;
    order: unset !important;
    width: 100% !important;
  }

  .quick-auxiliary-row {
    display: grid !important;
    order: unset !important;
    width: 100% !important;
  }

  .main-portal-tabs-col {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    order: unset !important;
    width: 100% !important;
    max-width: none !important;
  }

  .network-status-widget {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: unset !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Desktop token row: expansive 4-column layout */
  .token-list-header-row,
  .token-row-item {
    display: grid !important;
    grid-template-columns: minmax(170px, 2.2fr) minmax(90px, 1.2fr) minmax(110px, 1.4fr) minmax(120px, 1.2fr) !important;
    grid-template-areas: none !important;
    align-items: center !important;
  }

  .token-identity-col { grid-area: unset !important; }
  .token-holdings-col { grid-area: unset !important; }
  .token-price-col { grid-area: unset !important; }
  .token-quick-actions { grid-area: unset !important; }

  /* Desktop transaction row: full horizontal layout */
  .tx-list-header-row,
  .tx-row-item {
    display: grid !important;
    grid-template-columns: 44px minmax(180px, 2fr) minmax(110px, 1.2fr) 100px !important;
    grid-template-areas: none !important;
    align-items: center !important;
  }

  .tx-status-icon { grid-area: unset !important; }
  .tx-main-desc { grid-area: unset !important; }
  .tx-amount-col { grid-area: unset !important; }
  .tx-status-tag { grid-area: unset !important; justify-self: unset !important; }

  .security-vault-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px)) !important;
  }
}

/* ==========================================================================
   MOBILE & COMPACT BORDER ADJUSTMENTS (Tokens List & Activity Transactions)
   ========================================================================== */

/* ==========================================================================
   MOBILE VIEWPORT SPECIFIC STYLES (max-width: 768px)
   Mobile view ONLY shows on mobile phones / small screens
   ========================================================================== */
@media (max-width: 768px) {
  html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-bottom: 84px !important;
    margin: 0 !important;
  }

  .app-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  /* Floating bottom navigation bar is ONLY SHOWN on mobile (100% Screen-Fit 5 Columns) */
  .mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1000 !important;
    background: rgba(8, 12, 20, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8) !important;
  }

  .mobile-nav-container {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 3px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 2px !important;
    border-radius: var(--radius-sm) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .mobile-nav-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: var(--text-muted) !important;
    transition: stroke 0.2s ease, transform 0.2s ease !important;
  }

  .mobile-nav-text {
    font-size: 0.68rem !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    color: inherit !important;
  }

  .mobile-nav-btn.active {
    color: var(--neon-emerald) !important;
    background: rgba(0, 255, 157, 0.08) !important;
    border: 1px solid rgba(0, 255, 157, 0.3) !important;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.2) !important;
    font-weight: 700 !important;
  }

  .mobile-nav-btn.active svg {
    stroke: var(--neon-emerald) !important;
    transform: translateY(-1px) scale(1.08) !important;
  }

  /* Top workstation tab buttons are hidden on mobile (handled by bottom nav) */
  .portal-tabs-nav {
    display: none !important;
  }

  /* Compact Header & Navbar for mobile screens (fits 360px - 414px perfectly) */
  .navbar {
    width: 100% !important;
    max-width: 100vw !important;
    height: 56px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .brand-wrapper {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .brand-logo-glow {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-logo-img {
    width: 24px !important;
    height: 24px !important;
  }

  .brand-title {
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
  }

  .brand-tag {
    display: none !important;
  }

  .nav-center-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  /* Hide UID badge and unnecessary pills from navbar on mobile (already visible in Card & Security) */
  .user-id-badge {
    display: none !important;
  }

  .dropdown-pill-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .dropdown-pill-btn .network-name {
    max-width: 65px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.72rem !important;
  }

  .account-selector-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .account-selector-btn .account-avatar {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.65rem !important;
  }

  .account-selector-btn #activeWalletName,
  .account-selector-btn .whitelist-badge,
  .account-selector-btn span:nth-child(3) {
    display: none !important;
  }

  .account-selector-btn #activeAccountName {
    font-size: 0.72rem !important;
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .nav-tools {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  #privacyToggleBtn,
  #soundToggleBtn {
    display: none !important;
  }

  #currencySelectorBtn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }

  #currencySelectorBtn #currentCurrencyLabel {
    font-size: 0.72rem !important;
  }

  #lockWalletBtn {
    width: 28px !important;
    height: 28px !important;
    padding: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #lockWalletBtn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* 100% Full-Screen Single-column stacked mobile layout */
  .wallet-dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 20px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .sidebar-portfolio-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .crypto-vault-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
  }

  .quick-action-matrix {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .quick-act-btn {
    padding: 10px 4px !important;
    gap: 6px !important;
  }

  .act-icon-wrap {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  .quick-act-label {
    font-size: 0.74rem !important;
  }

  .quick-auxiliary-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .main-portal-tabs-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px 10px !important;
    border-radius: var(--radius-md) !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  .tab-pane {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Gas & Network Status Widget docked at bottom on mobile */
  .network-status-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 24px !important;
    box-sizing: border-box !important;
  }

  /* On non-assets tabs, hide hero card and action buttons so active tab has full focused room */
  body[data-active-tab="swap"] .sidebar-portfolio-col,
  body[data-active-tab="nfts"] .sidebar-portfolio-col,
  body[data-active-tab="activity"] .sidebar-portfolio-col,
  body[data-active-tab="dapps"] .sidebar-portfolio-col,
  body[data-active-tab="security"] .sidebar-portfolio-col {
    display: none !important;
  }

  /* Swap widget 100% full screen on mobile */
  .swap-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }

  /* NFTs & DApps full-width adjustments */
  .nfts-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .dapp-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .dapp-search-hero {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .btn-open-dapp {
    width: 100% !important;
    padding: 10px !important;
  }

  .dapp-pinned-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }

  .walletconnect-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .wc-scan-btn, .wc-connect-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Security Center Mobile Adjustments */
  .security-card {
    width: 100% !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
  }

  .seed-phrase-box {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  /* Full Screen Modals on mobile */
  .modal-backdrop {
    padding: 12px !important;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Footer on mobile */
  .app-footer {
    width: 100% !important;
    padding: 18px 0 !important;
    box-sizing: border-box !important;
  }

  .footer-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
    font-size: 0.74rem !important;
    padding: 0 10px !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    font-size: 0.72rem !important;
  }

  .pane-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-tokens-input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 7px 12px;
    box-sizing: border-box;
  }

  .btn-import-token {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Hide table header rows on mobile */
  .token-list-header-row,
  .tx-list-header-row {
    display: none !important;
  }

  .token-row-item {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "identity holdings"
      "price actions" !important;
    row-gap: 8px;
    column-gap: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .token-identity-col {
    grid-area: identity;
    min-width: 0;
    gap: 10px;
    display: flex;
    align-items: center;
  }

  .token-icon-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .token-name-group {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .token-symbol {
    font-size: 0.92rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .token-badge-special {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .token-fullname {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .token-holdings-col {
    grid-area: holdings;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
  }

  .token-balance-amount {
    font-size: 0.92rem;
    font-weight: 700;
  }

  .token-fiat-val {
    font-size: 0.72rem;
  }

  .token-price-col {
    grid-area: price;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-left: 46px;
  }

  .token-live-price {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .token-24h-change {
    font-size: 0.72rem;
  }

  .token-quick-actions {
    grid-area: actions;
    display: flex !important;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }

  .token-mini-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    height: 26px;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .tx-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .tx-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .tx-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.76rem;
  }

  .tx-row-item {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "icon desc amount"
      "icon desc status" !important;
    row-gap: 4px;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .tx-status-icon {
    grid-area: icon;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    align-self: center;
    flex-shrink: 0;
  }

  .tx-main-desc {
    grid-area: desc;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .tx-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tx-time-hash {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 6px;
  }

  .tx-amount-col {
    grid-area: amount;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .tx-amount-val {
    font-size: 0.88rem;
  }

  .tx-status-tag {
    grid-area: status;
    justify-self: end;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    margin-top: 2px;
  }

  .security-vault-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .security-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   WALLET AUTHENTICATION, LOCK SCREEN & BIOMETRICS SYSTEM
   ========================================================================== */

/* User ID Badge in Header */
.user-id-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--neon-gold);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.user-id-badge:hover {
  background: rgba(255, 183, 3, 0.22);
  border-color: var(--neon-gold);
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.3);
  transform: translateY(-1px);
}

.card-uid-pill {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--neon-gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* Full Screen Auth Gates (Lock Screen & Welcome Onboard Screen) */
/* Full Screen Auth Gates (Lock Screen & Welcome Onboard Screen) */
.fullpage-auth-gate,
.wallet-lock-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  min-height: -webkit-fill-available !important;
  inset: 0 !important;
  z-index: 3000;
  background: radial-gradient(circle at 50% 25%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 50% 80%, rgba(0, 255, 157, 0.07) 0%, transparent 60%),
              #05070d !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: max(10px, env(safe-area-inset-top, 10px)) 12px max(14px, env(safe-area-inset-bottom, 14px)) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  opacity: 1 !important;
}

.fullpage-auth-gate.hidden,
.wallet-lock-screen.hidden,
#walletAppShell.hidden {
  display: none !important;
}

.onboard-card-box {
  background: rgba(12, 17, 32, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.1);
  border-radius: 18px;
  padding: clamp(14px, 2.5vh, 22px) clamp(14px, 4vw, 20px);
  width: 100%;
  max-width: 380px;
  margin: auto !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-sizing: border-box;
}

@keyframes lockFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.lock-card-box {
  background: rgba(12, 17, 32, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.1);
  border-radius: 18px;
  padding: clamp(10px, 1.8vh, 18px) clamp(12px, 3.5vw, 18px);
  width: 100%;
  max-width: 380px;
  margin: auto !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-sizing: border-box;
}

.lock-brand-glow {
  width: clamp(44px, 7.5vh, 60px);
  height: clamp(50px, 8.5vh, 68px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: clamp(2px, 0.6vh, 6px);
  flex-shrink: 0;
}

.lock-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 24px rgba(0, 255, 157, 0.4));
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4)) drop-shadow(0 0 18px rgba(0, 255, 157, 0.25)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.7)) drop-shadow(0 0 26px rgba(0, 255, 157, 0.5)); }
}

.lock-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vh, 1.4rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.lock-account-pill {
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: clamp(3px, 0.8vh, 6px) clamp(8px, 2vw, 12px);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: clamp(6px, 1vh, 10px);
  flex-shrink: 0;
}

.lock-account-pill .account-avatar {
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.lock-acc-name {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

.lock-acc-addr {
  color: var(--text-muted);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.lock-acc-uid {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 6px;
  flex-shrink: 0;
}

.lock-user-tag {
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--neon-gold);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.lock-user-tag:hover {
  background: rgba(255, 183, 3, 0.25);
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.4);
}

.lock-subtitle {
  font-size: clamp(0.72rem, 1.6vh, 0.78rem);
  color: var(--text-secondary);
  margin-bottom: clamp(6px, 1.1vh, 12px);
  line-height: 1.25;
  flex-shrink: 0;
}

/* 6-Digit PIN Dots Display */
.pin-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2.5vw, 14px);
  margin-bottom: clamp(6px, 1vh, 12px);
  flex-shrink: 0;
}

.pin-dot {
  width: clamp(10px, 2.2vw, 12px);
  height: clamp(10px, 2.2vw, 12px);
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.pin-dot.filled {
  background: var(--neon-emerald);
  border-color: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
  transform: scale(1.15);
}

.pin-error-text {
  min-height: 14px;
  font-size: 0.72rem;
  color: var(--neon-danger);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Keypad Grid (1-9, Biometrics, 0, Backspace) */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, clamp(44px, 11.5vw, 52px));
  justify-content: center;
  align-items: center;
  gap: clamp(5px, 1.2vh, 8px) clamp(10px, 3.5vw, 16px);
  width: 100%;
  max-width: 250px;
  margin: 0 auto clamp(6px, 1.2vh, 12px);
  flex-shrink: 0;
}

.keypad-btn {
  width: clamp(44px, 11.5vw, 52px);
  height: clamp(44px, 11.5vw, 52px);
  min-width: clamp(44px, 11.5vw, 52px);
  min-height: clamp(44px, 11.5vw, 52px);
  max-width: clamp(44px, 11.5vw, 52px);
  max-height: clamp(44px, 11.5vw, 52px);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vh, 1.25rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
  box-sizing: border-box;
  margin: 0 auto;
}

.keypad-btn:hover {
  background: rgba(0, 255, 157, 0.12);
  border-color: var(--neon-emerald);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.25);
  transform: scale(1.05);
}

.keypad-btn:active {
  transform: scale(0.92);
  background: var(--neon-emerald);
  color: #000;
}

.keypad-btn.icon-btn {
  font-size: 1rem;
  color: var(--text-secondary);
}

.keypad-btn.icon-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* Biometric Quick Unlock Row (Face ID & Touch ID) */
.lock-biometric-row {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: clamp(6px, 1vh, 10px);
  flex-shrink: 0;
}

.btn-biometric-unlock {
  flex: 1;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(0, 255, 157, 0.12));
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-full);
  padding: clamp(7px, 1.3vh, 10px) 10px;
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: clamp(0.74rem, 1.6vh, 0.82rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  margin-bottom: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-biometric-unlock.btn-bio-touch {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
}

.btn-biometric-unlock:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* Alternative Links */
.lock-alt-links {
  margin-top: clamp(4px, 0.8vh, 8px);
  margin-bottom: clamp(4px, 0.8vh, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 10px);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: clamp(0.7rem, 1.5vh, 0.76rem);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
  padding: 2px 3px;
  white-space: nowrap;
}

.link-btn:hover {
  color: var(--neon-cyan);
}

.link-btn.link-pin {
  color: var(--neon-cyan);
}

.link-btn.link-pass {
  color: var(--neon-emerald);
}

.lock-link-dot {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Bottom Restore / Switch Actions */
.lock-bottom-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 10px);
  font-size: clamp(0.68rem, 1.5vh, 0.74rem);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(6px, 1vh, 10px);
  margin-top: clamp(4px, 0.8vh, 8px);
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lock-action-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: clamp(0.68rem, 1.5vh, 0.74rem);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 2px 2px;
}

.lock-action-link:hover {
  color: var(--neon-emerald);
}

.lock-action-link.lock-action-recover {
  color: var(--neon-emerald);
  font-weight: 700;
}

/* Biometric Scanner Visual Overlay */
#biometricScanModal,
.biometric-scan-modal {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#biometricScanModal.open,
.biometric-scan-modal.open {
  display: flex !important;
}

.biometric-box {
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.biometric-sensor-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.biometric-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-emerald), transparent);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: laserSweep 1.5s ease-in-out infinite alternate;
}

@keyframes laserSweep {
  0% { top: 5%; opacity: 0.4; }
  100% { top: 90%; opacity: 1; }
}

.biometric-status-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* Google Drive Sync Card */
.gdrive-sync-card {
  background: linear-gradient(135deg, rgba(20, 30, 52, 0.85) 0%, rgba(14, 20, 36, 0.85) 100%);
  border: 1px solid rgba(66, 133, 244, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gdrive-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.35);
}

.btn-gdrive-sync {
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-gdrive-sync:hover {
  background: rgba(66, 133, 244, 0.24);
  border-color: rgba(66, 133, 244, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35);
}

/* PIN Error Shake Animation */
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.pin-dots-row.shake {
  animation: pinShake 0.4s ease-in-out;
}

.pin-dots-row.shake .pin-dot {
  border-color: var(--neon-danger);
  background: var(--neon-danger);
  box-shadow: 0 0 12px var(--neon-danger);
}

/* ==========================================================================
   WEB3 DAPP CONNECT & BROWSER STYLES
   ========================================================================== */
.dapp-connect-header-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.dapp-input-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 18px;
  transition: border-color 0.2s;
}

.dapp-input-inner:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.dapp-input-inner svg {
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.dapp-url-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 12px 0 !important;
  color: #ffffff;
  font-size: 0.86rem;
  outline: none;
}

/* WalletConnect v2 Bar */
.walletconnect-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(14, 25, 48, 0.85) 0%, rgba(9, 16, 32, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.wc-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wc-uri-input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.wc-uri-input:focus {
  border-color: var(--neon-cyan);
}

.wc-connect-btn {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.wc-connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 255, 157, 0.35);
}

/* Active DApps Container & Sessions */
.active-dapps-card {
  background: linear-gradient(135deg, rgba(16, 26, 46, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.active-dapps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.active-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
  animation: pulseGreen 1.6s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px var(--neon-emerald); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--neon-emerald); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px var(--neon-emerald); }
}

.active-count-pill {
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.active-dapps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-dapp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  gap: 12px;
  transition: all 0.2s;
}

.active-dapp-item:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 240, 255, 0.35);
}

.active-dapp-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.active-dapp-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.active-dapp-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.active-dapp-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-dapp-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-dapp-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.btn-disconnect-dapp {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: var(--neon-danger);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-disconnect-dapp:hover {
  background: var(--neon-danger);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 51, 102, 0.45);
}

/* DApp Directory Item Enhancements */
.dapp-card-item {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.dapp-details {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dapp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  gap: 8px;
}

.dapp-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.dapp-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.dapp-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  flex-wrap: wrap;
}

.dapp-chain-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dapp-connect-btn {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-emerald);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dapp-action-buttons .dapp-connect-btn {
  flex: 1 1 130px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dapp-connect-btn:hover {
  background: var(--neon-emerald);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
}

.dapp-connect-btn.connected {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.dapp-disconnect-btn {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.4);
  color: var(--neon-coral, #ff3b30);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dapp-disconnect-btn:hover {
  background: rgba(255, 59, 48, 0.9);
  color: #fff;
  border-color: #ff3b30;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.45);
  transform: translateY(-1px);
}


/* ==========================================================================
   MULTI-NETWORK SELECTOR MODAL STYLES
   ========================================================================== */
.network-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.network-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.network-select-item:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateX(3px);
}

.network-select-item.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.14) 0%, rgba(0, 240, 255, 0.08) 100%);
  border-color: var(--neon-emerald);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.2);
}

.network-select-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.network-info-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-info-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.network-select-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-ping-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-emerald);
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.network-active-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon-emerald);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 0 8px var(--neon-emerald);
}

@media (max-width: 768px) {
  .walletconnect-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .active-dapp-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-disconnect-dapp {
    align-self: flex-end;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   QR CODE SCANNER (CAMERA & SMART DECODER) STYLES
   ========================================================================== */

/* Send Modal QR Scan Triggers */
.btn-scan-qr-link {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.btn-scan-qr-link:hover {
  color: var(--neon-emerald);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.qr-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.qr-input-wrap input {
  padding-right: 44px !important;
  width: 100%;
}

.input-actions-group {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-paste-action {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-paste-action:hover {
  background: rgba(0, 240, 255, 0.24);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.btn-input-qr-action {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: transform 0.2s, filter 0.2s;
}

.btn-input-qr-action:hover {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

/* Send Coin Identity Header Card */
.send-coin-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 21, 38, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.send-coin-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.send-coin-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.send-coin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.send-coin-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.send-coin-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.send-coin-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 255, 157, 0.14);
  color: var(--neon-emerald);
  border: 1px solid rgba(0, 255, 157, 0.35);
  text-transform: uppercase;
}

.send-coin-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* WalletConnect Scan Button */
.wc-scan-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.wc-scan-btn:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

/* High-Tech Camera Viewport & Viewfinder */
.qr-camera-viewport {
  position: relative;
  width: 100%;
  height: 270px;
  background: #04060a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.qr-live-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Radar Backdrop Simulation */
.qr-radar-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
}

.qr-radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.2);
  pointer-events: none;
}

.qr-radar-circle.circle-1 {
  width: 120px;
  height: 120px;
  animation: radarPulse 3s infinite ease-out;
}

.qr-radar-circle.circle-2 {
  width: 200px;
  height: 200px;
  animation: radarPulse 3s infinite ease-out 1.5s;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.qr-radar-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.qr-radar-center-icon {
  opacity: 0.6;
  animation: iconBreathe 2s infinite ease-in-out alternate;
}

@keyframes iconBreathe {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

/* HUD Viewfinder Corners */
.hud-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--neon-cyan);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hud-corner.top-left {
  top: 18px;
  left: 18px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}

.hud-corner.top-right {
  top: 18px;
  right: 18px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}

.hud-corner.bottom-left {
  bottom: 18px;
  left: 18px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}

.hud-corner.bottom-right {
  bottom: 18px;
  right: 18px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

/* Sweeping Laser Beam */
.hud-laser-sweep {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-emerald), var(--neon-cyan), transparent);
  box-shadow: 0 0 16px var(--neon-cyan), 0 0 8px var(--neon-emerald);
  z-index: 12;
  pointer-events: none;
  animation: hudLaser 1.8s ease-in-out infinite alternate;
}

@keyframes hudLaser {
  0% { top: 18px; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: calc(100% - 20px); opacity: 0.4; }
}

/* Rotating Reticle */
.hud-target-reticle {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1px dashed rgba(0, 255, 157, 0.4);
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  animation: reticleRotate 12s linear infinite;
}

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

/* Live Status Overlay */
.hud-status-tag {
  position: absolute;
  bottom: 12px;
  background: rgba(5, 7, 13, 0.88);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 15;
  backdrop-filter: blur(8px);
}

/* Quick Demo Pills */
.qr-quick-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.qr-quick-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--neon-cyan);
  color: var(--text-white);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  transform: translateX(3px);
}

/* ============================================================================
   HOME PAGE (PORTAL LANDING & ONBOARDING / UNLOCK GATE)
   ============================================================================ */
.portal-home-screen {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 16px 60px;
  animation: homeFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.home-hero-container {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-logo-glow {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.22), rgba(0, 255, 157, 0.18));
  border: 1px solid rgba(255, 183, 3, 0.55);
  box-shadow: 0 0 45px rgba(255, 183, 3, 0.4), 0 0 25px rgba(0, 255, 157, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 18px;
  animation: logoPulse 4s ease-in-out infinite alternate;
}

.home-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.home-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.home-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-badge-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Home Screen: Existing Wallet Unlock Card */
.home-unlock-card {
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid var(--border-medium);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 255, 157, 0.12);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.home-vault-profile-pill {
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Home Screen: 3-Card Onboarding Matrix (No wallet / Options) */
.home-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}

.home-action-card {
  background: rgba(14, 20, 36, 0.75);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.home-action-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.home-action-card.primary {
  border-color: rgba(0, 255, 157, 0.4);
}

.home-action-card.primary:hover {
  border-color: var(--neon-emerald);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 157, 0.35);
}

.home-card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.home-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.home-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

.home-card-action-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

/* ============================================================================
   STANDARDIZED 380PX CONTAINER SYSTEM (LOCK SCREEN, AUTHENTICATORS, DAPPS & MODALS)
   Uniform Web3 Crypto Wallet Standard matching the 380px Portfolio Vault Card
   ============================================================================ */
#txAuthModal .modal-dialog,
.tx-auth-dialog,
#universalSecurityAuthModal .modal-dialog,
#biometricScanModal .modal-dialog,
#enableBiometricsPromptModal .modal-dialog,
#resetMasterPasswordModal .modal-dialog,
#dappConnectModal .modal-dialog,
#gdriveBackupModal .modal-dialog,
#walletAccountMenuModal .modal-dialog,
#networkSelectorModal .modal-dialog,
#deleteWalletConfirmModal .modal-dialog,
#editNameModal .modal-dialog,
#tokenPickerModal .modal-dialog,
#slippageModal .modal-dialog,
#qrScannerModal .modal-dialog,
#sendModal .modal-dialog,
#receiveModal .modal-dialog {
  max-width: 380px !important;
  width: 95% !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

#txAuthModal .modal-dialog,
.tx-auth-dialog {
  border-radius: 20px !important;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(12, 17, 32, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 255, 0.12) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

#txAuthModal .modal-header {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border-subtle);
}

#txAuthModal .modal-title {
  font-size: 0.95rem !important;
  font-weight: 700;
  gap: 8px;
}

#txAuthModal .modal-close-btn {
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
}

.tx-auth-modal-body {
  padding: 12px 16px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 8px !important;
}

/* Security Notice */
.tx-auth-notice {
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.70rem;
  line-height: 1.35;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-auth-notice-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Amount / Action Preview Badge */
.tx-auth-amount-badge {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--neon-emerald) !important;
  text-align: center;
  padding: 6px 12px !important;
  background: rgba(0, 255, 157, 0.08) !important;
  border: 1px solid rgba(0, 255, 157, 0.25) !important;
  border-radius: 8px !important;
  width: 100%;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Details Card */
.tx-auth-details-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.72rem;
}

.tx-auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tx-auth-row-label {
  color: var(--text-muted);
  font-size: 0.70rem;
}

.tx-auth-row-val {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.72rem;
}

/* Fast 1-Tap Biometric Button */
.tx-auth-biometric-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 8px;
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tx-auth-biometric-btn:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
  transform: translateY(-1px);
}

.tx-auth-biometric-btn:active {
  transform: translateY(0);
}

/* Credential Mode Switcher: PIN vs Password */
.tx-auth-mode-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.tx-auth-tab-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tx-auth-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.tx-auth-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Divider */
.tx-auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 1px 0;
}

.tx-auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tx-auth-divider-text {
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* 6 PIN Dots */
.tx-auth-dots-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 4px !important;
}

.tx-auth-pin-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}

.tx-auth-pin-dot.filled {
  background: var(--neon-cyan) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 8px var(--neon-cyan) !important;
  transform: scale(1.2) !important;
}

/* Standard Keypad matching Lock Screen */
.tx-auth-keypad {
  display: grid !important;
  grid-template-columns: repeat(3, 56px) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 18px !important;
  max-width: 250px !important;
  margin: 6px auto 10px !important;
}

.tx-auth-keypad .keypad-btn {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-white) !important;
  transition: all 0.15s ease !important;
  margin: 0 auto !important;
}

.tx-auth-keypad .keypad-btn:hover {
  background: rgba(0, 255, 157, 0.12) !important;
  border-color: var(--neon-emerald) !important;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.25) !important;
  transform: scale(1.05) !important;
}

.tx-auth-keypad .keypad-btn:active {
  transform: scale(0.95) !important;
  background: rgba(0, 245, 255, 0.22) !important;
}

/* Cancel Action Button */
.tx-auth-cancel-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--neon-danger);
  background: rgba(255, 51, 102, 0.06);
  border: 1px solid rgba(255, 51, 102, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.tx-auth-cancel-btn:hover {
  background: rgba(255, 51, 102, 0.14);
  border-color: var(--neon-danger);
}

/* ============================================================================
   FULL WEB3 IN-APP DAPP BROWSER ("BRWOJ") STYLES
   ============================================================================ */
.modal-backdrop.in-app-browser-backdrop {
  z-index: 4100;
  padding: 12px;
}

.modal-dialog.in-app-browser-dialog {
  max-width: 1140px;
  width: 96vw;
  height: 92vh;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: browserPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes browserPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Browser Chrome Header Bar */
.browser-chrome-header {
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
}

.browser-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.browser-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.browser-icon-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
  transform: translateY(-1px);
}

/* Omnibox / URL Bar */
.browser-omnibox-form {
  flex: 1;
  max-width: 580px;
  margin: 0 8px;
}

.browser-omnibox-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0 12px;
  height: 38px;
  transition: all 0.2s;
}

.browser-omnibox-wrapper:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.browser-ssl-badge {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.browser-omnibox-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.84rem;
  width: 100%;
}

.browser-network-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(240, 185, 11, 0.15);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--neon-gold);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

/* Browser Action Controls */
.browser-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.browser-action-btn.external-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-emerald);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.browser-action-btn.external-btn:hover {
  background: var(--neon-emerald);
  color: #000;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.45);
}

.browser-connect-vault-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
  color: #000;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
  white-space: nowrap;
}

.browser-connect-vault-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.55);
}

.browser-account-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulseDot 2s infinite;
}

.browser-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: var(--neon-danger);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.browser-close-btn:hover {
  background: var(--neon-danger);
  color: #fff;
  transform: rotate(90deg);
}

/* Quick Session Status Bar */
.browser-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  gap: 10px;
  flex-wrap: wrap;
}

.browser-quick-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.browser-quick-link:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: #fff;
}

/* Browser Viewport Container */
.browser-viewport-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #06090e;
  overflow: hidden;
}

#inAppBrowserIframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0d14;
}

.browser-frame-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.browser-fallback-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Responsive Browser Adjustments */
@media (max-width: 768px) {
  .modal-dialog.in-app-browser-dialog {
    width: 98vw;
    height: 95vh;
    padding: 0;
  }
  .browser-chrome-header {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  .browser-omnibox-form {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 0;
  }
  .browser-account-pill {
    display: none;
  }
}

/* Biometric Scan HUD Modal Styling */
#biometricScanModal {
  z-index: 99999 !important;
}

#biometricScanModal .modal-dialog {
  max-width: 380px !important;
  width: 92% !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.18) !important;
  background: rgba(12, 17, 32, 0.96) !important;
  overflow: hidden;
}

/* Dual Mode Switcher Tabs for Biometric Modal */
.bio-mode-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.bio-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bio-mode-tab:hover {
  color: #fff;
}

.bio-mode-tab.active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

/* 1. 3D Cyberpunk Face ID Viewport & Reticle */
.face-id-viewport {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35), inset 0 0 25px rgba(0, 255, 157, 0.2);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.face-id-viewport.hexagonal {
  border-radius: 0;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.face-id-viewport.verified-pulse {
  border-color: #00ff9d !important;
  box-shadow: 0 0 35px #00ff9d, inset 0 0 30px rgba(0, 255, 157, 0.6) !important;
  animation: verifiedGreenPulse 0.8s ease-in-out infinite alternate;
}

@keyframes verifiedGreenPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px #00ff9d, inset 0 0 20px rgba(0, 255, 157, 0.4);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 45px #00ff9d, 0 0 60px rgba(0, 255, 157, 0.5), inset 0 0 35px rgba(0, 255, 157, 0.7);
  }
}

/* 4 Corner Targeting Reticles */
.face-reticle-corners {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 4;
}

.face-reticle-corners .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--neon-cyan);
  border-style: solid;
  opacity: 0.85;
  transition: all 0.3s;
}

.corner-tl { top: 0; left: 0; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 8px; }
.corner-tr { top: 0; right: 0; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 8px; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 8px; }
.corner-br { bottom: 0; right: 0; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 8px; }

/* Face Mesh Wireframe */
.face-id-mesh {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Horizontal Laser Sweep */
.face-laser-line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--neon-emerald), #fff, var(--neon-emerald), transparent);
  box-shadow: 0 0 16px var(--neon-emerald), 0 0 8px #fff;
  z-index: 5;
  pointer-events: none;
  animation: faceLaserScan 1.6s ease-in-out infinite alternate;
}

@keyframes faceLaserScan {
  0% { top: 12%; opacity: 0.35; }
  50% { opacity: 1; height: 3px; }
  100% { top: 86%; opacity: 0.35; }
}

/* Video and 3D Canvas Layers */
#faceMeshVideo,
#faceCameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

#faceMeshCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
}

/* Cyberpunk HUD Status Text */
.cyber-hud-status {
  font-family: var(--font-mono, "SF Mono", Monaco, Inconsolata, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  min-height: 24px;
  line-height: 1.35;
  margin: 6px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}

/* Live Camera Toggle Button */
.bio-cam-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--neon-cyan);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.bio-cam-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--neon-cyan);
  color: #fff;
}

/* Universal Security Authorization Modal Styles */
.sec-auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .sec-auth-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sec-auth-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sec-auth-choice-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}

.sec-auth-choice-btn.active {
  background: rgba(0, 255, 157, 0.12);
  border-color: var(--neon-emerald, #00ff9d);
  color: var(--neon-emerald, #00ff9d);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.25);
}

.sec-auth-choice-btn .choice-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.auth-verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.35);
  color: var(--neon-emerald, #00ff9d);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.15);
}

.sec-factor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 64px;
  height: 64px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  overflow: hidden;
}

.sec-factor-row:hover {
  border-color: rgba(0, 240, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sec-factor-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sec-factor-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sec-factor-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}

.sec-factor-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sec-factor-badge {
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.sec-factor-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sec-factor-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.sec-factor-actions .token-mini-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.sec-factor-actions .token-mini-btn.btn-compact {
  padding: 5px 8px;
  font-size: 0.72rem;
}

/* Tx Auth Biometric Actions Dual Buttons */
.tx-auth-bio-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.tx-auth-biometric-btn.face-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 255, 163, 0.18));
  border-color: rgba(0, 240, 255, 0.45);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.tx-auth-biometric-btn.face-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.28);
  transform: translateY(-1px);
}

.tx-auth-biometric-btn.touch-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 8px 12px;
}

.tx-auth-biometric-btn.touch-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  color: #fff;
}

/* 2. Touch ID Viewport */
.biometric-hud-viewport {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.4);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.biometric-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--neon-cyan);
}

.biometric-laser-line {
  position: absolute;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-emerald), transparent);
  box-shadow: 0 0 12px var(--neon-emerald);
  top: 15%;
  left: 10%;
  animation: bioLaserScan 1.6s ease-in-out infinite alternate;
}

@keyframes bioLaserScan {
  0% { top: 15%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 85%; opacity: 0.3; }
}

/* ==========================================================================
   LAYER-2 RUNTIME SHIELD & ANTI-COPY / ANTI-SCRAPE STYLING
   ========================================================================== */
html, body {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Allow text input and selection ONLY in form fields */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Disallow dragging images or branding */
img, svg, a, button {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

/* ==========================================================================
   ADD COIN MODAL DUAL-MODE TABS & SEARCH LIST
   ========================================================================== */
.add-coin-tabs-header {
  display: flex;
  background: var(--bg-deep);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  gap: 6px;
  margin-bottom: 14px;
}

.add-coin-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.add-coin-tab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.add-coin-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 255, 163, 0.12)) !important;
  color: #fff !important;
  border-color: rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.22);
}

.search-coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.search-coin-row:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-add-coin-pill:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   MASTER UID RECOVERY: SEED WORDS GRID & PILLS
   -------------------------------------------------------------------------- */
.seed-words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(4, 7, 13, 0.7);
  border: 1px dashed rgba(0, 255, 157, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px;
}

@media (max-width: 480px) {
  .seed-words-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
  }
}

.seed-word-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.seed-word-pill:hover {
  border-color: rgba(0, 255, 157, 0.5);
  background: rgba(0, 255, 157, 0.06);
}

.seed-word-pill .seed-num {
  font-size: 0.68rem;
  color: var(--neon-emerald);
  font-weight: 700;
  min-width: 18px;
  opacity: 0.85;
}

.seed-word-pill .seed-val {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   STEP 3: SEED PHRASE RE-VERIFICATION CHIPS & SLOTS
   -------------------------------------------------------------------------- */
.verify-seed-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.verify-seed-chip:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
  transform: translateY(-1px);
}

.verify-seed-chip:disabled,
.verify-seed-chip.used {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  transform: none;
}

.verify-seed-slot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  animation: fadeIn 0.15s ease-out;
}

.verify-seed-slot .slot-num {
  font-size: 0.68rem;
  color: var(--neon-emerald);
  font-weight: 700;
}

.verify-seed-slot .slot-val {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   WORLD CURRENCY SELECTOR MODAL & TOP 5 GRID
   -------------------------------------------------------------------------- */
.top-currency-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .top-currency-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .top-currency-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.top-currency-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-currency-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.top-currency-card.active {
  border-color: var(--neon-emerald);
  background: rgba(0, 255, 157, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
}

.top-curr-flag {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.top-curr-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.top-curr-sym {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neon-emerald);
}

.top-curr-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.top-curr-rate {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  margin-top: 3px;
}

.top-curr-badge {
  font-size: 0.62rem;
  color: var(--neon-emerald);
  font-weight: 800;
  margin-top: 2px;
}

.currency-list-container {
  max-height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.currency-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-list-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateX(2px);
}

.currency-list-row.active {
  border-color: var(--neon-emerald);
  background: rgba(0, 255, 157, 0.08);
}

/* ==========================================================================
   MOBILE FIT-TO-SCREEN & SAFE-AREA OPTIMIZATION
   Fixes top/bottom cut-off, horizontal fitting, and lock/login screen responsiveness
   ========================================================================== */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Fullpage Auth Gates (Lock Screen & Onboarding) */
  .fullpage-auth-gate,
  .wallet-lock-screen {
    padding-top: max(8px, env(safe-area-inset-top, 8px)) !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    padding-left: max(8px, env(safe-area-inset-left, 8px)) !important;
    padding-right: max(8px, env(safe-area-inset-right, 8px)) !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  .lock-card-box {
    width: 100% !important;
    max-width: 380px !important;
    margin: auto !important;
    padding: 12px 14px !important;
  }

  .onboard-card-box {
    width: 100% !important;
    max-width: 380px !important;
    margin: auto !important;
    padding: 16px 14px !important;
  }

  /* Modals fit to screen */
  .modal-backdrop {
    padding: max(10px, env(safe-area-inset-top, 10px)) max(8px, env(safe-area-inset-left, 8px)) max(12px, env(safe-area-inset-bottom, 12px)) max(8px, env(safe-area-inset-right, 8px)) !important;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 380px !important;
    margin: auto !important;
    max-height: calc(100dvh - 30px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Height-constrained mobile devices (e.g. phones with browser address & navigation bars active) */
@media (max-height: 750px) {
  .lock-card-box {
    padding: 8px 12px !important;
    width: 100% !important;
    max-width: 380px !important;
  }

  .lock-brand-glow {
    width: 46px !important;
    height: 52px !important;
    margin-bottom: 2px !important;
  }

  .lock-account-pill {
    padding: 3px 8px !important;
    margin-top: 2px !important;
    margin-bottom: 6px !important;
  }

  .lock-acc-name {
    font-size: 0.74rem !important;
    max-width: 85px !important;
  }

  .lock-acc-addr {
    font-size: 0.7rem !important;
  }

  .lock-acc-uid {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
  }

  .lock-subtitle {
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
  }

  .pin-dots-row {
    gap: 10px !important;
    margin-bottom: 6px !important;
  }

  .pin-dot {
    width: 10px !important;
    height: 10px !important;
  }

  .pin-error-text {
    min-height: 12px !important;
    font-size: 0.7rem !important;
    margin-bottom: 2px !important;
  }

  .keypad-grid {
    grid-template-columns: repeat(3, 46px) !important;
    gap: 4px 12px !important;
    max-width: 220px !important;
    margin: 0 auto 6px !important;
  }

  .keypad-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    font-size: 1.15rem !important;
  }

  .lock-biometric-row {
    margin-top: 2px !important;
    margin-bottom: 6px !important;
    gap: 6px !important;
  }

  .btn-biometric-unlock {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }

  .lock-alt-links {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    gap: 6px !important;
  }

  .link-btn {
    font-size: 0.7rem !important;
    padding: 1px 2px !important;
  }

  .lock-bottom-actions {
    margin-top: 4px !important;
    padding-top: 6px !important;
    gap: 6px !important;
    font-size: 0.68rem !important;
  }

  .lock-action-link {
    font-size: 0.68rem !important;
  }
}

/* Very compact or landscape mobile view (height <= 600px) */
@media (max-height: 600px) {
  .fullpage-auth-gate,
  .wallet-lock-screen {
    justify-content: flex-start !important;
  }

  .lock-card-box {
    margin: 4px auto !important;
    padding: 6px 10px !important;
  }

  .lock-brand-glow {
    width: 38px !important;
    height: 44px !important;
  }

  .keypad-grid {
    grid-template-columns: repeat(3, 40px) !important;
    gap: 3px 10px !important;
  }

  .keypad-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    font-size: 1.05rem !important;
  }
}

/* Narrow screen devices (width <= 360px) */
@media (max-width: 360px) {
  .lock-card-box {
    width: calc(100% - 10px) !important;
    padding: 8px 8px !important;
  }

  .keypad-grid {
    grid-template-columns: repeat(3, 44px) !important;
    gap: 4px 8px !important;
  }

  .keypad-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  .btn-biometric-unlock {
    padding: 6px 6px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .lock-alt-links {
    gap: 4px !important;
  }

  .lock-bottom-actions {
    gap: 4px !important;
  }
}




