/* ============================================================
   UPGRADE PAGE STYLES
   ============================================================ */

.upgrade-section {
    min-height: calc(100vh - 80px);
    padding: var(--space-lg) 0;
    background: var(--cream);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--slate);
    font-size: 1.125rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.toggle-label {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 500;
}

.save-badge {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--stone);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--gold);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Pricing Card */
.pricing-card {
    background: white;
    border: 2px solid var(--stone);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Featured Card */
.pricing-card-featured {
    border-color: var(--gold);
    border-width: 3px;
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

/* Premium Card */
.pricing-card-premium {
    border-color: var(--charcoal);
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-badge {
    background: var(--charcoal);
}

/* Pricing Header */
.pricing-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--stone);
}

.pricing-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 600;
}

.price-period {
    font-size: 1rem;
    color: var(--slate);
}

.pricing-annual {
    font-size: 0.875rem;
    color: var(--slate);
    margin-top: 0.5rem;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cream);
    font-size: 0.938rem;
    color: var(--charcoal);
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--gold);
    font-weight: 600;
    margin-right: 0.5rem;
}

.pricing-note {
    text-align: center;
    font-size: 0.813rem;
    color: var(--slate);
    margin-top: 0.75rem;
}

.pricing-card .btn {
    width: 100%;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
}

.comparison-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.comparison-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--stone);
}

.comparison-table th {
    background: var(--cream);
    font-weight: 600;
    color: var(--charcoal);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: var(--cream);
}

/* FAQ Section */
.faq-section {
    margin-bottom: var(--space-xl);
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.faq-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stone);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.faq-item p {
    color: var(--slate);
    font-size: 0.938rem;
    line-height: 1.6;
    margin: 0;
}

/* Waitlist Message */
.waitlist-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.938rem;
}

.waitlist-message.hidden {
    display: none;
}

.waitlist-message.success {
    background: #E8F5E9;
    border: 1px solid #4CAF50;
    color: #2E7D32;
}

.waitlist-message.error {
    background: #FFEBEE;
    border: 1px solid #F44336;
    color: #C62828;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--soft-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--charcoal);
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.modal-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none;
}
