        :root {
            --color-primary: #FF5A00;
            --color-secondary: #FF8C38;
            --color-accent: #FFB800;
            --color-background: #F7F9F8;
            --color-card: #FFFFFF;
            --color-darker: #F0F4F3;
            --color-white: #1A1A1A;
            --color-muted: #717171;
            --border-subtle: rgba(0, 0, 0, 0.08);
            --card-bg: #FFFFFF;
            --border-color: rgba(0, 0, 0, 0.1);
            --darker-bg: #F0F4F3;
            --header-height: 70px;
            --bottom-nav-height: 68px;
            --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
            --c-new: #FF5A00;
            --c-accepted: #8B5CF6;
            --c-preparing: #F59E0B;
            --c-ready: #00B14F;
            --c-onway: #3B82F6;
            --c-delivered: #14B8A6;
            --c-reject: #EF4444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            height: 100%;
            width: 100%;
            overscroll-behavior: none;
        }

        body {
            font-family: 'Noto Sans Arabic', system-ui, sans-serif;
            background-color: var(--color-background);
            color: var(--color-white);
            transition: background-color 0.3s, color 0.3s;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }

        ::-webkit-scrollbar-track {
            background: var(--color-background);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: #FF8C38;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #FF5A00;
        }

        #mainHeader {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 12px;
            border-bottom: 1px solid var(--border-subtle);
            background: var(--color-background);
            z-index: 110;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        }

        .brand-logo {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            object-fit: contain;
            flex-shrink: 0;
            background: transparent;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .notification-btn {
            position: relative;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--color-muted);
            font-size: 1.5rem;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
            flex-shrink: 0;
            text-decoration: none;
        }

        .notification-btn:hover {
            color: #FF5A00;
        }

        .notification-btn .notification-dot {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #FF5A00;
            border: 2px solid var(--color-background);
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 14px;
            border-radius: 40px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
            border: 1px solid transparent;
            flex-shrink: 0;
            text-decoration: none;
        }

        .status-pill.open {
            background: rgba(0, 177, 79, 0.1);
            color: #00B14F;
            border-color: rgba(0, 177, 79, 0.3);
        }

        .status-pill.closed {
            background: rgba(239, 68, 68, 0.1);
            color: #EF4444;
            border-color: rgba(239, 68, 68, 0.3);
        }

        .status-pill .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        main {
            padding-top: var(--header-height);
            padding-bottom: 0;
        }

        @media (max-width: 1024px) {
            main {
                padding-bottom: calc(var(--bottom-nav-height) + 20px);
            }
        }

        .bottom-mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            background: var(--card-bg);
            border-top: 1px solid var(--border-color);
            z-index: 100;
            padding: 6px 8px;
            padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
            box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
            align-items: center;
            justify-content: space-around;
            gap: 4px;
        }

        @media (max-width: 1024px) {
            .bottom-mobile-nav {
                display: flex;
            }
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            flex: 1;
            padding: 8px 4px;
            border-radius: 12px;
            cursor: pointer;
            text-decoration: none;
            color: var(--color-muted);
            font-size: 0.68rem;
            font-weight: 600;
            transition: all 0.25s ease;
            position: relative;
            min-width: 0;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .bottom-nav-item i {
            font-size: 1.35rem;
            transition: all 0.25s ease;
            flex-shrink: 0;
        }

        .bottom-nav-item span {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            max-width: 100%;
            font-size: 0.65rem;
            letter-spacing: 0.2px;
        }

        .bottom-nav-item.active {
            color: var(--color-primary);
        }

        .bottom-nav-item.active i {
            font-size: 1.5rem;
        }

        .bottom-nav-item-center {
            position: relative;
            top: -20px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--color-primary);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(255, 90, 0, 0.4);
            transition: all 0.3s ease;
            flex-shrink: 0;
            flex: none;
            margin: 0 4px;
        }

        .bottom-nav-item-center i {
            font-size: 2rem;
        }

        .bottom-nav-item-center span {
            display: none;
        }

        .bottom-nav-item-center.active {
            background: #e04e00;
            color: #fff;
        }

        .nav-badge {
            position: absolute;
            top: 4px;
            left: 50%;
            transform: translateX(-50%);
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            border-radius: 9px;
            background: #EF4444;
            color: #fff;
            font-size: 0.62rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bottom-nav-item-center .nav-badge {
            top: -4px;
            left: 2px;
            transform: none;
            background: #1A1A1A;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--color-white);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title i {
            color: #FF5A00;
        }

        .preparing-timer-panel {
            background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
            border: 1.5px solid rgba(245, 158, 11, 0.4);
            border-radius: 20px;
            padding: 16px 18px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
            position: relative;
            overflow: hidden;
            animation: ptp-slide 0.35s ease;
        }

        @keyframes ptp-slide {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .preparing-timer-panel::before {
            content: "";
            position: absolute;
            top: -40px;
            left: -40px;
            width: 140px;
            height: 140px;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .ptp-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }

        .ptp-header h4 {
            font-size: 0.95rem;
            font-weight: 800;
            color: #B45309;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ptp-header h4 i {
            font-size: 1.35rem;
            color: #F59E0B;
            animation: fire-pulse 1.6s ease-in-out infinite;
        }

        @keyframes fire-pulse {

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

            50% {
                transform: scale(1.15);
                opacity: 0.85;
            }
        }

        .ptp-count {
            background: linear-gradient(135deg, #F59E0B, #FBBF24);
            color: #fff;
            padding: 3px 14px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 800;
            box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
            min-width: 30px;
            text-align: center;
        }

        .ptp-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 10px;
            position: relative;
            z-index: 1;
        }

        .ptp-card {
            background: #fff;
            border-radius: 16px;
            padding: 12px 14px;
            border: 1px solid rgba(245, 158, 11, 0.18);
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .ptp-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
            border-color: rgba(245, 158, 11, 0.4);
        }

        .ptp-card.timer-urgent-card {
            border-color: rgba(234, 88, 12, 0.4);
            background: linear-gradient(135deg, #fff, #FFF7ED);
        }

        .ptp-card.timer-danger-card {
            border-color: rgba(220, 38, 38, 0.45);
            background: linear-gradient(135deg, #fff, #FEF2F2);
            animation: pulse-card 1.5s ease-in-out infinite;
        }

        @keyframes pulse-card {

            0%,
            100% {
                box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
            }

            50% {
                box-shadow: 0 4px 18px rgba(220, 38, 38, 0.22);
            }
        }

        .ptp-timer-circle {
            position: relative;
            width: 74px;
            height: 74px;
            flex-shrink: 0;
        }

        .ptp-timer-circle svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
            display: block;
        }

        .ptp-circle-bg {
            fill: none;
            stroke: rgba(245, 158, 11, 0.15);
            stroke-width: 8;
        }

        .ptp-circle-fill {
            fill: none;
            stroke: #F59E0B;
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 1s linear, stroke 0.3s;
        }

        .ptp-circle-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.82rem;
            font-weight: 800;
            color: #F59E0B;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.3px;
            transition: color 0.3s;
        }

        .ptp-card.timer-urgent-card .ptp-circle-fill {
            stroke: #EA580C;
        }

        .ptp-card.timer-urgent-card .ptp-circle-text {
            color: #EA580C;
        }

        .ptp-card.timer-danger-card .ptp-circle-fill {
            stroke: #DC2626;
        }

        .ptp-card.timer-danger-card .ptp-circle-text {
            color: #DC2626;
            animation: pulse-timer 1s ease-in-out infinite;
        }

        @keyframes pulse-timer {

            0%,
            100% {
                transform: translate(-50%, -50%) scale(1);
            }

            50% {
                transform: translate(-50%, -50%) scale(1.1);
            }
        }

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

        .ptp-order-id {
            font-size: 0.68rem;
            color: var(--color-muted);
            font-weight: 700;
            display: block;
            letter-spacing: 0.3px;
        }

        .ptp-customer {
            font-size: 0.92rem;
            font-weight: 800;
            color: var(--color-white);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            margin-top: 2px;
        }

        .ptp-elapsed {
            font-size: 0.68rem;
            color: var(--color-muted);
            font-weight: 600;
            display: block;
            margin-top: 3px;
        }

        .order-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 16px;
            box-shadow: var(--shadow-card);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .order-card::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
        }

        .order-card.s-new::before {
            background: var(--c-new);
        }

        .order-card.s-accepted::before {
            background: var(--c-accepted);
        }

        .order-card.s-preparing::before {
            background: var(--c-preparing);
        }

        .order-card.s-ready::before {
            background: var(--c-ready);
        }

        .order-card.s-onway::before {
            background: var(--c-onway);
        }

        .order-card.s-delivered::before {
            background: var(--c-delivered);
        }

        .order-card.s-cancelled::before {
            background: var(--c-reject);
        }

        .order-card:hover {
            box-shadow: 0 10px 28px rgba(255, 90, 0, 0.12);
            border-color: rgba(255, 90, 0, 0.35);
            transform: translateY(-2px);
        }

        .order-card:active {
            transform: scale(0.99);
        }

        .order-card.urgent {
            border-color: rgba(239, 68, 68, 0.4);
            box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
        }

        .order-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .badge-new {
            background: rgba(255, 90, 0, 0.12);
            color: var(--c-new);
        }

        .badge-accepted {
            background: rgba(139, 92, 246, 0.12);
            color: var(--c-accepted);
        }

        .badge-preparing {
            background: rgba(245, 158, 11, 0.15);
            color: var(--c-preparing);
        }

        .badge-ready {
            background: rgba(0, 177, 79, 0.12);
            color: var(--c-ready);
        }

        .badge-onway {
            background: rgba(59, 130, 246, 0.12);
            color: var(--c-onway);
        }

        .badge-delivered {
            background: rgba(20, 184, 166, 0.12);
            color: var(--c-delivered);
        }

        .badge-cancelled {
            background: rgba(239, 68, 68, 0.12);
            color: var(--c-reject);
        }

        .card-countdown-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 20px;
            background: rgba(245, 158, 11, 0.12);
            color: #F59E0B;
            font-size: 0.72rem;
            font-weight: 800;
            flex-shrink: 0;
        }

        .card-countdown-badge i {
            font-size: 0.85rem;
        }

        .countdown-timer {
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.5px;
            font-size: 0.78rem;
        }

        .countdown-timer.countdown-urgent {
            color: #EA580C;
        }

        .countdown-timer.countdown-danger {
            color: #DC2626;
        }

        .card-progress-bar {
            height: 4px;
            background: rgba(245, 158, 11, 0.15);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 2px;
        }

        .card-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #FBBF24, #F59E0B);
            border-radius: 2px;
            transition: width 1s linear, background 0.3s;
        }

        .card-progress-fill.urgent {
            background: linear-gradient(90deg, #F59E0B, #EA580C);
        }

        .card-progress-fill.danger {
            background: linear-gradient(90deg, #F87171, #DC2626);
        }

        .name-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            min-width: 0;
        }

        .name-row .customer-name {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--color-white);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            flex-shrink: 1;
        }

        .name-row .type-chip {
            font-size: 0.62rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(59, 130, 246, 0.12);
            color: #3B82F6;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .name-row .name-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-right: auto;
            flex-shrink: 0;
        }

        .icon-btn {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: none;
            font-size: 1rem;
            transition: all 0.2s ease;
            flex-shrink: 0;
            background: transparent;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            text-decoration: none;
        }

        .icon-btn-call {
            background: rgba(59, 130, 246, 0.12);
            color: var(--c-onway);
        }

        .icon-btn-call:hover {
            background: var(--c-onway);
            color: #fff;
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--color-muted);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 10px 16px;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.82rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-decoration: none;
        }

        .btn-outline:hover {
            background: var(--darker-bg);
            color: var(--color-white);
        }

        .empty-state {
            background: var(--card-bg);
            border: 2px dashed var(--border-color);
            border-radius: 20px;
            padding: 34px 20px;
            text-align: center;
            color: var(--color-muted);
        }

        .empty-state i {
            font-size: 3rem;
            color: #FF8C38;
            opacity: 0.5;
            display: block;
            margin-bottom: 12px;
        }

        .filter-tab {
            padding: 9px 16px;
            border-radius: 12px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--color-muted);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .filter-tab .dot-color {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .filter-tab[data-filter="new"] .dot-color {
            background: var(--c-new);
        }

        .filter-tab[data-filter="accepted"] .dot-color {
            background: var(--c-accepted);
        }

        .filter-tab[data-filter="preparing"] .dot-color {
            background: var(--c-preparing);
        }

        .filter-tab[data-filter="ready"] .dot-color {
            background: var(--c-ready);
        }

        .filter-tab[data-filter="onway"] .dot-color {
            background: var(--c-onway);
        }

        .filter-tab[data-filter="delivered"] .dot-color {
            background: var(--c-delivered);
        }

        .filter-tab[data-filter="cancelled"] .dot-color {
            background: var(--c-reject);
        }

        .filter-tab:hover {
            border-color: rgba(255, 90, 0, 0.4);
        }

        .filter-tab.active {
            background: #FF5A00;
            color: #fff;
            border-color: #FF5A00;
            box-shadow: 0 4px 12px rgba(255, 90, 0, 0.28);
        }

        .filter-tab.active .dot-color {
            background: #fff;
        }

        .filter-tab .count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.06);
            font-size: 0.68rem;
        }

        .filter-tab.active .count {
            background: rgba(255, 255, 255, 0.22);
            color: #fff;
        }

        .scroll-x {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 6px;
        }

        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }

        .search-box {
            position: relative;
            flex: 1;
            min-width: 200px;
            max-width: 340px;
        }

        .search-box input {
            width: 100%;
            padding: 10px 40px 10px 14px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: var(--card-bg);
            font-family: inherit;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--color-white);
            outline: none;
            transition: all 0.2s ease;
        }

        .search-box input:focus {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.1);
        }

        .search-box i {
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            color: var(--color-muted);
            font-size: 1.1rem;
            pointer-events: none;
        }

        .restaurant-banner {
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #FF5A00 0%, #FF8C38 100%);
            color: #fff;
            box-shadow: 0 10px 28px rgba(255, 90, 0, 0.28);
            position: relative;
            overflow: hidden;
        }

        .restaurant-banner::before {
            content: "";
            position: absolute;
            top: -50px;
            left: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
        }

        .restaurant-banner::after {
            content: "";
            position: absolute;
            bottom: -80px;
            right: -30px;
            width: 180px;
            height: 180px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 50%;
        }

        .restaurant-banner .rb-inner {
            position: relative;
            z-index: 2;
        }

        .rb-logo {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid rgba(255, 255, 255, 0.4);
            background: #fff;
            flex-shrink: 0;
        }

        .rb-name {
            font-size: 1.15rem;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .rb-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
        }

        .rb-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .rb-quick-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }

        .rb-action {
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #fff;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.75rem;
            padding: 8px 14px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            backdrop-filter: blur(10px);
            text-decoration: none;
        }

        .rb-action:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .rb-action i {
            font-size: 1rem;
        }

        .order-details-page {
            position: fixed;
            inset: 0;
            background: var(--color-background);
            z-index: 300;
            display: flex;
            flex-direction: column;
            transform: translateX(-100%);
            visibility: hidden;
            transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
            will-change: transform;
        }

        .order-details-page.active {
            transform: translateX(0);
            visibility: visible;
        }

        .od-header {
            height: var(--header-height);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 14px;
            background: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        }

        .od-back {
            width: 42px;
            height: 42px;
            border-radius: 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 90, 0, 0.1);
            color: var(--color-primary);
            border: none;
            cursor: pointer;
            font-size: 1.4rem;
            flex-shrink: 0;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .od-back:hover {
            background: var(--color-primary);
            color: #fff;
        }

        .od-title {
            font-size: 1rem;
            font-weight: 800;
            color: var(--color-white);
            line-height: 1.2;
        }

        .od-sub {
            font-size: 0.68rem;
            color: var(--color-muted);
            font-weight: 600;
            margin-top: 2px;
        }

        .od-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            -webkit-overflow-scrolling: touch;
        }

        .od-wrap {
            max-width: 860px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding-bottom: 34px;
        }

        .od-hero {
            border-radius: 20px;
            padding: 18px;
            color: #fff;
            background: linear-gradient(135deg, #FF5A00 0%, #FF8C38 100%);
            box-shadow: 0 10px 26px rgba(255, 90, 0, 0.25);
            position: relative;
            overflow: hidden;
        }

        .od-hero::before {
            content: "";
            position: absolute;
            top: -60px;
            left: -50px;
            width: 180px;
            height: 180px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .od-hero-inner {
            position: relative;
            z-index: 2;
        }

        .od-hero-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .od-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #fff;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 800;
        }

        .od-hero-id {
            font-size: 0.78rem;
            font-weight: 800;
            background: rgba(0, 0, 0, 0.15);
            padding: 5px 12px;
            border-radius: 30px;
        }

        .od-hero-total {
            font-size: 1.7rem;
            font-weight: 800;
            line-height: 1.1;
        }

        .od-hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 8px;
            font-size: 0.74rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
        }

        .od-hero-meta span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .od-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 16px;
            box-shadow: var(--shadow-card);
        }

        .od-card-title {
            font-size: 0.85rem;
            font-weight: 800;
            color: var(--color-white);
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .od-card-title i {
            color: var(--color-primary);
            font-size: 1.2rem;
        }

        .od-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 9px 0;
            border-bottom: 1px dashed var(--border-color);
            font-size: 0.83rem;
        }

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

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

        .od-row .k {
            color: var(--color-muted);
            font-weight: 700;
            flex-shrink: 0;
        }

        .od-row .v {
            font-weight: 800;
            color: var(--color-white);
            text-align: left;
            word-break: break-word;
        }

        .od-address-box {
            background: #F8FAFC;
            border: 1px solid rgba(59, 130, 246, 0.15);
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 10px;
        }

        .od-address-box.manual {
            background: #FFFBEB;
            border-color: rgba(245, 158, 11, 0.25);
        }

        .od-address-box.missing {
            background: #FEF2F2;
            border-color: rgba(239, 68, 68, 0.2);
        }

        .od-address-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.72rem;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .od-address-box .od-address-label {
            color: #3B82F6;
        }

        .od-address-box.manual .od-address-label {
            color: #B45309;
        }

        .od-address-box.missing .od-address-label {
            color: #B91C1C;
        }

        .od-address-text {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--color-white);
            line-height: 1.6;
            word-break: break-word;
        }

        .od-address-box.missing .od-address-text {
            color: #B91C1C;
            font-weight: 600;
        }

        .od-maps-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            margin-top: 12px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #4285F4, #34A853);
            color: #fff;
            font-weight: 800;
            font-size: 0.85rem;
            border-radius: 12px;
            text-decoration: none;
            box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
        }

        .od-maps-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(66, 133, 244, 0.4);
        }

        .od-maps-btn i {
            font-size: 1.25rem;
        }

        .od-maps-btn.disabled {
            background: #CBD5E1;
            color: #94A3B8;
            box-shadow: none;
            cursor: not-allowed;
            pointer-events: none;
        }

        .od-maps-coords {
            font-size: 0.68rem;
            color: var(--color-muted);
            font-weight: 600;
            margin-top: 8px;
            text-align: center;
            direction: ltr;
            font-family: 'Courier New', monospace;
            letter-spacing: 0.3px;
        }

        .od-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 0;
            border-bottom: 1px solid var(--border-color);
        }

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

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

        .od-item img {
            width: 60px;
            height: 60px;
            border-radius: 13px;
            object-fit: cover;
            flex-shrink: 0;
            background: var(--darker-bg);
        }

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

        .od-item-name {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--color-white);
            line-height: 1.4;
        }

        .od-item-qty-line {
            font-size: 0.78rem;
            color: var(--color-muted);
            font-weight: 700;
            margin-top: 6px;
            line-height: 1.6;
        }

        .od-item-qty-line strong {
            color: var(--color-white);
            font-weight: 800;
            font-size: 0.82rem;
        }

        .od-item-note {
            font-size: 0.72rem;
            color: #B37F00;
            font-weight: 700;
            margin-top: 6px;
        }

        .od-item-total {
            font-size: 0.92rem;
            font-weight: 800;
            color: var(--color-primary);
            background: rgba(255, 90, 0, 0.1);
            padding: 8px 12px;
            border-radius: 10px;
            flex-shrink: 0;
            white-space: nowrap;
            min-width: 80px;
            text-align: center;
        }

        .od-items-count-summary {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 90, 0, 0.08);
            color: #B23A00;
            padding: 6px 12px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 800;
            margin-bottom: 12px;
        }

        .od-total-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #FFF3E8;
            border-radius: 14px;
            padding: 14px 16px;
            margin-top: 12px;
        }

        .od-total-box .lbl {
            font-size: 0.85rem;
            font-weight: 800;
            color: var(--color-white);
        }

        .od-total-box .val {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--color-primary);
        }

        .od-note-box {
            background: rgba(255, 184, 0, 0.12);
            border: 1px solid rgba(255, 184, 0, 0.25);
            border-radius: 14px;
            padding: 12px 14px;
            font-size: 0.78rem;
            font-weight: 700;
            color: #B37F00;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .od-note-box i {
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .od-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .od-actions .btn-outline {
            flex: 1;
            min-width: 140px;
            padding: 12px 16px;
        }

        .od-driver-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
            border: 1px solid rgba(59, 130, 246, 0.15);
            margin-bottom: 12px;
        }

        .od-driver-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3B82F6, #60A5FA);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 800;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

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

        .od-driver-name {
            font-size: 0.9rem;
            font-weight: 800;
            color: var(--color-white);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .od-driver-role {
            font-size: 0.7rem;
            color: var(--c-onway);
            font-weight: 700;
            margin-top: 3px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .od-driver-phone {
            font-size: 0.72rem;
            color: var(--color-muted);
            font-weight: 700;
            margin-top: 3px;
            direction: ltr;
            text-align: right;
        }

        .btn-primary {
            border: none;
            border-radius: 12px;
            padding: 10px 16px;
            font-family: inherit;
            font-weight: 700;
            font-size: 0.82rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #fff;
            text-decoration: none;
            background: var(--c-new);
            box-shadow: 0 2px 8px rgba(255, 90, 0, 0.3);
        }

        .btn-primary:hover {
            background: #e04e00;
            box-shadow: 0 4px 12px rgba(255, 90, 0, 0.4);
        }

        .toast-container {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
            width: calc(100% - 32px);
            max-width: 420px;
        }

        .toast {
            background: var(--card-bg);
            border-radius: 14px;
            padding: 12px 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--color-white);
            animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-right: 4px solid var(--color-primary);
            pointer-events: auto;
            line-height: 1.5;
        }

        .toast i {
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .toast span {
            flex: 1;
            word-break: break-word;
        }

        .toast.success {
            border-right-color: #00B14F;
        }

        .toast.success i {
            color: #00B14F;
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.96);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .toast.hiding {
            animation: toast-out 0.3s ease forwards;
        }

        @keyframes toast-out {
            to {
                opacity: 0;
                transform: translateY(-20px) scale(0.96);
            }
        }

        @media (max-width: 640px) {
            .section-title {
                font-size: 1rem;
            }

            .brand-logo {
                width: 42px;
                height: 42px;
            }

            .rb-logo {
                width: 52px;
                height: 52px;
            }

            .rb-name {
                font-size: 1rem;
            }

            .rb-action {
                font-size: 0.7rem;
                padding: 7px 11px;
            }

            .name-row .customer-name {
                font-size: 0.88rem;
            }

            .icon-btn {
                width: 30px;
                height: 30px;
                font-size: 0.95rem;
            }

            .search-box {
                min-width: 100%;
                max-width: 100%;
            }

            .od-body {
                padding: 12px;
            }

            .od-hero-total {
                font-size: 1.45rem;
            }

            .od-item img {
                width: 52px;
                height: 52px;
            }

            .od-item-name {
                font-size: 0.85rem;
            }

            .od-item-qty-line {
                font-size: 0.74rem;
            }

            .od-item-qty-line strong {
                font-size: 0.78rem;
            }

            .od-item-total {
                font-size: 0.85rem;
                min-width: 70px;
            }

            .order-card {
                padding: 14px;
            }

            .ptp-list {
                grid-template-columns: 1fr;
            }

            .ptp-timer-circle {
                width: 64px;
                height: 64px;
            }

            .ptp-circle-text {
                font-size: 0.72rem;
            }

            .ptp-header h4 {
                font-size: 0.85rem;
            }
        }