@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-core: #07080c;
  --bg-deep: #030407;
  --bg-sidebar: rgba(11, 13, 20, 0.85);
  
  --card: rgba(16, 19, 28, 0.72);
  --card-solid: #11141e;
  --card-hover: rgba(22, 27, 40, 0.88);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 255, 255, 0.16);
  
  --text: #f4f6fc;
  --text-pure: #ffffff;
  --muted: #848da0;
  --dim: #4d5466;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 152, 234, 0.55);
  
  --primary: #0098ea;
  --primary-hover: #00a8ff;
  --primary-gradient: linear-gradient(135deg, #0098ea 0%, #0077c8 100%);
  --primary-glow: rgba(0, 152, 234, 0.35);
  
  --danger: #ff4757;
  --danger-glow: rgba(255, 71, 87, 0.25);
  --success: #00d182;
  --success-glow: rgba(0, 209, 130, 0.25);
  --warning: #ffa502;
  --purple: #7b5cff;
  
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 50px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 152, 234, 0.06);
  --shadow-bento: 0 16px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base Reset & Smooth Rendering */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-core);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Cosmic Background Lights */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 152, 234, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 12% 35%, rgba(123, 92, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 88% 75%, rgba(0, 209, 130, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(27, 42, 78, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Root App Shell */
#app {
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0 !important;
}

/* General Screen Switching Behavior */
.screen {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Center onboarding/auth screens on Desktop & Mobile */
.screen:not(.active) {
  display: none !important;
}

.screen:not(#screen-dashboard).active {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  box-sizing: border-box;
}

.screen:not(#screen-dashboard) .card {
  max-width: 470px;
  margin: 0 auto;
}

.screen:not(#screen-dashboard) .card.card-wide {
  max-width: 530px;
}

/* ==========================================================================
   GLASS CARDS & SPOTLIGHT ENGINE (Linear / Raycast style)
   ========================================================================== */
.card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  width: 100%;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  pointer-events: none;
}

/* Dynamic Spotlight Border effect tracking mouse */
.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(0, 152, 234, 0.32), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* Hero Emblem & Iconography */
.hero-emblem-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-wrap.mini-emblem {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.hero-emblem-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(circle, rgba(0, 152, 234, 0.45) 0%, rgba(123, 92, 255, 0.2) 60%, transparent 80%);
  filter: blur(18px);
  border-radius: 50%;
  animation: emblemPulse 4.5s ease-in-out infinite alternate;
}

@keyframes emblemPulse {
  0% { transform: scale(0.88); opacity: 0.55; }
  100% { transform: scale(1.18); opacity: 0.95; }
}

.hero-emblem {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(145deg, #162238, #0a0f1a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.22);
}

.hero-emblem-wrap.mini-emblem .hero-emblem {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.hero-emblem svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(0, 152, 234, 0.55));
}

.hero-emblem-wrap.mini-emblem svg {
  width: 32px;
  height: 32px;
}

/* Typography Hierarchy */
h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--text-pure);
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #0098ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-tagline {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 18px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text-pure);
}

.muted {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 4px 0 20px;
}

/* Security Badges Pill Row */
.badge-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: #a8b4cc;
  letter-spacing: 0.02em;
}

.badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-ton { background: #0098ea; box-shadow: 0 0 7px #0098ea; }
.dot-usdt { background: #26a17b; box-shadow: 0 0 7px #26a17b; }
.dot-btc { background: #f7931a; box-shadow: 0 0 7px #f7931a; }
.dot-trx { background: #eb0029; box-shadow: 0 0 7px #eb0029; }

/* Security Features Box */
.security-features {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 13px 10px;
  margin-bottom: 24px;
}

.sec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.sec-item svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

/* Warnings */
.warn {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.25);
  color: #ff8591;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.warn svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--danger);
}

/* Inputs & Form Elements */
.input-wrapper {
  position: relative;
  margin-bottom: 14px;
  text-align: left;
}

.input-wrapper svg.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--dim);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrapper:focus-within svg.field-icon {
  color: var(--primary);
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 13, 20, 0.75);
  color: var(--text-pure);
  font-size: 14.5px;
  font-family: var(--font-sans);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-has-icon input {
  padding-left: 44px;
}

input:focus, textarea:focus {
  border-color: var(--border-focus);
  background: rgba(13, 17, 27, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 152, 234, 0.2);
}

input::placeholder, textarea::placeholder {
  color: var(--dim);
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 115px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0ba4fb 0%, #0081dc 100%);
  box-shadow: 0 6px 26px rgba(0, 152, 234, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1.5px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1.5px);
}

.btn-danger-outline {
  background: rgba(255, 71, 87, 0.06);
  color: #ff5f6e;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger-outline:hover:not(:disabled) {
  background: rgba(255, 71, 87, 0.14);
  border-color: rgba(255, 71, 87, 0.45);
}

.btn-close {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
}

.btn-close:hover {
  color: var(--text-pure);
}

/* Error Notice */
.error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
  margin: 6px 0 10px;
  text-align: center;
  transition: all 0.2s ease;
}

/* Mnemonic Grid */
.mnemonic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}

@media (min-width: 500px) {
  .mnemonic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mnemonic-word {
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.18s ease;
}

.mnemonic-word:hover {
  border-color: rgba(0, 152, 234, 0.35);
  background: rgba(14, 18, 28, 0.85);
  transform: translateY(-1px);
}

.mnemonic-word span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  width: 22px;
  display: inline-block;
}

/* Checkbox Row */
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  margin: 16px 0 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Verify Fields */
.verify-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 16px 0 12px;
}

.verify-fields > div {
  background: rgba(10, 13, 20, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-fields > div:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 152, 234, 0.16);
}

.verify-fields label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.verify-fields input {
  background: transparent;
  border: none;
  padding: 4px 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
  box-shadow: none;
}

.verify-fields input:focus {
  box-shadow: none;
  background: transparent;
}

/* Ton Version Selector */
.version-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(10, 13, 20, 0.55);
  cursor: pointer;
  text-align: left;
  margin-bottom: 10px;
  transition: all 0.22s ease;
  position: relative;
}

.version-option:hover {
  background: rgba(16, 21, 33, 0.75);
  border-color: rgba(255, 255, 255, 0.14);
}

.version-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.version-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(0, 152, 234, 0.09);
  box-shadow: 0 0 20px rgba(0, 152, 234, 0.14);
}

.version-option .v-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-pure);
}

.version-option .v-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.4;
}

.version-option .v-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
  margin-top: 8px;
  color: #828ca3;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.version-option .v-balance {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--success);
}

/* ==========================================================================
   SCREEN 8: FULL DESKTOP WEB3 WALLET DASHBOARD ARCHITECTURE
   ========================================================================== */
#screen-dashboard {
  width: 100%;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#screen-dashboard.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Outer Shell: Desktop Grid with Sidebar + Main Content */
.dashboard-shell {
  display: flex;
  gap: 28px;
  width: 100%;
  position: relative;
  align-items: flex-start;
}

/* ==========================================================================
   DESKTOP LEFT SIDEBAR (Linear / Raycast executive style)
   ========================================================================== */
.desktop-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 48px);
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow-bento);
  z-index: 10;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-emblem-small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #18233a, #0d1424);
  border: 1px solid rgba(0, 152, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 152, 234, 0.25);
}

.brand-emblem-small svg {
  width: 24px;
  height: 24px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #9da8be;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}

.nav-item-icon svg {
  width: 18px;
  height: 18px;
}

.nav-item-text {
  flex: 1;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-pure);
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(0, 152, 234, 0.12);
  color: #ffffff;
  border-color: rgba(0, 152, 234, 0.28);
  box-shadow: 0 4px 16px rgba(0, 152, 234, 0.15);
}

.nav-item.active .nav-item-icon {
  color: var(--primary);
}

.nav-active-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(0, 152, 234, 0.2);
  color: #00a8ff;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.nav-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 12px;
}

/* Sidebar Bottom: Health + Lock */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.network-status-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
}

.net-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.net-status-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-pure);
}

.net-status-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.net-status-meta .sep {
  color: var(--dim);
}

.sidebar-lock-action {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #c2cbdc;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-lock-action svg {
  width: 16px;
  height: 16px;
}

.sidebar-lock-action:hover {
  background: rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.3);
  color: #ff6e7c;
}

/* ==========================================================================
   MAIN DASHBOARD CONTENT AREA
   ========================================================================== */
.dashboard-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Navbar */
.dash-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  min-height: 52px;
}

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

.mobile-brand-wrap {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0098ea, #7b5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 152, 234, 0.35);
}

.mobile-brand-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mobile-app-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-pure);
  line-height: 1.2;
}

.mobile-net-pill {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Desktop Active Account Pill */
.desktop-account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-account-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.account-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0098ea, #7b5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.account-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.account-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.account-sub {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}

.network-badge-desktop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 152, 234, 0.08);
  border: 1px solid rgba(0, 152, 234, 0.22);
  font-size: 12px;
  font-weight: 600;
  color: #8acaff;
}

/* Nav Actions (Refresh & Lock) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-pure);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  color: #aeb9cf;
  transition: transform 0.3s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1.5px);
}

.icon-btn:hover svg {
  color: #ffffff;
}

.icon-btn:active {
  transform: scale(0.92);
}

#btn-refresh.spinning svg {
  animation: spinAction 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Pulse Dot Animation */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: livePulse 2.2s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

/* ==========================================================================
   BENTO HERO SECTION: TOTAL BALANCE + SECURITY STATUS CARD
   ========================================================================== */
.dashboard-hero-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  width: 100%;
}

