/* =====================
   CHECKOUT EXTRA STYLES
   ===================== */
.secure-nav-badge { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; padding: 6px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; }

.steps-bar { background: var(--dark); border-bottom: 1px solid rgba(255,107,0,0.1); padding: 1.25rem 0; }
.steps { display: flex; align-items: center; justify-content: center; max-width: 420px; margin: 0 auto; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0.38; transition: opacity 0.3s; }
.step.active { opacity: 1; }
.step.done { opacity: 0.85; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--dark3); border: 2px solid rgba(255,107,0,0.25); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.88rem; color: var(--muted); transition: all 0.3s; }
.step.active .step-dot { background: var(--orange); border-color: var(--orange); color: #000; box-shadow: 0 0 16px rgba(255,107,0,0.5); }
.step.done .step-dot { background: #22c55e; border-color: #22c55e; color: #000; }
.step span { font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.step.active span { color: var(--orange); }
.step.done span { color: #22c55e; }
.step-line { flex: 1; height: 2px; background: rgba(255,107,0,0.12); max-width: 80px; margin-bottom: 20px; transition: background 0.4s; }
.step-line.done { background: #22c55e; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.checkout-step { animation: fadeIn 0.3s ease; }
.checkout-step.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-family: 'Creepster', cursive; font-size: 2rem; color: var(--orange); margin-bottom: 1.75rem; }
.field-error { color: #e53e3e; font-size: 0.8rem; font-weight: 600; min-height: 16px; }
.field-success { color: #22c55e; font-size: 0.85rem; font-weight: 700; }
.form-input.error { border-color: #e53e3e !important; }

.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid rgba(255,107,0,0.1); border-radius: 10px; padding: 13px 16px; cursor: pointer; transition: all 0.2s; }
.shipping-option:has(input:checked) { border-color: var(--orange); background: rgba(255,107,0,0.05); }
.shipping-option input { accent-color: var(--orange); width: 16px; height: 16px; }
.shipping-option-info { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.shipping-name { font-weight: 700; font-size: 0.92rem; }
.shipping-days { color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-left: 8px; }
.shipping-price { font-weight: 800; color: var(--orange); }
.promo-row { display: flex; gap: 10px; align-items: center; }
.btn-next, .btn-place { width: 100%; margin-top: 0.5rem; padding: 15px; font-size: 1.02rem; }
.step-btns { display: flex; gap: 1rem; margin-top: 1.5rem; }
.step-btns .btn { flex: 1; }

.payment-methods { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pay-method { flex: 1; min-width: 110px; background: var(--card-bg); border: 1px solid rgba(255,107,0,0.1); border-radius: 10px; padding: 11px 14px; text-align: center; cursor: pointer; font-weight: 700; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; }
.pay-method.active { border-color: var(--orange); background: rgba(255,107,0,0.08); color: var(--orange); }

.card-input-wrap { position: relative; }
.card-icons { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.secure-badge { background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.2); color: #22c55e; border-radius: 8px; padding: 10px 14px; font-size: 0.84rem; font-weight: 700; margin-top: 1rem; text-align: center; }

.alt-pay-msg { text-align: center; padding: 2.5rem 2rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid rgba(255,107,0,0.1); }
.alt-pay-icon { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.alt-pay-msg h4 { font-family: 'Creepster', cursive; font-size: 1.5rem; color: var(--orange); margin-bottom: 0.75rem; }
.alt-pay-msg p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.review-section { background: var(--card-bg); border: 1px solid rgba(255,107,0,0.1); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.review-header h4 { font-size: 1rem; font-weight: 800; }
.edit-btn { background: none; border: 1px solid rgba(255,107,0,0.3); color: var(--orange); font-family: 'Nunito', sans-serif; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.edit-btn:hover { background: rgba(255,107,0,0.1); }
.review-content { color: var(--muted); font-size: 0.88rem; line-height: 1.9; }

.security-assurance { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
.security-assurance span { font-size: 0.78rem; color: var(--muted); background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); padding: 4px 10px; border-radius: 100px; }

.terms-check { margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 6px; }
.terms-check label { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.terms-check input[type=checkbox] { accent-color: var(--orange); width: 16px; height: 16px; }

/* Order Summary */
.order-summary { background: var(--card-bg); border: 1px solid rgba(255,107,0,0.15); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.summary-title { font-family: 'Creepster', cursive; font-size: 1.5rem; color: var(--orange); margin-bottom: 1.25rem; }
.summary-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.summary-item-emoji { font-size: 1.8rem; background: var(--dark3); width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name { font-size: 0.83rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-qty { font-size: 0.73rem; color: var(--muted); }
.summary-item-price { font-weight: 800; font-size: 0.88rem; white-space: nowrap; }
.summary-divider { height: 1px; background: rgba(255,107,0,0.1); margin: 1rem 0; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); padding: 3px 0; }
.summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; font-weight: 800; margin-top: 0.4rem; }
.summary-total span:last-child { font-family: 'Creepster', cursive; font-size: 1.6rem; color: var(--orange); }
.trust-badges { display: flex; flex-direction: column; gap: 7px; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.trust-item { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* Success */
.success-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.success-overlay.hidden { display: none; }
.success-box { background: var(--dark2); border: 1px solid rgba(255,107,0,0.3); border-radius: 20px; padding: 3rem 2.5rem; text-align: center; max-width: 460px; width: 100%; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-anim { font-size: 5rem; margin-bottom: 1rem; display: block; animation: bounce 1s ease infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.success-box h2 { font-family: 'Creepster', cursive; font-size: 2.5rem; color: var(--orange); margin-bottom: 0.75rem; }
.success-box p { color: var(--muted); }
.order-num { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.3); color: var(--orange); padding: 8px 20px; border-radius: 8px; font-weight: 800; font-size: 1.1rem; display: inline-block; margin: 0.75rem 0; }
.success-sub { font-size: 0.85rem; margin-top: 0.25rem; }

@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .order-summary { position: static; order: -1; } }
@media (max-width: 600px) { .payment-methods { flex-direction: column; } .step-btns { flex-direction: column; } .success-box { padding: 2rem 1.5rem; } }
