:root {
    color-scheme: dark;
    --bg: #090f20;
    --panel: #121e35;
    --panel-alt: #192740;
    --border: #2a3b57;
    --text: #f4f7ff;
    --muted: #aab9d1;
    --blue: #438dff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #77b5ff; }
.site-header { background: #0d172b; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 18px max(22px, calc((100vw - 1200px) / 2)); }
.logo { font-size: 25px; font-weight: 850; letter-spacing: -1px; white-space: nowrap; }
.logo span { color: #55a0ff; }
.logo small { font-size: 18px; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-weight: 650; font-size: 14px; }
.site-header nav .current { color: #76b6ff; }
.site-header nav .join { background: var(--blue); padding: 10px 15px; border-radius: 10px; color: #fff; }
.container { max-width: 1200px; margin: auto; padding: 34px 22px 70px; }
.hero { border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(circle at 85% 10%, #173f7a, transparent 45%), linear-gradient(120deg, #152846, #0e192d); padding: 42px; }
.eyebrow { color: #84bdff; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.6px; margin: 10px 0; }
h1 span { color: #62a7ff; }
.hero p { color: #c0cee4; max-width: 640px; line-height: 1.65; margin: 0 0 22px; }
.hero-stats { color: var(--muted); font-size: 14px; }
.hero-stats strong { color: white; font-size: 22px; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 24px 0 30px; }
.filters label { display: flex; flex-direction: column; gap: 8px; color: #c9d8ee; font-size: 13px; font-weight: 700; }
.search-field { flex: 1 1 270px; }
.sort-field { flex: 0 1 220px; }
.filters input, .filters select { min-height: 44px; width: 100%; background: #0b162a; color: white; border: 1px solid #344764; border-radius: 10px; padding: 10px 13px; font: inherit; }
.filters input:focus, .filters select:focus { outline: 2px solid #438dff; outline-offset: 1px; }
.filters button { background: var(--blue); color: white; border: 0; border-radius: 10px; min-height: 44px; padding: 0 19px; font-weight: 800; cursor: pointer; }
.filters button:hover, .view-profile:hover { background: #2777ec; color: white; }
.clear { padding: 12px 5px; color: #cbd7e9; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-title h2 { margin: 0; font-size: 23px; }
.section-title span { color: var(--muted); font-size: 14px; }
.members-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member-card { background: var(--panel); border: 1px solid var(--border); border-radius: 17px; padding: 25px 22px 20px; text-align: center; transition: transform .2s, border-color .2s; }
.member-card:hover { transform: translateY(-3px); border-color: #4787d9; }
.avatar { display: flex; justify-content: center; align-items: center; margin: 0 auto; width: 90px; height: 90px; border-radius: 50%; border: 3px solid #448eff; object-fit: cover; background: #213b63; color: white; font-size: 36px; font-weight: 800; }
.member-card h3 { margin: 13px 0 3px; font-size: 19px; overflow-wrap: anywhere; }
.joined { margin: 0; color: var(--muted); font-size: 13px; }
.member-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 23px 0 18px; }
.member-stats div { display: flex; flex-direction: column; gap: 5px; background: var(--panel-alt); padding: 13px 5px; border-radius: 10px; }
.member-stats strong { font-size: 18px; }
.member-stats span { color: var(--muted); font-size: 12px; }
.view-profile { display: block; background: #2e70d7; border-radius: 10px; padding: 12px; font-weight: 750; }
.empty { text-align: center; padding: 60px 20px; background: var(--panel); border-radius: 14px; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 30px 0; }
.pagination a { background: var(--panel-alt); border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; }
.pagination span { color: var(--muted); }
footer { border-top: 1px solid var(--border); padding: 25px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) { .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-header { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .members-grid { grid-template-columns: 1fr; } .hero { padding: 28px 22px; } .site-header nav { gap: 13px; } .filters { align-items: stretch; } .sort-field { flex: 1 1 100%; } }
