* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: #1a1a1a;
            color: #B1B2B6;
            min-height: 100vh;
            overflow: hidden;
        }
        .transactions-header {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 6px 12px;
            background: #1a1a1a;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .transactions-title {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            flex: 0 0 100%;
            order: 2;
            margin-top: 0;
        }

        .summary-section {
            width: auto;
            flex: 0 0 auto;
            order: 1;
        }

        .summary-title {
            font-size: 8px;
            color: #949390;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 1px;
            text-align: left;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 2px;
            max-width: 220px;
        }

        .stat-item {
            background: rgba(26, 26, 26, 0.7);
            padding: 2px 2px;
            border-radius: 3px;
            text-align: center;
            border: 1px solid #333;
            max-width: 40px;
            min-width: 26px;
        }

        .stat-value {
            font-size: 11px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }

        .stat-value.incoming { color: #4CAF50; }
        .stat-value.outgoing { color: #FF6238; }
        .stat-value.profiles { color: #D47159; }

        .stat-label {
            font-size: 7px;
            color: #949390;
            margin-top: 0;
            text-transform: uppercase;
            letter-spacing: 0.2px;
            line-height: 1;
        }
        .transactions-container {
            background: #252525;
            border-radius: 12px;
            border: 1px solid rgba(212, 113, 89, 0.15);
            overflow: hidden;
            padding-top: 42px;
            padding-bottom: 38px;
            position: relative;
            height: 100vh;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .transactions-container::after {
            content: '';
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 500px;
            height: 500px;
            background-image: url('/media/ethos.svg');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: contain;
            opacity: 0.15;
            pointer-events: none;
            z-index: 0;
        }
        .transaction-item {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            gap: 16px;
            transition: background 0.2s;
            background: rgba(37, 37, 37, 0.85);
            position: relative;
            z-index: 1;
        }
        .transaction-item:hover {
            background: rgba(37, 37, 37, 0.95);
        }
        .transaction-item:last-child {
            border-bottom: none;
        }
        .tx-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #1a1a1a;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            color: #D47159;
            overflow: hidden;
            border: 2px solid #333;
        }
        .tx-avatar.ethos-registered {
            border-color: #D47159;
            cursor: pointer;
        }
        .tx-avatar.ethos-registered:hover {
            border-color: #FF6238;
        }
        .tx-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .tx-info {
            flex: 1;
            min-width: 0;
        }
        .tx-main {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        .tx-direction {
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .tx-direction.incoming {
            background: rgba(76, 175, 80, 0.15);
            color: #4CAF50;
        }
        .tx-direction.outgoing {
            background: rgba(255, 98, 56, 0.15);
            color: #FF6238;
        }
        .tx-counterparty {
            font-size: 14px;
            color: #D47159;
            cursor: pointer;
            transition: color 0.2s;
        }
        .tx-counterparty:hover {
            color: #FF6238;
            text-decoration: underline;
        }
        .tx-counterparty-addr {
            font-family: monospace;
            font-size: 12px;
            color: #949390;
            cursor: pointer;
            transition: color 0.2s;
        }
        .tx-counterparty-addr:hover {
            color: #D47159;
        }
        .tx-meta {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: #666;
        }
        .tx-hash-link {
            color: #D47159;
            text-decoration: none;
            font-family: monospace;
        }
        .tx-hash-link:hover {
            text-decoration: underline;
            color: #FF6238;
        }
        .tx-value {
            text-align: right;
            flex-shrink: 0;
        }
        .tx-amount {
            font-size: 16px;
            font-weight: 600;
        }
        .tx-amount.incoming { color: #4CAF50; }
        .tx-amount.outgoing { color: #FF6238; }
        .tx-asset {
            font-size: 12px;
            color: #949390;
        }
        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 4px 12px;
            background: #1a1a1a;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 50;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
            min-height: 0;
        }
        .pagination-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .page-btn {
            padding: 4px 10px;
            background: #252525;
            border: 1px solid #333;
            border-radius: 4px;
            color: #B1B2B6;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .page-btn:hover:not(:disabled) {
            border-color: #D47159;
            color: #D47159;
        }
        .page-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        .page-numbers {
            display: flex;
            gap: 4px;
        }
        .page-num {
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 4px;
            color: #949390;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .page-num:hover {
            background: rgba(212, 113, 89, 0.1);
            border-color: rgba(212, 113, 89, 0.3);
        }
        .page-num.active {
            background: #D47159;
            color: #fff;
            font-weight: 600;
        }
        #transactionList {
            position: relative;
            z-index: 1;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
        }
        #transactionList::-webkit-scrollbar {
            width: 8px;
        }
        #transactionList::-webkit-scrollbar-track {
            background: #1a1a1a;
            border-radius: 4px;
        }
        #transactionList::-webkit-scrollbar-thumb {
            background: #D47159;
            border-radius: 4px;
        }
        #transactionList::-webkit-scrollbar-thumb:hover {
            background: #FF6238;
        }
        .empty-state {
            padding: 80px 20px;
            text-align: center;
            color: #949390;
            background: rgba(37, 37, 37, 0.9);
        }
        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        .empty-state p {
            font-size: 16px;
            margin-bottom: 8px;
            color: #B1B2B6;
        }
        .empty-state small {
            font-size: 13px;
            color: #666;
        }
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            background: rgba(37, 37, 37, 0.9);
            position: relative;
            z-index: 1;
        }
        .loading-blocks {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }
        .loading-block {
            width: 12px;
            height: 12px;
            background: #D47159;
            border-radius: 2px;
            animation: loadingPulse 1.4s ease-in-out infinite;
        }
        .loading-block:nth-child(1) { animation-delay: 0s; }
        .loading-block:nth-child(2) { animation-delay: 0.2s; }
        .loading-block:nth-child(3) { animation-delay: 0.4s; }
        .loading-block:nth-child(4) { animation-delay: 0.6s; }
        .loading-block:nth-child(5) { animation-delay: 0.8s; }
        @keyframes loadingPulse {
            0%, 100% { transform: scaleY(1); opacity: 0.4; }
            50% { transform: scaleY(2); opacity: 1; }
        }
        .loading-text {
            color: #949390;
            font-size: 14px;
            text-align: center;
        }
        .loading-subtext {
            color: #666;
            font-size: 12px;
            margin-top: 8px;
        }
        .loading-stats {
            margin-top: 16px;
            padding: 12px 16px;
            background: rgba(212, 113, 89, 0.1);
            border: 1px solid rgba(212, 113, 89, 0.2);
            border-radius: 8px;
            font-size: 12px;
            color: #949390;
            text-align: center;
        }
        .tx-avatar-date-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .tx-date {
            font-size: 10px;
            color: #666;
            text-align: center;
            white-space: nowrap;
        }
        .tx-avatar-flow {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .tx-avatar-small {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #1a1a1a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #D47159;
            overflow: hidden;
            border: 2px solid #333;
        }
        .tx-avatar-small.ethos-registered {
            border-color: #D47159;
            cursor: pointer;
        }
        .tx-avatar-small.score-0-799 { border-color: rgb(183, 43, 56); }
        .tx-avatar-small.score-800-1199 { border-color: rgb(194, 144, 16); }
        .tx-avatar-small.score-1200-1399 { border-color: rgb(193, 192, 182); }
        .tx-avatar-small.score-1400-1599 { border-color: rgb(124, 141, 168); }
        .tx-avatar-small.score-1600-1799 { border-color: rgb(78, 134, 185); }
        .tx-avatar-small.score-1800-1999 { border-color: rgb(46, 123, 195); }
        .tx-avatar-small.score-2000-2199 { border-color: rgb(66, 123, 86); }
        .tx-avatar-small.score-2200-2399 { border-color: rgb(18, 127, 49); }
        .tx-avatar-small.score-2400-2599 { border-color: rgb(131, 109, 166); }
        .tx-avatar-small.main-profile:not(.ethos-registered) {
            border-color: #333;
        }
        .tx-avatar-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .tx-flow-arrow {
            color: #666;
            font-size: 14px;
        }
        .tx-flow-arrow.incoming { color: #4CAF50; }
        .tx-flow-arrow.outgoing { color: #FF6238; }
        .tx-usd {
            font-size: 11px;
            color: #666;
            margin-top: 2px;
        }
        .ready-state {
            padding: 60px 20px;
            text-align: center;
            color: #949390;
            background: rgba(37, 37, 37, 0.9);
            position: relative;
            z-index: 1;
        }
        .ready-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            color: #D47159;
            opacity: 0.7;
        }
        .ready-state p {
            font-size: 14px;
            margin-bottom: 8px;
            color: #B1B2B6;
        }
        .ready-state small {
            font-size: 12px;
            color: #666;
        }
        .ethos-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 6px;
            background: rgba(212, 113, 89, 0.15);
            border: 1px solid rgba(212, 113, 89, 0.3);
            border-radius: 4px;
            font-size: 10px;
            color: #D47159;
            margin-left: 6px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }
        .ethos-badge:hover {
            background: rgba(212, 113, 89, 0.25);
            border-color: #D47159;
        }
        .ethos-badge.gray {
            background: rgba(148, 147, 144, 0.15);
            border: 1px solid rgba(148, 147, 144, 0.3);
            color: #949390;
        }
        .ethos-badge.gray:hover {
            background: rgba(148, 147, 144, 0.25);
            border-color: #949390;
        }
        .ethos-filter-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 0;
            padding: 0;
            background: transparent;
            border-radius: 0;
            border: none;
        }
        .ethos-filter-toggle.disabled {
            opacity: 0.4;
            pointer-events: none;
        }
        .ethos-filter-toggle.disabled .toggle-switch {
            cursor: not-allowed;
        }
        .ethos-filter-toggle .filter-label {
            font-size: 10px;
            color: #949390;
            white-space: nowrap;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 32px;
            height: 18px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333;
            border-radius: 20px;
            transition: 0.3s;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 12px;
            width: 12px;
            left: 3px;
            bottom: 3px;
            background-color: #949390;
            border-radius: 50%;
            transition: 0.3s;
        }
        .toggle-switch input:checked + .toggle-slider {
            background-color: rgba(212, 113, 89, 0.3);
            border: 1px solid #D47159;
        }
        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(14px);
            background-color: #D47159;
        }
        .network-badge {
            display: inline-flex;
            align-items: center;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 600;
            text-transform: uppercase;
            margin-left: 6px;
            opacity: 0.5;
        }
        .network-badge.ethereum {
            background: rgba(98, 126, 234, 0.08);
            border: 1px solid rgba(98, 126, 234, 0.15);
            color: #627EEA;
        }
        .network-badge.base {
            background: rgba(0, 82, 255, 0.08);
            border: 1px solid rgba(0, 82, 255, 0.15);
            color: #0052FF;
        }
        .network-badge.arbitrum {
            background: rgba(40, 160, 240, 0.08);
            border: 1px solid rgba(40, 160, 240, 0.15);
            color: #28A0F0;
        }
        .network-badge.bsc {
            background: rgba(243, 186, 47, 0.08);
            border: 1px solid rgba(243, 186, 47, 0.15);
            color: #F3BA2F;
        }
        .network-badge img {
            width: 14px;
            height: 14px;
            margin-right: 4px;
            vertical-align: middle;
        }
