﻿          @font-face {
            font-family: 'bigNoodles';
            src: url('/assets/font/big_noodle_titling.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'bigNoodles';
            src: url('/assets/font/big_noodle_titling_oblique.ttf') format('truetype');
            font-weight: normal;
            font-style: oblique;
        }


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
        font-family: 'Plus Jakarta Sans', sans-serif;
        background: #080810;
        color: #C9D1E3;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        min-height: 100vh;
    }
    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; }

    :root {
        --r: #16A34A;
        --r2: #22C55E;
        --r-glow: rgba(22,163,74,0.22);
        --r-bg: rgba(22,163,74,0.08);
        --g: #16A34A;
        --g-glow: rgba(22,163,74,0.22);
        --gold: #F59E0B;
        --blue: #3B82F6;
        --purple: #8B5CF6;
        --bg: #080810;
        --bg2: #0D0D18;
        --bg3: #101020;
        --card: rgba(255,255,255,0.04);
        --card-border: rgba(255,255,255,0.08);
        --text: #C9D1E3;
        --muted: #606880;
        --white: #fff;
    }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

    /* ─── NAVBAR ─── */
    .nav {
        position: sticky; top: 0; z-index: 999;
        background: rgba(8,8,16,0.75);
        backdrop-filter: blur(24px) saturate(1.5);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--card-border);
        height: 66px;
        display: flex; align-items: center;
        transition: all .3s;
    }
    .nav-wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
    .logo { display: flex; align-items: center; gap: 0; }
    .logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; flex-shrink: 0;}
    .logo-text { font-size: 22px; font-weight: 300; color: #fff; letter-spacing: 1px; font-family: 'bigNoodles';}
    .logo-text span { color: var(--r2); }
    .nav-end { display: flex; align-items: center; gap: 10px; }
    .btn-login { font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 9px; border: 1px solid var(--card-border); transition: all .2s; }
    .btn-login:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
    .btn-back {
        font-size: 13.5px; font-weight: 700; color: var(--muted);
        padding: 8px 16px; border-radius: 9px;
        border: 1px solid var(--card-border);
        display: inline-flex; align-items: center; gap: 6px;
        transition: all .2s;
    }
    .btn-back:hover { color: #fff; border-color: rgba(255,255,255,0.15); }

    /* ─── PAGE WRAPPER ─── */
    .page-wrap {
        position: relative;
        min-height: calc(100vh - 66px);
        display: flex; align-items: flex-start; justify-content: center;
        padding: 60px 24px 80px;
        overflow: hidden;
    }
    .page-bg {
        position: absolute; inset: 0;
        background:
            radial-gradient(ellipse 80% 50% at 20% -10%, rgba(22,163,74,0.13) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.08) 0%, transparent 60%),
            #080810;
        pointer-events: none;
    }
    .page-grid {
        position: absolute; inset: 0; pointer-events: none;
        background-image:
            linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
        background-size: 72px 72px;
        mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0,0,0,0.6), transparent);
    }
    .orb {
        position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
        animation: orbFloat 8s ease-in-out infinite;
    }
    .orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(22,163,74,0.12), transparent 70%); top: -100px; left: -80px; }
    .orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,0.08), transparent 70%); bottom: -80px; right: -40px; animation-delay: 3s; }
    @keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-25px) scale(1.04);} }

    .content { position: relative; z-index: 1; width: 100%; max-width: 680px; }

    /* ─── HEADING ─── */
    .page-eyebrow {
        display: inline-flex; align-items: center; gap: 9px;
        background: rgba(22,163,74,0.08);
        border: 1px solid rgba(22,163,74,0.2);
        padding: 6px 14px; border-radius: 50px;
        font-size: 11.5px; font-weight: 800;
        color: var(--r2); letter-spacing: 0.8px; text-transform: uppercase;
        margin-bottom: 20px;
    }
    .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--r2); animation: blink 1.8s infinite; }
    @keyframes blink { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(22,163,74,0.5);} 50%{opacity:0.6;box-shadow:0 0 0 5px rgba(22,163,74,0);} }

    .page-h1 {
        font-size: clamp(1.9rem, 4vw, 2.8rem);
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -1.5px;
        color: #fff;
        margin-bottom: 12px;
    }
    .grad-text {
        background: linear-gradient(135deg, #fff 20%, var(--r2) 60%, #FF9090 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .page-sub {
        font-size: 1rem; color: var(--muted); line-height: 1.75;
        margin-bottom: 36px; font-weight: 500;
    }

    /* ─── SEARCH CARD ─── */
    .search-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        padding: 32px;
        margin-bottom: 32px;
        backdrop-filter: blur(12px);
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
    @media(max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
    .form-group { display: flex; flex-direction: column; gap: 8px; }
    .form-label {
        font-size: 12px; font-weight: 700; color: var(--muted);
        text-transform: uppercase; letter-spacing: 0.6px;
    }
    .form-input {
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--card-border);
        border-radius: 11px;
        padding: 13px 16px;
        font-size: 14px; font-weight: 600;
        color: #fff;
        font-family: inherit;
        transition: border-color .2s, background .2s;
        outline: none;
    }
    .form-input::placeholder { color: var(--muted); font-weight: 500; }
    .form-input:focus {
        border-color: rgba(22,163,74,0.5);
        background: rgba(22,163,74,0.04);
    }
    .btn-track {
        width: 100%;
        background: linear-gradient(135deg, var(--r), #15803D);
        color: #fff; font-size: 15px; font-weight: 800;
        padding: 15px 32px; border-radius: 13px;
        border: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center; gap: 9px;
        box-shadow: 0 8px 32px var(--r-glow), inset 0 1px 0 rgba(255,255,255,0.1);
        font-family: inherit;
        transition: all .3s;
    }
    .btn-track:hover { transform: translateY(-1px); box-shadow: 0 14px 40px var(--r-glow); }
    .btn-track:active { transform: translateY(0); }

    /* ─── VALIDATION ERRORS ─── */
    .alert-error {
        background: rgba(22,163,74,0.08);
        border: 1px solid rgba(22,163,74,0.25);
        border-radius: 12px;
        padding: 14px 18px;
        margin-bottom: 20px;
        font-size: 13.5px; font-weight: 600; color: var(--r2);
        display: flex; align-items: flex-start; gap: 10px;
    }
    .field-error { font-size: 12px; color: var(--r2); font-weight: 600; margin-top: 4px; }

    /* ─── NOT FOUND ─── */
    .not-found {
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        padding: 40px 32px;
        text-align: center;
    }
    .nf-icon { font-size: 48px; color: var(--muted); margin-bottom: 16px; }
    .nf-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
    .nf-sub { font-size: 14px; color: var(--muted); font-weight: 500; line-height: 1.7; }

    /* ─── RESULT CARD ─── */
    .result-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        overflow: hidden;
    }

    /* Result Header */
    .result-header {
        background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(139,92,246,0.06));
        border-bottom: 1px solid var(--card-border);
        padding: 24px 28px;
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    }
    .inv-num { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 5px; }
    .inv-val { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
    .badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

    /* Badges */
    .badge {
        display: inline-flex; align-items: center; gap: 5px;
        font-size: 11.5px; font-weight: 800;
        padding: 5px 12px; border-radius: 50px;
        letter-spacing: 0.2px; text-transform: capitalize;
    }
    .badge-dot { width: 6px; height: 6px; border-radius: 50%; }

    /* Status badges */
    .badge-pending    { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
    .badge-in_progress{ background: rgba(59,130,246,0.12); color: #3B82F6; border: 1px solid rgba(59,130,246,0.25); }
    .badge-completed  { background: rgba(0,208,132,0.10); color: #00D084; border: 1px solid rgba(0,208,132,0.22); }
    .badge-cancelled  { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--card-border); }
    .badge-ready      { background: rgba(139,92,246,0.12); color: #8B5CF6; border: 1px solid rgba(139,92,246,0.25); }

    /* Payment badges */
    .badge-paid       { background: rgba(0,208,132,0.10); color: #00D084; border: 1px solid rgba(0,208,132,0.22); }
    .badge-partial    { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
    .badge-unpaid     { background: rgba(22,163,74,0.10); color: var(--r2); border: 1px solid rgba(22,163,74,0.25); }

    /* Result Body */
    .result-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 24px; }

    /* Info grid */
    .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    @media(max-width: 540px) { .info-grid { grid-template-columns: 1fr 1fr; } }
    .info-cell { display: flex; flex-direction: column; gap: 5px; }
    .info-cell-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
    .info-cell-val { font-size: 14px; font-weight: 700; color: #fff; }
    .info-cell-val.muted { color: var(--muted); font-style: italic; }

    /* Shop info */
    .shop-row {
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--card-border);
        border-radius: 12px;
        padding: 16px 18px;
        display: flex; align-items: center; gap: 14px;
    }
    .shop-icon {
        width: 40px; height: 40px; border-radius: 10px;
        background: white;
        border: 1px solid rgba(22,163,74,0.2);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px; color: var(--r2); flex-shrink: 0;
    }
    .shop-name { font-size: 14px; font-weight: 800; color: #fff; }
    .shop-meta { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }

    /* Items section */
    .section-label {
        font-size: 11px; font-weight: 800; color: var(--muted);
        text-transform: uppercase; letter-spacing: 0.7px;
        margin-bottom: 12px;
        display: flex; align-items: center; gap: 8px;
    }
    .section-label::after {
        content: ''; flex: 1; height: 1px; background: var(--card-border);
    }

    .item-card {
        background: rgba(255,255,255,0.025);
        border: 1px solid var(--card-border);
        border-radius: 13px;
        padding: 18px 20px;
        margin-bottom: 10px;
    }
    .item-card:last-child { margin-bottom: 0; }
    .item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .item-name { font-size: 15px; font-weight: 800; color: #fff; }
    .item-price { font-size: 15px; font-weight: 800; color: var(--r2); white-space: nowrap; }
    .item-type-badge {
        display: inline-flex; align-items: center; gap: 5px;
        font-size: 10.5px; font-weight: 800;
        padding: 3px 10px; border-radius: 50px;
        text-transform: uppercase; letter-spacing: 0.4px;
        margin-bottom: 10px;
    }
    .itb-s { background: rgba(59,130,246,0.1); color: #3B82F6; border: 1px solid rgba(59,130,246,0.2); }
    .itb-h { background: rgba(245,158,11,0.1); color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }
    .itb-a { background: rgba(0,208,132,0.1); color: #00D084; border: 1px solid rgba(0,208,132,0.2); }

    /* Item status badge */
    .item-status-badge {
        display: inline-flex; align-items: center; gap: 5px;
        font-size: 11px; font-weight: 800;
        padding: 4px 11px; border-radius: 50px;
        margin-top: 8px; letter-spacing: 0.2px;
    }
    .isb-submit   { background: rgba(96,104,128,0.15); color: #9CA3AF; border: 1px solid rgba(96,104,128,0.25); }
    .isb-process  { background: rgba(59,130,246,0.12); color: #3B82F6; border: 1px solid rgba(59,130,246,0.25); }
    .isb-ready    { background: rgba(139,92,246,0.12); color: #8B5CF6; border: 1px solid rgba(139,92,246,0.25); }
    .isb-return   { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
    .isb-returned { background: rgba(22,163,74,0.10); color: var(--r2); border: 1px solid rgba(22,163,74,0.25); }
    .isb-success  { background: rgba(0,208,132,0.10); color: #00D084; border: 1px solid rgba(0,208,132,0.22); }

    .item-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
    @media(max-width: 480px) { .item-details { grid-template-columns: 1fr; } }
    .detail-row { display: flex; flex-direction: column; gap: 2px; }
    .detail-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
    .detail-val { font-size: 13px; font-weight: 600; color: var(--text); }

    /* Totals */
    .totals-card {
        background: rgba(255,255,255,0.025);
        border: 1px solid var(--card-border);
        border-radius: 13px;
        overflow: hidden;
    }
    .total-row {
        display: flex; align-items: center; justify-content: space-between;
        padding: 13px 20px;
        border-bottom: 1px solid var(--card-border);
        font-size: 14px;
    }
    .total-row:last-child { border-bottom: none; }
    .total-label { font-weight: 600; color: var(--muted); }
    .total-val { font-weight: 700; color: var(--text); }
    .total-row.grand { background: rgba(22,163,74,0.06); }
    .total-row.grand .total-label { font-weight: 800; color: #fff; font-size: 15px; }
    .total-row.grand .total-val { font-weight: 900; color: var(--r2); font-size: 15px; }
    .total-row.due-row .total-val.due-amount { color: var(--r2); }
    .total-row.due-row .total-val.paid-full { color: #00D084; }

    /* Notes */
    .notes-box {
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--card-border);
        border-radius: 12px;
        padding: 16px 18px;
    }
    .notes-text { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.7; }

    /* Footer */
    .page-footer {
        margin-top: 60px;
        padding: 24px;
        text-align: center;
        border-top: 1px solid var(--card-border);
        font-size: 12.5px; font-weight: 600; color: var(--muted);
    }
    .page-footer a { color: var(--r2); }
    .page-footer a:hover { color: #fff; }