/* ==========================================================================
   [06] PÁGINA: PERFIL SISTÊMICO
   ========================================================================== */
.dt-system-profile-wrapper {
  width: 100%; max-width: 700px; margin: 40px auto; padding: 0 15px;
  display: flex; flex-direction: column; gap: 24px;
}

/* ==========================================
   1. CABEÇALHO SÊNIOR
   ========================================== */
.dt-profile-header-card {
  background: #1e1e24; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(133, 32, 210, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
}

.dt-profile-banner { width: 100%; height: 180px; position: relative; background: #161618; }
.dt-banner-img { width: 100%; height: 100%; object-fit: cover; }
.dt-banner-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, #1e1e24 0%, rgba(30,30,36, 0.8) 50%, transparent 100%);
}

.dt-overlap-user-core {
  padding: 0 24px; margin-top: -60px;
  display: flex; justify-content: space-between; align-items: flex-end; 
  position: relative; z-index: 2; gap: 20px; flex-wrap: wrap;
}

.dt-user-identity { display: flex; align-items: flex-end; gap: 20px; flex: 1; }

.dt-profile-avatar-box { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.dt-profile-avatar-box img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 4px solid #8520d2; /* BORDA DO AVATAR AGORA É ROXA! */
}
.dt-universal-level {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: #8520d2; color: #fff; font-size: 11px; font-weight: 900;
  padding: 4px 14px; border-radius: 20px; /* Redondinho tipo pílula */
  border: 2px solid #1e1e24; z-index: 2;
  white-space: nowrap; /* TRAVA O TEXTO PARA NÃO QUEBRAR A LINHA NUNCA */
}

