:root {
    --color-fat-loss: #DD2476;
    --color-regeneration: #38ef7d;
    --color-muscle: #8E2DE2;
    --color-beauty: #FF5F6D;
    --color-sexual: #ED213A;
    --color-anti-aging: #00B4DB;
    --color-brain: #3CD3AD;
    --color-energy: #F37335;
}

.elp-category-badges-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: inherit;
}

.elp-category-grid {
    display: grid;
    /* PRESERVED FEATURE: 4 columns strictly */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.elp-badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 30px 20px;
    border-radius: 20px;
    
    /* Default: light, opaque glassmorphism so dark text is ALWAYS visible */
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .elp-badge-card {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

.elp-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Original Style: subtle tinted gradient */
    background: radial-gradient(circle at center, var(--badge-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.elp-badge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.elp-badge-card:hover::before {
    opacity: 0.1;
}

.elp-badge-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    /* Default: clean white circle for icon */
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

@media (prefers-color-scheme: dark) {
    .elp-badge-icon-wrapper {
        background: rgba(255,255,255,0.08);
        box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 8px 16px rgba(0,0,0,0.2);
    }
}

.elp-badge-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--badge-color);
    filter: blur(20px);
    /* Reduced: Softer neon glow */
    opacity: 0.15;
    transition: all 0.4s ease;
    z-index: -1;
}

.elp-badge-card:hover .elp-badge-glow {
    opacity: 0.35;
    transform: scale(1.2);
}

.elp-badge-icon {
    width: 40px;
    height: 40px;
    color: var(--badge-color);
    transition: all 0.4s ease;
    z-index: 2;
}

.elp-badge-card:hover .elp-badge-icon {
    transform: scale(1.1);
}

/* PRESERVED FEATURE: Highly visible text blending */
.elp-badge-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center;
    color: #1a1a1a !important; 
    /* Removed text-shadow to make text crisp and sharp */
    text-shadow: none !important;
    transition: color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .elp-badge-title {
        color: #ffffff !important;
        text-shadow: none !important;
    }
}

.elp-badge-card:hover .elp-badge-title {
    color: var(--badge-color) !important;
}

/* Original Style: Micro-animations for SVGs */
.elp-badge-icon svg {
    width: 100%;
    height: 100%;
}

.elp-badge-card:hover .elp-badge-icon svg path,
.elp-badge-card:hover .elp-badge-icon svg circle,
.elp-badge-card:hover .elp-badge-icon svg polyline,
.elp-badge-card:hover .elp-badge-icon svg polygon,
.elp-badge-card:hover .elp-badge-icon svg line {
    animation: pulse-stroke 1.5s infinite alternate;
}

@keyframes pulse-stroke {
    0% { filter: drop-shadow(0 0 2px var(--badge-color)); }
    100% { filter: drop-shadow(0 0 8px var(--badge-color)); }
}

/* PRESERVED FEATURE: Exact 2-column mobile structure */
@media (max-width: 992px) {
    .elp-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .elp-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .elp-badge-card {
        padding: 20px 10px;
    }
    
    .elp-badge-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .elp-badge-icon {
        width: 30px;
        height: 30px;
    }
    
    .elp-badge-title {
        font-size: 14px !important;
    }
}
