:root {
    --primary: #D97706;
    --primary-hover: #B45309;
    --dark-card: rgba(255,255,255,0.03);
    --dark-bg: #0a0a0f;
}

.checkout-page {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: radial-gradient(ellipse at top right, rgba(217,119,6,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(99,102,241,0.03) 0%, transparent 50%),
                var(--dark-bg);
}

.checkout-header { text-align:center; margin-bottom:40px; }
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.step.active { background:rgba(217,119,6,0.12); border-color:rgba(217,119,6,0.3); }
.step.done { background:rgba(16,185,129,0.1); border-color:rgba(16,185,129,0.2); }
.step.done .step-num { background:#10b981; }
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: #fff;
}
.step.active .step-num { background:var(--primary); color:#000; }
.step-label { font-size:0.85rem; font-weight:600; color:#aaa; }
.step.active .step-label { color:#fff; }
.step-line { width:40px; height:2px; background:rgba(255,255,255,0.08); }

.checkout-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}
.checkout-card-title { font-weight:800; margin-bottom:24px; font-size:1.2rem; }
.text-gold { color: var(--primary) !important; }

.order-item-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}
.order-item-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    background: rgba(217,119,6,0.08);
    border-radius: 16px;
    flex-shrink: 0;
}
.order-item-info h5 { margin:0 0 4px; font-weight:700; }
.order-item-info p { margin:0; color:#888; font-size:0.9rem; }

.coupon-section { margin-bottom:24px; }
.coupon-input-group {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.coupon-input-group .form-control {
    background: rgba(255,255,255,0.04);
    border: none;
    color: #fff;
    padding: 14px 16px;
    font-size: 1rem;
}
.coupon-input-group .form-control::placeholder { color:#666; }
.coupon-input-group .form-control:focus { box-shadow:none; background:rgba(255,255,255,0.06); }
.btn-gold-outline {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 24px;
    transition: all 0.3s;
}
.btn-gold-outline:hover { background:rgba(217,119,6,0.1); color:var(--primary); }
.coupon-feedback { margin-top:10px; font-size:0.9rem; min-height:24px; }
.coupon-feedback.success { color:#10b981; }
.coupon-feedback.error { color:#ef4444; }

.btn-checkout-next {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-checkout-next:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(217,119,6,0.25); }

.payment-methods { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
}
.payment-method:hover { border-color:rgba(255,255,255,0.12); }
.payment-method.active { border-color:var(--primary); background:rgba(217,119,6,0.05); }
.payment-method input { display:none; }
.pm-content { display:flex; align-items:center; gap:14px; }
.pm-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.pm-content strong { display:block; font-size:0.95rem; }
.pm-desc { display:block; font-size:0.8rem; color:#888; }
.pm-check { color:var(--primary); opacity:0; transition:opacity 0.2s; }
.payment-method.active .pm-check { opacity:1; }

.payment-instructions { margin-bottom:24px; }
.pay-phone-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(217,119,6,0.06);
    border: 1px dashed rgba(217,119,6,0.3);
    border-radius: 16px;
}
.pay-label { color:#aaa; font-size:0.9rem; }
.pay-phone-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    direction: ltr;
}
.btn-copy {
    background: rgba(217,119,6,0.15);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 6px 14px;
}
.btn-copy:hover { background:rgba(217,119,6,0.25); color:var(--primary); }

.upload-zone {
    text-align: center;
    padding: 30px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}
.upload-zone:hover { border-color:var(--primary); background:rgba(217,119,6,0.03); }
.upload-zone i { font-size:2.5rem; margin-bottom:8px; display:block; }
.receipt-preview { text-align:center; }
.receipt-preview img { max-width:200px; border-radius:12px; border:2px solid var(--primary); }

.receipt-upload .form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
}
.receipt-upload .form-control::placeholder { color:#555; }
.receipt-upload .form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(217,119,6,0.1); }

.confirm-icon { font-size:5rem; color:#10b981; animation:confirmPop 0.5s ease; }
@keyframes confirmPop { 0%{transform:scale(0);} 60%{transform:scale(1.2);} 100%{transform:scale(1);} }

.order-summary-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 28px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(12px);
}
.summary-title { font-weight:800; margin-bottom:20px; }
.summary-body { padding:0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #bbb;
}
.total-row { font-size:1.2rem; font-weight:900; color:#fff; }
.total-price { color:var(--primary); }
.summary-divider { height:1px; background:rgba(255,255,255,0.06); margin:8px 0; }
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(16,185,129,0.06);
    border-radius: 12px;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-gold { background:var(--primary); color:#000; font-weight:700; border:none; }
.btn-gold:hover { background:var(--primary-hover); color:#000; }

/* Activation Spinner & Status Timeline */
.activation-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 30px auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(217, 119, 6, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; } }

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.3;
    transition: all 0.4s;
    text-align: right;
}

.status-item.active {
    opacity: 1;
    color: #fff;
}

.status-item.completed {
    opacity: 1;
    color: #10b981;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    position: relative;
}

.status-item.active .status-dot {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.status-item.completed .status-dot {
    background: #10b981;
}

.status-item:not(:last-child) .status-dot::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: #333;
}

.status-item.completed:not(:last-child) .status-dot::after {
    background: #10b981;
}

@media (max-width:991px) {
    .checkout-page { padding:100px 0 40px; }
    .checkout-card { padding:24px; }
    .order-summary-card { position:static; margin-top:24px; }
    .pay-phone-number { font-size:1.2rem; }
}

@media (max-width: 767px) {
    .checkout-steps {
        gap: 0;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .step {
        padding: 6px 10px;
        gap: 6px;
    }

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

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .step-line {
        width: 20px;
    }

    .checkout-card {
        padding: 20px;
        border-radius: 16px;
    }

    .checkout-card-title {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .order-item-preview {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    .order-item-icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .coupon-input-group .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }

    .btn-gold-outline {
        padding: 12px 18px;
    }

    .btn-checkout-next {
        padding: 14px;
        font-size: 1rem;
        min-height: 48px;
    }

    .payment-method {
        padding: 12px 14px;
    }

    .pm-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .pm-content strong {
        font-size: 0.85rem;
    }

    .pm-desc {
        font-size: 0.75rem;
    }

    .pay-phone-box {
        padding: 16px;
        gap: 10px;
    }

    .pay-phone-number {
        font-size: 1.1rem;
    }

    .upload-zone {
        padding: 20px;
    }

    .upload-zone i {
        font-size: 2rem;
    }

    .receipt-preview img {
        max-width: 150px;
    }

    .order-summary-card {
        padding: 20px;
    }

    .summary-row {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .total-row {
        font-size: 1.05rem;
    }

    .secure-badge {
        padding: 10px;
        font-size: 0.8rem;
    }

    .activation-spinner {
        width: 80px;
        height: 80px;
        margin: 20px auto;
    }

    .spinner-core {
        width: 30px;
        height: 30px;
    }

    .status-timeline {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .checkout-steps {
        flex-direction: column;
        gap: 8px;
    }

    .step-line {
        display: none;
    }

    .step {
        width: 100%;
        justify-content: center;
    }

    .pay-phone-number {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}
