/* ==========================================================================
   TakinCyber - Modals, Dialogs & Footer Legal Styles
   Strict RTL • Heebo Typography • Glassmorphism
   ========================================================================== */

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  padding: 2.5rem;
  position: relative;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.input-cyber {
  width: 100%;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  direction: ltr;
  text-align: left;
  outline: none;
}

.input-cyber:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.modal-result-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--cyber-emerald);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  text-align: center;
  color: #ecfdf5;
}

.masked-email-badge {
  font-family: monospace;
  font-size: 1.15rem;
  color: var(--cyan-glow);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  display: inline-block;
  margin: 0.6rem 0;
  direction: ltr;
}
/* Modal Switcher Tabs */
.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}
.modal-tab-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  text-align: center;
}
.modal-tab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
}
.modal-tab-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(0, 240, 255, 0.1));
  border-color: var(--cyan-glow);
  color: #fff;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}
.modal-tab-btn.tab-admin.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.1));
  border-color: #f59e0b;
  color: #fde047;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.auth-error-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
}

/* --- Footer & Section 20 Disclaimer --- */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 3rem 1.5rem;
  background: rgba(2, 6, 23, 0.85);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
  position: relative;
  z-index: 5;
}

.legal-disclaimer-card {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
