* {
            font-family: 'Inter', sans-serif;
            box-sizing: border-box;
        }

        body {
            background: #f8fafc;
        }

        /* ── Hero Banner ── */
        .track-hero {
            background: #fff;
            border-bottom: 1px solid #e2e8f0;
            padding: 48px 0 0;
            position: relative;
            overflow: hidden;
        }

        .track-hero::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, rgba(var(--primary-color-rgb), .06) 0%, transparent 70%);
            pointer-events: none;
        }

        .track-hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: -60px;
            width: 280px;
            height: 200px;
            background: radial-gradient(circle, rgba(var(--primary-color-rgb), .04) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(var(--primary-color-rgb), .1);
            border: 1px solid rgba(var(--primary-color-rgb), .25);
            color: var(--primary-color);
            padding: 5px 14px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: .06em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .hero-badge span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary-color);
            display: inline-block;
            animation: pulse-dot 1.8s ease-in-out infinite;
        }

        @keyframes pulse-dot {

            0%,
            100% {
                opacity: 1;
                transform: scale(1)
            }

            50% {
                opacity: .5;
                transform: scale(.7)
            }
        }

        .hero-title {
            font-size: 28px;
            font-weight: 800;
            color: #1e293b;
            margin: 0 0 6px;
            letter-spacing: -.02em;
        }

        .hero-subtitle {
            color: #64748b;
            font-size: 15px;
            margin: 0;
        }

        .hero-order-no {
            background: rgba(var(--primary-color-rgb), .06);
            border: 1px solid rgba(var(--primary-color-rgb), .15);
            border-radius: 12px;
            padding: 10px 20px;
            color: #64748b;
            font-size: 13px;
        }

        .hero-order-no strong {
            color: var(--primary-color);
            font-size: 16px;
            display: block;
        }

        /* Track Search */
        .track-search-wrap {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .track-search-input {
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            color: #1e293b;
            padding: 10px 16px;
            font-size: 14px;
            outline: none;
            transition: border-color .2s, box-shadow .2s;
            max-width: 240px;
        }

        .track-search-input::placeholder {
            color: #94a3b8;
        }

        .track-search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), .12);
        }

        .track-search-btn {
            background: var(--primary-color);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity .2s;
            white-space: nowrap;
        }

        .track-search-btn:hover {
            opacity: .85;
        }

        /* Hero wave divider */
        .hero-wave {
            display: block;
            margin-top: 40px;
            line-height: 0;
        }

        .hero-wave svg {
            display: block;
            width: 100%;
        }

        /* ── Main Layout ── */
        .track-body {
            background: #f8fafc;
            padding: 40px 0 80px;
        }

        /* ── Cards ── */
        .t-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
            margin-bottom: 20px;
            overflow: hidden;
            transition: box-shadow .2s;
        }

        .t-card:hover {
            box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
        }

        .t-card-header {
            padding: 18px 24px;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .t-card-title {
            font-size: 15px;
            font-weight: 700;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }

        .t-card-title-icon {
            width: 30px;
            height: 30px;
            background: rgba(var(--primary-color-rgb), .1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 14px;
        }

        .t-card-body {
            padding: 24px;
        }

        /* ── Status Badge ── */
        .status-pill {
            padding: 5px 14px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        /* ── Stepper ── */
        .stepper-track {
            display: flex;
            justify-content: space-between;
            position: relative;
            padding: 10px 0 30px;
        }

        .stepper-track::before {
            content: '';
            position: absolute;
            top: 25px;
            left: 5%;
            right: 5%;
            height: 3px;
            background: #e2e8f0;
            z-index: 0;
            border-radius: 99px;
        }

        .stepper-progress {
            position: absolute;
            top: 25px;
            left: 5%;
            height: 3px;
            background: var(--primary-color);
            z-index: 1;
            border-radius: 99px;
            transition: width .8s cubic-bezier(.4, 0, .2, 1);
        }

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

        .step-circle {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            margin-bottom: 10px;
            position: relative;
            transition: all .3s ease;
        }

        .step-circle.done {
            background: var(--primary-color);
            color: #fff;
            box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), .2);
        }

        .step-circle.active {
            background: #fff;
            border: 3px solid var(--primary-color);
            color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), .15);
            animation: pulse-ring 2s ease-in-out infinite;
        }

        .step-circle.pending {
            background: #f1f5f9;
            border: 2px solid #e2e8f0;
            color: #94a3b8;
        }

        @keyframes pulse-ring {

            0%,
            100% {
                box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), .15);
            }

            50% {
                box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb), .06);
            }
        }

        .step-label {
            font-size: 12px;
            font-weight: 700;
            color: #1e293b;
            text-align: center;
            line-height: 1.3;
        }

        .step-label.pending {
            color: #94a3b8;
        }

        .step-date-label {
            font-size: 10px;
            color: #94a3b8;
            margin-top: 3px;
            text-align: center;
        }

        /* ── Courier Alert ── */
        .courier-alert {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(var(--primary-color-rgb), .05);
            border: 1px solid rgba(var(--primary-color-rgb), .2);
            border-radius: 12px;
            padding: 14px 18px;
            margin-top: 20px;
        }

        .courier-alert-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .courier-icon {
            width: 42px;
            height: 42px;
            background: #fff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
            font-size: 20px;
        }

        .courier-alert h6 {
            margin: 0;
            font-weight: 700;
            color: var(--primary-color);
            font-size: 14px;
        }

        .courier-alert small {
            color: var(--primary-color);
            opacity: .8;
            font-size: 12px;
        }

        .courier-btn {
            background: var(--primary-color);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: opacity .2s;
        }

        .courier-btn:hover {
            opacity: .85;
            color: #fff;
            text-decoration: none;
        }

        /* ── Product Items ── */
        .item-row {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 0;
            border-bottom: 1px solid #f8fafc;
        }

        .item-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .item-row:first-child {
            padding-top: 0;
        }

        .item-img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
            border: 1px solid #f1f5f9;
        }

        .item-info {
            flex: 1;
            min-width: 0;
        }

        .item-name {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            display: block;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .item-attrs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .item-attr-chip {
            background: rgba(var(--primary-color-rgb), .08);
            color: var(--primary-color);
            font-size: 11px;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 6px;
        }

        .item-price-block {
            text-align: right;
            flex-shrink: 0;
        }

        .item-total {
            font-size: 15px;
            font-weight: 700;
            color: #1e293b;
        }

        .item-unit {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 2px;
        }

        /* ── Summary ── */
        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            font-size: 14px;
            color: #475569;
            border-bottom: 1px dashed #f1f5f9;
        }

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

        .summary-row.grand {
            border-top: 2px solid #e2e8f0;
            border-bottom: none;
            padding-top: 14px;
            margin-top: 4px;
            font-weight: 800;
            font-size: 17px;
            color: #1e293b;
        }

        .summary-row.paid-row {
            color: #059669;
            font-weight: 600;
        }

        .summary-row.due-row {
            color: #dc2626;
            font-weight: 700;
        }

        /* ── Shipping Info ── */
        .info-block {
            margin-bottom: 18px;
        }

        .info-block:last-child {
            margin-bottom: 0;
        }

        .info-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: .08em;
            font-weight: 700;
            color: #94a3b8;
            margin-bottom: 4px;
        }

        .info-value {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.5;
        }

        /* ── Pay Now button ── */
        .pay-btn {
            display: block;
            width: 100%;
            background: var(--primary-color);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 13px;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            margin-top: 16px;
            transition: opacity .2s, transform .15s;
        }

        .pay-btn:hover {
            opacity: .9;
            transform: translateY(-1px);
        }

        /* ── Order Success Modal ── */
        .order-success-modal .modal-content {
            border: 0;
            border-radius: 20px;
            overflow: hidden;
            background: #fff;
        }

        .order-success-modal .modal-dialog {
            max-width: 460px;
            margin: 1.75rem auto;
        }

        .order-success-modal .modal-body {
            padding: 36px 32px 32px;
            text-align: center;
        }

        .modal-close-btn {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 50%;
            background: #f1f5f9;
            color: #334155;
            font-size: 20px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background .2s;
            z-index: 9999;
        }

        .modal-close-btn:hover {
            background: #e2e8f0;
        }

        .modal-success-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 14px;
            border-radius: 999px;
            background: rgba(var(--primary-color-rgb), .1);
            color: var(--primary-color);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            margin-bottom: 18px;
        }

        .modal-success-icon {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            background: var(--primary-color);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            margin: 0 auto 20px;
            box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), .25);
        }

        .modal-success-title {
            font-size: 22px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 8px;
        }

        .modal-success-sub {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 24px;
        }

        .modal-summary-box {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            padding: 16px 20px;
            text-align: left;
        }

        .modal-summary-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 14px;
            color: #475569;
            border-bottom: 1px dashed #e2e8f0;
        }

        .modal-summary-row:last-child {
            border-bottom: none;
        }

        .modal-summary-row strong {
            color: #1e293b;
            font-weight: 700;
        }

        /* ── No Order State ── */
        .empty-state {
            background: #fff;
            border-radius: 20px;
            padding: 60px 40px;
            text-align: center;
            box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
        }

        .empty-state-icon {
            width: 80px;
            height: 80px;
            background: rgba(var(--primary-color-rgb), .08);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            margin: 0 auto 20px;
        }

        .empty-state h4 {
            font-size: 20px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 8px;
        }

        .empty-state p {
            color: #64748b;
            margin-bottom: 24px;
            font-size: 15px;
        }

        .back-btn {
            display: inline-block;
            background: var(--primary-color);
            color: #fff;
            border-radius: 10px;
            padding: 12px 28px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: opacity .2s;
        }

        .back-btn:hover {
            opacity: .85;
            color: #fff;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 22px;
            }

            .track-search-wrap {
                flex-direction: column;
                align-items: stretch;
            }

            .track-search-input {
                max-width: 100%;
            }

            .step-label {
                font-size: 10px;
            }

            .step-circle {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

        }

        .special-flow {
            opacity: .7;
        }

        .special-flow .stepper-progress {
            background: #94a3b8 !important;
        }

        .special-flow .step-circle.active {
            border-color: #94a3b8;
            color: #64748b;
            animation: none;
        }