       :root {
            --primary: #FF6B35;
            --primary-dark: #E55A24;
            --primary-light: #FFF2ED;
            --bg-color: #F8F9FA;
            --card-bg: #FFFFFF;
            --text-main: #1F2937;
            --text-muted: #6B7280;
            --border-color: #E5E7EB;
            --success: #10B981;
            --warning: #F59E0B;
            --danger: #EF4444;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --transition: all 0.25s ease-in-out;
        }

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

        body {
            font-family: 'Hind Siliguri', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Navbar */
        .navbar {
            background-color: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-brand {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: var(--transition);
            text-decoration: none;
        }

        .btn-primary {
            background-color: var(--primary);
            color: #FFFFFF;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-main);
        }

        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background-color: var(--primary-light);
        }

        /* Container */
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 32px 16px;
            width: 100%;
            flex: 1;
        }

        /* Page Header */
        .page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .page-title h1 {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-main);
        }

        .page-title p {
            font-size: 14px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* States Container */
        .state-box {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 48px 24px;
            text-align: center;
            box-shadow: var(--shadow-sm);
            margin-top: 20px;
        }

        .state-box svg {
            width: 54px;
            height: 54px;
            color: var(--primary);
            margin-bottom: 16px;
        }

        .state-box h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .state-box p {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 20px;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Skeleton Loader */
        .skeleton-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 20px;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .skeleton-line {
            height: 16px;
            background: #E5E7EB;
            border-radius: 4px;
        }

        /* Order Cards */
        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .order-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 20px;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        .order-card:hover {
            box-shadow: var(--shadow-md);
            border-color: #CBD5E1;
        }

        .order-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
            margin-bottom: 16px;
            gap: 12px;
        }

        .order-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .track-id {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .order-date {
            font-size: 13px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Status Badges */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-pending { background: #FEF3C7; color: #D97706; }
        .status-confirmed { background: #E0E7FF; color: #4338CA; }
        .status-processing { background: #E0F2FE; color: #0284C7; }
        .status-shipped { background: #F3E8FF; color: #7E22CE; }
        .status-delivered { background: #DCFCE7; color: #15803D; }
        .status-cancelled { background: #FEE2E2; color: #B91C1C; }
        .status-returned { background: #F3F4F6; color: #4B5563; }

        /* Product Preview inside Card */
        .order-product-preview {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .product-thumb {
            width: 50px;
            height: 50px;
            border-radius: var(--radius-sm);
            object-fit: cover;
            border: 1px solid var(--border-color);
            background: #F3F4F6;
        }

        .product-info {
            flex: 1;
        }

        .product-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-shop {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .order-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--border-color);
            padding-top: 12px;
            margin-top: 12px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .order-total-price {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
        }

        /* Timeline */
        .timeline-container {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin: 20px 0;
            padding: 0 10px;
        }

        .timeline-container::before {
            content: '';
            position: absolute;
            top: 12px;
            left: 24px;
            right: 24px;
            height: 3px;
            background: var(--border-color);
            z-index: 1;
        }

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

        .timeline-dot {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #E5E7EB;
            border: 3px solid #FFFFFF;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9CA3AF;
            font-size: 10px;
            box-shadow: var(--shadow-sm);
        }

        .timeline-step.completed .timeline-dot {
            background: var(--success);
            color: #FFFFFF;
        }

        .timeline-step.active .timeline-dot {
            background: var(--primary);
            color: #FFFFFF;
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .timeline-label {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
            font-weight: 500;
        }

        .timeline-step.active .timeline-label {
            color: var(--primary);
            font-weight: 700;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            padding: 16px;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 650px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-md);
            transform: translateY(20px);
            transition: var(--transition);
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            background: var(--card-bg);
            z-index: 10;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
        }

        .modal-close-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            padding: 4px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close-btn:hover {
            background: var(--bg-color);
            color: var(--danger);
        }

        .modal-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .modal-section {
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 16px;
            background: #FAFAFA;
        }

        .modal-section-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            font-size: 13px;
        }

        .info-item label {
            color: var(--text-muted);
            display: block;
            margin-bottom: 2px;
        }

        .info-item span {
            font-weight: 600;
            color: var(--text-main);
        }

        /* Items List inside Modal */
        .modal-items-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .modal-item-row {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #FFFFFF;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
        }

        .modal-item-img {
            width: 45px;
            height: 45px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid var(--border-color);
        }

        .modal-item-details {
            flex: 1;
            font-size: 13px;
        }

        .modal-item-name {
            font-weight: 600;
            color: var(--text-main);
        }

        .modal-item-variants {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .modal-item-price {
            font-weight: 700;
            color: var(--primary);
            font-size: 14px;
        }

        /* Price Summary Table */
        .price-summary {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 13px;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
        }

        .price-row.total {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            border-top: 1px dashed var(--border-color);
            padding-top: 8px;
            margin-top: 4px;
        }

        /* Load More Button Container */
        .load-more-container {
            text-align: center;
            margin-top: 24px;
        }

        /* Responsive Breakpoints */
        @media (max-width: 640px) {
            .info-grid {
                grid-template-columns: 1fr;
            }
            .timeline-container {
                display: none;
            }
        }
  /* --- Bottom Nav --- */
        .bottom-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            width: 100%; 
            height: 60px; 
            background: rgba(255,255,255,0.96); 
            display: flex; 
            justify-content: space-around; 
            align-items: center; 
            border-top: 1px solid var(--glass-border); 
            z-index: 1000; 
            padding-bottom: env(safe-area-inset-bottom); 
            box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
        }

        .nav-item { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            text-decoration: none; 
            color: var(--text-sub); 
            font-size: 10px; 
            font-weight: 800; 
            transition: color 0.15s ease; 
            flex: 1; 
        }

        .nav-item i { 
            font-size: 17px; 
            margin-bottom: 2px; 
        }

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