        /* Order Detail Full Page */
        .order-detail-page {
            min-height: 100vh;
            background: var(--body-bg);
            padding-bottom: calc(var(--nav-height) + 200px);
        }

        .order-detail-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: white;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .order-detail-back {
            background: none;
            border: none;
            padding: 8px;
            cursor: pointer;
            color: var(--gray-700);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .order-detail-back:hover {
            background: var(--gray-100);
        }

        .order-detail-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-900);
            margin: 0;
        }

        .order-detail-content {
            padding: 0;
        }

        .order-detail-card {
            background: white;
            margin: 16px 20px;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .order-detail-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .order-detail-status-badge.pending {
            background: var(--status-pending-bg);
            color: var(--status-pending-text);
        }

        .order-detail-status-badge.preparing {
            background: var(--status-preparing-bg);
            color: var(--status-preparing-text);
        }

        .order-detail-status-badge.completed {
            background: var(--status-completed-bg);
            color: var(--status-completed-text);
        }

        .order-detail-status-badge.cancelled {
            background: var(--status-cancelled-bg);
            color: var(--status-cancelled-text);
        }

        .order-detail-order-number {
            font-size: 24px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .order-detail-order-type {
            font-size: 16px;
            font-weight: 600;
            color: var(--gray-700);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .order-detail-divider {
            height: 1px;
            background: var(--gray-200);
            margin: 16px 0;
        }

        .order-detail-info-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .order-detail-info-label {
            font-size: 14px;
            color: var(--gray-500);
        }

        .order-detail-info-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-900);
            text-align: right;
        }

        .order-detail-section-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 12px;
        }

        .order-detail-item {
            display: flex;
            gap: 12px;
            padding: 16px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .order-detail-item:last-child {
            border-bottom: none;
        }

        .order-detail-item-qty {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-900);
            min-width: 24px;
        }

        .order-detail-item-info {
            flex: 1;
        }

        .order-detail-item-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .order-detail-item-addons {
            font-size: 13px;
            color: var(--gray-500);
            margin-top: 4px;
        }

        .order-detail-item-addon {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
        }

        .order-detail-item-note {
            font-size: 13px;
            color: #92400e;
            background: #fef3c7;
            padding: 8px 12px;
            border-radius: 8px;
            margin-top: 8px;
            line-height: 1.4;
        }

        .order-detail-item-price {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-900);
            text-align: right;
        }

        .order-detail-summary {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px solid var(--gray-200);
        }

        .order-detail-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .order-detail-summary-label {
            font-size: 14px;
            color: var(--gray-600);
        }

        .order-detail-summary-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-900);
        }

        .order-detail-summary-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--gray-200);
        }

        .order-detail-summary-total-label {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-900);
        }

        .order-detail-summary-total-value {
            font-size: 20px;
            font-weight: 700;
            color: #dc2626;
        }

        .order-detail-actions {
            position: fixed;
            bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
            left: 0;
            right: 0;
            background: transparent;
            padding: 0 20px;
            z-index: 250;
            pointer-events: none;
        }
        
        .order-detail-actions-inner {
            background: white;
            padding: 14px;
            padding-bottom: calc(14px + var(--safe-bottom));
            border-radius: 24px;
            box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
            display: flex;
            justify-content: center;
            pointer-events: auto;
        }
        
        @media (min-width: 768px) {
            .order-detail-actions {
                display: flex;
                justify-content: center;
            }
            .order-detail-actions-inner {
                width: 520px;
                border: 1px solid rgba(0,0,0,0.04);
            }
        }

        .order-detail-btn {
            width: 100%;
            padding: 16px 20px;
            border-radius: 999px;
            font-size: 16px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: none;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .order-detail-btn-primary {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #7c2d12;
            box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
        }

        .order-detail-btn-primary:active {
            transform: translateY(1px);
            box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
        }

        .order-detail-payment-info {
            background: #f0fdf4;
            border: 1px solid #86efac;
            border-radius: 16px;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .order-detail-payment-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .order-detail-payment-main {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .order-detail-payment-text {
            flex: 1;
            min-width: 0;
        }

        .order-detail-payment-label {
            font-size: 15px;
            color: #14532d;
            font-weight: 700;
        }

        .order-detail-payment-subtext {
            font-size: 13px;
            color: #166534;
            margin-top: 2px;
            font-weight: 500;
        }

        .order-detail-payment-badge {
            background: #dcfce7;
            border: 1px dashed #86efac;
            color: #166534;
            font-weight: 800;
            text-transform: uppercase;
            padding: 6px 18px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }

        /* Receipt Image Template */
        #receipt-image-stage {
            position: absolute;
            top: 0;
            left: -9999px;
            width: 400px;
            pointer-events: none;
            z-index: -1;
            opacity: 0;
            visibility: hidden;
        }

        .receipt-image-wrapper {
            position: relative;
            width: 360px;
            min-height: 600px;
            padding: 32px 20px 40px;
            font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
            background: linear-gradient(180deg, #fff8f6 0%, #ffeae2 100%);
            border-radius: 32px;
            overflow: hidden;
        }

        .receipt-image-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 0;
        }

        .receipt-image-bg .receipt-heart {
            position: absolute;
            border-radius: 50%;
            opacity: 0.25;
        }
        .receipt-image-bg .heart-1 {
            width: 160px;
            height: 160px;
            background: #ffde59;
            bottom: -40px;
            left: -20px;
        }
        .receipt-image-bg .heart-2 {
            width: 140px;
            height: 140px;
            background: #ff914d;
            bottom: -60px;
            right: 10px;
        }
        .receipt-image-bg .heart-3 {
            width: 120px;
            height: 120px;
            background: #ffde59;
            top: -30px;
            right: -30px;
        }

        .receipt-card {
            position: relative;
            z-index: 1;
            background: white;
            border-radius: 28px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            padding: 24px;
        }

        .receipt-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }

        .receipt-brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .receipt-brand-logo {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: #dc2626;
            color: white;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
        }

        .receipt-brand-name {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
        }

        .receipt-brand-meta {
            font-size: 12px;
            color: #6b7280;
            margin-top: 2px;
        }

        .receipt-brand-date {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 2px;
        }

        .receipt-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
            position: relative;
        }

        .receipt-order-number {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-end;
            font-weight: 800;
            color: #0f5132;
            font-size: 16px;
            border-left: 2px solid #0f766e;
            border-bottom: 2px solid #0f766e;
            border-bottom-left-radius: 22px;
            border-top-right-radius: 30px;
            padding: 14px 28px 14px 34px;
            position: relative;
            min-width: 92px;
            text-transform: uppercase;
            background: transparent;
            margin-top: -24px;
            margin-right: -24px;
            border-right: none;
            border-top: none;
        }

        .receipt-order-number span {
            line-height: 1.1;
        }

        .receipt-order-info {
            background: #f9fafb;
            border-radius: 16px;
            padding: 16px;
            font-size: 13px;
            color: #4b5563;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 16px;
        }

        .receipt-items {
            border: 1px solid #f3f4f6;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 16px;
        }

        .receipt-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
        }

        .receipt-item-name {
            font-weight: 700;
            color: #111827;
            font-size: 14px;
        }

        .receipt-item-meta {
            font-size: 12px;
            color: #6b7280;
        }

        .receipt-item-addons {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 4px;
        }

        .receipt-item-price {
            font-weight: 700;
            color: #111827;
            font-size: 14px;
        }

        .receipt-summary {
            background: #fff7ed;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .receipt-summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #92400e;
            align-items: center;
            gap: 12px;
        }

        .receipt-summary-total {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: 800;
            color: #b91c1c;
            margin-top: 6px;
        }

        .receipt-summary-label {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .receipt-summary-label-sub {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #d97706;
        }

        .receipt-summary-value {
            white-space: nowrap;
        }

        .receipt-footer {
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .receipt-footer-logo {
            width: 64px;
            height: 64px;
            border-radius: 20px;
            background: white;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .receipt-footer-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .receipt-footer-logo-initial {
            font-size: 26px;
            font-weight: 800;
            color: #b91c1c;
        }

        .reward-category-tabs {
            display: flex;
            gap: 8px;
            margin: 0 12px 16px;
            border-bottom: 2px solid var(--gray-100);
        }

        .reward-category-tab {
            flex: 1;
            padding: 12px;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            font-weight: 600;
            color: var(--gray-500);
            cursor: pointer;
            transition: all var(--transition);
            margin-bottom: -2px;
        }

        .reward-category-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }
        
        .reward-category-tab:hover {
            color: var(--primary);
        }

        .rewards-items-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            padding: 0 12px 16px;
            align-items: stretch;
        }

        @media (max-width: 480px) {
            .rewards-items-grid {
                grid-template-columns: repeat(2, minmax(140px, 1fr));
            }
        }

        .reward-card {
            position: relative;
            display: flex;
            flex-direction: column;
            border-radius: 20px;
            background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
            padding: 0;
            min-height: 190px;
            overflow: hidden;
        }

        .reward-card-image {
            width: 100%;
            aspect-ratio: 1/1;
            background: #ffe7c2;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            overflow: hidden;
        }

        .reward-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .reward-card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            padding: 12px;
        }

        .reward-card-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-800);
        }

        .reward-card-description {
            font-size: 12px;
            color: var(--gray-500);
            min-height: 28px;
        }

        .reward-card-meta {
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--gray-600);
        }

        .reward-card-points {
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 700;
            color: var(--gray-800);
            font-size: 13px;
        }

        .reward-card-points-value {
            color: var(--accent);
        }

        .reward-card-stock {
            font-size: 11px;
            color: var(--gray-400);
        }

        .reward-card-footer {
            margin-top: auto;
            width: 100%;
        }

        .reward-card-button {
            width: 100%;
            margin-top: 10px;
            padding: 8px 0;
            border-radius: 999px;
            border: none;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
            background: var(--accent);
            color: #ffffff;
            box-shadow: none;
        }

        .reward-card-button:active:not(:disabled) {
            transform: translateY(1px);
            box-shadow: none;
        }

        .reward-card-button:disabled {
            cursor: not-allowed;
            background: var(--gray-100);
            color: var(--gray-400);
            box-shadow: none;
        }

        .reward-card-disabled {
            opacity: 0.9;
        }

        .reward-card-featured {
            box-shadow: none;
        }

