.custom-card {
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.custom-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 1.25rem;
}

.gradient-card {
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 1rem;
}

.role-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--primary-light);
    transition: var(--transition);
}

    .role-card:hover {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
        transform: translateY(-4px);
    }

.role-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
    .role-card-header h5 {
        font-size: 1.05rem;
        font-weight: 600;
        margin: 0;
        flex: 1 1 auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
.perm-count {
    background: white;
    color: var(--text-color);
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    white-space: nowrap;
}

.role-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    flex-grow: 1;
    max-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.role-card-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.role-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subscription-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 8px;
}

.subscription-card {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .subscription-scroll-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .subscription-card {
        width: calc(33.333% - 1rem);
    }
}
.text-purple {
    color: #7b2cbf; /* morado numix */
}

.btn-outline-purple {
    border: 1px solid #7b2cbf;
    color: #7b2cbf;
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 4px 10px;
}

    .btn-outline-purple:hover {
        background-color: #7b2cbf;
        color: #fff;
    }

.subscription-card-beauty {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 1rem;
    border-left: 5px solid #a855f7; /* morado vibrante Numix */
}

.badge-purple-soft {
    background-color: #ede9fe;
    color: #7c3aed;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-card {
    animation: fadeSlideIn 0.6s ease-out forwards;
    opacity: 0; /* inicia invisible hasta que cargue */
}
