/* ========================================
   MODALS
======================================== */
.modal {
  position: fixed; 
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,30,0.95);
  z-index: 400;
}

.modal.hidden { 
  display: none; 
}

.modal-panel { 
  width: 520px; 
  padding: 18px; 
  max-width: 90vw; 
}

.confirm-panel {
  background: linear-gradient(180deg, #0b1220, #091226) !important;
}

.menu-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Word Bank Selector */
.word-bank-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

.word-bank-select {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.word-bank-select:focus {
  outline: none;
  border-color: var(--accent-blu);
  background: rgba(255,255,255,0.08);
}

/* Import Area */
.import-area {
  width: 100%;
  height: 80px;
  resize: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  font-family: monospace;
}

.import-area:focus {
  height: 160px;
  background: rgba(255,255,255,0.05);
  outline: none;
  border-color: rgba(61,224,255,0.2);
}

/* Stats Modal */
.stats-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

.stat-label {
  font-weight: 600;
  color: var(--muted);
}

.stat-value {
  font-weight: 900;
  font-size: 22px;
  color: var(--accent1);
}