/* Masterpiece Total Balance Card */
.total-card {
  position: relative;
  background: linear-gradient(135deg, #0f244a 0%, #0c1833 45%, #141628 100%);
  border: 1px solid rgba(0, 152, 234, 0.32);
  border-radius: var(--radius-xl);
  padding: 30px 28px 24px;
  color: white;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(0, 152, 234, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.total-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 152, 234, 0.4) 0%, rgba(123, 92, 255, 0.18) 50%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.total-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.total-badge-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.total-card .muted {
  color: #9cb1d6;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.currency-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.change-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(0, 209, 130, 0.16);
  border: 1px solid rgba(0, 209, 130, 0.32);
  color: #00e68f;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 20px;
}

.change-indicator-pill svg {
  width: 13px;
  height: 13px;
}

.sparkline-container {
  width: 74px;
  height: 24px;
}

.sparkline-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Total USD Text (Crucial ID) */
.total-usd {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-family: var(--font-sans);
  color: #ffffff;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  margin: 4px 0 24px;
  line-height: 1.1;
}

/* Quick Action Shortcuts inside Card */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: #e1e7f5;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-item:hover {
  transform: translateY(-2.5px);
}

.quick-action-item:active {
  transform: scale(0.93);
}

.qa-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.quick-action-item:hover .qa-icon-circle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.qa-icon-circle svg {
  width: 19px;
  height: 19px;
}

.quick-action-item span {
  font-size: 12px;
  font-weight: 600;
  color: #d6deee;
  letter-spacing: -0.01em;
}

/* Bento Column 2: Security & Portfolio Health Card */
.bento-security-card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-bento);
  text-align: left;
}

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

.bento-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shield-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 152, 234, 0.12);
  border: 1px solid rgba(0, 152, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-badge-icon svg {
  width: 20px;
  height: 20px;
}

.bento-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0;
  line-height: 1.2;
}

.bento-subheading {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.bento-live-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: rgba(0, 209, 130, 0.14);
  border: 1px solid rgba(0, 209, 130, 0.26);
  color: #00d182;
  border-radius: 20px;
}

/* Security Rows */
.bento-sec-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.bento-sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: background 0.2s ease;
}

.bento-sec-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.dot-green {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.status-indicator-dot.dot-blue {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.bento-sec-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sec-row-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pure);
}

.sec-row-val {
  font-size: 11px;
  color: var(--muted);
}

.sec-pill-ok {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(0, 209, 130, 0.12);
  color: #00d182;
  border-radius: 12px;
}

.sec-pill-blue {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(0, 152, 234, 0.15);
  color: #5ec2ff;
  border-radius: 12px;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-sync-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.footer-check-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d8e8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.footer-check-btn:hover {
  background: rgba(0, 152, 234, 0.15);
  border-color: rgba(0, 152, 234, 0.3);
  color: #fff;
}

/* ==========================================================================
   MAIN TABLE / ASSET SECTION: DESKTOP & MOBILE
   ========================================================================== */
.assets-desktop-table-card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  box-shadow: var(--shadow-bento);
  text-align: left;
}

.assets-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-count-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 12px;
}

.table-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-pill {
  background: transparent;
  border: none;
  color: #8f9bb3;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--text-pure);
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.asset-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.asset-search-field svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
}

