:root {
    --dn-bg: #0d0f17;
    --dn-card: rgba(12, 17, 23, 0.95);
    --dn-inner: linear-gradient(145deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9));
    --dn-white: #ffffff;
    --dn-gray: #8b8ea8;
    --dn-clr-green: linear-gradient(135deg,#22c55e,#16a34a);
    --dn-clr-blue: linear-gradient(135deg,#3b82f6,#2563eb);
    --dn-clr-purple: linear-gradient(135deg,#a855f7,#ec4899);
    --dn-grad-purple: linear-gradient(135deg,#a855f7,#ec4899);
}

.dn-main-wrapper {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.dn-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    max-width: 1000px;
    width: 100%;
}

.dn-package-card {
    background: var(--dn-card);
    border: 1px solid #252a41;
    border-radius: 14px;
    padding: 24px 20px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--dn-white);
}

.dn-package-card:hover { transform: translateY(-8px); box-shadow:
        0 0 10px rgba(0, 255, 255, 0.15),
        inset 0 0 8px rgba(0, 255, 255, 0.50); }

/* Bordas espec�ficas */
.dn-border-green { border-bottom: 4px solid #16a34a }
.dn-border-blue { border: 1px solid #2563eb }
.dn-border-purple { border: 1px solid #ec4899 }

/* Badges de status */
.dn-status-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}
.dn-bg-blue-dark { background: #1e6091; }
.dn-bg-purple-gradient { background: var(--dn-grad-purple); }

/* Estilos de Texto */
.dn-card-title { font-size: 1rem; margin-bottom: 16px; color: #e5e7eb; font-weight: 600; }
.dn-price-display { font-size: 2.3rem; font-weight: 700;  letter-spacing: -2px; line-height: 1; }
.dn-price-display span { font-size: 0.9rem; font-style: normal; vertical-align: super; margin-right: 3px; letter-spacing: 0; }
.dn-price-info { font-size: 13px; color: var(--dn-gray); margin: 6px 0 18px 0; }

/* Box de Pontos */
.dn-points-container {
    background: var(--dn-inner);
    border: 1px solid #1e2235;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.dn-total-points-label { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.dn-italic-text { font-size: 0.85rem; font-style: italic; color: var(--dn-gray); font-weight: 400; }

.dn-flex-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--dn-gray); margin-bottom: 4px; }
.dn-text-highlight-green { color: var(--dn-clr-green); font-weight: 500; }

/* Bot�es Customizados */
.dn-btn-items-info {
    width: 100%;
    background: #23223f;
    color: #b388ff;
    border: 1px solid #3d3b6b;
    border-radius: 10px;
    padding: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.2s;
}

.dn-btn-action {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dn-bg-green { background: #239251; }
.dn-bg-blue { background: #3498db; }
/* .dn-bg-purple-gradient j� definida acima */

.dn-btn-items-info:hover { filter: brightness(1.2); box-shadow: 0 0 15px rgba(255,255,255,0.5); }
.dn-btn-action:hover { filter: brightness(1.2); box-shadow: 0 0 15px rgba(255,255,255,0.5); }

/* ===== STAR BASE ===== */
.star-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffd700;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 3px;
}

/* ===== GLOW EFFECT ===== */
.star-icon {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

/* ===== HOVER EFFECT ===== */
.star-icon:hover {
  stroke: #fff3a0;
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

/* ===== CLICK EFFECT ===== */
.star-icon:active {
  transform: scale(0.95);
}

/* ===== OPTIONAL PULSE ANIMATION ===== */
@keyframes starPulse {
  0% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1)); }
  100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); }
}

.star-icon.pulse {
  animation: starPulse 2s infinite ease-in-out;
}



/* Overlay - Fundo escurecido */
.dn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Escondido por padr�o */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dn-modal-overlay.active { display: flex; }

/* Card do Modal */
.dn-modal-card {
    background: #1a2238;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    border: 1px solid #2d375a;
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dn-modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d375a;
}

.dn-modal-icon-bg {
    width: 35px;
    height: 35px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.dn-modal-main-title { font-size: 1.1rem; color: #fff; margin: 0; }
.dn-modal-subtitle { font-size: 0.8rem; color: #8b8ea8; margin: 0; }

.dn-modal-close {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.dn-modal-body { padding: 30px 20px; text-align: center; }

.dn-modal-pkg-name { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.dn-modal-pkg-price { font-size: 2.5rem; color: #2ecc71; font-weight: 800; margin-bottom: 20px; }

.dn-modal-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #131a2e;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.dn-modal-info-rows { width: 100%; max-width: 300px; margin: 0 auto 25px; }
.dn-modal-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #8b8ea8; margin-bottom: 5px; }
.dn-text-green { color: #2ecc71; font-weight: 600; }

.dn-modal-instruction {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    text-align: left;
    font-size: 0.85rem;
}

.dn-instruction-icon {
    background: #2563eb;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.dn-modal-footer {
    padding: 20px;
    background: #161d31;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
}

.dn-btn-cancel {
    background: #2d375a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.dn-btn-confirm {
    background: #239251;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* Spinner Styles */
.dn-spinner {
    display: none; /* Escondido por padr�o */
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: dn-spin 0.8s linear infinite;
}

@keyframes dn-spin {
    to { transform: rotate(360deg); }
}

/* Estado de carregamento do bot�o */
.dn-btn-confirm.is-loading {
    pointer-events: none; /* Impede cliques extras */
    opacity: 0.8;
}

.dn-btn-confirm.is-loading .dn-spinner {
    display: block;
}

.dn-btn-confirm.is-loading #dnBtnText {
    display: none;
}
/* Estilo para o container do QR Code que ser� injetado */
.dn-pix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    animation: fadeIn 0.4s ease;
}

.dn-qr-code {
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.dn-pix-input-group {
    width: 100%;
    background: #131a2e;
    border: 1px solid #2d375a;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    margin-top: 10px;
}

.dn-pix-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #8b8ea8;
    padding: 12px;
    font-size: 11px;
    outline: none;
}

.dn-btn-copy {
    background: #239251;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

/* DIVIDER */
.lgnx-divider {
    width: 100%;
    height: 1px;
    margin: 15px 0;

    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(120,170,255,0.4) 50%,
        transparent 100%
    );
}

.dn-btn-copy:hover { background: #2ecc71; }
/* Ajuste no Container do Card para permitir o pop-out */
.dn-package-card {
    position: relative;
    overflow: visible !important; /* IMPORTANTE: Para a imagem poder "sair" ou sobrepor */
    padding-top: 130px !important; /* Cria espaço extra no topo para o conteúdo não bater na imagem */
}

/* Regra para a Imagem que flutua para fora */
.dn-card-image {
    position: absolute;
    top: -50px; /* Valor negativo faz a cabeça/chifres saírem para fora do card */
    left: 50%;
    transform: translateX(-50%); /* Centraliza a imagem horizontalmente */
    width: 100%;
    height: 190px; /* Altura total da imagem flutuante */
    background-image: url('../images/donation/baphomet.png'); /* Link da sua imagem */
    background-size: contain; /* Mostra o monstro inteiro */
    background-repeat: no-repeat;
    background-position: center top;
    z-index: 10; /* Garante que ela fique por cima de todas as bordas e texto */
    
    /* Faz a parte de baixo da imagem se misturar com o card */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    
    opacity: 0.9; /* Deixa um pouco mais escuro para ler o texto melhor (opcional) */
    transition: opacity 0.3s ease, top 0.3s ease; /* Efeito suave no hover */
}

/* Efeito no Hover: O monstro parece "acordar" */
.dn-package-card:hover .dn-card-image {
    opacity: 1;
    top: -60px; /* Sobe um pouquinho mais no hover */
}

/* Ajuste no Título para não ficar atrás da imagem */
.dn-card-title {
    position: relative;
    z-index: 11; /* Fica acima da imagem flutuante */
    margin-top: 20px !important; /* Espaçamento após a imagem */
    text-shadow: 0 2px 4px rgba(0,0,0,0.9); /* Melhora leitura sobre a imagem */
}

/* Ajuste do Badge (Mais Vendido / Melhor Valor) */
.dn-status-badge {
    z-index: 12; /* Badge fica no topo de tudo */
}

.dn-main-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: charFadeIn 0.9s ease forwards;
}

@keyframes charFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}