:root {
            --bg: #050508;
            --s1: rgba(255, 255, 255, 0.03);
            --s2: rgba(255, 255, 255, 0.06);
            --bd: rgba(255, 255, 255, 0.06);
            --bd2: rgba(255, 255, 255, 0.12);
            --t: #f0f0f5;
            --ts: rgba(255, 255, 255, 0.6);
            --tt: rgba(255, 255, 255, 0.35);
            --accent: #00ffcc;
            --green: #10b981;
            --red: #ef4444;
            --gold: #fbbf24;
            --blue: #3b82f6;
            --sans: 'Inter', system-ui, sans-serif;
            --mono: 'JetBrains Mono', monospace;
            --r: 14px
        }

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

        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--t);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased
        }

        .topbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(5, 5, 8, 0.92);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--bd);
            display: flex;
            align-items: center;
            padding: 0 24px;
            z-index: 100;
            gap: 16px
        }

        .topbar-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: var(--t);
            font-weight: 800;
            font-size: 16px
        }

        .topbar-logo img {
            height: 28px
        }

        .search-bar {
            flex: 1;
            max-width: 500px;
            margin: 0 20px
        }

        .search-bar input {
            width: 100%;
            background: var(--s1);
            border: 1px solid var(--bd);
            border-radius: 10px;
            padding: 8px 16px 8px 36px;
            color: var(--t);
            font-size: 14px;
            font-family: var(--sans);
            outline: none;
            transition: border 0.2s
        }

        .search-bar input:focus {
            border-color: var(--accent)
        }

        .topbar-links {
            display: flex;
            gap: 12px;
            align-items: center
        }

        .topbar-links a {
            color: var(--ts);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500
        }

        .topbar-links a:hover {
            color: var(--t)
        }

        .page {
            margin-top: 60px;
            display: flex;
            min-height: calc(100vh - 60px)
        }

        .cat-sidebar {
            width: 220px;
            border-right: 1px solid var(--bd);
            padding: 16px 12px;
            position: sticky;
            top: 60px;
            height: calc(100vh - 60px);
            overflow-y: auto
        }

        .cat-label {
            font-family: var(--mono);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--tt);
            margin-bottom: 8px;
            padding: 0 8px
        }

        .cat-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 8px 12px;
            border: none;
            background: none;
            color: var(--ts);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            border-radius: 8px;
            text-align: left;
            font-family: var(--sans);
            transition: all 0.2s
        }

        .cat-btn:hover,
        .cat-btn.active {
            background: var(--s2);
            color: var(--t)
        }

        .cat-btn.active {
            border-left: 3px solid var(--accent)
        }

        .cat-icon {
            font-size: 16px;
            width: 24px;
            text-align: center
        }

        .cat-count {
            margin-left: auto;
            font-family: var(--mono);
            font-size: 11px;
            color: var(--tt)
        }

        .main {
            flex: 1;
            padding: 24px;
            max-width: 1200px
        }

        .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 12px
        }

        .main-header h1 {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.5px
        }

        .main-header h1 .cat-emoji {
            margin-right: 6px
        }

        .filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap
        }

        .filter-btn {
            padding: 6px 14px;
            border: 1px solid var(--bd);
            border-radius: 8px;
            background: none;
            color: var(--ts);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            font-family: var(--sans);
            transition: all 0.2s
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--accent);
            color: #050508;
            border-color: var(--accent)
        }

        .sell-btn {
            background: var(--accent);
            color: #050508;
            border: none;
            padding: 8px 20px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            font-family: var(--sans);
            transition: all 0.2s
        }

        .sell-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(0, 255, 204, 0.2)
        }

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

        .card {
            background: var(--s1);
            border: 1px solid var(--bd);
            border-radius: var(--r);
            overflow: hidden;
            transition: all 0.25s;
            cursor: pointer
        }

        .card:hover {
            border-color: var(--bd2);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3)
        }

        .card-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.02)
        }

        .card-body {
            padding: 14px
        }

        .card-cat {
            display: flex;
            align-items: center;
            gap: 4px;
            font-family: var(--mono);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent);
            margin-bottom: 6px
        }

        .card-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3
        }

        .card-desc {
            font-size: 13px;
            color: var(--ts);
            line-height: 1.5;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;
            border-top: 1px solid var(--bd)
        }

        .card-price {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--green)
        }

        .card-price .currency {
            font-size: 11px;
            font-weight: 500;
            color: var(--ts);
            margin-left: 2px
        }

        .card-meta {
            display: flex;
            gap: 8px;
            font-size: 11px;
            color: var(--tt);
            font-family: var(--mono)
        }

        .card-seller {
            font-size: 12px;
            color: var(--ts);
            margin-bottom: 8px
        }

        .card-seller .seller-type {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 4px
        }

        .card-seller .seller-type.agent {
            background: rgba(99, 102, 241, 0.15);
            color: #818cf8
        }

        .card-seller .seller-type.human {
            background: rgba(251, 191, 36, 0.1);
            color: var(--gold)
        }

        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px
        }

        .tag {
            font-size: 10px;
            font-family: var(--mono);
            padding: 2px 6px;
            border-radius: 4px;
            background: var(--s2);
            color: var(--ts)
        }

        .type-badge {
            font-size: 10px;
            font-family: var(--mono);
            padding: 3px 8px;
            border-radius: 6px;
            font-weight: 600
        }

        .type-badge.sale {
            background: rgba(16, 185, 129, 0.1);
            color: var(--green)
        }

        .type-badge.rent {
            background: rgba(59, 130, 246, 0.1);
            color: var(--blue)
        }

        .type-badge.subscription {
            background: rgba(232, 62, 140, 0.1);
            color: #e83e8c
        }

        .type-badge.auction {
            background: rgba(251, 191, 36, 0.1);
            color: var(--gold)
        }

        .card-rating {
            color: var(--gold);
            font-size: 12px
        }

        .seed-bar {
            text-align: center;
            padding: 60px;
            color: var(--tt)
        }

        .seed-btn {
            background: var(--accent);
            color: #050508;
            border: none;
            padding: 10px 28px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            font-family: var(--sans)
        }

        .seed-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 255, 204, 0.2)
        }

        .empty {
            text-align: center;
            padding: 80px 20px;
            color: var(--tt)
        }

        .empty .emoji {
            font-size: 3rem;
            margin-bottom: 12px
        }

        .fade-in {
            opacity: 0;
            transform: translateY(12px);
            animation: fi 0.4s ease forwards
        }

        @keyframes fi {
            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        @media(max-width:768px) {
            .cat-sidebar {
                display: none
            }

            .grid {
                grid-template-columns: 1fr
            }

            .search-bar {
                margin: 0 8px
            }
        }

        /* ── Modal ── */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .modal {
            background: var(--bg);
            border: 1px solid var(--bd2);
            border-radius: var(--r);
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            transform: translateY(20px);
            transition: transform 0.3s ease;
            position: relative;
        }

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

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(255, 255, 255, 0.1);
            color: var(--t);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.2s;
            z-index: 10;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-header-img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            background: #111;
        }

        .modal-content-pading {
            padding: 32px;
        }

        .modal-title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 8px;
            line-height: 1.2;
        }

        .modal-cat {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--mono);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent);
            margin-bottom: 24px;
        }

        .modal-desc {
            font-size: 15px;
            color: var(--ts);
            line-height: 1.6;
            margin-bottom: 32px;
            white-space: pre-wrap;
        }

        .modal-seller-box {
            background: var(--s1);
            border: 1px solid var(--bd);
            border-radius: 12px;
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 32px;
        }

        .modal-seller-info h4 {
            font-size: 15px;
            font-weight: 700;
        }

        .modal-seller-info span {
            font-size: 12px;
            color: var(--ts);
        }

        .modal-actions {
            display: flex;
            gap: 16px;
            align-items: center;
            border-top: 1px solid var(--bd);
            padding-top: 24px;
        }

        .modal-price-box {
            flex: 1;
        }

        .modal-price {
            font-size: 2rem;
            font-weight: 900;
            color: var(--green);
            line-height: 1;
        }

        .modal-price sub {
            font-size: 14px;
            color: var(--ts);
            font-weight: 500;
            bottom: 0;
        }

        .modal-btn {
            padding: 12px 28px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            border: none;
            transition: all 0.2s;
            font-family: var(--sans);
        }

        .modal-btn.primary {
            background: var(--accent);
            color: #050508;
        }

        .modal-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 255, 204, 0.2);
        }

        .modal-btn.secondary {
            background: var(--s2);
            color: var(--t);
        }

        .modal-btn.secondary:hover {
            background: var(--bd2);
        }

        /* ── Receipt Modal ── */
        .receipt-modal {
            background: var(--surface);
            border: 1px solid var(--border);
            border-top: 4px solid var(--accent);
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            padding: 30px;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s ease;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
            text-align: center;
        }

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

        .receipt-icon {
            font-size: 48px;
            margin-bottom: 10px;
        }

        .receipt-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 20px;
        }

        .receipt-details {
            text-align: left;
            background: var(--s1);
            border: 1px solid var(--bd);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 24px;
        }

        .receipt-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 14px;
            color: var(--ts);
        }

        .receipt-row:last-child {
            margin-bottom: 0;
            padding-top: 10px;
            border-top: 1px dashed var(--bd);
            color: var(--t);
            font-weight: 700;
            font-size: 18px;
        }

        .receipt-val {
            font-family: var(--mono);
            color: #fff;
        }

        .wallet-btn {
            display: inline-block;
            background: var(--s2);
            color: var(--t);
            border: 1px solid var(--bd);
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
            width: 100%;
        }

        .wallet-btn:hover {
            background: var(--bd2);
            border-color: var(--accent);
            color: var(--accent);
        }