    @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

        /* Loading Spinner Overlay */
        .loading-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(4px);
            z-index: 9999;
        }
        .spinner {
            width: 80px;
            height: 80px;
            border: 3px solid rgba(255, 119, 0, 0.1);
            border-top-color: #ff7700;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Orders page styles */
        :root {
            --bg-dark: #1a1a1a;
            --panel-dark: #222222;
            --light-gray: #2a2a2a;
            --muted: #a0a0a0;
            --accent: #ff7700;
            --text-primary: #e6e6e6;
            --text-secondary: #b0b0b0;
        }

        /* Hero Section */
        .orders-hero {
            min-height: 30vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 20px 40px;
            background: linear-gradient(135deg, var(--bg-dark) 0%, var(--panel-dark) 50%, var(--light-gray) 100%);
            position: relative;
            overflow: hidden;
        }

        .orders-hero::before {
            content: '';
            position: absolute;
            width: clamp(320px, 60vw, 600px);
            height: clamp(320px, 60vw, 600px);
            background: radial-gradient(circle, rgba(255, 119, 0, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            top: calc(-1 * clamp(160px, 30vw, 300px));
            right: calc(-1 * clamp(160px, 30vw, 300px));
            animation: float 8s ease-in-out infinite;
        }

        .orders-hero::after {
            content: '';
            position: absolute;
            width: clamp(280px, 50vw, 500px);
            height: clamp(280px, 50vw, 500px);
            background: radial-gradient(circle, rgba(255, 119, 0, 0.1) 0%, transparent 70%);
            border-radius: 50%;
            bottom: calc(-1 * clamp(140px, 25vw, 250px));
            left: calc(-1 * clamp(140px, 25vw, 250px));
            animation: float 10s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -30px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }

        .orders-hero-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .orders-hero h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 16px;
            font-family: 'Space Grotesk', Roboto, sans-serif;
        }

        .orders-hero p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: var(--text-secondary);
        }

        /* Content */
        .orders-content {
            padding: 60px 20px 80px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            margin-bottom: 24px;
            transition: all 0.3s ease;
        }

        .back-link:hover {
            color: var(--accent);
        }

        .back-link svg {
            width: 18px;
            height: 18px;
        }

        /* Loading & Empty States */
        .orders-loading {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        .loading-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(255, 119, 0, 0.2);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .orders-empty {
            text-align: center;
            padding: 60px 20px;
            background: rgba(42, 42, 42, 0.5);
            border-radius: 16px;
            border: 1px solid rgba(255, 119, 0, 0.1);
        }

        .orders-empty svg {
            width: 80px;
            height: 80px;
            margin-bottom: 20px;
            color: var(--muted);
        }

        .orders-empty h2 {
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .orders-empty p {
            color: var(--text-secondary);
            margin-bottom: 24px;
        }

        .orders-empty a {
            display: inline-block;
            padding: 12px 28px;
            background: var(--accent);
            color: white;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .orders-empty a:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 119, 0, 0.3);
        }

        /* Orders List */
        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .order-card {
            background: rgba(42, 42, 42, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(255, 119, 0, 0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            animation: fadeInUp 0.5s ease-out;
        }

        .order-card.highlight {
            border-color: rgba(255, 119, 0, 0.7);
            box-shadow: 0 0 0 1px rgba(255, 119, 0, 0.4), 0 12px 28px rgba(255, 119, 0, 0.2);
            animation: highlightPulse 1.6s ease-in-out 0s 2;
        }

        @keyframes highlightPulse {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .order-card:hover {
            border-color: rgba(255, 119, 0, 0.3);
            transform: translateY(-2px);
        }

        .order-card.clickable {
            cursor: pointer;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: rgba(255, 119, 0, 0.05);
            border-bottom: 1px solid rgba(255, 119, 0, 0.1);
            flex-wrap: wrap;
            gap: 12px;
        }

        .order-info {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .order-number {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--accent);
        }

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

        .order-date svg {
            width: 16px;
            height: 16px;
        }

        .order-status {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .order-status.pending,
        .order-status.processing,
        .order-status.printing {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border-color: rgba(245, 158, 11, 0.35);
        }

        .order-status.confirmed,
        .order-status.shipped {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.35);
        }

        .order-status.delivered,
        .order-status.completed {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            border-color: rgba(34, 197, 94, 0.35);
        }

        .order-status.cancelled,
        .order-status.refunded {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.35);
        }

        .payment-status {
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(255, 119, 0, 0.12);
            color: var(--accent);
            border: 1px solid rgba(255, 119, 0, 0.25);
        }

        .payment-status.confirmed,
        .payment-status.paid {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            border-color: rgba(34, 197, 94, 0.35);
        }

        .payment-status.pending {
            background: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
            border-color: rgba(245, 158, 11, 0.35);
        }

        .payment-status.declined {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.35);
        }

        .order-shipping {
            padding: 16px 24px;
            border-top: 1px solid rgba(255, 119, 0, 0.1);
            background: rgba(0, 0, 0, 0.2);
            cursor: pointer;
            overflow: hidden;
            max-height: 220px;
            transition: max-height 0.25s ease, background 0.2s ease;
        }

        .order-shipping:hover {
            background: rgba(255, 119, 0, 0.04);
        }

        .order-shipping.collapsed {
            max-height: 40px;
        }

        .order-shipping.collapsed .shipping-title {
            margin-bottom: 0;
        }

        .order-shipping.collapsed .shipping-address {
            opacity: 0;
            transform: translateY(-4px);
            pointer-events: none;
        }

        .order-status.confirmed, .order-status.processing {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .order-status.shipped {
            background: rgba(168, 85, 247, 0.2);
            color: #a855f7;
        }

        .order-status.delivered {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .order-status.cancelled, .order-status.refunded {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .order-items {
            padding: 20px 24px;
        }

        .order-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 0;
        }

        .order-item:not(:last-child) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .order-item-image {
            width: 64px;
            height: 64px;
            border-radius: 10px;
            background: rgba(42, 42, 42, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }

        .order-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .order-item-image svg {
            width: 24px;
            height: 24px;
            color: var(--muted);
        }

        .order-item-details {
            flex: 1;
        }

        .order-item-name {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .order-item-quantity {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .order-item-emoji {
            font-size: 28px;
        }

        .order-item-price {
            font-weight: 700;
            font-size: 1rem;
            color: var(--accent);
        }

        .order-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: rgba(255, 119, 0, 0.05);
            border-top: 1px solid rgba(255, 119, 0, 0.1);
            flex-wrap: wrap;
            gap: 16px;
        }

        .order-total {
            font-size: 1.2rem;
        }

        .order-total-label {
            color: var(--text-secondary);
            margin-right: 8px;
        }

        .order-total-value {
            font-weight: 700;
            color: var(--accent);
        }

        .order-payment {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .payment-status {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .payment-status.confirmed {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .payment-status.pending {
            background: rgba(234, 179, 8, 0.2);
            color: #eab308;
        }

        .payment-status.declined {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .shipping-title {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .shipping-title::after {
            content: '';
            margin-left: auto;
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--text-secondary);
            border-bottom: 2px solid var(--text-secondary);
            transform: rotate(45deg);
            transition: transform 0.2s ease;
        }

        .shipping-address {
            font-size: 0.9rem;
            line-height: 1.5;
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .order-shipping:not(.collapsed) .shipping-title::after {
            transform: rotate(-135deg);
        }

        /* Stats */
        .orders-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 32px;
        }

        .orders-status-cards {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 32px;
        }

        .orders-status-cards .status-card {
            flex: 1 1 200px;
            background: rgba(42, 42, 42, 0.5);
            border-radius: 12px;
            border: 1px solid rgba(255, 119, 0, 0.1);
            padding: 20px;
            text-align: center;
        }

        .orders-status-cards .status-value {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .orders-status-cards .status-label {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .orders-status-cards .status-delivered .status-value {
            color: #22c55e;
        }

        .orders-status-cards .status-cancelled .status-value {
            color: #ef4444;
        }

        .orders-status-cards .status-pending .status-value {
            color: #f59e0b;
        }

        .orders-status-cards .status-confirmed .status-value,
        .orders-status-cards .status-processing .status-value {
            color: #3b82f6;
        }

        .orders-status-cards .status-printing .status-value {
            color: #f59e0b;
        }

        .orders-status-cards .status-shipped .status-value {
            color: #a855f7;
        }

        .orders-status-cards .status-refunded .status-value {
            color: #ef4444;
        }


        .order-type-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            background: rgba(255, 119, 0, 0.16);
            color: var(--accent);
            border: 1px solid rgba(255, 119, 0, 0.3);
        }

        .orders-stats > .stat-card {
            flex: 1 1 200px;
        }

        .stat-card {
            background: rgba(42, 42, 42, 0.5);
            border-radius: 12px;
            border: 1px solid rgba(255, 119, 0, 0.1);
            padding: 20px;
            text-align: center;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 4px;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        /* Order Detail Modal */
        .order-detail-modal {
            position: fixed;
            inset: 0;
            background: rgba(8, 8, 8, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 10000;
        }

        .order-detail-modal.active {
            display: flex;
        }

        .order-detail-panel {
            width: min(960px, 100%);
            max-height: 90vh;
            background: #1a1a1a;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .order-detail-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 24px;
            background: #202020;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .order-detail-panel-header h2 {
            font-size: 1.1rem;
            letter-spacing: 0.02em;
            margin: 0;
            color: var(--text-primary);
        }

        .order-detail-close {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: #151515;
            font-size: 1.4rem;
            color: var(--text-primary);
            cursor: pointer;
            line-height: 1;
            display: grid;
            place-items: center;
            transition: all 0.2s ease;
        }

        .order-detail-close:hover {
            color: var(--accent);
            border-color: rgba(255, 119, 0, 0.35);
            background: #1f1f1f;
        }

        .order-detail-body {
            padding: 24px;
            overflow: auto;
        }

        .order-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 24px;
            margin-bottom: 20px;
        }

        .order-detail-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .order-detail-date {
            margin-top: 6px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .order-detail-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-end;
        }

        .order-detail-badges .order-status,
        .order-detail-badges .payment-status {
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 0.72rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .order-detail-section {
            margin-bottom: 24px;
        }

        .order-detail-section h3 {
            font-size: 0.95rem;
            margin-bottom: 10px;
            color: #f4f4f5;
        }

        .order-detail-section .order-items {
            background: #202020;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            padding: 6px 16px;
        }

        .order-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
        }

        .order-detail-grid .order-detail-section {
            background: #202020;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            padding: 16px 18px;
        }

        .order-detail-address,
        .order-detail-meta {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.75);
            line-height: 1.6;
        }

        .order-detail-address strong,
        .order-detail-meta strong {
            color: var(--text-primary);
        }

        .order-detail-meta-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .detail-chip {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .order-detail-meta span {
            color: #e7e7ea;
            font-weight: 600;
            margin-right: 6px;
        }

        .order-detail-price {
            margin-top: 12px;
            background: #1b1b1b;
            border-radius: 12px;
            padding: 14px 16px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .order-detail-price .price-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            padding: 4px 0;
        }

        .order-detail-price .price-row.total {
            color: #f8f8f8;
            font-weight: 700;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 6px;
            padding-top: 8px;
        }

        .order-detail-price .price-row.total span:last-child {
            color: var(--accent);
        }

        .order-detail-notes {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            background: #202020;
            border-radius: 12px;
            padding: 14px 16px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .order-detail-muted {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        @media (max-width: 640px) {
            .order-detail-panel-header,
            .order-detail-body {
                padding: 16px 18px;
            }

            .order-detail-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .order-detail-badges {
                justify-content: flex-start;
            }
        }

        /* Responsive */
        @media (max-width: 767.98px) {
            .orders-hero {
                padding: 100px 20px 40px;
            }

            .orders-content {
                padding: 40px 16px 60px;
            }

            .order-header, .order-footer {
                padding: 16px 20px;
                flex-direction: column;
                align-items: flex-start;
            }

            .order-items {
                padding: 16px 20px;
            }

            .order-item {
                gap: 12px;
            }

            .order-item-image {
                width: 50px;
                height: 50px;
            }
        }
