/* ============================================
   Plans Button & Modal Styles
   ============================================ */

/* Plans Button - above section title */
.btn-plans {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
    letter-spacing: 0.3px;
}

.btn-plans:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 114, 182, 0.5);
}

.btn-plans:active {
    transform: translateY(-1px);
}

.btn-plans svg {
    transition: transform 0.3s ease;
}

.btn-plans:hover svg {
    transform: scale(1.15);
}

/* Plans Modal */
.plans-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    padding: 20px;
    overflow-y: auto;
    transition: all 0.4s ease;
}

.plans-modal[style*="display: flex"] {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
}

.plans-modal-content {
    position: relative;
    background: linear-gradient(165deg, #0c1222 0%, #141829 50%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 44px 36px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 100px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.plans-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.plans-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.plans-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.plans-modal-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.plans-modal-subtitle {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Plan Tabs */
.plans-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.plan-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.plan-tab.active {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(244, 114, 182, 0.4);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.15);
}

.plan-tab svg {
    flex-shrink: 0;
}

/* Plans Intro */
.plans-intro {
    text-align: center;
    margin-bottom: 24px;
}

.plans-intro-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.plans-intro-text strong {
    color: #f9a8d4;
    font-weight: 700;
}

/* Plans Container */
.plans-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.plans-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Plan Card - Base */
.plan-card-sub {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.plan-card-sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), transparent);
    border-radius: 0 0 4px 4px;
    transition: width 0.4s ease;
}

.plan-card-sub:hover::before {
    width: 70%;
}

.plan-card-sub:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    background: rgba(30, 41, 59, 0.7);
}

.plan-card-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(148, 163, 184, 0.6);
    margin-bottom: 4px;
}

.plan-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    color: white;
}

.plan-card-generations {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    margin: 8px 0 4px;
}

.plan-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin: 8px 0;
}

.plan-rupee {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.plan-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -1px;
}

.plan-card-per {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.5);
    margin-bottom: 8px;
}

/* Plan Card Button */
.plan-card-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    letter-spacing: 0.2px;
}

.plan-card-btn:hover {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.3);
    color: white;
    transform: translateY(-2px);
}

.plan-card-btn-primary {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(244, 114, 182, 0.4);
    color: #f9a8d4;
}

.plan-card-btn-primary:hover {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(244, 114, 182, 0.6);
    color: white;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.25);
}

.plan-card-btn-credits {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

.plan-card-btn-credits:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* ============================================
   Special Plan Cards
   ============================================ */

/* Most Popular / Professional (Pink) */
.plan-card-popular {
    background: linear-gradient(160deg, rgba(244, 114, 182, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-color: rgba(244, 114, 182, 0.35);
    box-shadow: 
        0 8px 30px rgba(244, 114, 182, 0.1),
        inset 0 1px 0 rgba(244, 114, 182, 0.1);
    transform: scale(1.03);
}

.plan-card-popular::before {
    background: linear-gradient(90deg, #f472b6, #a78bfa);
    height: 4px;
    width: 70%;
}

.plan-card-popular:hover::before {
    width: 85%;
}

.plan-card-popular .plan-card-generations {
    color: #f9a8d4;
}

.plan-card-popular .plan-card-badge {
    background: linear-gradient(135deg, #f472b6, #a78bfa);
}

.plan-card-popular:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 
        0 15px 50px rgba(244, 114, 182, 0.2),
        inset 0 1px 0 rgba(244, 114, 182, 0.15);
}

/* Best Value (Purple) */
.plan-card-special {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.1) 0%, rgba(109, 40, 217, 0.06) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(99, 102, 241, 0.1);
    transform: scale(1.03);
}

.plan-card-special::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    height: 4px;
    width: 70%;
}

.plan-card-special:hover::before {
    width: 85%;
}

.plan-card-special .plan-card-generations {
    color: #a5b4fc;
}

.plan-card-special .plan-card-badge {
    background: linear-gradient(135deg, #6366f1, #a78bfa);
}

.plan-card-special:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 15px 50px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(99, 102, 241, 0.15);
}

/* Premium (Gold) */
.plan-card-premium {
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 
        0 8px 30px rgba(251, 191, 36, 0.08),
        inset 0 1px 0 rgba(251, 191, 36, 0.08);
    transform: scale(1.03);
}

.plan-card-premium::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    height: 4px;
    width: 70%;
}

.plan-card-premium:hover::before {
    width: 85%;
}

.plan-card-premium .plan-card-generations {
    color: #fcd34d;
}

.plan-card-premium .plan-card-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
}

.plan-card-premium:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 
        0 15px 50px rgba(251, 191, 36, 0.12),
        inset 0 1px 0 rgba(251, 191, 36, 0.12);
}

/* Pro Pack / Enterprise (Green) */
.plan-card-pro {
    background: linear-gradient(160deg, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 
        0 8px 30px rgba(52, 211, 153, 0.08),
        inset 0 1px 0 rgba(52, 211, 153, 0.08);
    transform: scale(1.03);
}

.plan-card-pro::before {
    background: linear-gradient(90deg, #34d399, #10b981);
    height: 4px;
    width: 70%;
}

.plan-card-pro:hover::before {
    width: 85%;
}

.plan-card-pro .plan-card-generations {
    color: #6ee7b7;
}

.plan-card-pro .plan-card-badge {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #0c1222;
}

.plan-card-pro:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 
        0 15px 50px rgba(52, 211, 153, 0.12),
        inset 0 1px 0 rgba(52, 211, 153, 0.12);
}

/* Modal Footer */
.plans-modal-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.plans-modal-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.45);
    letter-spacing: 0.2px;
}

.plans-modal-footer svg {
    color: #34d399;
    opacity: 0.9;
}

/* ============================================
   App Store Badge Styles
   ============================================ */

.hero-app-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0px;
}

.btn-app-store {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 220px;
}

.btn-app-store:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-app-store svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.btn-app-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.btn-app-sub {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn-app-name {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Responsive Styles */
@media (max-width: 750px) {
    .plans-row-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .plan-card-popular,
    .plan-card-special,
    .plan-card-premium,
    .plan-card-pro {
        transform: scale(1);
    }

    .plan-card-popular:hover,
    .plan-card-special:hover,
    .plan-card-premium:hover,
    .plan-card-pro:hover {
        transform: translateY(-5px);
    }

    .plan-card-badge {
        position: relative;
        display: inline-block;
        padding: 6px 12px;
        border-radius: 6px;
        width: fit-content;
        margin-bottom: 8px;
    }

    .plans-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .plans-modal-content {
        padding: 40px 24px 28px;
        border-radius: 20px;
    }

    .plans-modal-header h2 {
        font-size: 1.65rem;
    }

    .plans-modal-close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
    }

    .btn-plans {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .hero-app-download {
        align-items: center;
    }

    .hero-app-btns {
        justify-content: center;
    }

    .btn-app-store {
        min-width: 180px;
        padding: 10px 24px;
    }

    .btn-appstore-text,
    .btn-playstore-text {
        font-size: 1rem;
    }
}

/* Custom Scrollbar for Modal */
.plans-modal-content::-webkit-scrollbar {
    width: 6px;
}

.plans-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.plans-modal-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 3px;
}

.plans-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.45);
}

/* Selection highlight suppression for plan amounts */
.plan-amount {
    user-select: none;
    -webkit-user-select: none;
}