/* ================================================
   Checkout Page Styles
   ================================================ */

.checkout-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
}

.checkout-main {
    padding: calc(var(--header-height) + 40px) 0 80px;
    min-height: 100vh;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 48px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 700;
    transition: var(--transition-normal);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
    color: #000;
}

.progress-step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 16px;
    margin-bottom: 28px;
}

/* Checkout Container */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.checkout-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Plan Options */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.plan-option {
    position: relative;
    cursor: pointer;
}

.plan-option input {
    position: absolute;
    opacity: 0;
}

.plan-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.plan-option:hover .plan-content {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.plan-option input:checked+.plan-content {
    border-color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plan-badge.purple {
    background: var(--gradient-purple);
    color: #fff;
}

.plan-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.plan-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-left: auto;
}

.plan-price .price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-savings {
    padding: 4px 10px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.plan-savings.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.plan-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--accent-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.05);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent-primary);
}

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

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.payment-option:hover .payment-content {
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-option input:checked+.payment-content {
    border-color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.05);
}

.payment-content i {
    font-size: 1.75rem;
    color: var(--text-secondary);
}

.payment-option input:checked+.payment-content i {
    color: var(--accent-primary);
}

.payment-content .payment-icons {
    display: flex;
    gap: 8px;
}

.payment-content span {
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-form {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.payment-form.hidden {
    display: none;
}

.paypal-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

.paypal-notice i {
    font-size: 3rem;
    color: #0070ba;
}

.crypto-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.crypto-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.crypto-option input {
    position: absolute;
    opacity: 0;
}

.crypto-option:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.05);
}

.crypto-option i {
    font-size: 2rem;
    color: var(--text-muted);
}

.crypto-option:has(input:checked) i {
    color: var(--accent-primary);
}

.pay-btn {
    flex: 1;
}

.pay-amount {
    margin-left: 4px;
    font-weight: 800;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.security-badge i {
    color: var(--accent-primary);
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.summary-plan-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-plan-name span:first-child {
    font-weight: 600;
}

.change-plan {
    font-size: 0.85rem;
    color: var(--accent-primary);
    cursor: pointer;
}

.change-plan:hover {
    text-decoration: underline;
}

.summary-plan-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-feature i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.summary-total span:first-child {
    font-size: 1.125rem;
    font-weight: 600;
}

.total-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-md);
}

.guarantee-box i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.guarantee-box strong {
    display: block;
    margin-bottom: 4px;
}

.guarantee-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    max-width: 500px;
    width: 100%;
    padding: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
}

.success-icon i {
    font-size: 3rem;
    color: var(--accent-primary);
}

.success-modal h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.success-modal>p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.credentials-box {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    text-align: left;
}

.credentials-box h4 {
    margin-bottom: 16px;
    text-align: center;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credential:last-child {
    border-bottom: none;
}

.credential label {
    min-width: 80px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.credential span {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

.email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.email-notice i {
    color: var(--accent-primary);
}

.success-actions {
    display: flex;
    gap: 16px;
}

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

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

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-form-wrapper {
        padding: 24px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .step-actions .btn {
        width: 100%;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
    }

    .success-modal-content {
        padding: 32px 24px;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .checkout-progress {
        gap: 8px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        margin: 0 8px;
    }

    .plan-features {
        flex-direction: column;
        gap: 8px;
    }

    .crypto-options {
        flex-direction: column;
    }
}