/* Labs Alt Specific Styles */
.labs-alt-hero {
    background: #8729ff;
    text-align: center;
    color: white;
}

.labs-alt-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 2rem;
    font-size: 14px;
    font-weight: 500;
}

.labs-alt-hero-badge img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.labs-alt-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.labs-alt-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.billing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 3rem;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

.billing-toggle button {
    padding: 16px 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
    border: 2px solid transparent;
}

.billing-toggle button.active {
    background: white;
    color: #8729ff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.billing-toggle button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.save-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    display: inline-block;
    position: relative;
    top: -1px;
}

.billing-toggle button.active .save-badge {
    background: linear-gradient(135deg, #8729ff, #6d1fd4);
    box-shadow: 0 2px 8px rgba(135, 41, 255, 0.3);
}

.upgrade-info-section {
    padding: 20px 0 40px 0;
    background: #8729ff;
}

.upgrade-info-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
}

.upgrade-info-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.upgrade-info-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.pricing-container {
    padding: 0px 0 60px 0;
    background: #8729ff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
    overflow: visible;
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: #8729ff;
    margin-bottom: 0.5rem;
}

.plan-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0 2px;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.price-discount {
    text-align: center;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: #333;
    font-size: 0.95rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-features li span {
    display: flex;
    align-items: center;
    flex: 1;
}

.plan-features li span::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.feature-info-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(135, 41, 255, 0.5);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    height: 24px;
    margin-top: 1px;
}

.feature-info-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.feature-info-btn:hover {
    color: rgba(135, 41, 255, 0.8);
}

.feature-info-btn[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    width: max-content;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
}

.feature-info-btn[data-tooltip]:after {
    content: '';
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10001;
}

.feature-info-btn[data-tooltip]:hover:before,
.feature-info-btn[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

.plan-cta {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.plan-cta.primary {
    background: #8729ff;
    color: white;
}

.plan-cta.primary:hover {
    background: #7218e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(135, 41, 255, 0.3);
}

.plan-cta.secondary {
    background: transparent;
    color: #8729ff;
    border: 2px solid #8729ff;
}

.plan-cta.secondary:hover {
    background: #8729ff;
    color: white;
}

/* Labs CTA Button - Same style as plan-cta primary */
.labs-cta-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: #8729ff;
    color: white;
}

.labs-cta-button:hover {
    background: #7218e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(135, 41, 255, 0.3);
    color: white;
    text-decoration: none;
}

/* Terms Section */
.terms-section {
    padding: 40px 0;
    background: #8729ff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.terms-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.terms-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.terms-link:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #8729ff;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.faq-hero-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.accordion-item {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: white;
    color: #333;
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    font-size: 1.1rem;
    text-align: left;
}

.accordion-button:not(.collapsed) {
    background: rgba(135, 41, 255, 0.05);
    color: #8729ff;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(135, 41, 255, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(135, 41, 255, 0.1);
}

.accordion-body {
    padding: 1.5rem;
    background: #fafafa;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid rgba(135, 41, 255, 0.1);
}

.faq-section-labs {
    padding: 0;
    margin-top: -40px;
}

@media (max-width: 991px) {
    .labs-alt-hero h1 {
        font-size: 2rem;
    }

    .labs-alt-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .billing-toggle {
        display: flex;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 2rem;
    }
    
    .billing-toggle button {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .plan-features li {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .plan-features li span {
        flex: 1;
        min-width: 0;
        word-break: break-word;
        margin-right: 8px;
    }
    
    .feature-info-btn[data-tooltip]:before {
        max-width: 200px;
        left: auto;
        right: 0;
        transform: none;
    }
    
    .feature-info-btn[data-tooltip]:after {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    .faq-section-labs {
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: 1rem;
    }
    
    .billing-toggle {
        max-width: 300px;
        padding: 6px;
        margin-bottom: 1.5rem;
    }
    
    .billing-toggle button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .faq-title {
        font-size: 1.5rem;
    }
    
    .save-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .plan-features li {
        padding: 0.4rem 0;
    }
    
    .plan-features li span {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .feature-info-btn[data-tooltip]:before {
        max-width: 180px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .feature-info-btn {
        flex-shrink: 0;
        margin-left: 4px;
    }
    
    .faq-section-labs {
        margin-top: -10px;
    }
}

.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upgrade-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.upgrade-modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
}

.upgrade-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    margin-bottom: 24px;
}

.upgrade-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.upgrade-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.upgrade-modal-close svg {
    width: 20px;
    height: 20px;
}

.upgrade-modal-body {
    padding: 0 24px;
}

/* Success state styles */
.upgrade-success-state {
    text-align: center;
    padding: 20px 0;
}

.upgrade-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.upgrade-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.upgrade-success-state h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.upgrade-success-state p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px;
    font-size: 1rem;
}

.upgrade-success-actions {
    margin-top: 24px;
}

.upgrade-success-actions .upgrade-modal-btn {
    width: 100%;
    justify-content: center;
}

/* Button loader styles */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.upgrade-success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Max Plan Section Styles */
.max-plan-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #8729ff 0%, #6d1fd4 100%);
}

.max-plan-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.max-plan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.max-plan-icon svg {
    width: 40px;
    height: 40px;
}

.max-plan-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: white;
}

.max-plan-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    line-height: 1.6;
}

