/* =====================================================
   NAKSHA AI — HERO PRICING CARDS  (FINAL POLISH)
   ===================================================== */

/* ── Grid ───────────────────────────────────────── */
.hero-plan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem auto 1.5rem;
    max-width: 800px;
    padding: 1rem 0 0.25rem;
}

/* ══════════════════════════════════════════════════
   BASE CARD
   ══════════════════════════════════════════════════ */
.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.3rem 1.65rem;
    /* +0.3rem top/bottom for extra height */
    /* slightly taller */
    border-radius: 16px;
    cursor: pointer;
    overflow: visible;

    background: rgba(18, 24, 60, 0.80);
    /* richer blue-navy tint */
    /* matches theme with more blue depth */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 14px 36px -8px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;

    /* Entry Animation */
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Staggered delays */
.action-card:nth-child(1) {
    animation-delay: 0.1s;
}

.action-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Inner clip — keeps stripe within card */
.ac-inner-clip {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Left cyan stripe */
.ac-inner-clip::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #00d9ff 0%, #0080ff 100%);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
    transition: top 0.3s ease, bottom 0.3s ease;
}

.action-card:hover .ac-inner-clip::after {
    top: 6%;
    bottom: 6%;
}

/* Glow orb */
.ac-glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.09) 0%, transparent 70%);
    right: -25px;
    top: -35px;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.action-card:hover .ac-glow-orb {
    transform: scale(1.25);
}

.action-card:hover {
    transform: translateY(-6px) scale(1.014);
    border-color: rgba(0, 217, 255, 0.18);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 26px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(0, 217, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ══════════════════════════════════════════════════
   FEATURED CARD — make it irresistible to click
   ══════════════════════════════════════════════════ */
.action-card.featured {
    /* Blue-navy matching card 1 — purple only via border & glow */
    background: rgba(18, 24, 60, 0.88) !important;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.35),
        0 14px 36px -8px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
    /* Combine animations: slideUpFade (entry) + pulseGlow (infinite loop) */
    animation:
        slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards,
        pulseGlow 3s ease-in-out 0.8s infinite;
    /* Delay pulseGlow until slideUpFade finishes */
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.35),
            0 14px 36px -8px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(139, 92, 246, 0.15),
            0 0 18px rgba(139, 92, 246, 0.18),
            inset 0 1px 0 rgba(139, 92, 246, 0.1);
    }

    50% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.35),
            0 14px 36px -8px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(192, 38, 211, 0.2),
            0 0 28px rgba(192, 38, 211, 0.28),
            inset 0 1px 0 rgba(192, 38, 211, 0.12);
    }
}

/* Subtle moving shimmer on featured bg */
.action-card.featured .ac-inner-clip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(180, 120, 255, 0.07) 50%,
            transparent 65%);
    background-size: 200% 100%;
    animation: cardShimmer 3s linear infinite;
}

@keyframes cardShimmer {
    0% {
        background-position: 150% 0;
    }

    100% {
        background-position: -50% 0;
    }
}

/* Purple-pink stripe */
.action-card.featured .ac-inner-clip::after {
    background: linear-gradient(180deg, #a855f7 0%, #ec4899 100%);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.85);
}

/* Purple orb */
.action-card.featured .ac-glow-orb {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, transparent 70%);
    width: 180px;
    height: 180px;
}

.action-card.featured:hover {
    transform: translateY(-8px) scale(1.018);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 28px 55px -10px rgba(0, 0, 0, 0.62),
        0 0 55px rgba(139, 92, 246, 0.18),
        inset 0 1px 0 rgba(139, 92, 246, 0.15);
}

/* ::before removed — CSS mask-composite fails in many browsers
   Animation now done via pulseGlow box-shadow (above) */

