/* ==========================================================================
   ELAIYA // OBSIDIAN MIDNIGHT & SHIMMERING METALLIC SILVER DESIGN
   ========================================================================== */

:root {
  /* Deep Obsidian & Midnight Navy Palette (Matching Elaiya Logo) */
  --bg-obsidian-deep: #05070d;
  --bg-obsidian-surface: #090d16;
  --bg-obsidian-card: #0d121f;
  
  /* Frosted Metallic Glass Surfaces */
  --metallic-glass-nav: rgba(14, 19, 32, 0.65);
  --metallic-glass-card: rgba(13, 18, 30, 0.6);
  --metallic-glass-card-hover: rgba(18, 24, 40, 0.7);
  
  /* Metallic Silver Button Gradients */
  --btn-metallic-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(175, 190, 210, 0.08) 50%, rgba(255, 255, 255, 0.14) 100%);
  --btn-metallic-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(195, 210, 230, 0.14) 50%, rgba(255, 255, 255, 0.22) 100%);
  
  /* Chrome & Specular Hairline Highlights */
  --border-silver: rgba(255, 255, 255, 0.16);
  --border-silver-bright: rgba(255, 255, 255, 0.38);
  --border-chrome-highlight: rgba(255, 255, 255, 0.6);
  --glass-inner-specular: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.5);
  
  /* Metallic Light Beam Glow */
  --silver-beam-glow: 0 2px 14px rgba(220, 235, 255, 0.8), 0 0 24px rgba(180, 210, 255, 0.4);
  
  /* Typography */
  --text-main: #f8fafc;
  --text-silver: #cbd5e1;
  --text-muted: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.36s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius-card: 24px;
  --radius-button: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-obsidian-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Custom Metallic Glass Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 8, 14, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Ambient Deep Obsidian Flare Backdrop */
.space-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.25;
}

.flare-top {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, #1a2744 0%, #0c1220 60%, transparent 80%);
  top: -150px;
  left: 15%;
}

.flare-center {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #131c30 0%, #080c14 60%, transparent 80%);
  bottom: -150px;
  right: 15%;
}

/* Master Layout Frame */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
}

/* ==========================================================================
   TOP FROSTED METALLIC NAVIGATION
   ========================================================================== */

.metallic-glass-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--metallic-glass-nav);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-silver);
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--glass-inner-specular);
  transition: var(--transition-smooth);
}

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

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.elaiya-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Premium Segmented Metallic Language Switcher */
.lang-segmented-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid var(--border-silver);
  border-radius: 30px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lang-pill {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-pill:hover {
  color: var(--text-silver);
}

.lang-pill.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(180, 200, 225, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-silver);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: pulseLiveWhite 2s infinite ease-in-out;
}

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

/* ==========================================================================
   MAIN WORKSPACE & FROSTED METALLIC CARD
   ========================================================================== */

.main-workspace {
  width: 100%;
}

.workspace-section {
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 100%;
}

.hidden-view {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

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

/* Metallic Glass Card */
.metallic-glass-card {
  position: relative;
  background: var(--metallic-glass-card);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-card);
  padding: 70px 36px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.7),
    0 15px 30px -15px rgba(0, 0, 0, 0.8),
    var(--glass-inner-specular);
  transition: var(--transition-smooth);
}

.metallic-glass-card:hover, .metallic-glass-card.drag-over {
  border-color: var(--border-silver-bright);
  background: var(--metallic-glass-card-hover);
  transform: translateY(-2px);
  box-shadow: 
    0 35px 80px -10px rgba(0, 0, 0, 0.8),
    0 20px 40px -15px rgba(0, 0, 0, 0.9),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.45);
}

.glass-surface-highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.glass-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hidden-file-input {
  display: none;
}

/* ==========================================================================
   SHIMMERING METALLIC SILVER BUTTON (Мерцающая серым металлическим)
   ========================================================================== */

.button-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Metallic Shimmer Button */
.metallic-shimmer-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 40px 14px 20px;
  background: var(--btn-metallic-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-silver-bright);
  border-radius: var(--radius-button);
  cursor: pointer;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  box-shadow: 
    0 16px 36px -8px rgba(0, 0, 0, 0.6),
    0 6px 14px -4px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-spring);
}

/* Bottom Specular Refraction Beam */
.metallic-bottom-refraction {
  position: absolute;
  bottom: -2px;
  left: 12%;
  right: 12%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), #ffffff, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 50%;
  filter: blur(0.6px);
  box-shadow: var(--silver-beam-glow);
  opacity: 0.88;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Continuous Metallic Silver Shimmer Wave across the button */
.metallic-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(220, 235, 255, 0.75) 55%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: metallicGleam 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes metallicGleam {
  0% { left: -160%; opacity: 0; }
  10% { opacity: 1; }
  45% { left: 160%; opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

.metallic-shimmer-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--btn-metallic-hover);
  border-color: var(--border-chrome-highlight);
  box-shadow: 
    0 22px 46px -8px rgba(0, 0, 0, 0.7),
    0 8px 18px -4px rgba(0, 0, 0, 0.6),
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.6),
    0 0 25px rgba(255, 255, 255, 0.15);
}