.asset-search-field input {
  padding: 7px 12px 7px 34px;
  border-radius: 9px;
  font-size: 12.5px;
  margin-bottom: 0;
  width: 210px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-search-field input:focus {
  width: 230px;
  border-color: var(--border-focus);
}

/* Desktop Table Columns Header */
.desktop-table-columns {
  display: grid;
  grid-template-columns: 240px 130px 1fr 140px 180px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.desktop-table-columns .col-balance {
  text-align: right;
}

.desktop-table-columns .col-usd {
  text-align: right;
}

.desktop-table-columns .col-actions {
  text-align: right;
  padding-right: 6px;
}

/* Dynamic Asset List container */
.asset-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   ASSET ROW (Injected dynamically by app.js)
   Structure:
   .asset-row[data-asset]
     .asset-icon
     .asset-info
       .asset-name
       .asset-network
     .asset-balance
       .asset-amount#amt-{key}
       .asset-usd#usd-{key}
     .asset-actions
       button[data-receive]
       button[data-send]
   ========================================================================== */
.asset-row {
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.asset-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  pointer-events: none;
}

.asset-row:hover {
  background: rgba(22, 28, 44, 0.85);
  border-color: rgba(0, 152, 234, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 152, 234, 0.1);
}

.asset-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  position: relative;
}

.asset-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.asset-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.asset-name {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-pure);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-network {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 3px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 5px;
}

.asset-balance {
  text-align: right;
  flex-shrink: 0;
  padding: 0 8px;
}

.asset-amount {
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-mono);
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.asset-usd {
  color: #8c97ad;
  font-size: 12.5px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Action Buttons inside row */
.asset-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 6px;
}

.asset-actions button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: #d2dbee;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.asset-actions button[data-receive]:hover {
  background: rgba(0, 152, 234, 0.18);
  border-color: rgba(0, 152, 234, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.asset-actions button[data-send]:hover {
  background: rgba(123, 92, 255, 0.2);
  border-color: rgba(123, 92, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.asset-actions button:active {
  transform: scale(0.95);
}

/* On wide desktop, stretch asset-row into clean columns */
@media (min-width: 900px) {
  .asset-row {
    display: grid;
    grid-template-columns: 240px 130px 1fr 140px 180px;
    align-items: center;
    padding: 16px 22px;
  }
  
  .asset-row .asset-info {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  /* Put icon and text side-by-side in column 1 */
  .asset-row > .asset-icon {
    grid-column: 1;
    display: none; /* Hide top-level duplicate if rendered */
  }
  
  /* Fix DOM ordering from app.js */
  .asset-row {
    display: flex;
  }
  
  .asset-info {
    flex: 0 0 240px;
  }
  
  .asset-balance {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    align-items: center;
  }
  
  .asset-amount {
    font-size: 16px;
    min-width: 120px;
  }
  
  .asset-usd {
    font-size: 14px;
    min-width: 90px;
    margin-top: 0;
  }
  
  .asset-actions {
    flex: 0 0 170px;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: block;
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal .card {
  max-width: 430px;
  background: rgba(16, 20, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 70px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 152, 234, 0.18);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .card {
  transform: scale(1) translateY(0);
}

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

.modal-header h2 {
  font-size: 19px;
  font-weight: 700;
}

.modal-close-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  padding: 0;
}

.modal-close-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: rotate(90deg);
}

/* QR Container */
.qr-container {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 0 auto 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

#receive-qr {
  display: block;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

/* Address Box */
.address-box {
  background: rgba(6, 8, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-all;
  color: #bcc8e2;
  margin-bottom: 18px;
  user-select: all;
  border-left: 3.5px solid var(--primary);
  text-align: left;
}

/* Send Input Helpers */
.amount-input-group {
  position: relative;
  margin-bottom: 4px;
}

.btn-max-amount {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 152, 234, 0.16);
  border: 1px solid rgba(0, 152, 234, 0.35);
  color: #0098ea;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-max-amount:hover {
  background: rgba(0, 152, 234, 0.3);
  color: #ffffff;
}

#send-balance-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin: 4px 0 14px;
}

/* Spinner in Modal Sending */
.spinner-container {
  padding: 24px 0 12px;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 3.5px solid rgba(0, 152, 234, 0.16);
  border-top-color: var(--primary);
  border-right-color: var(--purple);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spinAction 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 24px rgba(0, 152, 234, 0.35);
}

#sending-status {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

/* Floating Toast */
.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.95);
  background: rgba(20, 25, 38, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 152, 234, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Mobile Bottom Navigation (Hidden on PC) */
.mobile-bottom-navigation {
  display: none;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */

/* Tablet & Smaller Desktop (< 1100px) */
@media (max-width: 1100px) {
  .dashboard-hero-bento {
    grid-template-columns: 1fr;
  }
  
  .desktop-sidebar {
    width: 230px;
  }
}

/* Mobile & Small Screens (< 900px) */
@media (max-width: 899px) {
  #app {
    padding: 14px 12px 90px;
  }

  .desktop-sidebar {
    display: none !important;
  }

  .desktop-table-columns {
    display: none;
  }

  .desktop-account-pill,
  .network-badge-desktop {
    display: none;
  }

  .mobile-brand-wrap {
    display: flex;
  }

  .dashboard-shell {
    flex-direction: column;
    gap: 16px;
  }

  .dashboard-hero-bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .total-card {
    padding: 22px 18px 18px;
  }

  .total-usd {
    font-size: 34px;
    margin-bottom: 18px;
  }

  .qa-icon-circle {
    width: 40px;
    height: 40px;
  }

  .assets-desktop-table-card {
    padding: 18px 14px;
  }

  .table-actions-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .asset-search-field {
    width: 100%;
  }

  .asset-search-field input {
    width: 100%;
  }

  .asset-search-field input:focus {
    width: 100%;
  }

  .asset-row {
    padding: 12px 14px;
    gap: 12px;
  }

  .asset-icon {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .asset-name {
    font-size: 14.5px;
  }

  .asset-amount {
    font-size: 14px;
  }

  .asset-usd {
    font-size: 12px;
  }

  .asset-actions {
    flex-direction: column;
    gap: 4px;
    margin-left: 4px;
  }

  .asset-actions button {
    padding: 5px 9px;
    font-size: 11px;
  }

  /* Fixed Mobile Bottom Bar */
  .mobile-bottom-navigation {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(10, 13, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .mob-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #8c97ad;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    transition: all 0.2s ease;
  }

  .mob-tab-btn svg {
    width: 20px;
    height: 20px;
  }

  .mob-tab-btn.active,
  .mob-tab-btn:hover {
    color: var(--primary);
  }
}

/* Extra Mobile Adjustments (< 480px) */
@media (max-width: 480px) {
  .card {
    padding: 24px 18px;
  }

  .filter-pills-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .filter-pill {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   DASHBOARD VIEW SWITCHER TABS (Aktivlar vs Tranzaksiyalar)
   ========================================================================== */
.dash-view-tabs-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.dash-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dash-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.dash-view-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.dash-view-tab:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.04);
}

.dash-view-tab.active {
  background: rgba(0, 152, 234, 0.14);
  color: #ffffff;
  border: 1px solid rgba(0, 152, 234, 0.3);
  box-shadow: 0 2px 10px rgba(0, 152, 234, 0.15);
}

.dash-view-tab.active svg {
  color: var(--primary);
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-view-tab.active .tab-badge {
  background: rgba(0, 152, 234, 0.25);
  color: #4dc2ff;
  border-color: rgba(0, 152, 234, 0.35);
}

/* ==========================================================================
   TRANSACTION HISTORY SECTION & TABLE
   ========================================================================== */
.tx-history-card {
  animation: fadeInTx 0.25s ease-out;
}

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

.tx-header {
  margin-bottom: 22px;
}

.tx-toolbar {
  gap: 10px;
}

.tx-refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tx-refresh-btn:hover {
  background: rgba(0, 152, 234, 0.15);
  border-color: rgba(0, 152, 234, 0.4);
  color: var(--primary);
}

.tx-refresh-btn.spinning svg {
  animation: spinHistory 0.8s linear infinite;
}

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

/* Desktop columns for transactions */
.tx-table-columns {
  display: grid;
  grid-template-columns: 210px 170px 170px 140px 1fr 110px;
  align-items: center;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.tx-table-columns .col-tx-amount {
  text-align: right;
  padding-right: 12px;
}

.tx-table-columns .col-tx-action {
  text-align: right;
}

/* Transaction List container */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual Transaction Row */
.tx-row {
  display: grid;
  grid-template-columns: 210px 170px 170px 140px 1fr 110px;
  align-items: center;
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tx-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  pointer-events: none;
}

.tx-row:hover {
  background: rgba(22, 28, 44, 0.85);
  border-color: rgba(0, 152, 234, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 152, 234, 0.08);
}

/* Column 1: Direction & Asset */
.tx-cell-type {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-direction-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-direction-icon svg {
  width: 18px;
  height: 18px;
}

.tx-dir-in {
  background: rgba(0, 209, 130, 0.12);
  color: #00d182;
  border: 1px solid rgba(0, 209, 130, 0.3);
  box-shadow: 0 0 12px rgba(0, 209, 130, 0.15);
}

.tx-dir-out {
  background: rgba(255, 71, 87, 0.12);
  color: #ff5370;
  border: 1px solid rgba(255, 71, 87, 0.3);
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.15);
}

.tx-type-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-type-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-dir-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-pure);
}

.tx-crypto-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.tx-type-chain {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tx-memo-pill {
  font-size: 10.5px;
  color: #ffa502;
  background: rgba(255, 165, 2, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Column 2: Counterparty Address */
.tx-cell-addr {
  display: flex;
  align-items: center;
}

.tx-addr-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-addr-label {
  display: none;
  font-size: 11px;
  color: var(--dim);
}

.tx-addr-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b0b9cc;
}

.tx-copy-btn {
  background: transparent;
  border: none;
  color: var(--dim);
  padding: 3px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.tx-copy-btn svg {
  width: 13px;
  height: 13px;
}

.tx-copy-btn:hover {
  color: var(--primary);
  background: rgba(0, 152, 234, 0.15);
}

/* Column 3: Time & Hash */
.tx-cell-time {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-time-main {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.tx-time-hash {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tx-hash-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.tx-copy-hash {
  opacity: 0.7;
}

.tx-copy-hash:hover {
  opacity: 1;
}

/* Column 4: Status Badge */
.tx-cell-status {
  display: flex;
  align-items: center;
}

.tx-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-success,
.status-confirmed {
  background: rgba(0, 209, 130, 0.12);
  color: #00d182;
  border: 1px solid rgba(0, 209, 130, 0.25);
}

.status-success .status-pulse-dot,
.status-confirmed .status-pulse-dot {
  background: #00d182;
  box-shadow: 0 0 6px #00d182;
}

.status-pending {
  background: rgba(255, 165, 2, 0.14);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.35);
}

.status-pending .status-pulse-dot {
  background: #ffa502;
  box-shadow: 0 0 8px #ffa502;
  animation: pendingPulse 1.2s infinite ease-in-out;
}

@keyframes pendingPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.status-failed {
  background: rgba(255, 71, 87, 0.12);
  color: #ff5370;
  border: 1px solid rgba(255, 71, 87, 0.25);
}

.status-failed .status-pulse-dot {
  background: #ff5370;
}

/* Column 5: Formatted Amount */
.tx-cell-amount {
  text-align: right;
  padding-right: 14px;
}

.tx-amount-val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.amount-in .tx-amount-val {
  color: #00d182;
}

.amount-out .tx-amount-val {
  color: #f4f6fc;
}

/* Column 6: Explorer Button */
.tx-cell-action {
  display: flex;
  justify-content: flex-end;
}

.tx-explorer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #b8c4db;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tx-explorer-btn svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.tx-explorer-btn:hover {
  background: rgba(0, 152, 234, 0.16);
  border-color: rgba(0, 152, 234, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.tx-explorer-btn:hover svg {
  color: var(--primary);
  transform: translate(1px, -1px);
}

/* Empty State */
.tx-empty-state {
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tx-empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(0, 152, 234, 0.08);
  border: 1px solid rgba(0, 152, 234, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(0, 152, 234, 0.12);
}

.tx-empty-icon-wrap svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.tx-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.tx-empty-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tx-empty-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 8px 18px;
}

/* Loading Skeleton */
.tx-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-skeleton-row {
  height: 68px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.6s infinite;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes shimmerSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES FOR TRANSACTION HISTORY
   ========================================================================== */
@media (max-width: 1024px) {
  .tx-table-columns {
    display: none;
  }

  .tx-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .tx-cell-type {
    width: 100%;
    justify-content: space-between;
  }

  .tx-cell-addr,
  .tx-cell-time {
    width: 100%;
  }

  .tx-cell-amount {
    width: 100%;
    text-align: left;
    padding-right: 0;
  }

  .tx-cell-status,
  .tx-cell-action {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .dash-view-tabs-container {
    width: 100%;
  }

  .dash-view-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dash-view-tab {
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .tx-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #tx-direction-filter,
  #tx-asset-filter {
    width: 100%;
    justify-content: space-between;
  }

  #tx-direction-filter .filter-pill,
  #tx-asset-filter .filter-pill {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11.5px;
  }

  .asset-search-field input {
    width: 100%;
  }

  .asset-search-field input:focus {
    width: 100%;
  }

  .tx-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "header amount"
      "addr   status"
      "footer action";
    gap: 8px 12px;
    padding: 14px;
  }

  .tx-cell-type {
    grid-area: header;
  }

  .tx-cell-amount {
    grid-area: amount;
    text-align: right;
  }

  .tx-cell-addr {
    grid-area: addr;
  }

  .tx-cell-status {
    grid-area: status;
    justify-self: end;
  }

  .tx-cell-time {
    grid-area: footer;
  }

  .tx-cell-action {
    grid-area: action;
    justify-self: end;
  }

  .tx-explorer-btn {
    padding: 4px 9px;
    font-size: 11px;
  }
}

/* ==========================================================================
   TONSCAN.ORG EXPLORER THEME & MULTI-CHAIN WEB3 DESIGN
   ========================================================================== */

/* Top Navbar Tonscan Explorer */
.tonscan-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 90;
}

.tonscan-nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.tonscan-logo-crystal {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(0, 152, 234, 0.4));
}

.tonscan-logo-crystal svg {
  width: 28px;
  height: 28px;
}

.tonscan-brand-titles {
  display: flex;
  flex-direction: column;
}

.tonscan-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.tonscan-sub {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.tonscan-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tonscan-link {
  color: #94a0b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
  user-select: none;
}

.tonscan-link:hover {
  color: #ffffff;
}

/* Center Large Search Bar */
.tonscan-search-wrap {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}

.tonscan-search-wrap svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #5d677d;
  pointer-events: none;
}

.tonscan-search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 38px;
  background: rgba(18, 23, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.tonscan-search-wrap input:focus {
  background: rgba(18, 23, 34, 0.95);
  border-color: rgba(0, 152, 234, 0.55);
  box-shadow: 0 0 16px rgba(0, 152, 234, 0.15);
}

.search-hotkey-badge {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #5d677d;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
}

.network-badge-tonscan {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 209, 130, 0.1);
  border: 1px solid rgba(0, 209, 130, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #00d182;
}

/* ==========================================================================
   TONSCAN ADDRESS & ASSET OVERVIEW HERO CARD
   ========================================================================== */
.tonscan-overview-card {
  background: rgba(15, 19, 29, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65);
}

.tonscan-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.overview-label {
  font-size: 13px;
  font-weight: 600;
  color: #7b869e;
  text-transform: capitalize;
}

.overview-value-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chain-switcher-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chain-pill {
  background: transparent;
  border: none;
  color: #8893aa;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chain-pill:hover {
  color: #ffffff;
}

.chain-pill.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 152, 234, 0.35);
}

.overview-addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.overview-addr-mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: #f4f6fc;
  word-break: break-all;
}

.overview-addr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-mini-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a2adbf;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.action-mini-btn svg {
  width: 14px;
  height: 14px;
}

.action-mini-btn:hover {
  background: rgba(0, 152, 234, 0.18);
  border-color: rgba(0, 152, 234, 0.4);
  color: #ffffff;
}

/* Balance Row */
.balance-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.balance-ton-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ton-diamond-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(0, 152, 234, 0.5));
}

.balance-ton-amount {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.balance-usd-approx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #7b869e;
  font-weight: 500;
}

.overview-quick-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tonscan-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tonscan-btn-primary {
  background: var(--primary);
  border: 1px solid rgba(0, 152, 234, 0.5);
  color: #ffffff;
}

.tonscan-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(0, 152, 234, 0.35);
}

.tonscan-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tonscan-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Tokens Row */
.token-summary-pill {
  background: rgba(0, 152, 234, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(0, 152, 234, 0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.token-names-meta {
  font-size: 12.5px;
  color: #8f9bb3;
}

/* Owner Row */
.owner-derivation-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b0b9cc;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Contract Row */
.contract-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.contract-version-pill {
  font-size: 11px;
  font-weight: 600;
  color: #848da0;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Details Badges */
.details-badges-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
}

.badge-active {
  background: rgba(0, 209, 130, 0.14);
  color: #00d182;
  border: 1px solid rgba(0, 209, 130, 0.3);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d182;
  box-shadow: 0 0 6px #00d182;
}

.badge-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #aab5c9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-blue {
  background: rgba(0, 152, 234, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 152, 234, 0.25);
}

.badge-secure {
  background: rgba(255, 255, 255, 0.04);
  color: #828ea2;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-watch {
  background: rgba(255, 165, 2, 0.15);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.35);
  animation: pendingPulse 1.4s infinite ease-in-out;
}

/* ==========================================================================
   TONSCAN TABS & FILTERS TOOLBAR
   ========================================================================== */
.tonscan-tabs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 14px;
  flex-wrap: wrap;
}

.tonscan-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tonscan-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8c97ad;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tonscan-tab svg {
  width: 16px;
  height: 16px;
}

.tonscan-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tonscan-tab.active {
  background: rgba(0, 152, 234, 0.15);
  color: #ffffff;
  border-color: rgba(0, 152, 234, 0.4);
  box-shadow: 0 2px 10px rgba(0, 152, 234, 0.12);
}

.tonscan-tab.active svg {
  color: var(--primary);
}

.tab-pill-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #9aa6bc;
}

.tonscan-tab.active .tab-pill-count {
  background: rgba(0, 152, 234, 0.3);
  color: #38bdf8;
}

.tonscan-filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a2adbf;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tonscan-filter-trigger-btn svg {
  width: 15px;
  height: 15px;
}

.tonscan-filter-trigger-btn:hover,
.tonscan-filter-trigger-btn.active {
  background: rgba(0, 152, 234, 0.14);
  border-color: rgba(0, 152, 234, 0.35);
  color: #ffffff;
}

/* Expandable Filters Panel */
.tonscan-filters-panel {
  display: none;
  background: rgba(14, 18, 28, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInTx 0.2s ease;
}

.tonscan-filters-panel.active {
  display: flex;
}

.tonscan-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #7b869e;
}

/* ==========================================================================
   TONSCAN TRANSACTIONS TABLE (MATCHED TO SCREENSHOT)
   Columns: Time | Action | Address | Value
   ========================================================================== */
.tonscan-table-card {
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65);
}

.tonscan-table-header {
  display: grid;
  grid-template-columns: 190px 210px 1fr 200px;
  align-items: center;
  padding: 14px 24px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #647087;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 13, 20, 0.5);
}

.tonscan-table-header .col-value {
  text-align: right;
}

.tonscan-tx-list {
  display: flex;
  flex-direction: column;
}

.tonscan-tx-row {
  display: grid;
  grid-template-columns: 190px 210px 1fr 200px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
  position: relative;
}

.tonscan-tx-row:last-child {
  border-bottom: none;
}

.tonscan-tx-row:hover {
  background: rgba(22, 29, 44, 0.65);
}

/* 1. Time Column */
.tonscan-col-time {
  font-size: 13px;
  color: #8c97ad;
  font-weight: 500;
}

/* 2. Action Column */
.tonscan-col-action {
  display: flex;
  align-items: center;
}

.tonscan-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.tonscan-action-badge svg {
  width: 14px;
  height: 14px;
}

.action-received {
  background: rgba(0, 209, 130, 0.12);
  color: #00d182;
  border: 1px solid rgba(0, 209, 130, 0.25);
}

.action-sent {
  background: rgba(255, 83, 112, 0.12);
  color: #ff5370;
  border: 1px solid rgba(255, 83, 112, 0.25);
}

.action-pending {
  background: rgba(255, 165, 2, 0.15);
  color: #ffa502;
  border: 1px solid rgba(255, 165, 2, 0.35);
}

/* 3. Address Column */
.tonscan-col-addr {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tonscan-addr-prefix {
  font-size: 12.5px;
  color: #647087;
  font-weight: 500;
}

.tonscan-addr-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.18s ease;
}

.tonscan-addr-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.tonscan-mini-copy {
  background: transparent;
  border: none;
  color: #647087;
  padding: 2px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.tonscan-mini-copy svg {
  width: 13px;
  height: 13px;
}

.tonscan-mini-copy:hover {
  color: var(--primary);
  background: rgba(0, 152, 234, 0.15);
}

/* 4. Value Column */
.tonscan-col-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tonscan-value-amount {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.value-pos {
  color: #00d182;
}

.value-neg {
  color: #ff5370;
}

.tonscan-memo-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 165, 2, 0.15);
  color: #ffa502;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.tonscan-memo-icon svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   TONSCAN MULTI-METHOD WEB3 LOGIN MODAL & TABS
   ========================================================================== */
.tonscan-login-card {
  max-width: 660px;
  margin: 0 auto;
}

.tonscan-login-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.login-tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.login-tabs-nav::-webkit-scrollbar {
  display: none;
}

.login-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #8894aa;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

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

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

.login-tab-btn.active {
  background: rgba(0, 152, 234, 0.16);
  color: #ffffff;
  border: 1px solid rgba(0, 152, 234, 0.35);
  box-shadow: 0 2px 8px rgba(0, 152, 234, 0.2);
}

.login-tab-panel {
  display: none;
  animation: fadeInTx 0.2s ease;
  text-align: left;
}

.login-tab-panel.active {
  display: block;
}

.panel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seed-len-btn,
.pk-chain-pill,
.create-len-btn {
  background: transparent;
  border: none;
  color: #848fa5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seed-len-btn.active,
.pk-chain-pill.active,
.create-len-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.panel-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-counter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #848fa5;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 8px;
}

.word-counter-badge.count-complete {
  color: #00d182;
  background: rgba(0, 209, 130, 0.12);
}

.btn-mini-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 152, 234, 0.12);
  border: 1px solid rgba(0, 152, 234, 0.3);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-mini-action svg {
  width: 12px;
  height: 12px;
}

.btn-mini-action:hover {
  background: rgba(0, 152, 234, 0.22);
  color: #ffffff;
}

.panel-hint {
  font-size: 13px;
  color: #848fa5;
  margin-bottom: 6px;
}

.panel-sub-hint {
  font-size: 11.5px;
  color: #5d677d;
}

.detected-chain-pill {
  font-size: 11px;
  font-weight: 700;
  color: #00d182;
  background: rgba(0, 209, 130, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 209, 130, 0.25);
}

/* Keystore Dropzone */
.keystore-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #848fa5;
  font-size: 13px;
  font-weight: 600;
}

.keystore-dropzone svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.keystore-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.keystore-dropzone:hover,
.keystore-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(0, 152, 234, 0.08);
  color: #ffffff;
}

.vault-stored-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 209, 130, 0.12);
  border: 1px solid rgba(0, 209, 130, 0.25);
  color: #00d182;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FOR TONSCAN
   ========================================================================== */
@media (max-width: 900px) {
  .tonscan-nav-links {
    display: none;
  }

  .tonscan-search-wrap {
    max-width: 220px;
  }

  .tonscan-table-header {
    display: none;
  }

  .tonscan-tx-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "action value"
      "addr   time";
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .tonscan-col-action {
    grid-area: action;
  }

  .tonscan-col-value {
    grid-area: value;
    text-align: right;
  }

  .tonscan-col-addr {
    grid-area: addr;
  }

  .tonscan-col-time {
    grid-area: time;
    text-align: right;
    font-size: 11.5px;
  }

  .overview-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .balance-value-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========================================================
   FULL-PAGE ARCHITECTURE (.app-page)
   ======================================================== */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
  box-sizing: border-box;
}

/* UNIVERSAL TOP NAVBAR */
.app-top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  margin-bottom: 2rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-brand-section .brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-brand-section .brand-link:hover {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge-net {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00d182;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

/* Nav Tabs - Clean, Borderless Button Segment */
.app-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.app-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #8fa0b8;
  text-decoration: none;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.app-nav-tab svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.app-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.app-nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 168, 255, 0.38);
  font-weight: 700;
}

.app-nav-tab.active svg {
  color: #ffffff;
  transform: scale(1.05);
}

/* Right Nav Controls - Clean Buttons */
.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-wallet-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.nav-wallet-pill:hover {
  background: rgba(0, 152, 234, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.wallet-pill-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

.nav-right-controls .icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aeb9cf;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.nav-right-controls .icon-btn:hover {
  background: rgba(0, 168, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px) rotate(45deg);
}

.btn-lock-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 71, 87, 0.14);
  border: none;
  color: #ff6b81;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.15);
  transition: all 0.2s ease;
}

.btn-lock-nav:hover {
  background: #ff4757;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
  transform: translateY(-1px);
}

.btn-lock-nav svg {
  width: 15px;
  height: 15px;
}

/* APP MAIN VIEWPORT & PAGE SWITCHING */
.app-main-viewport {
  width: 100%;
  flex: 1;
}

.app-page {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* PAGE TOP BARS */
.page-top-bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  width: fit-content;
  transition: color 0.15s, transform 0.15s;
}

.page-back-link svg {
  width: 16px;
  height: 16px;
}

.page-back-link:hover {
  color: var(--primary-hover);
  transform: translateX(-4px);
}

.page-title-group .page-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin: 0;
}

.page-title-group .page-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.3rem 0 0 0;
}

