/* Checkout page styles */
.checkout-nav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.checkout-nav .nav-container {
    justify-content: space-between;
}

.back-link {
    color: var(--gold, #d4a017);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 30px;
    transition: all 0.3s;
}
.back-link:hover {
    background: rgba(212, 160, 23, 0.1);
    transform: translateX(-3px);
}

.checkout-section {
    background: linear-gradient(180deg, #0a0e27 0%, #14182f 100%);
    color: #fff;
    min-height: 100vh;
    padding: 3rem 2rem;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
}

/* Form side */
.checkout-form-side {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}
.checkout-step h2 {
    color: #fff !important;
    font-size: 1.2rem !important;
    margin: 0 !important;
    font-weight: 700;
}

.form-row {
    margin-bottom: 1rem;
}
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field label {
    display: block;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-field input,
.form-field select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.form-field input::placeholder { color: #666; }
.form-field select option { background: #1a1a2e; color: #fff; }

.payment-info {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.payment-info strong { color: #d4a017; }

.pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    border: none;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}
.pay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 160, 23, 0.5);
}
.pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.pay-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s;
}
.pay-btn:hover .pay-arrow { transform: translateX(5px); }

.security-note {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Order Summary */
.order-summary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(12px);
}
.order-summary h3 {
    color: #fff !important;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}
.summary-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem;
}
.summary-item-info { flex: 1; }
.summary-item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.summary-item-variant {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.summary-item-price {
    color: #d4a017;
    font-weight: 700;
}
.empty-cart {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* Promo */
.promo-section {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}
.promo-section input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
}
.promo-section button {
    background: transparent;
    color: #d4a017;
    border: 1px solid #d4a017;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.promo-section button:hover {
    background: rgba(212, 160, 23, 0.1);
}

.totals {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
    margin-top: 1rem;
}
.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #ccc;
    font-size: 0.95rem;
}
.free-text { color: #4ade80; font-weight: 700; }
.discount-text { color: #4ade80; font-weight: 700; }
.total-final {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
    padding-top: 1rem !important;
    font-size: 1.2rem !important;
    color: #fff !important;
}
.total-final strong { color: #d4a017 !important; }

.trust-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
}

/* Success modal */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.success-modal.show { display: flex; }
.success-content {
    background: linear-gradient(135deg, #0a0e27, #2a1f4f);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 80px rgba(74, 222, 128, 0.2);
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.5);
    animation: successPulse 2s ease infinite;
}
@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 80px rgba(74, 222, 128, 0.8); }
}
.success-content h2 {
    color: #fff !important;
    font-size: 2rem !important;
    margin-bottom: 0.8rem !important;
}
.success-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
}
.success-order {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212, 160, 23, 0.3);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.success-order span { color: #aaa; }
.success-order strong { color: #d4a017; font-family: monospace; }
.success-email { font-size: 0.9rem; }
.success-email strong { color: #fff; }
.success-btn {
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}
.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
}

/* Loading state */
.pay-btn.loading {
    pointer-events: none;
}
.pay-btn.loading .pay-amount::after {
    content: ' • Processing...';
    color: #555;
}

/* Delivery estimate */
.delivery-estimate {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.delivery-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.5));
}
.delivery-estimate strong {
    display: block;
    color: #4ade80;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}
.delivery-estimate small {
    display: block;
    color: #ccc;
    font-size: 0.85rem;
}
.delivery-estimate span {
    color: #fff;
    font-weight: 600;
}

/* Success button outline variant */
.success-btn-outline {
    background: transparent !important;
    color: #d4a017 !important;
    border: 1px solid #d4a017 !important;
}
.success-btn-outline:hover {
    background: rgba(212, 160, 23, 0.1) !important;
}

/* ===== TRACK ORDER PAGE ===== */
.track-container {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.track-search {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}
.track-search h2 {
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.8rem !important;
}
.track-search p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.track-result {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}

.track-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.track-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.track-header h3 {
    color: #fff !important;
    font-family: monospace;
    font-size: 1.4rem !important;
    margin: 0 !important;
}
.track-header p {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.track-timeline {
    margin: 2rem 0;
}
.track-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}
.track-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.4s;
}
.track-step.done .track-dot,
.track-step.active .track-dot {
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    border-color: #d4a017;
    box-shadow: 0 0 18px rgba(212, 160, 23, 0.4);
}
.track-step.active .track-dot {
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.track-step-text strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}
.track-step.done .track-step-text strong,
.track-step.active .track-step-text strong {
    color: #d4a017;
}
.track-step-text small {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.2rem;
}
.track-line {
    width: 2px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    margin-left: 19px;
    transition: background 0.4s;
}
.track-line.done {
    background: linear-gradient(180deg, #d4a017, #f0c040);
}

.track-meta {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
}
.track-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #ccc;
    font-size: 0.9rem;
}
.track-meta-row:last-child { border-bottom: 0; }
.track-meta-row strong { color: #fff; }

.track-help {
    text-align: center;
    margin-top: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}
.track-help a { color: #d4a017; text-decoration: none; }

/* ===== LOGIN MODAL ===== */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.auth-modal.show { display: flex; }
.auth-content {
    background: linear-gradient(135deg, #0a0e27, #1a0a3f);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    color: #fff;
    position: relative;
}
.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
}
.auth-content h2 {
    color: #d4a017 !important;
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Playfair Display', serif;
}
.auth-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.auth-content .form-field {
    margin-bottom: 1rem;
}
.auth-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.auth-tab.active {
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
}
.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4); }
.auth-or {
    text-align: center;
    color: #666;
    margin: 1rem 0;
    font-size: 0.85rem;
}
.account-icon {
    background: transparent;
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.account-icon:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: var(--gold);
}

/* Auth modal — Body & Soul brand header */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(212, 160, 23, 0.5));
}
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(135deg, #fff4c4, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-brand-sub {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: #aaa;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Account dropdown */
.account-dropdown {
    position: fixed;
    background: linear-gradient(180deg, #14182f, #0a0e27);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 240px;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212, 160, 23, 0.15);
    backdrop-filter: blur(20px);
    animation: dropFadeIn 0.2s ease-out;
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.acct-greet {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.4rem;
}
.acct-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #d4a017, #9D4EDD);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1rem;
}
.acct-greet strong { display: block; color: #fff; font-size: 0.9rem; }
.acct-greet small { display: block; color: #888; font-size: 0.75rem; margin-top: 0.1rem; }
.acct-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    background: transparent;
    border: none;
    color: #ddd;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    position: relative;
}
.acct-item:hover { background: rgba(212, 160, 23, 0.1); color: var(--gold); }
.acct-item span:first-child { font-size: 1.05rem; width: 22px; text-align: center; }
.acct-soon {
    margin-left: auto;
    background: rgba(157, 78, 221, 0.2);
    color: #b388ff;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.acct-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.4rem 0;
}
.acct-logout:hover { background: rgba(220,53,69,0.1); color: #ff6b7a; }

/* Mobile */
@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
    }
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
}
