/* ==========================================================================
   Golden Numbers Pakistan - Checkout & Order Tracking Design System
   ========================================================================== */

:root {
    --bg-dark: #080A0E;
    --bg-card: #0F131C;
    --bg-card-inner: #151A26;
    --bg-input: #0A0D14;
    
    --gold-primary: #FFB800;
    --gold-light: #FFD54F;
    --gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFB800 50%, #C58F00 100%);
    
    --green-success: #25D366;
    --green-accent: #10B981;
    --blue-accent: #0284C7;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(255, 184, 0, 0.35);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.55;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-symbol {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0A0D14;
    border: 1.5px solid rgba(255, 184, 0, 0.5);
    box-shadow: 0 0 14px rgba(255, 184, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover .logo-symbol {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.55);
}

.logo-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* Page Section Card */
.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

.checkout-card-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.checkout-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.checkout-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.checkout-card-header p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-card-body {
    padding: 2rem;
}

/* Steps Styling */
.checkout-step-block {
    margin-bottom: 2.25rem;
}

.step-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.15rem;
}

.step-num-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: #0A0D14;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1: Selected Number Display Box */
.selected-number-box {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 184, 0, 0.05);
}

.checkout-account-options {
    margin: 0.8rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.checkout-account-options a {
    color: var(--gold-light);
    font-weight: 700;
}

.choice-label-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.2rem;
}

.choice-label-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.choice-vip-number {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 3vw, 1.85rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.choice-price-tag {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.checkout-selection-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0.75rem 0 0;
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.5;
}

.checkout-selection-error[hidden] {
    display: none;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #4ADE80;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
}

/* Form Grid */
.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 1.25rem;
}

.form-full-col {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-field label span.req {
    color: #EF4444;
}

.form-field input, .form-field select, .form-field textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(255, 184, 0, 0.2);
    background: #111622;
}

.form-field select option {
    background: #0F131C;
    color: #fff;
}

.form-field input.is-invalid, .form-field select.is-invalid {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.06) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
    animation: shakeInput 0.3s ease-in-out;
}

.form-field input.is-valid, .form-field select.is-valid {
    border-color: #10B981 !important;
    background: rgba(16, 185, 129, 0.04) !important;
}

.field-error-msg {
    display: none;
    align-items: center;
    gap: 0.35rem;
    color: #F87171;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.35rem;
    line-height: 1.3;
}

.field-error-msg.show {
    display: flex;
}

.file-upload-dropzone.is-invalid {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Step 3: Payment Method Selector */
.payment-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.payment-method-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card .pay-logo-frame {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-card .pay-logo-frame img {
    max-height: 28px;
    max-width: 75px;
    object-fit: contain;
}

.payment-method-card .pay-method-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.payment-method-card:hover {
    border-color: rgba(255, 184, 0, 0.4);
    transform: translateY(-2px);
    background: #19202E;
}

.payment-method-card.active {
    border-color: var(--gold-primary);
    background: rgba(255, 184, 0, 0.08);
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.25);
}

.payment-method-card.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--gold-primary);
    font-size: 0.85rem;
}

/* Bank / Account Details Notice Box */
.bank-instructions-box {
    background: rgba(255, 184, 0, 0.06);
    border: 1px dashed rgba(255, 184, 0, 0.35);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.82rem;
    color: #E2E8F0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bank-instructions-box strong {
    color: var(--gold-light);
}

.payment-qr-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(255, 184, 0, 0.42);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.08));
    color: #ffe09a;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.payment-qr-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 184, 0, 0.72);
    background: rgba(255, 184, 0, 0.2);
}

.payment-qr-modal-open {
    overflow: hidden;
}

.payment-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 9, 17, 0.82);
    backdrop-filter: blur(7px);
}

.payment-qr-modal.is-open {
    display: flex;
}

