/* Checkout Page Specific Styles */

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--light);
}

.checkout-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.checkout-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Configuration Panel */
.config-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.plan-info {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.plan-info h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    color: var(--light);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.spec-list .check {
    color: var(--primary);
    margin-right: 0.75rem;
    font-weight: bold;
}

/* Configuration Options */
.config-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-option:last-child {
    border-bottom: none;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.label-icon {
    font-size: 1.5rem;
}

.option-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.option-select:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.option-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.option-select option {
    background: var(--dark);
    color: var(--light);
}

.option-select optgroup {
    background: var(--darker);
    color: var(--primary);
    font-weight: 600;
}

.option-help {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Storage Options */
.storage-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.storage-option {
    cursor: pointer;
}

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

.storage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.storage-option input[type="radio"]:checked + .storage-card {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.storage-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.storage-size {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.storage-price {
    color: var(--gray);
    font-size: 0.9rem;
}

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

/* Summary Panel */
.summary-panel {
    position: relative;
}

.summary-sticky {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--light);
    font-size: 0.95rem;
}

.summary-item span:first-child {
    color: var(--gray);
}

.item-price {
    font-weight: 600;
    color: var(--light);
}

.item-price.discount {
    color: #10b981;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1rem 0;
}

/* Monthly Price Display */
.monthly-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.monthly-label {
    color: var(--gray);
    font-size: 0.95rem;
}

.monthly-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
}

/* Total Price Display */
.total-price-display {
    text-align: center;
    padding: 1.5rem 0;
}

#period-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

#period-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Billing Period Section */
.billing-period-section {
    margin-bottom: 1.5rem;
}

.billing-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.billing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.billing-option {
    cursor: pointer;
}

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

.billing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.billing-option input[type="radio"]:checked + .billing-card {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.billing-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.billing-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.billing-save {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.billing-option input[type="radio"]:checked + .billing-card .billing-save {
    color: #10b981;
}

.checkout-button {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.checkout-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

.payment-info {
    margin-top: 1.5rem;
    text-align: center;
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.secure-icon {
    color: var(--primary);
}

.payment-features {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* Trust Section */
.trust-section {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.trust-icon {
    font-size: 2rem;
}

.trust-badge strong {
    display: block;
    color: var(--light);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.trust-badge p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

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

    .summary-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 100px 0 40px;
    }

    .config-panel,
    .summary-sticky {
        padding: 1.5rem;
    }

    .checkout-title {
        font-size: 1.5rem;
    }

    .storage-options {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .back-link {
        font-size: 0.85rem;
    }
}
