:root {
    color-scheme: dark;
    --bg: #100817;
    --panel: rgba(31, 17, 43, .88);
    --panel-soft: rgba(43, 24, 58, .72);
    --line: rgba(207, 154, 255, .19);
    --text: #fbf7ff;
    --muted: #b8a8c5;
    --accent: #bd72ff;
    --accent-2: #8b48dc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
    min-height: 100vh; margin: 0; color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
      radial-gradient(ellipse at 12% 0%, rgba(125, 48, 177, .28), transparent 38rem),
      radial-gradient(ellipse at 100% 35%, rgba(80, 34, 118, .22), transparent 34rem),
      linear-gradient(145deg, #100817 0%, #1a0d25 52%, #100817 100%);
}
.page-shell { width: min(1500px, calc(100% - 44px)); margin: 0 auto; padding: 28px 0 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.back-button { display: inline-flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, rgba(177, 103, 255, .17), rgba(255,255,255,.035)); box-shadow: 0 7px 22px rgba(0,0,0,.14); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.back-button:hover { transform: translateX(-3px); border-color: rgba(208, 157, 255, .65); background: linear-gradient(135deg, rgba(177, 103, 255, .27), rgba(255,255,255,.06)); }
.back-arrow { color: #d6a6ff; font-size: 21px; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: white; font-size: 23px; font-weight: 850; background: linear-gradient(145deg, #c17aff, #7133bd); box-shadow: 0 7px 25px rgba(157, 78, 226, .28); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 16px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.total { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 12px; }
.total b { color: var(--text); font-size: 13px; }
.total-dot { width: 7px; height: 7px; border-radius: 50%; background: #c17aff; box-shadow: 0 0 12px #b66aff; }
.search-panel { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(120deg, rgba(55, 29, 75, .94), rgba(29, 17, 40, .94)); box-shadow: 0 20px 65px rgba(0,0,0,.2); }
.search-panel::after { content: ""; position: absolute; width: 250px; height: 250px; right: -80px; top: -130px; border-radius: 50%; background: rgba(176, 99, 255, .12); filter: blur(5px); pointer-events: none; }
.search-heading { position: relative; z-index: 1; text-align: center; }
.eyebrow { color: #d39bff; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 9px 0 7px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; }
.search-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.searchbox { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: min(680px, 100%); height: 58px; margin: 25px auto 0; padding: 0 17px; border: 1px solid rgba(210, 164, 255, .27); border-radius: 16px; background: rgba(10, 5, 15, .48); transition: border-color .2s, box-shadow .2s, background .2s; }
.searchbox:focus-within { border-color: rgba(202, 145, 255, .85); background: rgba(10, 5, 15, .68); box-shadow: 0 0 0 4px rgba(177, 103, 255, .12); }
.searchbox svg { flex: 0 0 21px; width: 21px; fill: none; stroke: #c69ae8; stroke-width: 1.8; stroke-linecap: round; }
.searchbox input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; font-size: 15px; }
.searchbox input::placeholder { color: #8e7b9e; }
.searchbox kbd { padding: 5px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #a995b8; font: 10px inherit; }
.results { padding-top: 30px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 16px; }
.results-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.results-heading span { color: var(--muted); font-size: 12px; }
.cards-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.profile-card { display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(202, 151, 239, .28); border-radius: 15px; color: var(--text); text-decoration: none; background: linear-gradient(180deg, rgba(53, 29, 69, .92), rgba(35, 18, 47, .98)); box-shadow: 0 7px 22px rgba(0,0,0,.18); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.profile-card:hover { transform: translateY(-5px); border-color: rgba(208, 157, 255, .75); box-shadow: 0 14px 30px rgba(0,0,0,.32), 0 0 0 1px rgba(186, 111, 255, .12); }
.photo-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 4.25; background: linear-gradient(135deg, #39234a, #21132c); }
.photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.profile-card:hover .photo-wrap img { transform: scale(1.045); filter: saturate(1.08); }
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #bba4cb; text-align: center; font-size: 12px; background: radial-gradient(circle, #4b2c61, #21132c 70%); }
.open-hint { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; color: white; background: rgba(16, 8, 23, .72); backdrop-filter: blur(8px); font-size: 10px; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.profile-card:hover .open-hint { opacity: 1; transform: translateY(0); }
.open-hint span { margin-left: 4px; color: #d4a4ff; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; padding: 11px 12px; }
.profile-name { overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; }
.card-arrow { flex: 0 0 auto; color: #c38af0; font-size: 16px; opacity: .7; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 55px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); font-size: 16px; }
.empty-state span { font-size: 13px; }
.empty-icon { color: var(--accent); font-size: 38px; }
footer { padding: 28px 0 4px; color: #786783; text-align: center; font-size: 11px; }
footer span { padding: 0 5px; color: #b77be9; }
@media (max-width: 1150px) { .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; } }
@media (max-width: 850px) { .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; } .page-shell { width: min(100% - 30px, 720px); } }
@media (max-width: 560px) { .page-shell { width: calc(100% - 22px); padding-top: 15px; } .topbar { align-items: center; flex-direction: row; flex-wrap: wrap; margin-bottom: 16px; } .total { align-self: center; margin-left: auto; } .back-button { min-height: 40px; padding: 0 13px; } .search-panel { padding: 23px 15px; border-radius: 19px; } .search-heading p { max-width: 290px; margin: 0 auto; font-size: 12px; line-height: 1.5; } .searchbox { height: 52px; margin-top: 20px; padding: 0 12px; } .searchbox input { font-size: 13px; } .searchbox kbd { display: none; } .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; } .photo-wrap { aspect-ratio: 4 / 4.4; } .card-caption { min-height: 45px; padding: 9px; } .profile-name { font-size: 11px; } .open-hint { display: none; } .results { padding-top: 23px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
