/* ====================================================================
   🛡️ FELEROUS DEVELOPER CONSOLE — CYBER SECURITY & DISASTER RECOVERY (v1.0)
   ==================================================================== */

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* --- 4 KADEMELİ FELAKET KORUMASI (DISASTER RECOVERY MODAL) --- */
.danger-zone-box {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.danger-zone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-rose);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.quarantine-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.quarantine-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
}

.quarantine-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.quarantine-step.danger .quarantine-step-num {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.4);
}

.phrase-match-box {
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent-rose);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 10px 0 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* TOTP 6 Haneli Pin Girişi */
.totp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
}

.totp-digit {
  width: 44px;
  height: 52px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.totp-digit:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* --- HASSAS VERİ MASKELEME (OBS / DISCORD KORUMASI) --- */
.secret-token-card {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.secret-token-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  word-break: break-all;
}

.secret-token-value.masked {
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.obs-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

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

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

/* ====================================================================
   🔐 TAM EKRAN GİRİŞ & GÜVENLİK KAPISI (FULL-SCREEN AUTH GATE)
   ==================================================================== */
body.auth-gate-active {
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 15%, #0f1c30 0%, #060911 100%) !important;
}

body.auth-gate-active #appContainer {
  display: none !important;
}

.auth-gate-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(6, 9, 17, 0.98) 75%);
}

.auth-gate-box {
  width: 100%;
  max-width: 480px;
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(20px);
  padding: 36px 32px;
  animation: fadeIn 0.25s ease;
  position: relative;
}

.auth-gate-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-gate-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.4));
  animation: pulse 2.5s infinite;
}

.auth-gate-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-gate-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.totp-digits-input {
  letter-spacing: 12px;
  text-align: center;
  font-size: 2rem !important;
  font-weight: 800;
  font-family: var(--font-mono) !important;
  padding: 12px 16px !important;
  color: var(--accent-cyan) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: var(--radius-md) !important;
}

.totp-digits-input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35) !important;
}

.backup-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin: 12px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  text-align: center;
}