/* "✦ Best Quality" tag — gold-to-purple gradient = premium cue */
.action-card.featured .popular-tag {
    position: absolute;
    top: -12px;
    right: 1.1rem;
    background: linear-gradient(90deg, #7c3aed 0%, #c026d3 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.22rem 0.78rem;
    border-radius: 99px;
    z-index: 30;
    white-space: nowrap;
    box-shadow:
        0 3px 14px rgba(192, 38, 211, 0.6),
        0 0 0 2px rgba(192, 38, 211, 0.18);
    animation: tagPulse 2.8s ease-in-out infinite;
}

@keyframes tagPulse {

    0%,
    100% {
        box-shadow: 0 3px 14px rgba(139, 92, 246, 0.65), 0 0 0 2px rgba(139, 92, 246, 0.18);
    }

    50% {
        box-shadow: 0 5px 22px rgba(192, 38, 211, 0.75), 0 0 0 4px rgba(192, 38, 211, 0.2);
    }
}

/* ══════════════════════════════════════════════════
   TOP ROW  —  badge  +  price
   ══════════════════════════════════════════════════ */
.action-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

/* Badge */
.action-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #38bdf8;
    background: rgba(0, 217, 255, 0.07);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 0.22rem 0.6rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-badge.pro {
    color: #d8b4fe;
    background: rgba(167, 100, 255, 0.1);
    border-color: rgba(167, 100, 255, 0.28);
}

/* Price — white with just a subtle color glow (not garish gradient) */
.action-price-box {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.action-price-box div {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 14px rgba(0, 217, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.action-card.featured .action-price-box div {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 0 18px rgba(180, 120, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.action-price-box .currency {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    margin-right: 1px;
}

/* ── Divider ────────────────────────────────────── */
.ac-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 0.6rem 0 0.55rem;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 60%,
            transparent 100%);
}

/* ══════════════════════════════════════════════════
   BOTTOM ROW  —  title / desc  +  CTA
   ══════════════════════════════════════════════════ */
.action-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.action-details {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}

/* Title */
.hero-plan-actions .action-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Description — force small size overriding any p/h3 globals */
.hero-plan-actions .action-desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.38) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════
   BOTTOM SECTION — title / desc (now vertical layout)
   ══════════════════════════════════════════════════ */
.action-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.action-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.8rem;
}

/* Mini feature list */
.action-feat-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.action-feat-list li {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.afl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.ai-dot {
    background: #00d9ff;
    box-shadow: 0 0 6px rgba(0, 217, 255, 0.7);
}

.pro-dot {
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.7);
}

/* Full-width CTA buttons */
.action-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.72rem 1rem;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: auto;
}

.action-btn-ai {
    background: linear-gradient(135deg, #00bcd4, #00d9ff);
    color: #050816;
    box-shadow: 0 4px 18px rgba(0, 217, 255, 0.28);
}

.action-btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 217, 255, 0.48);
    background: linear-gradient(135deg, #00d9ff, #4ff7ff);
}

.action-btn-pro {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.action-btn-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
}

/* Old chip CTA kept for backwards compat but hidden */
.action-cta {
    display: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Container: use padding for side-breathing room */
    .hero-plan-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.25rem 0.5rem !important;
        margin: 1.5rem 0 1rem !important;
        gap: 1.5rem;
        box-sizing: border-box;
    }

    /* Cards fill the padded container */
    .action-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 1rem 1.2rem 0.9rem 1.45rem;
    }

    /* CRITICAL: hide the CSS-mask animated border —
       it breaks on mobile and floods card with purple */
    .action-card.featured::before {
        display: none !important;
    }

    /* Replace with clean border + glow */
    .action-card.featured {
        background: rgba(18, 24, 60, 0.88) !important;
        border: 1px solid rgba(139, 92, 246, 0.45) !important;
        box-shadow:
            0 0 0 1px rgba(139, 92, 246, 0.12),
            0 0 20px rgba(139, 92, 246, 0.18),
            0 8px 24px rgba(0, 0, 0, 0.5) !important;
    }

    /* Typography */
    .action-price-box div {
        font-size: 1.85rem;
    }

    .action-badge {
        font-size: 0.58rem !important;
    }

    .hero-plan-actions .action-title {
        font-size: 0.82rem !important;
    }

    .hero-plan-actions .action-desc {
        font-size: 0.62rem !important;
    }

    .action-feat-list li {
        font-size: 0.68rem;
    }

    .action-btn {
        font-size: 0.78rem;
        padding: 0.65rem 0.9rem;
    }
}