/* ==========================================================================
   [10] PÁGINA: VIP E ASSINATURAS (Cards iluminados com preços, destaque do plano ativo e Modal do histórico de compras antigas)
   ========================================================================== */

.dt-vip-container {
  width: 100%;
  max-width: 700px; /* LARGURA TRAVADA NO PADRÃO DO APP */
  margin: 40px auto;
  padding: 0 20px;
}

.dt-vip-header { text-align: center; margin-bottom: 40px; }
.dt-vip-header i { font-size: 32px; color: #8520d2; margin-bottom: 10px; display: inline-block; }
.dt-vip-header h2 { font-size: 32px; font-weight: 900; color: #fff; margin: 0 0 10px 0; }
.dt-vip-header p { font-size: 16px; color: rgba(255,255,255,0.6); margin: 0; }

/* ==========================================
   DASHBOARD DO PLANO ATUAL
   ========================================== */
.dt-current-plan-card {
  background: rgba(133, 32, 210, 0.05);
  border: 1px solid rgba(133, 32, 210, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.dt-current-info { display: flex; flex-direction: column; }
.dt-current-status { display: flex; align-items: center; gap: 8px; color: #10b981; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;}
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; animation: pulse 2s infinite; }
.dt-current-name { color: #fff; font-size: 20px; font-weight: 900; margin: 0 0 4px 0; }
.dt-current-expires { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0; }
.dt-current-expires strong { color: #fff; }

.dt-btn-history { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dt-btn-history:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   GRADE DE PLANOS (Ajustado para o layout 700px)
   ========================================== */
.dt-vip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas para ficar perfeito nos 700px */
  gap: 24px;
}

.dt-plan-card {
  background: #161618;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; /* Adicionado shadow na transição */
}

/* HOVER ROXO PARA TODOS OS PLANOS! */
.dt-plan-card:hover { 
  transform: translateY(-5px); 
  border-color: #8520d2; 
  box-shadow: 0 10px 30px rgba(133, 32, 210, 0.15); 
}

/* Plano Destaque (Trimestral/Premium) */
.dt-plan-card.featured {
  border-color: #8520d2;
  box-shadow: 0 10px 30px rgba(133, 32, 210, 0.15);
  transform: scale(1.03); /* Levemente maior que os outros */
  z-index: 2;
  background: linear-gradient(180deg, #161618 0%, #1a1025 100%);
}
.dt-plan-card.featured:hover { transform: scale(1.03) translateY(-5px); }

.dt-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #8520d2; color: #fff; font-size: 11px; font-weight: 900; padding: 4px 12px; border-radius: 20px; letter-spacing: 1px; white-space: nowrap; }

.dt-plan-title { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 800; text-transform: uppercase; margin: 0 0 16px 0; text-align: center; letter-spacing: 1px;}

.dt-plan-price-box { text-align: center; margin-bottom: 24px; }
.dt-plan-price-box .currency { font-size: 16px; color: rgba(255,255,255,0.5); font-weight: 700; vertical-align: top; margin-right: 2px; }
.dt-plan-price-box .value { font-size: 36px; color: #fff; font-weight: 900; }
.dt-plan-price-box .period { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 600; margin-left: 4px; }

.dt-plan-list { list-style: none; padding: 0; margin: 0 0 30px 0; flex: 1; }
.dt-plan-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.dt-plan-list li i { color: #10b981; font-size: 16px; }

/* Botões dos Planos */
.dt-plan-button { text-decoration: none; display: block; text-align: center; background: rgba(255,255,255,0.05); color: #fff; font-weight: 800; font-size: 15px; padding: 14px; border-radius: 12px; transition: 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.dt-plan-button:hover { background: rgba(255,255,255,0.1); }
.dt-plan-button.active { background: #8520d2; border-color: #8520d2; box-shadow: 0 4px 15px rgba(133, 32, 210, 0.4); }
.dt-plan-button.active:hover { background: #9b2bf0; box-shadow: 0 4px 20px rgba(133, 32, 210, 0.6); }

/* ==========================================
   MODAL DO HISTÓRICO DE COMPRAS
   ========================================== */
.dt-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 9999; display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.dt-modal-overlay.active { opacity: 1; pointer-events: auto; }

.dt-modal-content {
  background: #161618; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
  width: 90%; max-width: 500px; max-height: 80vh; display: flex; flex-direction: column;
  transform: translateY(30px); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.dt-modal-overlay.active .dt-modal-content { transform: translateY(0); }

.dt-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dt-modal-header h3 { color: #fff; font-size: 18px; font-weight: 800; margin: 0; }
.dt-modal-close { background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; transition: 0.2s; padding: 0; }
.dt-modal-close:hover { color: #fff; }

.dt-modal-body { padding: 20px 24px; overflow-y: auto; }
.dt-history-list { display: flex; flex-direction: column; gap: 16px; }
.dt-history-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dt-history-item:last-child { border-bottom: none; padding-bottom: 0; }
.dt-history-info { display: flex; flex-direction: column; }
.dt-history-info strong { color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.dt-history-info span { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; }
.dt-history-status { font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.dt-history-status.active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dt-history-status.expired { background: rgba(255, 255, 255, 0.05); color: rgba(255,255,255,0.5); }

/* ==========================================
   RESPONSIVO VIP (Mobile)
   ========================================== */
@media (max-width: 600px) {
  .dt-vip-grid { grid-template-columns: 1fr; } /* No mobile vira 1 coluna */
  .dt-plan-card.featured { transform: none; }
  .dt-plan-card.featured:hover { transform: translateY(-5px); }
  .dt-current-plan-card { flex-direction: column; align-items: flex-start; }
  .dt-btn-history { width: 100%; justify-content: center; }
}