/* Pricing Page Styles */

/* Page Layout */
.pricing-page {
    padding-top: 100px;
}

.pricing-page .pricing-hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.pricing-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pricing-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Pricing Section */
.pricing-section {
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.pricing-container {
    max-width: 1200px;
}

/* Product Header */
.product-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-header h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.product-links {
    margin-top: 1rem;
}

.docs-link,
.nuget-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.docs-link:hover,
.nuget-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #f7f9fb;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Pricing Cards */
.pricing-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Popular Card */
.pricing-card-popular {
    border-color: #c41e3a;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.15);
}

.pricing-card-popular:hover {
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.2);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #c41e3a 0%, #8b1a2e 100%);
    color: #ffffff;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem;
}

.pricing-card-popular .pricing-card-header {
    padding-top: 2.5rem;
}

/* Enterprise Card */
.pricing-card-enterprise {
    background: linear-gradient(135deg, #f7f9fb 0%, #ffffff 100%);
}

/* Card Header */
.pricing-card-header {
    padding: 1.5rem 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card-header h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Card Body */
.pricing-card-body {
    padding: 1.25rem;
    flex: 1;
}

.pricing-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Feature List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    color: var(--text-color);
}

.feature-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-included .feature-icon {
    color: #2ecc71;
}

.feature-excluded {
    color: var(--text-muted);
}

.feature-excluded .feature-icon {
    color: #e0e0e0;
}

.feature-highlight {
    font-weight: 500;
    color: #c41e3a;
}

/* Limits Tags */
.pricing-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.limit-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: #f0f0f0;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Card Footer */
.pricing-card-footer {
    padding: 1rem 1.25rem 1.25rem;
}

/* Pricing Buttons */
.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
}

.pricing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

.pricing-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pricing-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.pricing-btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Activation Info */
.activation-info {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.activation-info-text {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.activation-info-text strong {
    color: var(--primary-color);
}

/* Feature Comparison Table */
.feature-comparison {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.feature-comparison h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 500;
    color: var(--primary-color);
    background: #f7f9fb;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td.included {
    color: #2ecc71;
    font-weight: 500;
}

.comparison-table td.excluded {
    color: #e0e0e0;
}

.comparison-table td.limited {
    color: #f39c12;
    font-size: 0.8rem;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.coming-soon-section .section-container {
    text-align: center;
    background: linear-gradient(135deg, #f7f9fb 0%, #ffffff 100%);
}

.coming-soon-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coming-soon-section > .section-container > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.coming-soon-products {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.coming-soon-card {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 300px;
}

.coming-soon-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.coming-soon-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: var(--text-muted);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Purchase Modal */
.purchase-modal-container {
    max-width: 550px;
}

.purchase-modal-content {
    padding: 2rem;
}

.purchase-modal-content h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.purchase-summary {
    background: #f7f9fb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.purchase-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.purchase-summary-row:first-child {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.purchase-summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.purchase-summary-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.purchase-summary-total {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Terms Section */
.terms-section {
    margin-bottom: 1.25rem;
}

.terms-section h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.terms-scroll-box {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.terms-scroll-box h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.terms-scroll-box h4:first-child {
    margin-top: 0;
}

.terms-scroll-box p {
    margin-bottom: 0.75rem;
}

.terms-scroll-box ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
}

.terms-scroll-box li {
    margin-bottom: 0.25rem;
}

/* Terms Agreement Checkbox */
.terms-agreement {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.checkbox-label strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* Purchase Actions */
.purchase-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.purchase-actions .pricing-btn {
    flex: 1;
}

#cancelPurchase {
    flex: 0.6;
}

.purchase-note {
    text-align: center;
}

.purchase-note p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.purchase-note svg {
    color: #2ecc71;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-page {
        padding-top: 80px;
    }

    .pricing-hero {
        min-height: 20vh;
        padding: 2rem 1.5rem;
    }

    .pricing-hero-content h1 {
        font-size: 2rem;
    }

    .pricing-section,
    .coming-soon-section {
        padding: 2rem 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card-popular {
        order: -1;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .purchase-modal-container {
        width: 95%;
    }

    .purchase-modal-content {
        padding: 1.5rem;
    }

    .purchase-actions {
        flex-direction: column-reverse;
    }

    .purchase-actions .pricing-btn,
    #cancelPurchase {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .pricing-hero-content h1 {
        font-size: 1.75rem;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .product-header h2 {
        font-size: 1.5rem;
    }
}

/* Email Modal */
.email-modal-container {
    max-width: 420px;
}

.email-modal-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.email-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.email-modal-icon svg {
    color: var(--primary-color);
}

.email-modal-content h2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.email-modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.email-form {
    text-align: left;
}

.email-input-wrapper {
    margin-bottom: 1.5rem;
}

.email-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary-color);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.email-input::placeholder {
    color: #b0b0b0;
}

.email-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.email-input-error {
    display: none;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.email-input.error + .email-input-error {
    display: block;
}

.email-modal-actions {
    display: flex;
    gap: 1rem;
}

.email-modal-actions .pricing-btn {
    flex: 1;
}

#emailCancel {
    flex: 0.6;
}

@media (max-width: 480px) {
    .email-modal-container {
        width: 95%;
    }

    .email-modal-content {
        padding: 2rem 1.5rem;
    }

    .email-modal-actions {
        flex-direction: column-reverse;
    }

    .email-modal-actions .pricing-btn,
    #emailCancel {
        flex: 1;
    }
}
