/* Payment Page Styles */

.payment-section {
    padding: 150px 20px 80px;
    min-height: 100vh;
}

.payment-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.step span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step.active span {
    color: var(--text-primary);
}

/* Payment Steps */
.payment-step {
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

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

.step-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

/* Product Selection */
.product-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-option {
    padding: 2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-option:hover::before,
.product-option.selected::before {
    opacity: 1;
}

.product-option:hover,
.product-option.selected {
    border-color: var(--text-primary);
    transform: translateY(-5px);
}

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

.option-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.badge {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.option-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.option-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
}

.period {
    color: var(--text-secondary);
}

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

.option-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-features i {
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method-option {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.method-option:hover,
.method-option.selected {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.method-icon {
    margin-bottom: 1rem;
}

.method-icon i {
    font-size: 2.5rem;
}

.tron-logo {
    font-size: 1.5rem;
    font-weight: 800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.method-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.method-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.method-rate {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.rate-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.rate-value {
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Email Input */
.email-input {
    margin-bottom: 3rem;
}

.email-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.email-input input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.input-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.next-step {
    display: block;
    margin: 0 auto;
}

/* Payment Details */
.payment-details {
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 2rem;
}

.order-summary {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.order-summary h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.summary-item.total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.payment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.qr-section h3,
.address-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.qr-container {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem;
}

.qr-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.address-container,
.amount-container {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.address-container code,
.amount-container code {
    flex: 1;
    background: none;
    color: var(--text-primary);
    word-break: break-all;
    font-size: 0.875rem;
}

.copy-btn {
    padding: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    border-color: var(--text-primary);
    transform: scale(1.05);
}

.amount-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Payment Status */
.payment-status {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.status-icon {
    margin-bottom: 1rem;
}

.status-icon i {
    font-size: 2rem;
    color: #ffa500;
}

.payment-status h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.payment-status p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.timer span:last-child {
    color: #ffa500;
}

/* License Display */
.license-display {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
}

.license-display h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.license-key {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    word-break: break-all;
    color: #00ff88;
}

/* Success animations */
@keyframes licenseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
}

.license-display {
    animation: licenseGlow 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: row;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step span {
        font-size: 0.75rem;
    }
    
    .product-selection {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-info {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .payment-details {
        padding: 2rem;
    }
}