/* HERO BALANCE BANNER ON ASSETS PAGE */
.portfolio-hero-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.25rem;
  background: radial-gradient(circle at 10% 20%, rgba(0, 152, 234, 0.14) 0%, rgba(16, 19, 28, 0.85) 60%), #10131c;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-bento);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-balance-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.hero-trend-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #00d182;
  background: rgba(0, 209, 130, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 209, 130, 0.25);
}

.hero-balance-value {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.total-usd-amount {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #ffffff;
  line-height: 1;
}

.balance-currency-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
}

/* Network Distribution Mini-Bar */
.network-distribution-bar {
  display: flex;
  height: 8px;
  width: 100%;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.75rem;
}

.dist-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.dist-ton { background: #0098ea; }
.dist-tron { background: #ff0015; }
.dist-btc { background: #f7931a; }

.network-distribution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-ton { background: #0098ea; box-shadow: 0 0 6px #0098ea; }
.dot-tron { background: #ff0015; box-shadow: 0 0 6px #ff0015; }
.dot-btc { background: #f7931a; box-shadow: 0 0 6px #f7931a; }

/* Quick Action Tiles */
.hero-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-action-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(22, 27, 40, 0.7);
  border: 1px solid var(--card-border);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-action-tile:hover {
  background: rgba(29, 36, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.action-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-tile-icon svg {
  width: 22px;
  height: 22px;
}

.action-send .action-tile-icon { background: rgba(0, 152, 234, 0.15); color: #00a8ff; border: 1px solid rgba(0, 152, 234, 0.3); }
.action-receive .action-tile-icon { background: rgba(0, 209, 130, 0.15); color: #00d182; border: 1px solid rgba(0, 209, 130, 0.3); }
.action-history .action-tile-icon { background: rgba(123, 92, 255, 0.15); color: #a48eff; border: 1px solid rgba(123, 92, 255, 0.3); }
.action-settings .action-tile-icon { background: rgba(255, 165, 2, 0.15); color: #ffa502; border: 1px solid rgba(255, 165, 2, 0.3); }

.action-tile-text {
  display: flex;
  flex-direction: column;
}

.action-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
}

.action-tile-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ========================================================
   PAGE 2: SEND PORTAL LAYOUT
   ======================================================== */
.send-portal-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.send-card-main {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-bento);
}

.send-form-group {
  margin-bottom: 1.5rem;
}

.form-label-fancy {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

/* Asset Selector Grid */
.send-asset-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.asset-select-chip {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.9rem;
  background: rgba(22, 27, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.asset-select-chip:hover {
  background: rgba(29, 36, 54, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.asset-select-chip.active {
  background: linear-gradient(135deg, rgba(0, 152, 234, 0.22) 0%, rgba(0, 152, 234, 0.08) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 152, 234, 0.25);
}

.chip-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
}

.chip-bal {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Address input */
.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.mono-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  padding-right: 90px;
}

.btn-input-action {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 152, 234, 0.15);
  border: 1px solid rgba(0, 152, 234, 0.3);
  color: #00a8ff;
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-input-action svg {
  width: 14px;
  height: 14px;
}

.btn-input-action:hover {
  background: rgba(0, 152, 234, 0.3);
  color: #ffffff;
}

.addr-validation-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.addr-validation-badge.valid {
  background: rgba(0, 209, 130, 0.12);
  color: #00d182;
  border: 1px solid rgba(0, 209, 130, 0.3);
}

.addr-validation-badge.invalid {
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Amount Input */
.amount-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-big-input {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.9rem 1.25rem;
  padding-right: 80px;
}

.amount-asset-symbol {
  position: absolute;
  right: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  pointer-events: none;
}

.amount-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.amount-usd-approx {
  font-size: 0.85rem;
  color: var(--muted);
}

.percent-chips {
  display: flex;
  gap: 0.4rem;
}

.percent-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-xs);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.percent-chip:hover, .percent-chip.active {
  background: rgba(0, 152, 234, 0.2);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-hero-send {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 152, 234, 0.35);
}

.btn-hero-send svg {
  width: 18px;
  height: 18px;
}

/* Send Sidebar Summary */
.send-sidebar-summary {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-bento);
}

.summary-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.summary-label { color: var(--muted); }
.summary-val { font-weight: 700; color: var(--text-pure); font-family: 'JetBrains Mono', monospace; }
.highlight-green { color: #00d182; }
.highlight-cyan { color: #00a8ff; }

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.total-item .summary-label { font-size: 1rem; font-weight: 700; color: var(--text); }
.total-item .summary-val { font-size: 1.25rem; font-weight: 800; color: #00a8ff; }

.security-guarantee-box {
  display: flex;
  gap: 0.75rem;
  background: rgba(0, 152, 234, 0.08);
  border: 1px solid rgba(0, 152, 234, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

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

/* ========================================================
   PAGE 3: RECEIVE PORTAL LAYOUT
   ======================================================== */
.receive-portal-layout {
  max-width: 680px;
  margin: 0 auto;
}

.receive-card-main {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-bento);
}

.receive-network-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rec-net-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: rgba(22, 27, 40, 0.7);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.rec-net-tab:hover {
  background: rgba(29, 36, 54, 0.9);
  color: var(--text);
}

.rec-net-tab.active {
  background: linear-gradient(135deg, rgba(0, 152, 234, 0.25) 0%, rgba(0, 152, 234, 0.1) 100%);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 152, 234, 0.25);
}

.receive-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 152, 234, 0.2);
  display: inline-block;
  margin-bottom: 1rem;
}

.qr-canvas-holder canvas {
  display: block;
}

.qr-badge-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #00a8ff;
  background: rgba(0, 152, 234, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 152, 234, 0.25);
}

.receive-addr-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.receive-address-box {
  background: rgba(11, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #ffffff;
  word-break: break-all;
  user-select: all;
  margin-bottom: 1.25rem;
}

.receive-actions-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.btn-copy-rec {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy-rec svg {
  width: 16px;
  height: 16px;
}

.btn-exp-rec {
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.btn-exp-rec svg {
  width: 16px;
  height: 16px;
}

.receive-warning-box {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 165, 2, 0.1);
  border: 1px solid rgba(255, 165, 2, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: left;
  font-size: 0.8rem;
  color: #e5b35a;
  line-height: 1.45;
}

/* ========================================================
   PAGE 4: TONSCAN EXPLORER FULL VIEW
   ======================================================== */
.tonscan-explorer-page-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-bento);
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00d182;
  background: rgba(0, 209, 130, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 209, 130, 0.25);
}

/* ========================================================
   PAGE 5: SETTINGS BENTO GRID
   ======================================================== */
.settings-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.settings-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.card-icon {
  font-size: 1.75rem;
}

.settings-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-pure);
  margin: 0;
}

.settings-card-header p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.2rem 0 0 0;
}

.settings-actions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.settings-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(22, 27, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.act-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.act-info strong {
  font-size: 0.88rem;
  color: var(--text-pure);
}

.act-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-status-online {
  font-size: 0.78rem;
  font-weight: 700;
  color: #00d182;
  background: rgba(0, 209, 130, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-pill-pref {
  font-size: 0.82rem;
  font-weight: 700;
  color: #00a8ff;
  background: rgba(0, 152, 234, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.danger-zone-card {
  border-color: rgba(255, 71, 87, 0.35);
  background: radial-gradient(circle at 90% 10%, rgba(255, 71, 87, 0.08) 0%, rgba(16, 19, 28, 0.85) 70%);
}

.danger-title {
  color: #ff6b81 !important;
}

.danger-box-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  justify-content: space-between;
}

.danger-desc {
  font-size: 0.82rem;
  color: #e58e99;
  line-height: 1.5;
  margin: 0;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff6b81 0%, #d63031 100%);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.45);
}

.btn-block { width: 100%; }

/* Mobile Bottom Navigation */
.app-bottom-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.app-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: all 0.15s;
}

.app-bottom-tab svg {
  width: 20px;
  height: 20px;
}

.app-bottom-tab.active {
  color: #00a8ff;
}

.app-bottom-tab.active svg {
  color: #00a8ff;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .app-nav-tabs { display: none; }
  .app-bottom-navbar { display: flex; }
  .app-container { padding-bottom: 80px; }
  .portfolio-hero-card { grid-template-columns: 1fr; }
  .send-portal-layout { grid-template-columns: 1fr; }
  .settings-bento-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMPLETE MODERN DESIGN FIXES & FULL-PAGE VIEW COMPONENT STYLES
   ========================================================================== */

/* 1. Login Card & 6-Tab Grid Overhaul */
.screen:not(#screen-dashboard) .card.card-wide.tonscan-login-card {
  max-width: 660px !important;
  width: 100% !important;
  padding: 36px 30px !important;
  border: 1px solid rgba(0, 168, 255, 0.2) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 32px rgba(0, 152, 234, 0.12) !important;
}

.tonscan-login-card .tonscan-login-header {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  text-align: left !important;
}

.tonscan-login-header .hero-emblem-wrap {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.tonscan-brand-wrap h1 {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  margin: 0 0 4px 0 !important;
  background: linear-gradient(135deg, #ffffff 40%, #00a8ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.tonscan-brand-wrap p {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: #7d8ea6 !important;
}

/* 6-Tab Responsive Grid - No clipping, no truncation! */
.login-tabs-nav {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  background: rgba(10, 16, 28, 0.85) !important;
  padding: 6px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 22px !important;
  overflow: visible !important;
}

@media (max-width: 580px) {
  .login-tabs-nav {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.login-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #8fa0b8 !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.login-tab-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.login-tab-btn.active {
  background: linear-gradient(135deg, #0077c8, #0098ea) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 152, 234, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 2. Tonscan Top Toolbar in History View */
.tonscan-top-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 18px !important;
  background: rgba(11, 17, 30, 0.6) !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.tonscan-filter-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.filter-group-label {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.tx-refresh-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.tx-refresh-btn:hover {
  background: rgba(0, 152, 234, 0.15) !important;
  border-color: #0098ea !important;
  color: #ffffff !important;
}

.tx-refresh-btn svg {
  width: 15px !important;
  height: 15px !important;
}

/* 3. Send Page Actions & Error Banners */
.send-action-row {
  display: flex !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

.btn-hero-send {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 168, 255, 0.35) !important;
  transition: all 0.2s ease !important;
}

.btn-hero-send:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 168, 255, 0.5) !important;
}

.send-error-banner {
  display: none;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 0.85rem !important;
  margin-top: 12px !important;
}

.send-error-banner:not(:empty) {
  display: block !important;
}

/* 4. Receive Page Address Section */
.receive-address-section {
  margin-top: 20px !important;
  width: 100% !important;
}

.receive-address-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.88rem !important;
  color: #38bdf8 !important;
  word-break: break-all !important;
  line-height: 1.4 !important;
}

/* 5. Assets View Card & General Component Missing Styles */
.assets-view-card {
  background: rgba(14, 21, 37, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(16px) !important;
}

.hero-balance-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.balance-hint-wrap {
  display: flex !important;
  justify-content: flex-end !important;
  margin-bottom: 6px !important;
}

.input-modern {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

.input-modern:focus {
  border-color: #0098ea !important;
  box-shadow: 0 0 0 3px rgba(0, 152, 234, 0.25) !important;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  border-radius: 8px !important;
}

.tonscan-head-col {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.guarantee-text {
  font-size: 0.75rem !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

.icon-blue { color: #00a8ff !important; }
.icon-gold { color: #f59e0b !important; }
.icon-red { color: #ef4444 !important; }

.wallet-pill-addr {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
}

.wallet-pill-icon {
  font-size: 0.85rem !important;
}

/* Remaining helper classes */
.col-asset { flex: 1.5; }
.col-network { flex: 1; }
.modal-card { background: rgba(14, 21, 37, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; }
.rec-tab-icon { font-size: 1.1rem; }
.rec-tab-name { font-weight: 700; font-size: 0.85rem; }
.tooltip-btn { position: relative; }
.trend-arrow { font-size: 0.8rem; margin-right: 4px; }
.warn-content { font-size: 0.82rem; color: #cbd5e1; line-height: 1.45; }
.warn-icon { flex-shrink: 0; color: #f59e0b; width: 22px; height: 22px; }

/* Refined Refresh Button & Toolbar */
.btn-refresh-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(0, 152, 234, 0.2), rgba(0, 120, 215, 0.35)) !important;
  border: 1px solid rgba(0, 168, 255, 0.4) !important;
  color: #38bdf8 !important;
  padding: 9px 18px !important;
  border-radius: 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  white-space: nowrap !important;
}

.btn-refresh-primary:hover {
  background: linear-gradient(135deg, #0088cc, #00a8ff) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 168, 255, 0.35) !important;
}

.btn-refresh-primary svg {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.4s ease !important;
}

.btn-refresh-primary:hover svg {
  transform: rotate(180deg) !important;
}

/* Compact and sleek Send page form */
.send-portal-card {
  padding: 24px 28px !important;
}

.send-step-box {
  margin-bottom: 20px !important;
}

.send-step-box:last-child {
  margin-bottom: 0 !important;
}

.send-amount-wrapper {
  padding: 12px 16px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
}

.send-amount-big {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  width: 100% !important;
  outline: none !important;
}

/* ========================================================
   MOBILE MASTER RESPONSIVE OVERRIDES (V21)
   ======================================================== */

.settings-select-input {
  background: rgba(22, 27, 40, 0.85);
  border: 1px solid var(--border);
  color: var(--text-pure);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.settings-select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 152, 234, 0.3);
}

.settings-select-input option {
  background: #0d1117;
  color: #ffffff;
}

/* Fixed Bottom Navigation */
.app-bottom-navbar {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 64px !important;
  background: rgba(7, 8, 12, 0.96) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 9999 !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 0 0.25rem max(6px, env(safe-area-inset-bottom)) 0.25rem !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7) !important;
}

.app-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: all 0.15s ease;
  position: relative;
}

.app-bottom-tab svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.app-bottom-tab.active {
  color: #00a8ff !important;
}

.app-bottom-tab.active svg {
  color: #00a8ff !important;
  transform: scale(1.15);
}

.app-bottom-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #00a8ff;
  border-radius: 2px;
  box-shadow: 0 0 8px #00a8ff;
}

/* Comprehensive Mobile Media Queries (iPhone 14 / 390x844 & below) */
@media (max-width: 900px) {
  .app-top-navbar .app-nav-tabs {
    display: none !important;
  }

  .app-bottom-navbar {
    display: flex !important;
  }

  .app-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 95px !important;
  }

  .portfolio-hero-card {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
    gap: 1.5rem !important;
  }

  .total-usd-amount {
    font-size: 2.5rem !important;
  }

  .hero-quick-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  .hero-action-tile {
    padding: 0.9rem !important;
  }

  .send-portal-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .send-card-main, .send-sidebar-summary {
    padding: 1.5rem !important;
  }

  .amount-big-input {
    font-size: 1.45rem !important;
    padding: 0.75rem 1rem !important;
  }

  .settings-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .receive-portal-layout {
    width: 100% !important;
    max-width: 100% !important;
  }

  .receive-card-main {
    padding: 1.5rem 1rem !important;
  }

  .receive-actions-row {
    flex-direction: column !important;
    width: 100% !important;
  }

  .receive-actions-row .btn-copy-rec,
  .receive-actions-row .btn-exp-rec {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Prevent mobile input auto-zoom by ensuring >= 16px */
  input[type="text"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .app-top-navbar {
    margin-bottom: 1.25rem !important;
  }

  .brand-title {
    font-size: 1.05rem !important;
  }

  .nav-wallet-pill {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .total-usd-amount {
    font-size: 2.1rem !important;
  }

  .send-asset-selector-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .percent-chips {
    gap: 0.25rem !important;
  }

  .percent-chip {
    padding: 0.3rem 0.45rem !important;
    font-size: 0.7rem !important;
  }
}

/* ==========================================================================
   VERSION 27: FULL-WIDTH NAVBAR & SLEEK WEB3 LOGIN REDESIGN
   ========================================================================== */

/* 1. Universal Top Navbar - 100% Full Viewport Width (Zero Edge Clipping) */
.app-top-navbar {
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: rgba(8, 10, 15, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.app-top-navbar-inner {
  max-width: 1380px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0.85rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  gap: 1.5rem !important;
}

/* ==============================================================
   CRYPTO WALLET WEB3 — MULTI-STEP 2-COLUMN AUTHENTICATION GATEWAY
   ============================================================== */

/* Reset & zero unstyled browser defaults inside login gateway */
#screen-welcome button,
#screen-welcome input,
#screen-welcome textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  box-sizing: border-box !important;
}

#screen-welcome button {
  border: none;
  background: transparent;
  outline: none;
  user-select: none;
}

/* 1. VIEWPORT & CONTAINER */
.web3-login-viewport {
  min-height: 100vh !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 16px !important;
  box-sizing: border-box !important;
  background: #060B14 !important;
  background-image: 
    radial-gradient(circle at 50% 5%, rgba(0, 240, 255, 0.09) 0%, transparent 65%),
    radial-gradient(circle at 10% 90%, rgba(2, 132, 199, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 50%) !important;
}

.web3-auth-container {
  max-width: 1040px !important;
  width: 100% !important;
  min-height: 640px !important;
  background: rgba(10, 18, 33, 0.85) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 55px rgba(0, 240, 255, 0.09) !important;
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* ================= 1. LEFT BRAND PANEL ================= */
.web3-brand-panel {
  background: linear-gradient(180deg, rgba(14, 23, 42, 0.75) 0%, rgba(8, 14, 26, 0.9) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 38px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  gap: 20px !important;
}

.web3-brand-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

.web3-emblem-wrap {
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.web3-emblem-glow {
  position: absolute !important;
  inset: -6px !important;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, rgba(0, 140, 255, 0) 70%) !important;
  border-radius: 50% !important;
  filter: blur(10px) !important;
  animation: emblemPulse 3s infinite ease-in-out !important;
}

@keyframes emblemPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

.web3-emblem-circle {
  position: relative !important;
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, rgba(18, 28, 48, 0.95), rgba(8, 14, 26, 0.98)) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.web3-shield-svg {
  width: 32px !important;
  height: 32px !important;
}

.web3-brand-title {
  font-size: 1.48rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
}

.web3-gateway-tag {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin: 0 0 10px 0 !important;
}

.web3-chains-badges {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.chain-badge-pill {
  background: rgba(0, 240, 255, 0.08) !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  color: #00f0ff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.03em !important;
}

.chain-badge-dot {
  color: #475569 !important;
  font-size: 0.8rem !important;
}

/* Feature Cards */
.web3-features-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 8px 0 !important;
}

.web3-feature-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 13px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.web3-feature-card:hover {
  border-color: rgba(0, 240, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  transform: translateX(2px) !important;
}

.feat-icon-box {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 10px !important;
  background: rgba(0, 240, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feat-icon-box svg {
  width: 17px !important;
  height: 17px !important;
}

.feat-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.feat-title {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin: 0 !important;
}

.feat-desc {
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* Subtle Network Mesh Visual */
.web3-brand-network-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.network-web-svg {
  width: 100% !important;
  max-width: 240px !important;
  height: auto !important;
}

.network-caption {
  font-size: 0.68rem !important;
  color: #64748b !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* ================= 2. RIGHT AUTHENTICATION FLOW ================= */
.web3-auth-flow {
  padding: 38px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  background: rgba(10, 18, 33, 0.35) !important;
}

/* 3-Step Progress Indicator */
.web3-steps-indicator {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.step-node {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #64748b !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.step-num-circle {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  border: 1.5px solid #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  background: rgba(15, 23, 42, 0.7) !important;
  position: relative !important;
}

.step-check {
  display: none !important;
}

.step-node.active {
  color: #00f0ff !important;
}

.step-node.active .step-num-circle {
  border-color: #00f0ff !important;
  color: #00f0ff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45) !important;
  background: rgba(0, 240, 255, 0.12) !important;
}

.step-node.completed {
  color: #cbd5e1 !important;
}

.step-node.completed .step-num-circle {
  background: #00f0ff !important;
  border-color: #00f0ff !important;
  color: #060b14 !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
}

.step-node.completed .step-num {
  display: none !important;
}

.step-node.completed .step-check {
  display: inline-block !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
}

.step-connector {
  flex: 1 !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  margin: 0 8px !important;
  transition: background 0.3s ease !important;
}

.step-connector.active {
  background: #00f0ff !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
}

/* Step Headers */
.step-view-header {
  margin-bottom: 20px !important;
}

.step-main-heading {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
}

.step-sub-desc {
  font-size: 0.84rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* ================= 3. SELECTABLE CARDS (STEP 1) ================= */
.login-methods-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.login-method-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 13px 16px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.login-method-card:hover {
  background: rgba(18, 28, 52, 0.88) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 240, 255, 0.12) !important;
}

.login-method-card.selected-card {
  background: rgba(18, 34, 64, 0.95) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.28) !important;
}

.card-icon-wrap {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

.card-icon-wrap svg {
  width: 20px !important;
  height: 20px !important;
}

.login-method-card:hover .card-icon-wrap {
  background: rgba(0, 240, 255, 0.12) !important;
  color: #00f0ff !important;
}

.login-method-card.selected-card .card-icon-wrap {
  background: #00f0ff !important;
  color: #060b14 !important;
}

.card-meta {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.card-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.card-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.card-desc {
  font-size: 0.78rem !important;
  color: #8fa0b8 !important;
  margin: 0 !important;
}

.card-arrow {
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
}

.card-arrow svg {
  width: 18px !important;
  height: 18px !important;
}

.login-method-card:hover .card-arrow {
  color: #00f0ff !important;
  transform: translateX(3px) !important;
}

.login-method-card.selected-card .card-arrow {
  color: #00f0ff !important;
  transform: translateX(4px) !important;
}

.method-vault-card {
  border-color: rgba(0, 209, 130, 0.3) !important;
  background: rgba(0, 209, 130, 0.05) !important;
  margin-bottom: 12px !important;
}

.vault-icon-glow {
  background: rgba(0, 209, 130, 0.12) !important;
  color: #00d182 !important;
}

/* Badges */
.card-badge {
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.badge-recommended {
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #00f0ff !important;
}

.badge-cyan {
  background: rgba(0, 209, 130, 0.1) !important;
  border: 1px solid rgba(0, 209, 130, 0.3) !important;
  color: #00d182 !important;
}

/* ================= 4. STEP 2 FORM VIEWS ================= */
.step-back-row {
  margin-bottom: 16px !important;
}

.btn-step-back,
#btn-step-back {
  color: #38bdf8 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.86rem !important;
  cursor: pointer !important;
  padding: 4px 0 !important;
  transition: all 0.15s ease !important;
}

.btn-step-back:hover,
#btn-step-back:hover {
  color: #00f0ff !important;
  transform: translateX(-2px) !important;
}

.btn-step-back svg,
#btn-step-back svg {
  width: 16px !important;
  height: 16px !important;
}

.method-form-panel {
  animation: fadeInStep 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* Textareas */
.web3-textarea {
  width: 100% !important;
  background: rgba(12, 18, 30, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-family: 'JetBrains Mono', monospace, sans-serif !important;
  outline: none !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.web3-textarea:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 16px rgba(0, 240, 255, 0.15) !important;
}

.web3-textarea::placeholder {
  color: #64748b !important;
}

/* Input wrappers */
.web3-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: rgba(12, 18, 30, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  padding: 0 14px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
}

.web3-input-wrapper:focus-within {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 16px rgba(0, 240, 255, 0.15) !important;
  background: rgba(12, 18, 30, 0.98) !important;
}

.web3-input-wrapper .field-icon {
  width: 18px !important;
  height: 18px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}

.web3-input-wrapper input,
.web3-pw-input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  outline: none !important;
  padding: 12px 0 !important;
  box-sizing: border-box !important;
}

.web3-input-wrapper input::placeholder,
.web3-pw-input::placeholder {
  color: #64748b !important;
}

.btn-eye-toggle {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

.btn-eye-toggle:hover,
.btn-eye-toggle.showing {
  color: #00f0ff !important;
}

.btn-eye-toggle svg {
  width: 18px !important;
  height: 18px !important;
}

/* Primary Submit Buttons */
.btn-web3-submit,
.btn-primary.btn-web3-submit,
.btn-web3-blue {
  width: 100% !important;
  padding: 14px 18px !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  background: linear-gradient(135deg, #0088cc 0%, #00f0ff 100%) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35) !important;
  color: #060b14 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

.btn-web3-submit:hover,
.btn-primary.btn-web3-submit:hover,
.btn-web3-blue:hover {
  box-shadow: 0 6px 26px rgba(0, 240, 255, 0.55) !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}

.btn-web3-submit:active,
.btn-primary.btn-web3-submit:active,
.btn-web3-blue:active {
  transform: translateY(0) !important;
}

/* DANGER / WIPE BUTTON (Explicit styling requested) */
.btn-link-danger,
.btn-web3-danger,
#btn-login-vault-wipe {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 12px !important;
  transition: all 0.2s !important;
  text-align: center !important;
  display: block !important;
  box-sizing: border-box !important;
  font-size: 0.9rem !important;
  outline: none !important;
}

.btn-link-danger:hover,
.btn-web3-danger:hover,
#btn-login-vault-wipe:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ef4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2) !important;
}

.vault-footer-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 6px !important;
}

/* Status Badges */
.vault-status-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  color: #10b981 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vault-status-badge .pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  animation: dotGlow 2s infinite ease-in-out !important;
}

@keyframes dotGlow {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Pills (Length, Chain) */
.pill-selector {
  display: inline-flex !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 4px !important;
}

.seed-len-btn,
.pk-chain-pill,
.create-len-btn,
.watch-chain-pill {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.seed-len-btn:hover,
.pk-chain-pill:hover,
.create-len-btn:hover,
.watch-chain-pill:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.seed-len-btn.active,
.pk-chain-pill.active,
.create-len-btn.active,
.watch-chain-pill.active {
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

.panel-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}

.panel-meta-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.word-counter-badge {
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.word-counter-badge.count-complete {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

.btn-mini-action {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #38bdf8 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-mini-action:hover {
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
}

.btn-mini-action svg {
  width: 14px !important;
  height: 14px !important;
}

/* Keystore Dropzone */
.keystore-dropzone {
  border: 2px dashed rgba(0, 240, 255, 0.3) !important;
  border-radius: 14px !important;
  background: rgba(0, 240, 255, 0.03) !important;
  padding: 24px 16px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #94a3b8 !important;
  font-size: 0.86rem !important;
  position: relative !important;
}

.keystore-dropzone:hover,
.keystore-dropzone.drag-over {
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.08) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
  color: #ffffff !important;
}

.keystore-dropzone svg {
  width: 32px !important;
  height: 32px !important;
  color: #00f0ff !important;
}

.keystore-dropzone input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  width: 100% !important;
  height: 100% !important;
}

.panel-hint {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin: 0 0 8px 0 !important;
}

.panel-sub-hint {
  font-size: 0.76rem !important;
  color: #64748b !important;
}

.detected-chain-pill {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.1) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

/* New Wallet Banner */
.new-wallet-banner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  background: rgba(0, 240, 255, 0.05) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-radius: 14px !important;
  margin: 12px 0 !important;
}

.nw-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nw-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.nw-title {
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #00f0ff !important;
  margin: 0 0 2px 0 !important;
}

.nw-desc {
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* ================= 5. STEP 3 SUCCESS STATE ================= */
.success-state-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 14px 8px !important;
  animation: fadeInStep 0.3s ease !important;
}

.success-icon-wrap {
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.success-icon-pulse {
  position: absolute !important;
  inset: -8px !important;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  animation: emblemPulse 2.5s infinite ease-in-out !important;
}

.success-icon-box {
  position: relative !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(20, 32, 55, 0.95), rgba(10, 18, 33, 0.98)) !important;
  border: 1.5px solid #00f0ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35) !important;
}

.success-icon-box svg {
  width: 28px !important;
  height: 28px !important;
}

.success-main-title {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
}

.success-sub-text {
  font-size: 0.84rem !important;
  color: #94a3b8 !important;
  margin: 0 0 20px 0 !important;
}

.success-details-card {
  width: 100% !important;
  max-width: 440px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 22px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.success-detail-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.85rem !important;
}

.s-label {
  color: #64748b !important;
  font-weight: 500 !important;
}

.s-val {
  color: #f8fafc !important;
  font-weight: 600 !important;
}

.s-val.mono {
  font-family: 'JetBrains Mono', monospace !important;
  color: #00f0ff !important;
}

.s-addr-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-copy-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.15s ease !important;
}

.btn-copy-chip:hover {
  color: #ffffff !important;
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: #00f0ff !important;
}

.btn-copy-chip svg {
  width: 14px !important;
  height: 14px !important;
}

.text-emerald {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.btn-large-cta {
  max-width: 320px !important;
}

/* ================= 6. SECURITY NOTICE BOX ================= */
.web3-security-notice {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  background: rgba(0, 240, 255, 0.035) !important;
  border: 1px solid rgba(0, 240, 255, 0.16) !important;
  margin-top: 24px !important;
  box-sizing: border-box !important;
}

.sec-icon {
  color: #00f0ff !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sec-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.sec-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.sec-primary {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  margin: 0 !important;
}

.sec-secondary {
  font-size: 0.73rem !important;
  color: #8fa0b8 !important;
  margin: 0 !important;
}

/* ================= 7. RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 960px) {
  .web3-auth-container {
    grid-template-columns: 1fr !important;
    max-width: 580px !important;
  }

  .web3-brand-panel {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 26px 22px !important;
    gap: 16px !important;
  }

  .web3-features-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .web3-brand-network-visual {
    display: none !important;
  }

  .web3-auth-flow {
    padding: 30px 22px !important;
  }
}

@media (max-width: 540px) {
  .web3-login-viewport {
    padding: 16px 10px !important;
  }

  .web3-auth-container {
    border-radius: 20px !important;
  }

  .web3-brand-panel {
    padding: 20px 16px !important;
  }

  .web3-brand-title {
    font-size: 1.25rem !important;
  }

  .web3-features-grid {
    display: none !important;
  }

  .web3-steps-indicator .step-label {
    display: none !important;
  }

  .web3-auth-flow {
    padding: 24px 16px !important;
  }

  .login-method-card {
    padding: 12px 14px !important;
  }

  .step-main-heading {
    font-size: 1.3rem !important;
  }
}


/* ==========================================================================
   PRECISION WEB3 INPUT COMPONENT SYSTEM (Zero Overlap, Pure Flex Alignment)
   ========================================================================== */

/* 1. Universal Input Container / Wrapper */
.web3-input-wrapper,
.input-wrapper.web3-input-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  background: rgba(8, 14, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 0 10px 0 14px !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  overflow: hidden !important;
}

.web3-input-wrapper:hover,
.input-wrapper.web3-input-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(10, 16, 30, 0.98) !important;
}

.web3-input-wrapper:focus-within,
.input-wrapper.web3-input-wrapper:focus-within {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 16px rgba(0, 240, 255, 0.12) !important;
  background: rgba(10, 16, 30, 1) !important;
}

.web3-input-wrapper:not(:has(button)) {
  padding: 0 14px !important;
}

/* 2. Left Icon Slot: Static flex item, never absolute, dedicated width, vertical centered */
.web3-input-wrapper .field-icon,
.web3-input-wrapper > svg.field-icon,
.web3-input-wrapper svg,
.input-wrapper.web3-input-wrapper svg.field-icon,
.input-wrapper.web3-input-wrapper > svg:first-child {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 12px 0 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transition: color 0.2s ease !important;
}

.web3-input-wrapper:focus-within .field-icon,
.web3-input-wrapper:focus-within > svg.field-icon,
.input-wrapper.web3-input-wrapper:focus-within svg.field-icon {
  color: #00f0ff !important;
}

/* 3. Input Text Field: Center-aligned vertically, flex-1, zero overlap with icon or actions */
.web3-input-wrapper input,
.web3-input-wrapper .web3-pw-input,
.input-wrapper.web3-input-wrapper input,
.input-wrapper.web3-input-wrapper input.web3-pw-input,
.input-has-icon.web3-input-wrapper input,
.web3-input-wrapper.input-has-icon input,
.input-has-icon .web3-input-wrapper input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  line-height: normal !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

.web3-input-wrapper > input:last-child {
  padding-right: 4px !important;
}

.web3-input-wrapper input::placeholder,
.web3-input-wrapper .web3-pw-input::placeholder,
.input-wrapper.web3-input-wrapper input::placeholder {
  color: #64748b !important;
  font-size: 0.91rem !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  line-height: normal !important;
}

/* 4. Right Action Button (Eye toggle, clear, copy, dropdown): Fixed clickable area, centered */
.web3-input-wrapper .btn-eye-toggle,
.web3-input-wrapper > button,
.input-wrapper.web3-input-wrapper .btn-eye-toggle {
  position: static !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  margin: 0 0 0 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  border-radius: 8px !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

.web3-input-wrapper .btn-eye-toggle:hover,
.web3-input-wrapper > button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.web3-input-wrapper .btn-eye-toggle.showing {
  color: #00f0ff !important;
}

.web3-input-wrapper .btn-eye-toggle svg {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  pointer-events: none !important;
  margin: 0 !important;
}

/* 5. Textarea (Multiline Inputs): Left icon near top, text starts at correct top padding */
.web3-textarea {
  width: 100% !important;
  min-height: 110px !important;
  background: rgba(8, 14, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-family: var(--font-mono), monospace !important;
  line-height: 1.6 !important;
  padding: 14px 16px !important;
  outline: none !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  margin: 0 !important;
  display: block !important;
}

.web3-textarea:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.web3-textarea:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 16px rgba(0, 240, 255, 0.12) !important;
  background: rgba(10, 16, 30, 1) !important;
}

.web3-textarea::placeholder {
  color: #64748b !important;
  font-family: var(--font-sans), sans-serif !important;
  font-size: 0.90rem !important;
}

.web3-input-wrapper:has(textarea),
.input-wrapper:has(textarea) {
  height: auto !important;
  min-height: 110px !important;
  max-height: none !important;
  align-items: flex-start !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.web3-input-wrapper:has(textarea) .field-icon,
.input-wrapper:has(textarea) svg.field-icon {
  align-self: flex-start !important;
  margin-top: 2px !important;
  position: static !important;
  transform: none !important;
}

/* 6. Seed Phrase Inputs / Mnemonic Preview Boxes */
.mnemonic-word,
.seed-word-item {
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  padding: 0 12px !important;
  background: rgba(8, 14, 26, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  gap: 10px !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.mnemonic-word:hover,
.seed-word-item:hover {
  border-color: rgba(0, 240, 255, 0.35) !important;
  background: rgba(12, 18, 34, 0.98) !important;
}

.mnemonic-word span:first-child,
.mnemonic-word .word-index,
.seed-word-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  background: rgba(0, 240, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #38bdf8 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  font-family: var(--font-mono), monospace !important;
  flex-shrink: 0 !important;
}

.mnemonic-word span:last-child,
.mnemonic-word .word-text,
.seed-word-text {
  color: #ffffff !important;
  font-family: var(--font-mono), monospace !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  flex: 1 !important;
}

/* 7. Dropdowns & Selects (Perfect vertical arrow alignment) */
select,
.settings-select-input,
.web3-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  background: rgba(8, 14, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  padding: 0 42px 0 16px !important;
  cursor: pointer !important;
  outline: none !important;
  box-sizing: border-box !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 14px) center !important;
  background-size: 16px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

select:hover,
.settings-select-input:hover,
.web3-select:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

select:focus,
.settings-select-input:focus,
.web3-select:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 16px rgba(0, 240, 255, 0.12) !important;
}

select option {
  background: #080e1a !important;
  color: #ffffff !important;
}

/* 8. Other App Inputs (Send, Receive, Settings) */
.input-modern,
.mono-input,
.amount-big-input,
#send-to,
#send-amount,
#send-memo,
#asset-search-input,
#tx-search-input {
  height: 52px !important;
  min-height: 52px !important;
  background: rgba(8, 14, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 0.94rem !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-modern:focus,
#send-to:focus,
#send-amount:focus,
#send-memo:focus,
#asset-search-input:focus,
#tx-search-input:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 16px rgba(0, 240, 255, 0.12) !important;
}

/* 9. Clean Error State */
.web3-input-wrapper.error,
.web3-input-wrapper.has-error,
.web3-input-wrapper.is-invalid,
.web3-textarea.has-error,
.web3-textarea.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 0 16px rgba(239, 68, 68, 0.12) !important;
}

.web3-input-wrapper.error .field-icon,
.web3-input-wrapper.has-error .field-icon,
.web3-input-wrapper.is-invalid .field-icon {
  color: #ef4444 !important;
}
