/* ===================================================================
   LOBO 2FA AUTHENTICATOR SUITE — ESTILOS VIP
   Design: Obsidian Black & Brushed Silver VIP (Meta Contingência)
   =================================================================== */

/* ── Container Geral do 2FA ── */
.lobo-2fa-suite-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Hero / Banner do 2FA ── */
.lobo-2fa-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(30, 36, 48, 0.5) 0%, rgba(14, 16, 22, 0.8) 90%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl, 18px);
  padding: 32px 36px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lobo-2fa-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.lobo-2fa-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.lobo-2fa-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
}

.lobo-2fa-hero-title span.text-emerald,
.lobo-2fa-hero-title span.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.25));
}

.lobo-2fa-hero-desc {
  font-size: 13.5px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

.lobo-2fa-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.lobo-2fa-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.lobo-2fa-pill-tag.secure {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── Navegação de Sub-Abas do 2FA ── */
.lobo-2fa-subtabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.lobo-2fa-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 10px);
  color: var(--text-secondary, #94a3b8);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lobo-2fa-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.lobo-2fa-subtab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lobo-2fa-subtab-btn.active svg {
  color: #ffffff;
}

/* ── Caixa de Conteúdo Principal ── */
.lobo-2fa-card {
  background: rgba(15, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── MODO INDIVIDUAL (SINGLE ACCOUNT) ── */
.single-2fa-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .single-2fa-layout {
    grid-template-columns: 1fr;
  }
}

.single-input-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lobo-2fa-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lobo-2fa-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
}

.lobo-2fa-quick-actions {
  display: flex;
  gap: 8px;
}

.lobo-2fa-text-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.lobo-2fa-text-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lobo-2fa-input {
  width: 100%;
  padding: 14px 16px;
  background: #090c0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  font-size: 14px;
  font-family: monospace;
  transition: all 0.2s ease;
}

.lobo-2fa-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.lobo-2fa-help-note {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
}

.lobo-2fa-detected-box {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 12.5px;
}

/* ── Display do Código 2FA Individual ── */
.single-display-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(9, 12, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg, 16px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.single-display-col::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6) inset;
  pointer-events: none;
}

.lobo-2fa-token-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 12px;
}

.lobo-2fa-large-code {
  font-size: 42px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 6px;
  color: #ffffff;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: all;
  transition: transform 0.15s ease, color 0.15s ease;
}

.lobo-2fa-large-code:hover {
  transform: scale(1.03);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}

.lobo-2fa-large-code.is-invalid {
  font-size: 22px;
  letter-spacing: 2px;
  color: #ef4444;
}

/* ── Barra de Progresso do Timer ── */
.lobo-2fa-timer-wrapper {
  width: 100%;
  max-width: 280px;
  margin-bottom: 20px;
}

.lobo-2fa-timer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 6px;
}

.lobo-2fa-timer-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.lobo-2fa-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
  border-radius: 999px;
  transition: width 0.95s linear, background-color 0.3s ease;
}

.single-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.btn-2fa-copy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
  color: #000000;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-2fa-copy:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-2fa-copy.copied {
  background: #cbd5e1;
  color: #000000;
}

.btn-2fa-vault {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-2fa-vault:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-2fa-vault:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Link Rápido de Compartilhamento ── */
.lobo-2fa-share-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobo-2fa-share-input {
  flex: 1;
  padding: 8px 12px;
  background: #090c0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-secondary, #94a3b8);
  font-size: 12px;
  font-family: monospace;
}

/* ── MODO EM LOTE (BULK GENERATOR) ── */
.bulk-2fa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .bulk-2fa-grid {
    grid-template-columns: 1fr;
  }
}

.bulk-textarea {
  width: 100%;
  height: 220px;
  padding: 14px 16px;
  background: #090c0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md, 10px);
  color: #ffffff;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.bulk-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.bulk-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.bulk-select {
  padding: 8px 12px;
  background: #090c0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #ffffff;
  font-size: 12.5px;
  cursor: pointer;
}

/* ── Tabela Interativa de Contas em Lote ── */
.bulk-table-container {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: #090c0f;
}

.bulk-table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-table th {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #94a3b8);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bulk-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.bulk-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.bulk-account-title {
  font-weight: 600;
  color: #ffffff;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-account-secret {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  font-family: monospace;
}

.bulk-code-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-token-code {
  font-size: 16px;
  font-weight: 800;
  font-family: monospace;
  color: #ffffff;
  letter-spacing: 1px;
}

.bulk-code-cell.error .bulk-token-code {
  color: #ef4444;
  font-size: 13px;
}

.btn-copy-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-mini:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.bulk-timer-badge {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.bulk-timer-badge.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ── MODO COFRE LOCAL (VAULT) ── */
.vault-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.vault-card {
  background: #090c0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vault-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.vault-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.vault-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-btn-delete {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.vault-btn-delete:hover {
  color: #ef4444;
}

.vault-card-body {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vault-card-body:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vault-code-number {
  font-size: 26px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  color: #ffffff;
}

.vault-copy-hint {
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
}

.vault-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.vault-secret-mask code {
  color: var(--text-secondary, #94a3b8);
}

.vault-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 700;
}

.vault-timer-pill.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ── Toast de Feedback ── */
.lobo-2fa-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
}

.lobo-2fa-toast.show {
  opacity: 1;
  transform: translateY(0);
}
