/* ELITE WHITE-PURPLE DESIGN SYSTEM - NAMESPACE .tfa- */
.tfa-wrapper {
  margin-left: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.tfa-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* HEADER */
.tfa-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; }
.tfa-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #fff, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.tfa-subtitle { margin: 4px 0 0; color: #a1a1aa; font-size: 14px; }
.tfa-header-right { display: flex; gap: 16px; align-items: center; }
.tfa-stat-chip { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,0.05); }

/* HERO */
.tfa-hero { padding: 32px; display: flex; align-items: center; gap: 24px; position: relative; overflow: hidden; border-left: 4px solid transparent; }
.tfa-hero.secured { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(34,197,94,0.1), transparent); }
.tfa-hero.unsecured { border-left-color: #ef5350; background: linear-gradient(90deg, rgba(239,83,80,0.1), transparent); }
.tfa-hero-icon { font-size: 48px; }
.tfa-hero.secured .tfa-hero-icon { color: #22c55e; filter: drop-shadow(0 0 20px rgba(34,197,94,0.5)); animation: tfaPulseGreen 2s infinite; }
.tfa-hero.unsecured .tfa-hero-icon { color: #ef5350; filter: drop-shadow(0 0 20px rgba(239,83,80,0.5)); }
.tfa-hero-info { flex: 1; }
.tfa-hero-title { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.tfa-hero-desc { font-size: 14px; color: #e4e4e7; margin: 0; }

/* PANELS GRID */
.tfa-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.tfa-panel { padding: 24px; }
.tfa-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.tfa-panel-title { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; color: #e4e4e7; }

/* METHODS LIST */
.tfa-methods-list { display: flex; flex-direction: column; gap: 16px; }
.tfa-method-card { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; transition: all 0.3s; }
.tfa-method-card:hover { border-color: rgba(6,182,212,0.4); transform: translateX(4px); }
.tfa-method-main { display: flex; align-items: center; gap: 16px; }
.tfa-method-logo { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center; font-size: 24px; }
.tfa-method-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tfa-method-meta { margin: 0; font-size: 12px; color: #a1a1aa; }
.tfa-badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tfa-badge-primary { background: rgba(6,182,212,0.1); color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); }

/* DEVICES & RECOVERY */
.tfa-recovery-status { display: flex; justify-content: center; align-items: center; padding: 24px; background: rgba(251,191,36,0.1); border: 1px dashed rgba(251,191,36,0.3); border-radius: 12px; }
.tfa-recovery-count { font-size: 18px; font-weight: 800; color: #fbbf24; }

.tfa-devices-list { display: flex; flex-direction: column; gap: 12px; }
.tfa-device-item { padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.tfa-device-info h4 { margin: 0 0 4px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.tfa-device-info p { margin: 0; font-size: 11px; color: #a1a1aa; line-height: 1.4; }
.tfa-current-badge { color: #22c55e; font-size: 10px; font-weight: 700; padding: 2px 6px; background: rgba(34,197,94,0.1); border-radius: 4px; }

/* MODALS */
.tfa-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.tfa-modal.active { display: flex; animation: tfaFadeIn 0.3s forwards; }
.tfa-modal-card { width: 100%; max-width: 500px; padding: 32px; position: relative; }
.tfa-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; }
.tfa-modal-header h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.tfa-btn-close { background: transparent; border: none; color: #a1a1aa; font-size: 24px; cursor: pointer; transition: color 0.3s; }
.tfa-btn-close:hover { color: #ef5350; }

/* WIZARD & SETUP */
.tfa-wizard-step { display: none; animation: tfaSlideUp 0.3s; }
.tfa-wizard-step.active { display: block; }
.tfa-method-option { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; margin-bottom: 16px; cursor: pointer; transition: all 0.3s; background: rgba(255,255,255,0.02); }
.tfa-method-option:hover { border-color: #c084fc; background: rgba(168,85,247,0.05); transform: translateY(-2px); }
.tfa-method-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 20px; }
.tfa-method-info { flex: 1; }
.tfa-method-info h4 { margin: 0 0 4px; font-size: 15px; }
.tfa-method-info p { margin: 0; font-size: 12px; color: #a1a1aa; }

.tfa-qr-mock { width: 150px; height: 150px; background: #fff; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 80px; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.tfa-secret-key { font-family: monospace; font-size: 18px; color: #c084fc; letter-spacing: 2px; padding: 8px 12px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; margin-top: 4px; display: inline-block; }

.tfa-recovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #000; padding: 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.tfa-recovery-code { font-family: monospace; font-size: 16px; color: #06b6d4; text-align: center; padding: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.tfa-warning-box { background: rgba(251,191,36,0.1); border-left: 4px solid #fbbf24; padding: 12px 16px; border-radius: 6px; color: #fbbf24; margin-bottom: 16px; }

/* TABLE */
.tfa-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.tfa-table th { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #a1a1aa; font-weight: 600; text-transform: uppercase; }
.tfa-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #e4e4e7; }
.tfa-status-success { color: #22c55e; }
.tfa-status-fail { color: #ef5350; }

/* INPUTS & BUTTONS */
.tfa-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px; border-radius: 8px; outline: none; font-family: 'Inter'; font-size: 14px; transition: border-color 0.3s; }
.tfa-input:focus { border-color: #c084fc; }
.tfa-checkbox { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #e4e4e7; cursor: pointer; }
.tfa-checkbox input { accent-color: #a855f7; width: 16px; height: 16px; cursor: pointer; }

.tfa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.3s; border: none; font-family: 'Inter'; text-transform: uppercase; letter-spacing: 0.5px; }
.tfa-btn-sm { padding: 8px 12px; font-size: 11px; }
.tfa-btn-primary { background: #a855f7; color: #fff; }
.tfa-btn-primary:hover:not(:disabled) { background: #c084fc; box-shadow: 0 0 20px rgba(168,85,247,0.4); }
.tfa-btn-primary:disabled { background: rgba(255,255,255,0.1); color: #a1a1aa; cursor: not-allowed; }
.tfa-btn-outline { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.tfa-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.tfa-btn-danger { background: rgba(239,83,80,0.1); color: #ef5350; border: 1px solid rgba(239,83,80,0.4); }
.tfa-btn-danger:hover { background: #ef5350; color: #fff; box-shadow: 0 0 20px rgba(239,83,80,0.4); }

/* ANIMATIONS */
.tfa-pulse-icon { animation: tfaPulsePurple 2s infinite; }
.tfa-confetti { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 10; }
.tfa-particle { position: absolute; width: 8px; height: 8px; opacity: 0; }

@keyframes tfaFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tfaSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tfaPulseGreen { 0% { filter: drop-shadow(0 0 0 rgba(34,197,94,0.4)); } 70% { filter: drop-shadow(0 0 20px rgba(34,197,94,0)); } 100% { filter: drop-shadow(0 0 0 rgba(34,197,94,0)); } }
@keyframes tfaPulsePurple { 0% { filter: drop-shadow(0 0 0 rgba(168,85,247,0.4)); } 70% { filter: drop-shadow(0 0 30px rgba(168,85,247,0)); } 100% { filter: drop-shadow(0 0 0 rgba(168,85,247,0)); } }
@keyframes tfaConfettiFall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }