/* Modern Cart Page Styling */

.cart-modern-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: var(--primary-color, #007bff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.step-circle.inactive {
    background: #e9ecef;
    color: #6c757d;
}

.step-label {
    font-weight: 500;
    color: #495057;
}

.step-arrow {
    color: #dee2e6;
    font-size: 1.2rem;
}

/* Cart Cards */
.cart-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.cart-card-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-card-header h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-card-header h5 i {
    color: var(--primary-color, #007bff);
}

/* Cart Table */
.cart-table {
    margin: 0;
}

.cart-table thead th {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.cart-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.package-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.billing-cycle-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.billing-cycle-select:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.price-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #007bff);
}

/* Coupon Section */
.coupon-section {
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(94, 114, 228, 0.3);
}

.coupon-section h6 {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.1rem;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.coupon-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-apply-coupon {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.coupon-applied {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-applied-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-applied-code {
    font-weight: 700;
    font-size: 1.1rem;
}

.coupon-applied-discount {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-remove-coupon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove-coupon:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.coupon-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.coupon-message.success {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.coupon-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.order-summary h5 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    font-size: 1rem;
    color: #495057;
}

.summary-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.summary-discount {
    color: #28a745;
}

.summary-total {
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.summary-total .summary-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.summary-total .summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color, #007bff) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    color: white;
}

/* Domain Configuration */
.domain-config-card {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
}

.domain-config-card h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.domain-option-radio {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.domain-option-radio:hover {
    background: rgba(255, 255, 255, 0.3);
}

.domain-option-radio input[type="radio"]:checked+label {
    font-weight: 700;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2rem;
    }

    .cart-progress {
        flex-direction: column;
        gap: 10px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .cart-card {
        padding: 20px;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .btn-apply-coupon {
        width: 100%;
    }

    .order-summary {
        position: static;
        margin-top: 20px;
    }

    .summary-total .summary-value {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}