.max-plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.max-plan-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.max-plan-feature svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.max-plan-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Subscription button styles from account page */
.subscription-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subscription-btn svg {
    width: 16px;
    height: 16px;
}

.btn-upgrade {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .max-plan-card {
        padding: 24px;
        margin: 0 16px;
    }
    
    .max-plan-card h2 {
        font-size: 1.5rem;
    }
    
    .max-plan-actions {
        flex-direction: column;
    }
    
    .max-plan-features {
        text-align: left;
    }
}

.upgrade-summary {
    margin-bottom: 24px;
}

.upgrade-summary p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.8);
}

.upgrade-plan-info {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.upgrade-plan-info strong {
    color: white;
    font-size: 1.1rem;
}

.upgrade-plan-info span {
    color: #a78bfa;
    font-weight: 600;
}

.upgrade-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px !important;
}

.upgrade-payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.payment-info-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-info-text svg {
    width: 20px;
    height: 20px;
    color: #a78bfa;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-info-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.payment-info-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.change-payment-btn {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #a78bfa;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.change-payment-btn:hover {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.2));
    color: white;
}

.change-payment-btn svg {
    width: 16px;
    height: 16px;
}

.upgrade-modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    justify-content: flex-end;
}

.upgrade-modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-modal-btn svg {
    width: 16px;
    height: 16px;
}

.upgrade-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upgrade-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.upgrade-modal-btn-primary {
    background: linear-gradient(145deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.upgrade-modal-btn-primary:hover {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .upgrade-modal {
        padding: 0;
        align-items: stretch;
    }
    
    .upgrade-modal-content {
        margin: 0;
        max-width: none;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .upgrade-modal-header {
        padding: 20px 16px 16px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .upgrade-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .upgrade-modal-body {
        padding: 0 16px;
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .upgrade-summary {
        margin-bottom: 16px;
    }
    
    .upgrade-plan-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px;
    }
    
    .upgrade-payment-info {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .payment-info-text {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .change-payment-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .upgrade-modal-footer {
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        flex-shrink: 0;
        margin-top: auto;
    }
    
    .upgrade-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .upgrade-success-state {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px 0;
    }
    
    .upgrade-success-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 16px;
    }
    
    .upgrade-success-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .upgrade-success-state h4 {
        font-size: 1.25rem;
        margin: 0 0 8px;
    }
    
    .upgrade-success-state p {
        font-size: 0.9rem;
        margin: 0 0 20px;
    }
    
    .upgrade-success-actions {
        margin-top: auto;
        padding: 16px 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .upgrade-success-actions .upgrade-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .upgrade-modal {
        padding: 5px;
        padding-top: 10px;
    }
    
    .upgrade-modal-content {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }
    
    .upgrade-modal-header {
        padding: 12px 12px 0;
        margin-bottom: 12px;
    }
    
    .upgrade-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .upgrade-modal-body {
        padding: 0 12px;
    }
    
    .upgrade-summary {
        margin-bottom: 12px;
    }
    
    .upgrade-plan-info {
        padding: 10px;
    }
    
    .upgrade-payment-info {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .upgrade-modal-footer {
        padding: 12px;
    }
    
    .upgrade-modal-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* Login Popup Styles */
.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-popup {
    background: #1e1b3f;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-popup-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.login-popup-close:hover {
    color: #fff;
}

.login-popup-body {
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.login-popup-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-popup-footer .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.login-popup-footer .btn-primary {
    background: linear-gradient(45deg, #6772e5, #7795f8);
    border: none;
    color: #fff;
}

.login-popup-footer .btn-primary:hover {
    background: linear-gradient(45deg, #5469d4, #6772e5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.login-popup-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
}

.login-popup-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}