.dt-sys-user-titles { padding-bottom: 4px; display: flex; flex-direction: column; }
.dt-sys-user-titles h2 { color: #fff; font-size: 24px; font-weight: 900; margin: 0 0 2px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dt-handle { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 8px; }
.dt-bio-text { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; font-style: italic; line-height: 1.4; max-width: 350px; }
.dt-sys-badge { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.dt-sys-badge.vip { background: #8520d2; color: #fff; box-shadow: 0 0 10px rgba(133, 32, 210, 0.4); }

.dt-header-actions { display: flex; padding-bottom: 8px; }
.dt-btn-header-action {
  background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px; border-radius: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}
.dt-btn-header-action:hover { background: rgba(255,255,255,0.1); }

.dt-sys-level-container { padding: 24px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.03); }
.dt-sys-level-text { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;}
.dt-sys-level-text strong { color: #8520d2; font-weight: 900; } 
.dt-sys-progress-track { background: rgba(0,0,0,0.3); height: 12px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.dt-sys-progress-fill { height: 100%; border-radius: 12px; transition: width 0.5s ease-in-out; }
.tier-gold-bg { background: linear-gradient(90deg, #8520d2, #a64dff); box-shadow: 0 0 10px rgba(133, 32, 210, 0.4); } 

/* ==========================================
   2. MÓDULOS (Status, Segurança, Vinculadas)
   ========================================== */
.dt-sys-modules-stack { display: flex; flex-direction: column; gap: 20px; }
.dt-sys-module { background: #1e1e24; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.dt-sys-module.highlight-status { background: linear-gradient(180deg, rgba(133, 32, 210, 0.1) 0%, rgba(30, 30, 36, 1) 100%); border-color: rgba(133, 32, 210, 0.3); box-shadow: 0 10px 30px rgba(133, 32, 210, 0.05); }

.dt-sys-mod-header { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
.dt-sys-mod-header.compact { padding: 16px 20px; border-bottom: none; }
.dt-sys-mod-header h3 { color: #fff; font-size: 15px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.5px;}
.dt-sys-mod-header h3 i { color: #8520d2; font-size: 18px; }

.dt-btn-edit-module { background: rgba(133, 32, 210, 0.1); border: 1px solid rgba(133, 32, 210, 0.2); color: #a64dff; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.dt-btn-edit-module:hover { background: #8520d2; color: #fff; border-color: #8520d2; }

.dt-sys-mod-body { padding: 24px; }
.dt-sys-mod-body.compact-body { padding: 0 20px 20px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;}

.dt-sys-plan-info h4 { color: #fff; font-size: 18px; font-weight: 900; margin: 0 0 4px 0; }
.dt-sys-plan-info p { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0; }
.dt-sys-plan-info p strong { color: #fff; }
.dt-btn-sys-secondary { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 800; border: 1px solid rgba(255,255,255,0.1); transition: 0.2s; white-space: nowrap;}
.dt-btn-sys-secondary:hover { background: rgba(255,255,255,0.1); }

.dt-sys-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dt-sys-data-grid .full-width { grid-column: 1 / -1; }
.dt-data-item { display: flex; flex-direction: column; gap: 6px; }
.dt-data-item label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.dt-data-item span { color: #fff; font-size: 15px; font-weight: 600; margin: 0; line-height: 1.5; }

.dt-social-simple-list { display: flex; gap: 16px; flex-wrap: wrap; }
.dt-btn-soc-simple {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 10px; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: 0.2s;
  background: rgba(0,0,0,0.3); color: #fff; border: 1px solid rgba(255,255,255,0.05);
}
.dt-btn-soc-simple i { font-size: 18px; }
.dt-btn-soc-simple.discord i { color: #5865F2; }
.dt-btn-soc-simple.google i { color: #EA4335; }
.dt-btn-soc-simple:hover { background: rgba(255,255,255,0.05); }

/* ==========================================
   3. RODAPÉ E BOTÃO SAIR
   ========================================== */
.dt-sys-footer-actions { display: flex; justify-content: center; padding-top: 10px; }
.dt-btn-sys-logout { background: transparent; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); padding: 14px 24px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; width: 100%;}
.dt-btn-sys-logout:hover { background: #ef4444; color: #fff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }

/* ==========================================
   4. RESPONSIVO (O Segredo da Centralização)
   ========================================== */
@media (max-width: 768px) {
  .dt-overlap-user-core { flex-direction: column; align-items: center; margin-top: -60px; }
  
  /* Centraliza a identidade do usuário */
  .dt-user-identity { flex-direction: column; align-items: center; text-align: center; }
  .dt-sys-user-titles { align-items: center; } /* Centraliza o flex dos títulos */
  .dt-sys-user-titles h2 { justify-content: center; } /* Centraliza o Nome com a tag VIP */
  
  .dt-bio-text { text-align: center; margin-top: 10px; }
  
  /* Centraliza o botão Editar */
  .dt-header-actions { width: 100%; justify-content: center; margin-top: 10px; padding-bottom: 0; }
  
  .dt-sys-data-grid { grid-template-columns: 1fr; gap: 16px; }
  .dt-btn-soc-simple { min-width: 100%; }
  /* No celular, os botões de imagem ficam um embaixo do outro */
  .dt-modal-image-actions { grid-template-columns: 1fr; }
}

/* ==========================================
   5. MODAIS
   ========================================== */
.dt-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  z-index: 2000; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px;
}
.dt-modal-overlay.active { opacity: 1; visibility: visible; }

.dt-modal-premium-v2 {
  background: #1e1e24; width: 100%; max-width: 400px; border-radius: 16px;
  padding: 30px 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  transform: translateY(20px); transition: transform 0.3s ease; position: relative;
}
.dt-modal-overlay.active .dt-modal-premium-v2 { transform: translateY(0); }

.dt-close-modal {
  position: absolute; top: 12px; right: 16px; background: transparent;
  border: none; color: rgba(255,255,255,0.3); font-size: 26px;
  cursor: pointer; transition: 0.2s; padding: 0;
}
.dt-close-modal:hover { color: #fff; }

.dt-modal-top { text-align: center; margin-bottom: 24px; }
.dt-modal-subtitle { display: block; font-size: 11px; color: #8520d2; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 6px; }
.dt-modal-title { font-size: 20px; font-weight: 900; color: #fff; margin: 0; }

/* Layout Mágico dos Botões de Imagem no Modal */
.dt-modal-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide meio a meio no PC */
  gap: 12px;
  margin-bottom: 20px;
}
.dt-modal-image-actions .dt-btn-soc-simple {
  width: 100%; /* Força os botões a preencherem o espaço */
  margin: 0;
}

.dt-app-form { display: flex; flex-direction: column; gap: 16px; }
.dt-form-group { display: flex; flex-direction: column; gap: 8px; }
.dt-form-group label { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;}
.dt-input-wrapper { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 0 16px; transition: all 0.2s ease; }
.dt-input-wrapper.textarea-mode { align-items: flex-start; padding: 12px 16px; }
.dt-input-wrapper:focus-within { border-color: #8520d2; background: rgba(0, 0, 0, 0.5); }
.dt-input-wrapper i { color: rgba(255,255,255,0.3); font-size: 15px; }
.dt-input-wrapper:focus-within i { color: #8520d2; }
.dt-input-wrapper input, .dt-input-wrapper textarea { flex: 1; background: transparent; border: none; color: #fff; font-size: 14px; font-weight: 500; padding: 14px 0; outline: none; width: 100%; resize: none;}

.dt-btn-sys-primary { background: #8520d2; color: #fff; border: none; padding: 14px 20px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; text-transform: uppercase; width: 100%; margin-top: 8px;}
.dt-btn-sys-primary:hover { background: #9b2bf0; box-shadow: 0 4px 15px rgba(133, 32, 210, 0.4); }