/* ── Fullscreen overlay ─────────────────────────────────────────────── */
.fullscreen {
  position: fixed; inset: 0;
  background: var(--tg-bg);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}

/* ── Auth Container (passphrase screen) ─────────────────────────────── */
.auth-container {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 32px 24px;
  width: 100%; max-width: 360px;
}

.auth-icon { color: var(--accent); opacity: 0.8; margin-bottom: 4px; }
.auth-container h2 { font-size: 22px; font-weight: 700; text-align: center; }
.auth-container .hint-text { font-size: 13px; text-align: center; line-height: 1.5; }

.auth-form {
  width: 100%;
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}

.auth-input {
  width: 100%; padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--tg-text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-input::placeholder { color: var(--hint); opacity: 0.6; }
/* ── PIN Screen ─────────────────────────────────────────────────────── */
.pin-container {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  padding: 24px;
}
.pin-icon { color: var(--accent); opacity: 0.8; }
.pin-screen h2, #pin-screen h2 { font-size: 20px; font-weight: 600; }
#pin-screen .hint-text { font-size: 13px; text-align: center; }

.pin-dots { display: flex; gap: 12px; }
.pin-dots .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.pin-dots .dot.filled { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.pin-dots .dot.error { background: var(--danger); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 10px; justify-content: center;
}
.pin-key {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--tg-text);
  font-size: 22px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.pin-key:active { background: var(--accent); color: #fff; transform: scale(0.92); }
.pin-key.placeholder { visibility: hidden; }
.pin-key.biometric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.pin-key.biometric img {
  width: 26px;
  height: 26px;
}
.pin-key.biometric:active { background: var(--accent); transform: scale(0.92); }
.pin-key.biometric:active img { filter: brightness(10); }
.pin-key.biometric.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Settings Screen ────────────────────────────────────────────────── */
.settings-container {
  width: 100%; max-width: 420px;
  padding: 0 16px 24px;
  overflow-y: auto;
  max-height: 100%;
}

.settings-header {
  display: flex; align-items: center;
  gap: 8px;
  padding: 12px 0 20px;
}
.settings-header h2 { flex: 1; font-size: 20px; font-weight: 700; }

.settings-section {
  margin-bottom: 24px;
}
.settings-section h3 {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--hint);
  margin-bottom: 10px;
  padding: 0 4px;
}

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.settings-row span {
  font-size: 15px; color: var(--tg-text);
  flex: 1; margin-right: 12px;
}

.settings-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--tg-text);
  font-size: 15px; font-family: var(--font);
  cursor: pointer; transition: var(--transition);
}
.settings-btn:active { background: var(--bg-card); }
.settings-btn.danger { color: var(--danger); }
/* ── Main ───────────────────────────────────────────────────────────── */
#main-content {
  flex: 1; overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; text-align: center; gap: 12px;
}
.empty-icon { opacity: 0.4; margin-bottom: 8px; }
.empty-state h2 { font-size: 20px; font-weight: 600; color: var(--tg-text); }

.hint-text { color: var(--tg-hint); font-size: 14px; line-height: 1.5; }
