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

:root {
    --bg: #f4f1ec;
    --bg2: #ede9e1;
    --bg3: #e4dfd5;
    --surface: #ffffff;
    --surface2: #faf9f6;
    --text: #1a1510;
    --text2: #4a4035;
    --text3: #8a7d6e;
    --text4: #b0a393;
    --accent: #2c2018;
    --ink: #1a1510;
    --line: rgba(42, 32, 18, 0.10);
    --line2: rgba(42, 32, 18, 0.18);
    --vg1: #c8930a;
    --vg2: #d4a017;
    --vg3: #f5cc55;
    --vg4: #ffe890;
    --vg-bg: #fffcf2;
    --vg-shadow: rgba(196, 150, 10, 0.20);
    --radius: 16px;
    --radius-sm: 9px;
    --tr: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --font-h: 'Bebas Neue', sans-serif;
    --font-b: 'DM Sans', sans-serif;
    --font-s: 'Lora', serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(42, 32, 18, 0.065) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.55;
}

.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 52px 20px 100px;
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 30px 14px 90px;
    }
}

.search-hero {
    text-align: center;
    margin-bottom: 36px;
    animation: heroIn 0.55s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.search-eyebrow {
    font-family: var(--font-b);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--text3);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-eyebrow::before,
.search-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--line2);
}

.search-title {
    font-family: var(--font-h);
    font-size: clamp(42px, 9vw, 72px);
    letter-spacing: 0.06em;
    color: var(--ink);
    line-height: 0.92;
    margin-bottom: 8px;
}

.search-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
}

.search-sub {
    font-family: var(--font-s);
    font-style: italic;
    font-size: 14px;
    color: var(--text3);
    letter-spacing: 0.01em;
}

.search-form-wrap {
    margin-bottom: 32px;
    animation: heroIn 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--line2);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    gap: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10), 0 0 0 3px rgba(42, 32, 18, 0.08);
}

.search-box>svg {
    width: 17px;
    height: 17px;
    color: var(--text4);
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-box:focus-within>svg {
    color: var(--text2);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-b);
    font-size: 15px;
    font-weight: 400;
    padding: 11px 0;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text4);
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--tr);
    box-shadow: 0 2px 10px rgba(42, 32, 18, 0.28);
}

.search-btn svg {
    width: 17px;
    height: 17px;
}

.search-btn:hover {
    background: var(--text2);
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(42, 32, 18, 0.38);
}

.search-btn:active {
    transform: scale(0.97);
}

.results-label {
    font-family: var(--font-b);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text4);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line2), transparent);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform;
}

.user-card:nth-child(1) {
    animation-delay: 0.04s
}

.user-card:nth-child(2) {
    animation-delay: 0.09s
}

.user-card:nth-child(3) {
    animation-delay: 0.14s
}

.user-card:nth-child(4) {
    animation-delay: 0.19s
}

