.achievement-row-new {
    display: flex !important;
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    align-items: flex-start;
}

.ach-icon-container {
    font-size: 30px;
    min-width: 60px;
    height: 60px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ach-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ach-header-line {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.ach-stats-line {
    display: flex;
    gap: 15px;
    color: #00ce00; /* Cor verde para pontos */
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.ach-count-numbers {
    color: #888;
}

/* BARRA DE PROGRESSO */
.ach-progress-track {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin: 5px 0;
}

.ach-progress-fill {
    height: 100%;
    background: #ffffff; /* Cor da barra igual Star Wars */
    transition: width 0.5s ease-in-out;
}

.ach-desc-text {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

/* Ajuste no container do Modal para permitir scroll */
.my-progress-modal-body { /* Use a classe do corpo do seu modal */
    max-height: 70vh; /* Limita a altura a 70% da tela */
    overflow-y: auto; /* Ativa o scroll vertical */
    padding-right: 5px;
}

/* Estilizando a barra de rolagem para ficar elegante */
.my-progress-modal-body::-webkit-scrollbar {
    width: 6px;
}

.my-progress-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.my-progress-modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

/* Garante que a lista de conquistas ocupe a largura total */
#achievementsGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px; /* Espaço no final */
}

.achievement-row-new {
    transition: transform 0.2s, background 0.2s;
    cursor: default;
}

.achievement-row-new:hover {
    background: #252525;
    transform: scale(1.01);
}

/* O segredo da rolagem: limitar a altura do conteúdo do modal */
.modal-body { 
  /*  max-height: 65vh; /* 65% da altura da tela */
    overflow-y: auto !important; /* Força o scroll vertical */
  /*  padding: 15px; */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #444 #1a1a1a;
}

/* Estilo da barra de rolagem no Chrome/Edge/Safari */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.stat-card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05); /* Escuro semi-transparente */
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Forçar a rolagem se ela sumir */
#achievementsGrid {
    padding-right: 5px;
}

/* Conquista Bloqueada: Fica cinza e mais escura */
.achievement-row-new.locked {
    filter: grayscale(100%); /* Deixa tudo cinza */
    opacity: 0.5;            /* Deixa levemente transparente */
    background: #121212;     /* Fundo mais escuro */
}

/* Opcional: manter o ícone um pouco visível mas opaco */
.achievement-row-new.locked .ach-icon-container {
    background: #222;
    color: #444;
}

/* Conquista Desbloqueada: Cores vivas */
.achievement-row-new.unlocked {
    filter: none;
    opacity: 1;
    border-left: 4px solid #00ce00; /* Destaque verde lateral */
}

.group-title {
    color: #ffd700; /* Dourado */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 20px 0 10px 5px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 5px;
    width: 100%;
    text-align: left;
}

/* Ajuste na rolagem para não cortar o topo */
#achievementsGrid {
    padding-top: 10px;
}