.metallic-shimmer-button:hover .metallic-bottom-refraction {
  opacity: 1;
  box-shadow: 0 2px 18px rgba(255, 255, 255, 1), 0 0 35px rgba(220, 235, 255, 0.7);
}

.metallic-shimmer-button:active {
  transform: translateY(1px) scale(0.99);
}

.button-inner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Metallic Chrome Icon Box */
.icon-metallic-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(160, 175, 195, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.metallic-shimmer-button:hover .icon-metallic-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(180, 195, 215, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.6);
}

.icon-upload-glyph {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.button-text-label {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.drag-hint-text {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.1px;
}

/* ==========================================================================
   SCANNING STATE
   ========================================================================== */

.scan-card-wrap {
  padding: 58px 36px;
}

.metallic-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), #ffffff, rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  animation: laserSweep 2.2s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes laserSweep {
  0% { top: 0%; opacity: 0.2; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0.2; }
}

.scan-file-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-silver);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-inner-specular);
}

.file-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.file-info-col {
  text-align: left;
}

.scan-filename {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

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

.scan-progress-wrapper {
  width: 100%;
  max-width: 440px;
}

.scan-state-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
  margin-bottom: 10px;
}

.metallic-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-silver);
  border-radius: 10px;
  overflow: hidden;
}

.metallic-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), #ffffff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transition: width 0.3s ease;
}

.scan-meta-split {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

.meta-time {
  font-family: var(--font-mono);
  color: var(--text-silver);
}

.scan-subhint {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESULT WORKSPACE
   ========================================================================== */

.result-glass-card {
  padding: 0;
  text-align: left;
  cursor: default;
}

.result-nav-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(10, 14, 24, 0.7);
  border-bottom: 1px solid var(--border-silver);
}

.doc-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.result-doc-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-pills-group {
  display: flex;
  gap: 6px;
}

.stat-bubble {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-num {
  color: #fff;
  font-weight: 600;
}

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

.glass-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-silver);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-silver-bright);
  color: #fff;
}

.glass-action-btn.primary-action {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-silver-bright);
  color: #fff;
}

.glass-action-btn.primary-action:hover {
  background: rgba(255, 255, 255, 0.22);
}

.glass-action-btn.reset-action {
  color: var(--text-muted);
}

.glass-action-btn.reset-action:hover {
  color: #fff;
}

/* Glass Editor Frame */
.glass-editor-frame {
  display: flex;
  min-height: 440px;
  max-height: 65vh;
  background: rgba(8, 11, 18, 0.9);
  position: relative;
  overflow: hidden;
}

.editor-gutter {
  width: 44px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  user-select: none;
  overflow: hidden;
  line-height: 1.7;
}

.editor-textarea-wrapper {
  flex: 1;
  position: relative;
  display: flex;
}

.glass-textarea {
  width: 100%;
  height: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #f1f5f9;
  tab-size: 4;
}

.result-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(10, 14, 24, 0.7);
  border-top: 1px solid var(--border-silver);
  font-size: 11px;
}

.footer-msg {
  color: var(--text-muted);
}

.footer-pill {
  font-weight: 600;
  color: var(--text-silver);
}

/* Toast */
.glass-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(15, 20, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.glass-toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-bullet {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .result-nav-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* ==========================================================================
   ELAIYA SEED PHRASE AUTHENTICATION STYLES (OBSIDIAN & METALLIC GLASS)
   ========================================================================== */

.login-workspace {
  max-width: 620px;
  margin: 40px auto 30px;
  padding: 0 20px;
  width: 100%;
}

.login-card-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.login-inner {
  padding: 38px 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.login-icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.login-emblem-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 200, 255, 0.25) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 100%);
  filter: blur(8px);
}

.login-emblem-core {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(20, 28, 48, 0.8) 100%);
  border: 1px solid var(--border-silver-bright);
  box-shadow: var(--glass-inner-specular), 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-lock-icon {
  width: 26px;
  height: 26px;
  color: #f8fafc;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

.login-heading-group {
  text-align: center;
  margin-bottom: 28px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-silver);
  max-width: 440px;
  line-height: 1.5;
  opacity: 0.88;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.seed-input-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.seed-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-silver);
}

.seed-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seed-word-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.seed-word-count.complete {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}

.seed-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-silver);
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seed-tool-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.seed-field-wrapper {
  position: relative;
  width: 100%;
}

.seed-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  min-height: 84px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.seed-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 225, 255, 0.25);
}

.seed-textarea.masked-text {
  -webkit-text-security: disc;
  letter-spacing: 2px;
}

.login-btn-wrap {
  width: 100%;
  margin-top: 6px;
}

.login-submit-btn {
  width: 100%;
}

.hidden {
  display: none !important;
}

.login-error-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
  animation: fadeIn 0.2s ease;
}

.login-success-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
  animation: fadeIn 0.2s ease;
}

.login-footer-info {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.shield-mini-icon {
  color: var(--text-muted);
}

.auth-dot {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
}

/* Shake Animation on Wrong Seed */
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake-anim {
  animation: cardShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Logout Button in Main App Navbar */
.nav-logout-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-silver);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