.payment-qr-modal-card {
    position: relative;
    width: min(100%, 410px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.8rem 1.5rem 1.35rem;
    border: 1px solid rgba(223, 177, 69, 0.38);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f8f6f0);
    color: #1c2738;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    animation: paymentQrModalEnter 0.2s ease-out;
}

.payment-qr-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #586579;
    cursor: pointer;
}

.payment-qr-modal-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: 0 auto 0.7rem;
    border-radius: 13px;
    background: #fff3d4;
    color: #a56d00;
    font-size: 1.1rem;
}

.payment-qr-modal-kicker {
    color: #9c741d;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.payment-qr-modal-card h2 {
    margin: 0.35rem 0 0.4rem;
    color: #172235;
    font-size: 1.25rem;
    font-weight: 850;
}

.payment-qr-modal-copy,
.payment-qr-modal-note {
    max-width: 320px;
    margin: 0 auto 0.85rem;
    color: #647084;
    font-size: 0.76rem;
    line-height: 1.5;
}

.payment-qr-image {
    display: block;
    width: min(100%, 250px);
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto 0.8rem;
    padding: 0.3rem;
    border: 1px solid #e7e9ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 30, 48, 0.1);
}

.payment-qr-recipient {
    display: grid;
    gap: 0.16rem;
    max-width: 250px;
    margin: 0 auto 0.85rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ece5d2;
    border-radius: 11px;
    background: #fffaf0;
}

.payment-qr-recipient span,
.payment-qr-recipient small {
    color: #777f8b;
    font-size: 0.65rem;
}

.payment-qr-recipient strong {
    color: #273348;
    font-size: 0.88rem;
}

.payment-qr-modal-note {
    margin-bottom: 1rem;
    font-size: 0.7rem;
}

.payment-qr-done-btn {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d6a53c, #b37d19);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

@keyframes paymentQrModalEnter {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Upload Payment Screenshot Box */
.file-upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    background: var(--bg-input);
    padding: 1.5rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.file-upload-dropzone:hover {
    border-color: var(--gold-primary);
    background: #111520;
}

.file-upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 184, 0, 0.1);
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upload-prompt-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.upload-prompt-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.upload-preview-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 0.85rem;
}

.preview-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-file-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.preview-file-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.preview-file-size {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.preview-file-status {
    font-size: 0.72rem;
    color: var(--gold-primary);
}

.preview-remove-btn {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
}

/* Submit Button & Security Note */
.btn-submit-checkout {
    background: var(--gold-gradient);
    color: #0A0D14;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.35);
    transition: all 0.25s ease;
    margin-top: 1.75rem;
}

.btn-submit-checkout:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 184, 0, 0.45);
}

.checkout-security-footnote {
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* ==========================================================================
   Screen 2: Order Placed Successfully! (Confirmation State)
   ========================================================================== */
.order-success-screen {
    max-width: 800px;
    margin: 0 auto;
}

.order-confirmation-open {
    overflow: hidden;
}

.order-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 9, 17, 0.82);
    backdrop-filter: blur(8px);
}

.order-confirmation-modal.is-open {
    display: flex;
}

.order-confirmation-card {
    position: relative;
    width: min(100%, 470px);
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    padding: 2.25rem 2rem 1.5rem;
    border: 1px solid rgba(255, 184, 0, 0.32);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at top, rgba(255, 184, 0, 0.1), transparent 58%),
        linear-gradient(160deg, #171c25, #0b0e14 78%);
    color: var(--text-main);
    text-align: center;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65), 0 0 36px rgba(255, 184, 0, 0.1);
    animation: paymentQrModalEnter 0.22s ease-out;
}

.order-confirmation-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.order-confirmation-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.order-confirmation-badge {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 0.9rem;
    border: 1px solid rgba(255, 213, 79, 0.55);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffe082, #ffb800 62%, #c58f00);
    color: #14171c;
    font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(255, 184, 0, 0.18);
}

