/* PLANS & PRICING THEME V5 - AI NATIVE & INTERACTIVE */
:root {
    --plan-glass: rgba(15, 23, 42, 0.8);
    --plan-border: rgba(255, 255, 255, 0.08);
    --neon-purple: #a855f7;
    --neon-cyan: #06b6d4;
    /* AI CYAN */
    --neon-gold: #fbbf24;
    --glass-shine: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* HERO SECTION */
.plans-hero {
    position: relative;
    padding: 8rem 2rem 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* AI PARTICLES BG (Simple CSS Animation) */
.plans-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    animation: pulseGlow 8s infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.plans-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    /* Cyan bg */
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    position: relative;
    z-index: 1;
}

.plans-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient-ai {
    background: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plans-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* PLANS GRID - COMPACT & CENTERED */
.plans-grid {
    display: flex;
    /* Switch to Flex for better centering of 3 items */
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* CARD DESIGN - COMPACT */
.plan-card {
    background: var(--plan-glass);
    border: 1px solid var(--plan-border);
    border-radius: 20px;
    /* Slightly tighter radius */
    padding: 2rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(20px);
    width: 350px;
    /* Fixed optimal width */
    max-width: 100%;
    /* SPOTLIGHT LOGIC */
    /* overflow: hidden; REMOVED TO SHOW TAG */
}

/* THE SPOTLIGHT OVERLAY */
.plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    /* MATCH CARD RADIUS */
    padding: 1px;
    /* border width */
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s;
}

/* INNER GLOW */
.plan-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.03),
            transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.plan-card:hover {
    transform: translateY(-5px);
    /* Subtle lift, main movement in JS Tilt */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* FEATURED CARD */
.plan-card.featured {
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.15);
    /* Transform managed by JS */
    z-index: 2;
}

.featured-tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    white-space: nowrap;
}

/* CARD HEADER */
.plan-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    transition: 0.3s;
}

.plan-card:hover .plan-icon-box {
    background: white;
    color: black;
}

.plan-card.featured .plan-icon-box {
    background: rgba(168, 85, 247, 0.2);
    color: var(--neon-purple);
}

.plan-card.featured:hover .plan-icon-box {
    background: var(--neon-purple);
    color: white;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -2px;
    line-height: 1;
    font-family: var(--font-main);
}

.plan-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 6px;
    letter-spacing: 0;
}

/* FEATURES LIST */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}

.plan-card.featured .check-icon {
    background: rgba(168, 85, 247, 0.2);
    color: var(--neon-purple);
}

/* CONTEXT SECTION - ULTRA PREMIUM */
.plans-context {
    max-width: 1200px;
    margin: 6rem auto 8rem auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

.plans-context::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.context-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.context-item {
    text-align: center;
    /* Center align for better impact */
    padding: 3rem 2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.context-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.context-item:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.context-item:hover::after {
    opacity: 1;
}

.context-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
}

.context-item:hover .context-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

/* Specific Colors for Icons if needed via nth-child, or generic cyan */

.context-icon i {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

.context-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.context-item p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* RESPONSIVE OVERRIDE */
@media (max-width: 768px) {
    .context-title {
        font-size: 2.2rem;
    }

    .context-grid {
        grid-template-columns: 1fr;
    }

    .context-item {
        padding: 2rem;
    }
}

/* BUTTONS */
.btn-plan {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-plan {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-plan:hover {
    background: white;
    color: black;
    border-color: white;
}

.btn-plan.primary {
    background: var(--neon-purple);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-plan.primary:hover {
    background: #d946ef;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .plans-hero {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }

    .plans-title {
        font-size: 2.8rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1rem;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: scale(1) translateY(-5px);
    }
}