        :root {
            --bg-base: #eff6ff;
            --glass-bg: rgba(255, 255, 255, 0.92);
            --glass-border: #dbeafe;
            --text-primary: #172554;
            --text-secondary: #64748b;
            --accent-primary: #2563eb;
            --accent-glow: rgba(37, 99, 235, 0.22);
            --success: #059669;
            --danger: #dc2626;
            --warning: #d97706;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-base);
            background-image: 
                radial-gradient(at 0% 0%, rgba(96, 165, 250, 0.28) 0px, transparent 45%),
                radial-gradient(at 100% 0%, rgba(191, 219, 254, 0.5) 0px, transparent 45%),
                linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
            background-attachment: fixed;
            color: var(--text-primary);
            min-height: 100vh;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 32px;
            font-weight: 800;
            margin: 0 0 12px 0;
            background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header p {
            color: var(--text-secondary);
            font-size: 16px;
            margin: 0;
        }

        .refresh-status {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-top: 12px;
            padding: 7px 12px;
            border: 1px solid #bfdbfe;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.8);
            color: #475569;
            font-size: 12px;
            font-weight: 600;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
        }

        .refresh-status::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent-primary);
        }

        .refresh-status.error {
            color: var(--danger);
            border-color: #fecaca;
            background: #fff7f7;
        }

        .refresh-status.error::before {
            background: var(--danger);
        }

        .search-box {
            position: relative;
            margin-bottom: 40px;
        }

        .search-input {
            width: 100%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px 24px;
            font-size: 18px;
            color: var(--text-primary);
            outline: none;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .search-input:focus {
            border-color: var(--accent-primary);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12), 0 0 0 4px var(--accent-glow);
        }

        .search-input::placeholder {
            color: #64748b;
        }

        .results-info {
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--text-secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .product-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
            overflow: hidden;
        }

        .product-card:hover {
            transform: translateY(-4px);
            border-color: #93c5fd;
            box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-card:hover::before {
            opacity: 1;
        }

        .product-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .product-code {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .product-price {
            font-size: 20px;
            font-weight: 800;
            color: #1d4ed8;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid #e2e8f0;
        }

        .btn-buy {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 16px;
            padding: 12px;
            background: linear-gradient(135deg, var(--accent-primary), #2563eb);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .btn-buy:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px var(--accent-glow);
        }

        .btn-buy:disabled {
            background: #f1f5f9;
            color: var(--text-secondary);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            border: 1px dashed #cbd5e1;
        }

        .order-modal {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 23, 42, 0.42);
            box-sizing: border-box;
        }

        .order-modal.is-open {
            display: flex;
        }

        .order-modal-panel {
            width: min(100%, 380px);
            background: #ffffff;
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
            padding: 22px;
            box-sizing: border-box;
        }

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

        .order-modal-title {
            margin: 0;
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 800;
            line-height: 1.35;
        }

        .order-modal-close {
            width: 34px;
            height: 34px;
            flex: 0 0 auto;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: #f8fafc;
            color: var(--text-primary);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
        }

        .order-modal-product {
            margin: 0 0 18px;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.5;
        }

        .order-modal-actions {
            display: grid;
            gap: 10px;
        }

        .order-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 12px 14px;
            border-radius: 12px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 800;
            text-decoration: none;
            box-sizing: border-box;
        }

        .order-link.whatsapp {
            background: #16a34a;
        }

        .order-link.telegram {
            background: #0284c7;
        }

        .order-copy-status {
            min-height: 18px;
            margin: 4px 0 0;
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.5;
        }

        .product-desc {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 8px;
            line-height: 1.5;
            background: #f8fafc;
            padding: 12px;
            border-radius: 8px;
            border: 1px dashed #cbd5e1;
        }

        .product-alloc {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 6px;
            margin-top: 8px;
        }

        .alloc-item {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            color: var(--text-primary);
            display: flex;
            justify-content: space-between;
        }
        
        .alloc-val {
            font-weight: 700;
            color: #1d4ed8;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .status-available {
            background: rgba(16, 185, 129, 0.15);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .status-empty {
            background: rgba(239, 68, 68, 0.15);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .status-pending {
            background: rgba(217, 119, 6, 0.15);
            color: var(--warning);
            border: 1px solid rgba(217, 119, 6, 0.3);
        }

        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--accent-primary);
        }

        .loader-spinner {
            width: 32px;
            height: 32px;
            border: 3px solid rgba(59, 130, 246, 0.3);
            border-radius: 50%;
            border-top-color: var(--accent-primary);
            animation: spin 1s ease-in-out infinite;
        }

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

        .no-results {
            text-align: center;
            padding: 40px;
            color: var(--text-secondary);
            background: var(--glass-bg);
            border-radius: 16px;
            border: 1px dashed var(--glass-border);
        }

        .quick-filters {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            margin-bottom: 20px;
            padding-bottom: 8px;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .quick-filters::-webkit-scrollbar {
            display: none;
        }

        .filter-btn {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
            padding: 10px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .filter-btn:hover {
            background: #eff6ff;
            border-color: var(--accent-primary);
        }

        .filter-btn.active {
            background: var(--accent-primary);
            color: #fff;
            border-color: var(--accent-primary);
        }

        .results-info b {
            color: var(--text-primary) !important;
        }

        /* Styling khusus Cek Area */
        .area-checker-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            animation: fadeIn 0.3s ease-out;
        }

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

        .kavion-search-box {
            position: relative;
            width: 100%;
        }

        .kavion-search-input {
            width: 100%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 16px 20px;
            font-size: 16px;
            color: var(--text-primary);
            outline: none;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .kavion-search-input:focus {
            border-color: var(--accent-primary);
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 0 0 3px var(--accent-glow);
        }

        .kavion-table-wrapper {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            overflow: hidden;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
        }

        .kavion-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        .kavion-table th {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            padding: 16px 20px;
            border-bottom: 2px solid var(--glass-border);
            background: rgba(255, 255, 255, 0.4);
        }

        .kavion-table td {
            font-size: 13.5px;
            color: var(--text-secondary);
            padding: 16px 20px;
            border-bottom: 1px solid var(--glass-border);
            line-height: 1.6;
        }

        .kavion-table tbody tr:last-child td {
            border-bottom: none;
        }

        .kavion-table tbody tr:hover {
            background: rgba(37, 99, 235, 0.02);
        }

        .kavion-prov {
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
        }

        .kavion-cities {
            word-break: break-word;
        }
        
        .area-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            white-space: nowrap;
        }
        
        .area-badge.area-1 { background: rgba(59, 130, 246, 0.15); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); }
        .area-badge.area-2 { background: rgba(16, 185, 129, 0.15); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }
        .area-badge.area-3 { background: rgba(217, 119, 6, 0.15); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
        .area-badge.area-4 { background: rgba(220, 38, 38, 0.15); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }

        @media (max-width: 640px) {
            .container {
                padding: 20px 12px;
            }

            /* Make Cek Area table stack beautifully on mobile */
            .kavion-table, 
            .kavion-table tbody, 
            .kavion-table tr, 
            .kavion-table td {
                display: block;
                width: 100%;
                box-sizing: border-box;
            }

            .kavion-table thead {
                display: none;
            }

            .kavion-table tr:not(.kavion-empty-row) {
                padding: 16px;
                border-bottom: 1px solid var(--glass-border);
                display: grid;
                grid-template-areas: 
                    "prov badge"
                    "cities cities";
                grid-template-columns: 1fr auto;
                align-items: center;
                gap: 8px;
            }

            .kavion-table tr.kavion-empty-row {
                display: block;
                padding: 0;
            }

            .kavion-table td {
                padding: 0 !important;
                border-bottom: none !important;
            }

            .kavion-table td[colspan="3"] {
                padding: 30px 16px !important;
            }

            .kavion-prov {
                grid-area: prov;
                font-size: 15px;
                font-weight: 700;
                color: var(--text-primary);
                white-space: normal;
            }

            .kavion-table tr td:last-child {
                grid-area: badge;
                justify-self: end;
                display: flex;
            }

            .kavion-cities {
                grid-area: cities;
                font-size: 13.5px;
                color: var(--text-secondary);
                line-height: 1.5;
                margin-top: 4px;
            }
        }

        /* Styles for QRIS checkout */
        .order-link.qris {
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            cursor: pointer;
            border: none;
            font-family: inherit;
            color: white;
        }

        .order-link.qris:hover {
            opacity: 0.9;
        }

        .order-back-btn {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: #f8fafc;
            color: var(--text-primary);
            cursor: pointer;
            padding: 0;
            transition: all 0.2s ease;
        }

        .order-back-btn:hover {
            background: #eff6ff;
            color: var(--accent-primary);
            border-color: #bfdbfe;
        }

        .qris-payment-detail {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 14px;
            margin-bottom: 16px;
        }

        .qris-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13.5px;
            margin-bottom: 8px;
        }

        .qris-detail-row:last-child {
            margin-bottom: 0;
        }

        .qris-detail-row.total {
            border-top: 1px dashed #cbd5e1;
            padding-top: 8px;
            margin-top: 8px;
            font-weight: 700;
        }

        .qris-detail-label {
            color: var(--text-secondary);
        }

        .qris-detail-val {
            color: var(--text-primary);
            text-align: right;
        }

        .qris-detail-row.total .qris-detail-val {
            font-size: 16px;
            color: var(--accent-primary);
        }

        .qris-image-container {
            position: relative;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: zoom-in;
            transition: all 0.3s ease;
        }

        .qris-image {
            max-width: 180px;
            height: auto;
            border-radius: 8px;
            display: block;
            transition: transform 0.3s ease;
        }

        .qris-zoom-tip {
            margin-top: 8px;
            font-size: 11px;
            color: var(--text-secondary);
            font-style: italic;
        }

        .qris-image-container.zoomed {
            position: fixed;
            inset: 0;
            z-index: 1010;
            background: rgba(15, 23, 42, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            margin: 0;
            border-radius: 0;
            border: none;
            cursor: zoom-out;
        }

        .qris-image-container.zoomed .qris-image {
            max-width: 90%;
            max-height: 80vh;
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(1.05);
        }

        .qris-image-container.zoomed .qris-zoom-tip {
            position: absolute;
            bottom: 24px;
            color: #e2e8f0;
            font-size: 13px;
            background: rgba(0, 0, 0, 0.6);
            padding: 6px 12px;
            border-radius: 20px;
        }

        .qris-confirm-btn {
            background: var(--success);
            cursor: pointer;
            border: none;
            width: 100%;
            font-family: inherit;
        }

        .qris-confirm-btn:hover {
            opacity: 0.9;
        }

        .qris-cancel-btn {
            background: var(--danger);
            cursor: pointer;
            border: none;
            width: 100%;
            font-family: inherit;
        }

        .qris-cancel-btn:hover {
            opacity: 0.9;
        }

        .qris-confirm-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-label {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .form-input {
            width: 100%;
            min-height: 40px;
            padding: 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #f8fafc;
            color: var(--text-primary);
            font-family: inherit;
            font-size: 13.5px;
            box-sizing: border-box;
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px var(--accent-glow);
            background: #ffffff;
        }

        .file-upload-wrapper {
            position: relative;
            border: 2px dashed #cbd5e1;
            background: #f8fafc;
            border-radius: 10px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .file-upload-wrapper:hover {
            border-color: var(--accent-primary);
            background: #f1f5f9;
        }

        .file-input-hidden {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .file-upload-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
        }

        .upload-icon {
            color: var(--accent-primary);
            opacity: 0.8;
        }

        .upload-text {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .upload-subtext {
            font-size: 11px;
        }

        .file-preview-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .file-preview-img {
            max-width: 120px;
            max-height: 120px;
            border-radius: 6px;
            object-fit: cover;
            border: 1px solid #cbd5e1;
        }

        .file-preview-info {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            justify-content: center;
        }

        .file-preview-name {
            font-size: 12px;
            color: var(--text-primary);
            font-weight: 600;
            max-width: 160px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .btn-remove-file {
            background: none;
            border: none;
            color: var(--danger);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .btn-remove-file:hover {
            background: #fee2e2;
        }

        .submit-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: var(--danger);
            font-size: 12.5px;
            padding: 8px 12px;
            border-radius: 6px;
            text-align: center;
            font-weight: 600;
        }

        .qris-submit-btn {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            cursor: pointer;
            border: none;
            width: 100%;
            font-family: inherit;
            position: relative;
            overflow: hidden;
        }

        .qris-submit-btn:hover:not(:disabled) {
            opacity: 0.9;
        }

        .qris-submit-btn:disabled {
            background: #94a3b8;
            cursor: not-allowed;
        }

        /* Spinner for loading state */
        .qris-submit-btn.loading span {
            visibility: hidden;
        }

        .qris-submit-btn.loading::after {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            border: 3px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: qris-spinner 0.6s linear infinite;
        }

        @keyframes qris-spinner {
            to { transform: rotate(360deg); }
        }

        /* Floating History Button & Modal Styles */
        .floating-history-btn {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid var(--accent-primary);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
            cursor: pointer;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            overflow: visible;
        }

        .floating-history-btn:hover {
            transform: scale(1.1) translateY(-4px);
            box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
        }

        .floating-history-btn img {
            width: 32px;
            height: 32px;
            object-fit: contain;
        }

        /* Floating Guide Button */
        .floating-guide-btn {
            position: fixed;
            bottom: 100px;
            right: 24px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid var(--accent-primary);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
            cursor: pointer;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            overflow: visible;
        }

        .floating-guide-btn:hover {
            transform: scale(1.1) translateY(-4px);
            box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
        }

        .floating-guide-btn img {
            width: 32px;
            height: 32px;
            object-fit: contain;
        }

        /* Guide Modal Styles */
        .guide-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.42);
            box-sizing: border-box;
            padding: 16px;
        }

        .guide-modal.is-open {
            display: flex;
        }

        .guide-modal-panel {
            width: min(100%, 460px);
            background: #ffffff;
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
            padding: 24px;
            box-sizing: border-box;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
        }

        .guide-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-shrink: 0;
        }

        .guide-modal-title {
            margin: 0;
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 800;
        }

        .guide-modal-close {
            width: 34px;
            height: 34px;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: #f8fafc;
            color: var(--text-secondary);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .guide-modal-close:hover {
            background: #f1f5f9;
            color: var(--text-primary);
        }

        .guide-content {
            overflow-y: auto;
            flex-grow: 1;
            margin-right: -8px;
            padding-right: 8px;
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .guide-content p {
            margin-top: 0;
            margin-bottom: 16px;
        }

        .guide-content ul {
            margin: 0 0 20px 0;
            padding-left: 20px;
        }

        .guide-content li {
            margin-bottom: 10px;
        }

        .guide-content a {
            color: var(--accent-primary);
            text-decoration: none;
            font-weight: 600;
        }

        .guide-content a:hover {
            text-decoration: underline;
        }

        .history-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: var(--danger);
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 10px;
            border: 2px solid #ffffff;
            line-height: 1;
            min-width: 12px;
            text-align: center;
        }

        .history-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.42);
            box-sizing: border-box;
            padding: 16px;
        }

        .history-modal.is-open {
            display: flex;
        }

        .history-modal-panel {
            width: min(100%, 420px);
            background: #ffffff;
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
            padding: 22px;
            box-sizing: border-box;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
        }

        .history-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-shrink: 0;
        }

        .history-modal-title {
            margin: 0;
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 800;
        }

        .history-modal-close {
            width: 34px;
            height: 34px;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: #f8fafc;
            color: var(--text-secondary);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .history-list {
            overflow-y: auto;
            flex-grow: 1;
            margin-right: -8px;
            padding-right: 8px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .history-item {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px;
            background: #f8fafc;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .history-item.payable {
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .history-item.payable:hover {
            border-color: var(--accent-primary);
            background: #eff6ff;
            box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
        }

        .history-payable-tip {
            margin-top: 8px;
            font-size: 11px;
            font-weight: 600;
            color: var(--accent-primary);
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 4px;
        }

        .history-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .history-tx-id {
            font-weight: 800;
            color: var(--accent-primary);
        }

        .history-item-body {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .history-product-name {
            font-weight: 700;
            font-size: 14px;
            color: var(--text-primary);
        }

        .history-detail-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
        }

        .history-detail-label {
            color: var(--text-secondary);
        }

        .history-detail-val {
            font-weight: 600;
            color: var(--text-primary);
        }

        .history-empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-secondary);
            font-size: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .history-empty-icon {
            font-size: 32px;
            opacity: 0.6;
        }