/* ========================================
   PLANS SECTION - FLEXIBLE VIEWPORT BASED
   ======================================== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    margin-top: 1.5rem;
}

.plan-card {
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: clamp(0.8rem, 1.2vh, 1.2rem);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all var(--transition-base);
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Basic Plan - Blue Theme */
.plan-basic {
    background: rgba(0, 120, 255, 0.12);
    border-color: rgba(0, 120, 255, 0.4);
}

.plan-basic:hover {
    background: rgba(0, 120, 255, 0.18);
    border-color: #0078ff;
    box-shadow: 0 0 25px rgba(0, 120, 255, 0.4);
}

/* Premium Plan - Purple Theme */
.plan-premium {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.5);
}

.plan-premium:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

/* VIP Plan - Gold Theme */
.plan-vip {
    background: rgba(255, 165, 0, 0.12);
    border-color: rgba(255, 165, 0, 0.4);
}

.plan-vip:hover {
    background: rgba(255, 165, 0, 0.18);
    border-color: #ffa500;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

.plan-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.plan-card.featured {
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: translateY(-5px) scale(1.07);
}

/* Popular Badge */
.plan-badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.plan-icon {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(0.5rem, 1vh, 0.8rem);
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
}

.plan-name {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: clamp(0.5rem, 1vh, 0.8rem);
    text-align: center;
}

.plan-profit {
    text-align: center;
    margin-bottom: clamp(0.5rem, 1vh, 0.9rem);
    padding: clamp(0.6rem, 1vh, 0.9rem);
    background: rgba(0, 217, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.profit-percentage {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.profit-label {
    display: block;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-details {
    margin-bottom: clamp(0.5rem, 1vh, 0.9rem);
    padding: clamp(0.6rem, 1vh, 0.9rem);
    background: rgba(26, 31, 58, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plan-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.detail-label {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--color-text-secondary);
}

.detail-value {
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.detail-value.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: var(--font-weight-bold);
}

.plan-features {
    list-style: none;
    margin-bottom: clamp(0.5rem, 1vh, 0.9rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 0.5vh, 0.5rem);
}

.plan-features li {
    color: var(--color-text-secondary);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-base);
    padding: 0.3rem 0;
}

.plan-features li:hover {
    color: var(--color-accent-primary);
    transform: translateX(3px);
}

.plan-features li::before {
    content: '✓';
    color: var(--color-accent-success);
    font-weight: var(--font-weight-bold);
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 1.5rem auto 0;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .plan-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .plan-card {
        padding: 1rem;
    }
    
    .plan-profit {
        padding: 0.8rem;
    }
}