.order-confirmation-kicker {
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.order-confirmation-card h2 {
    margin: 0.45rem 0 0.55rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
}

.order-confirmation-message {
    max-width: 350px;
    margin: 0 auto 1.35rem;
    color: #aab4c3;
    font-size: 0.83rem;
    line-height: 1.6;
}

.order-confirmation-id {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 184, 0, 0.26);
    border-radius: 15px;
    background: rgba(5, 8, 13, 0.72);
    text-align: left;
}

.order-confirmation-id > span {
    display: block;
    margin-bottom: 0.45rem;
    color: #8994a5;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.order-confirmation-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.order-confirmation-id-row strong {
    overflow-wrap: anywhere;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: clamp(1.12rem, 5vw, 1.45rem);
    font-weight: 850;
    letter-spacing: 0.045em;
    user-select: text;
}

.order-confirmation-copy {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 213, 79, 0.35);
    border-radius: 9px;
    background: rgba(255, 184, 0, 0.08);
    color: #ffe082;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.order-confirmation-copy:hover {
    border-color: var(--gold-light);
    background: rgba(255, 184, 0, 0.16);
}

.order-confirmation-feedback {
    min-height: 1.15rem;
    margin: 0.45rem 0 0.75rem;
    color: #9de7bd;
    font-size: 0.7rem;
}

.order-confirmation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.order-confirmation-track,
.order-confirmation-details,
.order-confirmation-download {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 11px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.order-confirmation-track {
    border: 1px solid transparent;
    background: var(--gold-gradient);
    color: #11151b;
}

.order-confirmation-details {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #d7dee8;
}

.order-confirmation-download {
    grid-column: 1 / -1;
    border: 1px solid rgba(255, 213, 79, 0.28);
    background: rgba(255, 184, 0, 0.07);
    color: #ffe082;
}

.order-confirmation-track:hover,
.order-confirmation-details:hover,
.order-confirmation-download:hover {
    transform: translateY(-1px);
}

.order-confirmation-details:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.order-confirmation-download:hover {
    border-color: rgba(255, 213, 79, 0.6);
    background: rgba(255, 184, 0, 0.15);
}

.order-confirmation-note {
    margin: 0.95rem 0 0;
    color: #778395;
    font-size: 0.68rem;
    line-height: 1.5;
}

.order-confirmation-modal button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.celebrate-card {
    background: linear-gradient(135deg, #111624 0%, #080C14 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 184, 0, 0.15);
}

.success-check-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0A0D14;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.5);
    animation: successPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.celebrate-card h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 0.4rem;
}

.celebrate-card p.success-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.order-id-highlight-box {
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-md);
    padding: 1.15rem 1.75rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 280px;
}

.order-id-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.order-id-val-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.order-id-code {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: 0.04em;
}

.order-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-copy-btn:hover {
    color: var(--gold-primary);
    transform: scale(1.15);
}

.order-timestamp {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Order Summary Table Card */
.order-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.order-summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: #fff;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-table tr:last-child {
    border-bottom: none;
}

.summary-table td {
    padding: 0.85rem 0;
    font-size: 0.88rem;
}

.summary-table td.summary-lbl {
    color: var(--text-muted);
    font-weight: 500;
    width: 45%;
}

.summary-table td.summary-val {
    color: #FFFFFF;
    font-weight: 700;
    text-align: right;
}

.summary-notice-box {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.8rem;
    color: #BAE6FD;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Track Order Box on Success Page */
.quick-track-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem 2rem;
    text-align: center;
}

.track-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 1rem auto 1.5rem;
}

.track-input-group input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.btn-track-action {
    background: var(--gold-gradient);
    color: #0A0D14;
    font-weight: 800;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.delivery-truck-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gold-primary);
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.delivery-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Screen 3: Live Order Tracking Page (track-order.html)
   ========================================================================== */
.track-page-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.track-page-header h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.track-search-option {
    margin-top: 1.25rem;
    max-width: 600px;
}

