/* ===== LEVEL COMPARISON GRID (CONFRONTATION) ===== */
.levels-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 40px;
    align-items: stretch;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

.comparison-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.comparison-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.comparison-card:hover::before {
    opacity: 1;
}

/* Specific glows for cards */
.card-nv1:hover {
    box-shadow: 0 20px 40px -10px rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.4);
}

.card-nv2:hover {
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.card-nv3:hover {
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.4);
}

.card-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centering badges and headers */
}

.card-badge {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: fit-content;
    margin-bottom: 1.5rem !important;
    z-index: 2;
    text-align: center;
}

.card-image-wrapper {
    width: 100%;
    max-width: 320px;
    /* Limit image width to maintain vertical proportion */
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.comparison-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centering content in the body */
    text-align: center;
    z-index: 1;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Enhanced APY Visualization */
.card-apy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin-bottom: 2rem;
    width: fit-content;
    transition: all 0.3s ease;
}

.card-apy-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.card-apy-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Level specific APY glows */
.card-nv1 .card-apy {
    box-shadow: inset 0 0 20px rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.2);
}

.card-nv2 .card-apy {
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-nv3 .card-apy {
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.card-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.card-footer {
    margin-top: auto;
    z-index: 1;
}

.card-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .levels-comparison-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}