/* Premium Purchase Page Styles */

.premium-purchase {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.purchase-content {
    max-width: 1000px;
    margin: 0 auto;
}

.purchase-header {
    text-align: center;
    margin-bottom: 60px;
}

.premium-badge-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.purchase-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purchase-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

.purchase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* Левая колонка: карточка + «У меня есть промокод» под ней */
.purchase-grid-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pricing Options */
.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-option {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-option:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.pricing-option input[type="radio"]:checked + label::before {
    border-color: var(--primary);
    background: var(--primary);
}

.pricing-option-popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.option-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: var(--text-light);
}

.option-price {
    text-align: right;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

.price-discount {
    display: block;
    font-size: 14px;
    color: var(--success, #22c55e);
    font-weight: 600;
    margin-top: 2px;
}

.save {
    display: block;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    margin-top: 4px;
}

.option-radio {
    margin-left: 24px;
}

.option-radio input[type="radio"] {
    display: none;
}

.option-radio label {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-radio input[type="radio"]:checked + label {
    border-color: var(--primary);
}

.option-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

/* Premium Features List */
.premium-features-list {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.features-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
}

.feature-item-premium {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.feature-item-premium:last-child {
    border-bottom: none;
}

.feature-item-premium svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item-premium strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item-premium p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Purchase Form */
.purchase-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group a {
    color: var(--primary);
    text-decoration: none;
}

.form-group a:hover {
    text-decoration: underline;
}

.payment-info {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.payment-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0;
}

/* Promo Code Section */
.promo-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
}

.promo-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.promo-toggle:hover {
    color: var(--primary-dark);
}

.promo-toggle svg {
    transition: transform 0.3s ease;
}

.promo-toggle.active svg {
    transform: rotate(180deg);
}

.promo-form {
    margin-top: 24px;
}

.promo-input-group {
    display: flex;
    gap: 12px;
}

.promo-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    text-transform: uppercase;
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.promo-input-group button {
    padding: 14px 32px;
    white-space: nowrap;
}

.promo-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.promo-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.promo-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-grid {
        grid-template-columns: 1fr;
    }

    .purchase-title {
        font-size: 36px;
    }

    .pricing-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-header {
        width: 100%;
        margin-bottom: 16px;
    }

    .option-radio {
        margin-left: 0;
    }

    .promo-input-group {
        flex-direction: column;
    }

    .promo-input-group button {
        width: 100%;
    }
}
