        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; padding-bottom: 80px; -webkit-font-smoothing: antialiased; }

        .container { max-width: 800px; margin: 0 auto; padding: 20px; }
        h1 { font-size: 1.8rem; margin: 20px 0 4px; }
        .subtitle { color: var(--text-muted); margin-bottom: 24px; }

        .is-hidden { display: none; }
        .matches-title-icon { width: 28px; height: 28px; stroke-width: 1.5; vertical-align: middle; margin-right: 10px; color: var(--primary-light); }
        .matches-legend { display:flex;gap:16px;flex-wrap:wrap;margin-bottom:20px;font-size:0.78rem;color:var(--text-muted); }
        .lightbox-close-icon { width: 32px; height: 32px; stroke-width: 2; }
        .demo-wrap { position:relative; }
        .demo-blur { filter:blur(8px);opacity:0.4;pointer-events:none; }
        .match-header-static { cursor:default; }
        .match-tags-hint { color:var(--text-muted);font-size:0.75rem; }
        .expand-icon { width:16px;height:16px;vertical-align:middle;stroke-width:1.5; }
        .section-icon { width:18px;height:18px;vertical-align:middle;margin-right:6px;stroke-width:1.5; }
        .score-circle-dyn { --score-color: #10B981; }
        .overlay-center { position:absolute;inset:0;display:flex;align-items:center;justify-content:center; }
        .signin-card { text-align:center;background:rgba(15,11,26,0.9);padding:2.5rem;border-radius:20px;border:1px solid rgba(124,58,237,0.3);max-width:360px; }
        .signin-emoji { font-size:2.5rem;margin-bottom:0.75rem; }
        .signin-title { font-size:1.2rem;margin-bottom:0.5rem; }
        .signin-copy { color:var(--text-muted);font-size:0.9rem;margin-bottom:1.25rem;line-height:1.5; }
        .signin-btn { font-size:0.95rem;padding:10px 28px; }
        .signin-sub { margin-top:0.75rem;font-size:0.82rem; }
        .signin-sub a { color:var(--primary-light);text-decoration:none; }
        .empty-lead { margin-bottom:0.5rem; }
        .empty-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
        .empty-cta { font-size: 0.9rem; }
        .detail-actions { margin-top:16px; text-align:center; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
        .error-detail { color:var(--text-muted);font-size:0.75rem;margin-top:1rem;word-break:break-all; }

        .matches-grid { display: flex; flex-direction: column; gap: 12px; }

        .match-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.2s;
        }
        .match-card:hover { border-color: var(--primary-light); }

        .match-header {
            padding: 16px;
            display: grid;
            grid-template-columns: 64px 1fr auto;
            gap: 16px;
            align-items: center;
            cursor: pointer;
        }

        .match-avatar {
            width: 64px; height: 64px;
            border-radius: 50%;
            object-fit: cover;
            background: rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .match-avatar svg {
            width: 32px; height: 32px; stroke-width: 1.5; color: var(--text-muted);
        }
        .match-avatar:hover { transform: scale(1.1); }
        .match-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .match-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
        .match-meta { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 6px; }
        .match-tags { display: flex; flex-wrap: wrap; gap: 4px; }
        .tag {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 500;
        }
        .tag.interest { background: rgba(16,185,129,0.12); color: #6EE7B7; }
        .tag.desire { background: rgba(236,72,153,0.12); color: #F9A8D4; }
        .tag-dot {
            display: inline-block; width: 8px; height: 8px; border-radius: 50%;
            margin-right: 6px; vertical-align: middle;
        }
        .interest-dot { background-color: #6EE7B7; }
        .desire-dot { background-color: #F9A8D4; }
        .kink-dot { background-color: #C4B5FD; }

        .score-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
        .score-circle {
            width: 56px; height: 56px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; font-weight: 700; position: relative;
        }
        .score-circle::before {
            content: ''; position: absolute; inset: 0; border-radius: 50%;
            background: conic-gradient(var(--score-color) calc(var(--score-pct) * 3.6deg), rgba(255,255,255,0.08) 0);
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
        }

        .btn-connect {
            padding: 8px 18px; border-radius: 50px; font-size: 0.8rem;
            font-weight: 600; border: none; cursor: pointer;
            background: var(--gradient-1); color: white;
            font-family: inherit; transition: all 0.2s;
            text-decoration: none; display: inline-block;
        }
        .btn-connect:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }

        /* Expanded details */
        .match-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }
        .match-card.expanded .match-details {
            max-height: 800px;
        }
        .match-details-inner {
            padding: 0 16px 16px;
            border-top: 1px solid var(--border);
        }

        .expand-hint {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-align: center;
            padding: 4px;
            transition: opacity 0.2s;
        }
        .match-card.expanded .expand-hint { opacity: 0; height: 0; padding: 0; }

        /* Profile section in details */
        .profile-section {
            margin-top: 16px;
        }
        .profile-section h4 {
            font-size: 0.85rem;
            color: var(--primary-light);
            margin-bottom: 8px;
            font-weight: 600;
        }
        .profile-bio {
            color: #ccc;
            font-size: 0.88rem;
            line-height: 1.6;
            margin-bottom: 12px;
        }
        .profile-detail-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 10px;
        }
        .detail-chip {
            padding: 5px 12px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            font-size: 0.78rem;
            color: #bbb;
        }

        /* Match summary */
        .match-summary {
            margin-top: 16px;
            padding: 14px 18px;
            background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.06));
            border-left: 3px solid var(--primary);
            border-radius: 8px;
            font-size: 0.88rem;
            line-height: 1.65;
            color: #d4d0e0;
            font-style: italic;
        }
        .match-summary::before {
            content: '✨ ';
        }

        /* Lightbox */
        .lightbox {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.92);
            z-index: 999;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            animation: fadeIn 0.2s ease;
        }
        .lightbox.open { display: flex; }
        .lightbox img {
            max-width: 90vw; max-height: 85vh;
            border-radius: 12px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.5);
        }
        .lightbox-close {
            position: absolute; top: 20px; right: 24px;
            font-size: 2rem; color: #fff; cursor: pointer;
            background: none; border: none; opacity: 0.7;
        }
        .lightbox-close:hover { opacity: 1; }
        .lightbox-name {
            position: absolute; bottom: 24px;
            color: #fff; font-size: 1.1rem; font-weight: 600;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .trust-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 0.68rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
            vertical-align: middle;
            margin-left: 6px;
            background: rgba(16, 185, 129, 0.1);
            color: #10B981;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }
        .trust-badge::before {
            content: '🛡';
            font-size: 0.7rem;
        }
        .empty-state { text-align: center; padding: 60px 20px; }
        .empty-state .icon { font-size: 3rem; margin-bottom: 12px; color: var(--primary-light); }
        .empty-state .icon svg { width: 3rem; height: 3rem; stroke-width: 1.5; }
        .empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
        .empty-state p { color: var(--text-muted); }
        .loading { text-align: center; padding: 60px; color: var(--text-muted); }

        /* Curious button */
        .btn-curious {
            padding: 8px 18px; border-radius: 50px; font-size: 0.8rem;
            font-weight: 600; border: 1px solid var(--primary);
            cursor: pointer; background: transparent; color: var(--primary-light);
            font-family: inherit; transition: all 0.3s;
        }
        .btn-curious:hover { background: rgba(124,58,237,0.15); transform: scale(1.05); }
        .btn-curious.active {
            background: var(--gradient-1); color: white; border-color: transparent;
            animation: curiousPulse 0.4s ease;
        }
        .btn-curious.mutual {
            background: linear-gradient(135deg, #ec4899, #A855F7);
            color: white; border-color: transparent;
        }
        @keyframes curiousPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }

        .curious-counter {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 12px; padding: 8px 16px;
            font-size: 0.85rem; color: var(--primary-light);
            margin-bottom: 16px;
        }
        .curious-counter strong { color: var(--text-primary); }

        @media (max-width: 500px) {
            .match-header { grid-template-columns: 48px 1fr; gap: 12px; }
            .match-avatar { width: 48px; height: 48px; font-size: 1.4rem; }
            .score-col { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
            .breakdown-label { width: 80px; }
        }
