/* Modais de Autenticação OTP e Torre de Controle Master (AV7 War Room Global) */
.hidden { display: none !important; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(2, 6, 12, 0.84); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 9999;
}
.modal-overlay.show { display: flex; }

.auth-card, .secret-auth-card, .secret-admin-card {
  position: relative; width: 100%; background: #070e16; color: #e2e8f0;
  border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}
.auth-card, .secret-auth-card { max-width: 440px; padding: 28px 24px; }
.secret-admin-card { max-width: 1180px; max-height: 90vh; display: flex; flex-direction: column; padding: 24px; overflow: hidden; }

.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.35); background: rgba(6, 78, 59, 0.25); color: #cbd5e1;
  cursor: pointer; font-size: 14px; font-weight: 700;
}
.modal-close:hover { background: #059669; color: #fff; }

.auth-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.auth-title, .secret-title { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 20px; font-weight: 800; color: #fff; text-align: center; margin-bottom: 6px; }
.auth-subtitle, .secret-subtitle { font-size: 13px; color: #94a3b8; text-align: center; line-height: 1.5; margin-bottom: 18px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #34d399; pointer-events: none; }
.input-wrapper input, .secret-input-wrapper input {
  width: 100%; padding: 11px 12px 11px 38px; background: #02060a;
  border: 1px solid #065f46; border-radius: 8px; color: #fff; font-size: 13.5px;
}
.secret-input-wrapper { display: flex; flex-direction: column; gap: 10px; }
.secret-input-wrapper input { padding-left: 14px; }

.btn-auth, .btn-secret-submit {
  width: 100%; padding: 11px 16px; border-radius: 8px; border: 1px solid #34d399;
  background: rgba(16, 185, 129, 0.28); color: #ecfdf5; font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-auth:hover, .btn-secret-submit:hover { background: #059669; color: #fff; }
.btn-auth.loading { opacity: 0.65; pointer-events: none; }
.auth-error, .secret-error { color: #f87171; font-size: 12px; text-align: center; min-height: 16px; margin-top: 6px; }
.auth-footer-link { margin-top: 14px; text-align: center; font-size: 12.5px; color: #94a3b8; }
.auth-footer-link a { color: #34d399; font-weight: 600; text-decoration: none; }
.btn-back-email, .btn-resend { background: none; border: none; color: #34d399; font-size: 12px; cursor: pointer; margin-top: 10px; font-weight: 600; }
.auth-resend { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: #94a3b8; }

.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 6px 0; }
.otp-input {
  width: 42px; height: 48px; text-align: center; font-size: 18px; font-weight: 800;
  background: #02060a; border: 1px solid #065f46; border-radius: 8px; color: #fff;
}
.otp-input.filled { border-color: #34d399; }

/* Secret Admin Modal */
.secret-badge {
  display: inline-block; margin: 0 auto 10px; padding: 4px 10px; border-radius: 99px;
  background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
}
.secret-header { text-align: center; }
.secret-admin-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-right: 40px; }
.secret-badge-pulse { font-size: 10.5px; font-weight: 800; color: #34d399; letter-spacing: .08em; }
.secret-admin-title { font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0; }
.secret-admin-subtitle { font-size: 12.5px; color: #94a3b8; }

.secret-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.secret-kpi-item {
  background: rgba(3, 12, 16, 0.9); border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.kpi-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-size: 20px; font-weight: 800; color: #fff; }
.secret-kpi-item.online .kpi-value { color: #34d399; }
.secret-kpi-item.revenue .kpi-value { color: #f59e0b; }

.secret-system-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.secret-tab-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(3, 12, 16, 0.9); color: #cbd5e1; font-size: 12px; font-weight: 600; cursor: pointer;
}
.secret-tab-btn.active { background: #059669; border-color: #34d399; color: #fff; }

.secret-actions-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.secret-search-box { flex: 1; min-width: 220px; }
.secret-search-box input {
  width: 100%; padding: 9px 12px; background: #02060a; border: 1px solid #065f46;
  border-radius: 8px; color: #fff; font-size: 12.5px;
}
.secret-export-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-export-excel, .btn-export-pdf {
  padding: 9px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid;
}
.btn-export-excel { background: rgba(16, 185, 129, 0.22); border-color: #34d399; color: #ecfdf5; }
.btn-export-pdf { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; color: #fef3c7; }

.secret-table-container { flex: 1; overflow: auto; border: 1px solid rgba(16, 185, 129, 0.22); border-radius: 10px; }
.secret-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.secret-table th {
  position: sticky; top: 0; background: #051118; color: #34d399; text-align: left;
  padding: 10px 12px; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}
.secret-table td { padding: 9px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.secret-company-header-row td { background: rgba(16, 185, 129, 0.08); }
.badge-online { color: #34d399; font-weight: 700; font-size: 11px; }
.badge-offline { color: #f87171; font-weight: 700; font-size: 11px; }