.user-card:nth-child(5) {
    animation-delay: 0.24s
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

.user-card:hover {
    border-color: var(--line2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.user-card.verified {
    background: var(--vg-bg);
    border-color: rgba(200, 147, 10, 0.25);
    box-shadow: 0 2px 18px var(--vg-shadow);
}

.user-card.verified:hover {
    border-color: rgba(200, 147, 10, 0.50);
    box-shadow: 0 8px 34px var(--vg-shadow);
    transform: translateY(-3px);
}

.v-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.v-sweep::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -80%;
    width: 55%;
    height: 160%;
    background: linear-gradient(110deg,
            transparent 0%,
            rgba(255, 220, 80, 0.10) 30%,
            rgba(255, 200, 40, 0.22) 50%,
            rgba(255, 220, 80, 0.10) 70%,
            transparent 100%);
    border-radius: 50%;
    animation: goldSweep 3.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    will-change: left, opacity;
}

@keyframes goldSweep {
    0% {
        left: -80%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

.v-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--vg2) 25%,
            var(--vg3) 50%,
            var(--vg2) 75%,
            transparent 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 1;
    animation: barGlow 3.2s ease-in-out infinite;
}

@keyframes barGlow {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar svg {
    width: 24px;
    height: 24px;
    color: var(--text4);
}

.user-card.verified .avatar {
    border-color: rgba(200, 147, 10, 0.18);
}

.user-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.user-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 3px;
}

.user-name {
    font-family: var(--font-b);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-card.verified .user-name {
    background: linear-gradient(120deg, #7b4f00 0%, #c8930a 45%, #e0b020 75%, #8a6000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-b);
    padding: 2.5px 7px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.badge svg {
    width: 9px;
    height: 9px;
}

.badge-verified {
    background: linear-gradient(135deg, rgba(255, 248, 210, 0.95) 0%, rgba(255, 235, 140, 0.85) 100%);
    border: 1px solid rgba(200, 147, 10, 0.40);
    color: var(--vg1);
    box-shadow: 0 1px 4px rgba(200, 147, 10, 0.15);
}

.badge-exact {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #16a34a;
}

.user-username {
    font-family: var(--font-b);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text4);
    margin-bottom: 8px;
}

.user-card.verified .user-username {
    color: rgba(130, 85, 0, 0.55);
}

.user-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text3);
    font-weight: 400;
}

.meta-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.meta-item strong {
    color: var(--text2);
    font-weight: 600;
    font-size: 12.5px;
}

.user-card.verified .meta-item strong {
    color: var(--vg1);
}

.card-arrow {
    flex-shrink: 0;
    color: var(--text4);
    position: relative;
    z-index: 2;
    transition: color var(--tr), transform var(--tr);
}

.card-arrow svg {
    width: 15px;
    height: 15px;
}

.user-card:hover .card-arrow {
    color: var(--text2);
    transform: translateX(3px);
}

.user-card.verified:hover .card-arrow {
    color: var(--vg1);
}

.state-box {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    animation: heroIn 0.4s 0.08s both;
}

.state-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg2);
    border: 1.5px solid var(--line2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.state-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text3);
}

.state-title {
    font-family: var(--font-b);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.state-sub {
    font-size: 13.5px;
    color: var(--text3);
    line-height: 1.75;
}

.load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.load-more-btn {
    background: var(--surface);
    border: 1.5px solid var(--line2);
    color: var(--text2);
    padding: 11px 28px;
    border-radius: 40px;
    font-family: var(--font-b);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: all var(--tr);
}

.load-more-btn svg {
    width: 14px;
    height: 14px;
}

.load-more-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(42, 32, 18, 0.20);
}

.load-more-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.spin {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(42, 32, 18, 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinAnim 0.65s linear infinite;
}

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

@media (max-width: 480px) {
    .search-box {
        padding: 4px 4px 4px 16px;
        gap: 8px;
    }

    .search-input {
        font-size: 14px;
    }

    .search-btn {
        width: 42px;
        height: 42px;
    }

    .user-card {
        padding: 13px 13px;
        gap: 12px;
    }

    .avatar {
        width: 54px;
        height: 54px;
    }

    .user-name {
        font-size: 15px;
    }

    .badge {
        font-size: 8.5px;
        padding: 2px 5px;
    }

    .user-meta {
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .search-title {
        font-size: 38px;
    }

    .page-wrap {
        padding: 22px 12px 90px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.recent-wrap { max-width: 560px; margin: 10px auto 0; padding: 0 16px; }
.recent-label { font-size: 11.5px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.recent-item { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: #374151; cursor: pointer; text-align: left; transition: background 0.14s; }
.recent-item:hover { background: #f3f4f6; }
.recent-item span:nth-child(2) { flex: 1; }
.recent-del { color: #9ca3af; font-size: 16px; line-height: 1; padding: 0 3px; }
.recent-del:hover { color: #ef4444; }
.verified-spotlight { margin-top: 28px; }
.spotlight-label { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 0 4px; }