.track-search-option label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.track-search-bar-row {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
}

.track-search-bar-row input {
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.25rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.track-search-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.track-search-divider::before,
.track-search-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border-color);
}

/* 4-Step Order Status Progress Bar */
.order-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2rem;
}

.track-request-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.track-request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.track-request-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--gold-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.track-request-header h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.track-request-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.track-request-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.track-request-detail.full-width {
    grid-column: 1 / -1;
}

.track-request-detail > span,
.track-request-current-status > div > span {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.track-request-detail > strong {
    color: #fff;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.track-request-current-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 184, 0, 0.28);
    border-left: 4px solid var(--gold-primary);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 184, 0, 0.07);
}

.track-request-current-status > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-request-current-status > div > strong {
    color: var(--gold-primary);
    font-size: 1rem;
}

.track-request-current-status > p {
    flex: 1 1 280px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.track-request-current-status.status-booked {
    border-color: rgba(56, 189, 248, 0.3);
    border-left-color: #38bdf8;
    background: rgba(56, 189, 248, 0.07);
}

.track-request-current-status.status-booked > div > strong {
    color: #7dd3fc;
}

.track-request-current-status.status-delivered {
    border-color: rgba(74, 222, 128, 0.3);
    border-left-color: #4ade80;
    background: rgba(74, 222, 128, 0.07);
}

.track-request-current-status.status-delivered > div > strong {
    color: #4ade80;
}

.track-request-current-status.status-rejected {
    border-color: rgba(248, 113, 113, 0.3);
    border-left-color: #f87171;
    background: rgba(248, 113, 113, 0.07);
}

.track-request-current-status.status-rejected > div > strong {
    color: #f87171;
}

.status-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.status-card-top-bar h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.status-order-id-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid var(--border-gold);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

/* Stepper Component */
.tracking-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.stepper-progress-line {
    position: absolute;
    top: 25px;
    left: 45px;
    right: 45px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.stepper-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 66%; /* Dynamic */
    transition: width 0.4s ease;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 130px;
}

.step-node-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card-inner);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 0.65rem;
    transition: all 0.3s ease;
}

.step-node.completed .step-node-icon {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: #0A0D14;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}

.step-node.active .step-node-icon {
    background: #192233;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
    animation: stepPulse 1.8s infinite alternate ease-in-out;
}

@keyframes stepPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.step-node-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.15rem;
}

.step-node-time {
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: pre-line;
}

.status-alert-ribbon {
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.35);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.15rem;
    font-size: 0.84rem;
    color: #BAE6FD;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Tracking Order Details Card */
.tracking-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tracking-details-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
}

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

.detail-row-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row-item[hidden] {
    display: none;
}

.detail-row-item.full-width {
    grid-column: 1 / -1;
}

.detail-item-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-item-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    overflow-wrap: anywhere;
}

.receipt-thumb-wrap {
    margin-top: 0.5rem;
    position: relative;
    display: inline-block;
}

.receipt-thumb-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.receipt-thumb-img:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
}

.whatsapp-support-card {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.support-txt-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.support-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.support-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Lightbox Modal for Receipt */
.receipt-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
}

.lightbox-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Track Order Footer Badges Grid */
.track-footer-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.track-badge-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #FFFFFF;
}

.track-badge-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.track-badge-whatsapp:hover {
    filter: brightness(1.1);
}

