/* ========================================
   SUBSCRIPTION PAGE - MOBILE RESPONSIVE
   Professional mobile optimization
   ======================================== */

@media (max-width: 768px) {

    /* ========================================
       SUBSCRIPTION SECTION
       ======================================== */
    #subscriptionSection {
        padding: 1rem;
    }

    .subscription-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .subscription-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .subscription-header p {
        font-size: 0.875rem;
        color: #64748b;
    }

    /* ========================================
       PRICING CARDS GRID
       ======================================== */
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .pricing-card {
        width: 100%;
        background: white;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    .pricing-card.featured {
        border-color: #6366f1;
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    }

    .pricing-card.unavailable {
        opacity: 0.6;
        background: #f8fafc;
    }

    /* ========================================
       CARD HEADER
       ======================================== */
    .pricing-card-header {
        text-align: center;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #e2e8f0;
    }

    .pricing-card-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.5rem;
    }

    .pricing-card-price {
        font-size: 2rem;
        font-weight: 800;
        color: #6366f1;
        margin-bottom: 0.25rem;
    }

    .pricing-card-price .currency {
        font-size: 1.5rem;
    }

    .pricing-card-price .period {
        font-size: 0.875rem;
        font-weight: 500;
        color: #64748b;
    }

    .pricing-card-subtitle {
        font-size: 0.875rem;
        color: #64748b;
        font-weight: 600;
    }

    /* ========================================
       UNAVAILABLE BADGE
       ======================================== */
    .unavailable-badge {
        display: inline-block;
        background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: center;
    }

    .unavailable-status {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin: 1rem 0;
        padding: 1rem;
        background: #fef3c7;
        border-radius: 0.5rem;
        border-left: 4px solid #f59e0b;
    }

    .unavailable-status-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #92400e;
    }

    .unavailable-status-item i {
        color: #f59e0b;
        font-size: 1rem;
    }

    .unavailable-cta {
        text-align: center;
        margin-top: 1rem;
    }

    .unavailable-cta-text {
        font-size: 0.875rem;
        color: #64748b;
        margin-bottom: 0.5rem;
    }

    /* ========================================
       FEATURES LIST
       ======================================== */
    .pricing-features {
        list-style: none;
        padding: 0;
        margin: 0 0 1.5rem 0;
    }

    .pricing-feature {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
        font-size: 0.875rem;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
    }

    .pricing-feature:last-child {
        border-bottom: none;
    }

    .pricing-feature i {
        color: #10b981;
        font-size: 1rem;
        margin-top: 0.125rem;
        flex-shrink: 0;
    }

    .pricing-feature-text {
        flex: 1;
        line-height: 1.5;
    }

    .pricing-feature-highlight {
        font-weight: 600;
        color: #1e293b;
    }

    /* ========================================
       UPGRADE BUTTON
       ======================================== */
    .pricing-card-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 0.75rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .pricing-card-button.btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .pricing-card-button.btn-primary:active {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    }

    .pricing-card-button.btn-outline {
        background: transparent;
        border: 2px solid #e2e8f0;
        color: #64748b;
    }

    .pricing-card-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #e2e8f0;
        color: #94a3b8;
    }

    /* ========================================
       NOT AVAILABLE BUTTON
       ======================================== */
    .btn-not-available {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.75rem;
        border: 2px solid #e2e8f0;
        background: #f8fafc;
        color: #94a3b8;
        cursor: not-allowed;
    }

    /* ========================================
       ACTIVE PLAN INDICATOR
       ======================================== */
    .active-plan-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: #d1fae5;
        color: #065f46;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .active-plan-badge i {
        color: #10b981;
    }

    /* ========================================
       RESPONSIVE ADJUSTMENTS
       ======================================== */
    @media (max-width: 360px) {
        .pricing-card {
            padding: 1.25rem;
        }

        .pricing-card-price {
            font-size: 1.75rem;
        }

        .pricing-card-title {
            font-size: 1.125rem;
        }

        .pricing-feature {
            font-size: 0.8125rem;
        }
    }

    /* ========================================
       LANDSCAPE MODE
       ======================================== */
    @media (orientation: landscape) and (max-height: 500px) {
        .pricing-card {
            padding: 1rem;
        }

        .pricing-card-header {
            margin-bottom: 1rem;
        }

        .pricing-features {
            margin-bottom: 1rem;
        }

        .pricing-feature {
            padding: 0.5rem 0;
        }
    }
}

/* ========================================
   TABLET ADJUSTMENTS (768px - 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pricing-card.unavailable {
        grid-column: 1 / -1;
    }
}