/* Subscription Modal Styles */
.sub-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 14, 25, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 20px;
}

.sub-modal {
    background: transparent;
    width: 100%;
    max-width: 1100px;
    position: relative;
    padding: 40px 20px;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sub-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000001;
}

.sub-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sub-header {
    text-align: center;
    margin-bottom: 50px;
}

.sub-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.sub-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

/* Pricing Cards */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.5s ease;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.featured {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 184, 73, 0.5);
    /* Gold border for Gold plan */
    box-shadow: 0 0 30px rgba(245, 184, 73, 0.15);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.silver-text {
    color: #C0C0C0;
}

.gold-text {
    color: #F5B849;
}

.platinum-text {
    color: #E5E4E2;
}

.plan-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-features li i {
    color: #26BF94;
    font-size: 14px;
}

.plan-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-card:hover .plan-btn {
    background: #FFFFFF;
    color: #000E19;
}

.pricing-card.featured .plan-btn {
    background: #F5B849;
    color: #000E19;
    border-color: #F5B849;
}

/* Subscription Form */
.sub-form-container {
    display: none;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    color: #141411;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #00223B;
}

.back-btn {
    background: none;
    border: none;
    color: #00223B;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0;
}

.sub-form-group {
    margin-bottom: 20px;
}

.sub-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sub-form-group input,
.sub-form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #E6E9EB;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.sub-form-group input:focus {
    outline: none;
    border-color: #00223B;
    box-shadow: 0 0 0 4px rgba(0, 34, 59, 0.05);
}

.sub-submit-btn {
    width: 100%;
    padding: 18px;
    background: #00223B;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.sub-submit-btn:hover {
    background: #003358;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 34, 59, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .sub-modal-overlay {
        padding: 10px;
    }

    .sub-modal {
        padding: 20px 0;
    }

    .sub-title {
        font-size: 28px;
    }

    .sub-subtitle {
        font-size: 15px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .sub-form-container {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .sub-modal-close {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}