/* Responsive Rules */
@media (max-width: 991px) {
    .payment-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
    .tracking-stepper {
        flex-wrap: wrap;
        gap: 1.5rem 0;
    }
    .stepper-progress-line {
        display: none;
    }
    .step-node {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .checkout-container {
        padding: 1rem 0.75rem 3rem;
    }

    .checkout-card-header {
        padding: 1.2rem 1rem;
    }

    .checkout-card-body {
        padding: 1.2rem 1rem;
    }

    .track-page-header {
        padding: 1.25rem 1rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .track-page-header h2 {
        font-size: 1.25rem;
    }

    .track-search-bar-row {
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
    }

    .track-search-option {
        width: 100%;
        margin-top: 1rem;
    }

    .track-search-bar-row input {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0.75rem 1rem;
        font-size: 16px;
        letter-spacing: 0.02em;
    }

    .btn-track-action {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.92rem;
        padding: 0.75rem;
        box-sizing: border-box;
    }

    .order-status-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .status-card-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .status-order-id-badge {
        font-size: 0.78rem;
        padding: 0.25rem 0.65rem;
    }

    .tracking-stepper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .stepper-progress-line {
        display: none;
    }

    .step-node {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 0.85rem;
        align-items: center;
    }

    .step-node-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-node-title {
        font-size: 0.88rem;
    }

    .step-node-time {
        font-size: 0.72rem;
    }

    .status-alert-ribbon {
        padding: 0.75rem 0.85rem;
        font-size: 0.78rem;
        gap: 0.5rem;
    }

    .tracking-details-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .tracking-details-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .selected-number-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .payment-selector-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-support-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.15rem 1rem;
        text-align: center;
    }

    .support-txt-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .whatsapp-support-card .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .track-footer-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }
}

@media (max-width: 400px) {
    .track-footer-badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

html.track-page-embedded,
html.track-page-embedded body {
    min-height: 100%;
    background: #080a0e;
}

html.track-page-embedded body {
    overflow-x: hidden;
}

html.track-page-embedded .main-header,
html.track-page-embedded .bottom-trust-footer,
html.track-page-embedded .site-visitor-widget,
html.track-page-embedded .floating-whatsapp-widget {
    display: none !important;
}

html.track-page-embedded .checkout-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 16px 22px;
}

html.track-page-embedded .track-page-header {
    margin-bottom: 14px;
    padding: 1.3rem 1.4rem;
    border-color: rgba(255, 184, 0, 0.18);
}

html.track-page-embedded .track-page-header h2,
html.track-page-embedded #trackInitialState {
    display: none !important;
}

html.track-page-embedded .track-request-status-card,
html.track-page-embedded .order-status-card,
html.track-page-embedded .tracking-details-card {
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    html.track-page-embedded .checkout-container {
        padding: 10px 10px 16px;
    }

    html.track-page-embedded .track-page-header {
        padding: 1.05rem 0.9rem;
    }

    html.track-page-embedded .track-search-bar-row {
        flex-direction: row;
    }

    html.track-page-embedded .track-search-bar-row input {
        padding: 0.75rem 0.7rem;
        font-size: 0.86rem;
    }

    html.track-page-embedded .track-search-bar-row .btn-track-action {
        width: auto;
        min-width: 105px;
        padding: 0.7rem;
        font-size: 0.78rem;
    }
}

.checkout-submit-error,
#trackServiceError {
    padding: .75rem 1rem;
    border: 1px solid #a85255;
    border-radius: 8px;
    color: #ffd1d1;
    background: #341b24;
}

@media (max-width: 600px) {
    .main-header .header-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: .5rem;
    }

    .main-header .brand-logo,
    .main-header .header-actions {
        min-width: 0;
    }

    .main-header .header-actions {
        flex: 0 0 auto;
    }

    .main-header .header-actions .btn-whatsapp {
        min-height: 44px;
        padding-inline: .75rem;
    }

    .checkout-card input:not([type="radio"]):not([type="checkbox"]),
    .checkout-card select,
    .checkout-card textarea {
        font-size: 16px;
    }

    .checkout-card-header,
    .checkout-card-body,
    .track-request-details-grid > * {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .main-header .header-actions .btn-whatsapp {
        width: 44px;
        padding: 0;
    }

    .main-header .header-actions .whatsapp-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.order-id-code,
.status-order-id-badge {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.order-copy-btn {
    flex-shrink: 0;
}
