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

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #eef2ff;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --text-dark: #111827;
    --text-mid: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-soft);
    line-height: 1.6;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 16px;
}
.logo { font-size: 20px; font-weight: 900; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--accent); }

.nav-search {
    flex: 1; max-width: 380px;
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 10px; padding: 0 14px; height: 40px;
}
.nav-search svg { color: var(--text-light); flex-shrink: 0; }
.nav-search input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--text-dark); width: 100%; }
.nav-search input::placeholder { color: var(--text-light); }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; font-weight: 600; border-radius: 8px; transition: all 0.18s; }
.btn-primary { background: var(--primary); color: white; padding: 9px 18px; font-size: 14px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-mid); padding: 9px 16px; font-size: 14px; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ── FILTERS ── */
.filters-bar { background: white; border-bottom: 1px solid var(--border); padding: 0 5%; }
.filters-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 0;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.niche-chip {
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1.5px solid var(--border); background: white; color: var(--text-mid);
    transition: all 0.15s; white-space: nowrap;
}
.niche-chip:hover { border-color: var(--primary); color: var(--primary); }
.niche-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

.filter-divider { width: 1px; height: 24px; background: var(--border); }
.filter-select {
    appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 7px 32px 7px 12px; font-family: inherit; font-size: 13px; font-weight: 600;
    color: var(--text-dark); cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* ── RESULTS HEADER ── */
.results-header {
    max-width: 1280px; margin: 0 auto;
    padding: 20px 5%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.results-count { font-size: 15px; font-weight: 600; }
.results-count span { color: var(--text-light); font-weight: 400; }

/* ── GRID ── */
.grid-wrap { max-width: 1280px; margin: 0 auto; padding: 0 5% 80px; }
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ── CREATOR CARD ── */
.creator-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.creator-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-2px); }

.card-head {
    padding: 20px 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.card-avatar { width: 58px; height: 58px; border-radius: 50%; filter: blur(9px); }
.lock-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    background: white; border: 1.5px solid var(--border);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 10px;
}
.card-info { flex: 1; min-width: 0; }
.hidden-name { display: flex; gap: 5px; margin-bottom: 8px; }
.nb { height: 11px; background: var(--border); border-radius: 4px; }
.nb1 { width: 55px; } .nb2 { width: 75px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.niche-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--success); background: #d1fae5; padding: 3px 8px; border-radius: 100px; }
.barter-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; padding: 3px 9px; border-radius: 100px; }
.city-tag { font-size: 11px; color: var(--text-light); font-weight: 500; }

.sec-label {
    padding: 10px 20px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Performance grid */
.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.perf-cell {
    background: var(--bg-soft);
    padding: 12px 16px;
    text-align: center;
}
.perf-cell.full { grid-column: 1 / -1; }
.perf-cell.white { background: white; }
.pv { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-dark); line-height: 1.2; }
.pk { font-size: 10px; color: var(--text-light); margin-top: 2px; font-weight: 500; }
.pv.good { color: var(--success); }
.pv.ok   { color: var(--warning); }

/* Audience */
.audience-wrap { padding: 4px 20px 14px; }
.age-gender-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.age-block { flex-shrink: 0; }
.aud-val { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.aud-key { font-size: 10px; color: var(--text-light); margin-top: 1px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.gender-block { flex: 1; }
.gender-bar-wrap {
    height: 6px;
    border-radius: 100px;
    overflow: hidden;
    display: flex;
    margin-bottom: 5px;
    margin-top: 2px;
}
.gb-f { background: #ec4899; border-radius: 100px 0 0 100px; }
.gb-m { background: #4f46e5; border-radius: 0 100px 100px 0; }
.gender-labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.gl-f { color: #ec4899; }
.gl-m { color: var(--primary); }

.locations-row { display: flex; flex-wrap: wrap; gap: 5px; }
.loc-pill {
    font-size: 11px; font-weight: 500;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 3px 9px;
    border-radius: 100px;
}

/* Pricing */
.pricing-wrap {
    padding: 4px 20px 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--border);
    color: var(--text-mid);
}
.price-row:last-child { border-bottom: none; }
.price-row strong { color: var(--text-dark); font-weight: 700; }
.barter-note { margin-top: 10px; padding: 9px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 12px; color: #92400e; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Unlock button */
.unlock-btn {
    margin: 0 20px 20px;
    background: var(--primary);
    color: white; border: none; border-radius: 10px;
    padding: 13px; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.unlock-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Empty state */
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--text-light); }
.empty-state .ei { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; }

/* ── MODAL ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: white; border-radius: 24px; padding: 40px 36px;
    width: 100%; max-width: 420px; text-align: center;
    position: relative; animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; background: var(--bg-soft);
    border: none; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-mid); transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-emoji { font-size: 48px; margin-bottom: 16px; display: block; }
.modal h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.modal .modal-sub { font-size: 15px; color: var(--text-mid); line-height: 1.65; margin-bottom: 24px; }

.modal-form { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--text-mid); text-align: left; margin-bottom: 2px; letter-spacing: 0.3px; }
.text-input {
    width: 100%; border: 2px solid var(--border); border-radius: 10px;
    padding: 12px 14px; font-family: inherit; font-size: 15px;
    color: var(--text-dark); outline: none; transition: border-color 0.15s;
    background: white;
}
.text-input::placeholder { color: var(--text-light); }
.text-input:focus { border-color: var(--primary); }
.text-input.error { border-color: #ef4444; }

.phone-input-wrap {
    display: flex; align-items: center;
    border: 2px solid var(--border); border-radius: 10px; overflow: hidden;
    transition: border-color 0.15s;
}
.phone-input-wrap:focus-within { border-color: var(--primary); }
.phone-input-wrap.error { border-color: #ef4444; }
.phone-prefix { padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--text-dark); background: var(--bg-soft); border-right: 1.5px solid var(--border); white-space: nowrap; }
.phone-input { border: none; outline: none; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--text-dark); width: 100%; background: transparent; }
.phone-input::placeholder { color: var(--text-light); }

.modal-submit { background: var(--primary); color: white; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.18s; margin-top: 4px; }
.modal-submit:hover { background: var(--primary-dark); }
.modal-fine { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Beta screen */
.modal-beta { display: none; }
.modal-beta .beta-emoji { font-size: 48px; margin-bottom: 16px; display: block; }
.modal-beta h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.modal-beta .beta-sub { font-size: 15px; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; }
.beta-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.beta-perk { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; text-align: left; }
.beta-perk .bp-icon { font-size: 20px; flex-shrink: 0; }
.beta-perk .bp-text { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.beta-perk .bp-sub  { font-size: 12px; color: var(--text-mid); margin-top: 1px; }
.beta-close-btn { width: 100%; background: var(--primary); color: white; border: none; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.18s; }
.beta-close-btn:hover { background: var(--primary-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    nav { padding: 0 4%; }
    .nav-search { display: none; }
    .grid-wrap { padding: 0 4% 60px; }
    .creators-grid { grid-template-columns: 1fr; }
    .modal { padding: 32px 20px; }
}
